PluginProbe
Event Post / 6.1.2
Event Post v6.1.2
6.1.2 6.1.1 6.1.0 6.0.1 6.0.0 5.12.0 trunk 3.9 4.0 4.2 4.3 4.4 4.5 5.0 5.1 5.10.0 5.10.1 5.10.2 5.10.3 5.10.4 5.11.0 5.11.1 5.2 5.5 5.6 All 47 releases
← All changes | inc/deprecated/widget.php +4 -0 5.10.1 → 6.1.2 View file →
@@ -3,8 +3,11 @@
3 3 * The list widget
4 4 * @deprecated
5 5 * @package event-post
6 6 */
7 +
8 +if ( ! defined( 'ABSPATH' ) ) exit;
9 +
7 10 class EventPost_List extends WP_Widget {
8 11 var $defaults;
9 12 function __construct() {
10 13 parent::__construct(false, __( 'Events', 'event-post' ),array('description'=>__( 'List of future events posts', 'event-post' )));
@@ -61,8 +64,9 @@
61 64 echo $args['before_title'];
62 65 echo $instance['widgettitle'];
63 66 if(!empty($instance['cat']) && $instance['feed']){
64 67 $feed_url = esc_url(admin_url('admin-ajax.php') . '?action=EventPostFeed&cat=' . $instance['cat']);
68 + // Translators: %s is the category name
65 69 echo' <a href="'.$feed_url .'" title="'.sprintf(__('feed of %s', 'event-post'), $instance['cat']).'"><span class="dashicons dashicons-rss"></span></a>';
66 70 }
67 71 echo $args['after_title'];
68 72 }