| @@ -2,8 +2,11 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * @deprecated |
| 4 | 4 | * @package event-post |
| 5 | 5 | */ |
| 6 | + | |
| 7 | +if ( ! defined( 'ABSPATH' ) ) exit; | |
| 8 | + | |
| 6 | 9 | class EventPost_Search extends WP_Widget { |
| 7 | 10 | var $defaults; |
| 8 | 11 | function __construct() { |
| 9 | 12 | parent::__construct(false, __( 'Events Search Form', 'event-post' ),array('description'=>__( 'List of future events posts', 'event-post' ))); |
| @@ -63,8 +66,9 @@ | ||
| 63 | 66 | echo wp_kses($args['before_title'], EventPost()->kses_tags); |
| 64 | 67 | echo esc_html($instance['widgettitle']); |
| 65 | 68 | if(!empty($instance['cat']) && $instance['feed']){ |
| 66 | 69 | $rss_link = admin_url('admin-ajax.php') . '?action=EventPostFeed&cat=' . $instance['cat']; |
| 70 | + // Translators: %s is the category name | |
| 67 | 71 | echo' <a href="' . esc_url($rss_link) . '" title="'.esc_attr(sprintf(__('feed of %s', 'event-post'), $instance['cat'])).'"><span class="dashicons dashicons-rss"></span></a>'; |
| 68 | 72 | } |
| 69 | 73 | echo wp_kses($args['after_title'], EventPost()->kses_tags); |
| 70 | 74 | } |