PluginProbe
Event Post / 5.0
Event Post v5.0
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 5.6.1 All 46 releases
← All changes | inc/widget.php +8 -9 5.55.0 View file →
@@ -1,10 +1,9 @@
1 1 <?php
2 +
2 3 /**
3 - * The list widget
4 - *
5 - * @package event-post
6 - */
4 + * The list widget
5 + */
7 6 class EventPost_List extends WP_Widget {
8 7 var $defaults;
9 8 function __construct() {
10 9 parent::__construct(false, __( 'Events', 'event-post' ),array('description'=>__( 'List of future events posts', 'event-post' )));
@@ -25,9 +24,9 @@
25 24 'excerpt' => '',
26 25 );
27 26
28 27 }
29 - function EventPost_List(){
28 + function eventpost_widget(){
30 29 $this->__construct();
31 30 }
32 31 function widget($args, $local_instance) {
33 32 extract( $args );
@@ -111,9 +110,9 @@
111 110
112 111 <p>
113 112 <label for="<?php echo $this->get_field_id('cat'); ?>">
114 113 <span class="dashicons dashicons-category"></span>
115 - <?php _e('Only in:','event-post'); ?>
114 + <?php _e('Only in :','event-post'); ?>
116 115 <select class="widefat" id="<?php echo $this->get_field_id('cat'); ?>" name="<?php echo $this->get_field_name('cat'); ?>">
117 116 <option value=''><?php _e('All categories','event-post') ?></option>
118 117 <?php foreach($cats as $_cat){ ?>
119 118 <option value="<?php echo $_cat->slug; ?>" <?php selected($_cat->slug, $instance['cat'], true); ?>><?php echo $_cat->cat_name; ?></option>
@@ -132,9 +131,9 @@
132 131
133 132 <p>
134 133 <label for="<?php echo $this->get_field_id('tag'); ?>">
135 134 <span class="dashicons dashicons-tag"></span>
136 - <?php _e('Only in:','event-post'); ?>
135 + <?php _e('Only in :','event-post'); ?>
137 136 <select class="widefat" id="<?php echo $this->get_field_id('tag'); ?>" name="<?php echo $this->get_field_name('tag'); ?>">
138 137 <option value=''><?php _e('All tags','event-post') ?></option>
139 138 <?php foreach($tags as $_tag){?>
140 139 <option value="<?php echo $_tag->slug; ?>" <?php selected($_tag->slug, $instance['tag'], true); ?>><?php echo $_tag->name; ?></option>
@@ -171,9 +170,9 @@
171 170 </p>
172 171
173 172 <p>
174 173 <label for="<?php echo $this->get_field_id('order'); ?>">
175 - <?php _e('Order:','event-post'); ?>
174 + <?php _e('Order :','event-post'); ?>
176 175 <select class="widefat" id="<?php echo $this->get_field_id('order'); ?>" name="<?php echo $this->get_field_name('order'); ?>">
177 176 <option value='DESC' <?php selected('DESC', $instance['order'], true); ?>><?php _e('Reverse chronological','event-post') ?></option>
178 177 <option value='ASC' <?php selected('ASC', $instance['order'], true); ?>><?php _e('Chronological','event-post') ?></option>
179 178 </select>
@@ -181,5 +180,5 @@
181 180 </p>
182 181 <?php
183 182 }
184 183
185 -}
184 +}