| @@ -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 | } |