|
1 <?php |
|
2 /* |
|
3 # since 1.8.8 only the 3 widget classes here |
|
4 # PREVIOUS PLUGIN DESC. |
|
5 the name of plugin was xili-language widget now it is a part of xili-language plugin. |
|
6 Add optional widgets to display list of languages in the sidebar or recent #comments and recents posts selected according current language. xili-language plugin must be activated! |
|
7 # Author is dev.xiligroup.com - MS |
|
8 # Version is 2.4.0 |
|
9 # Author URI is http://dev.xiligroup.com |
|
10 # License is GPLv2 |
|
11 */ |
|
12 |
|
13 # 111210 - 2.4.0 - clean notices |
|
14 # 111016 - 2.2.3 - clean recent posts |
|
15 # 110521 - 2.1.0 - see main file |
|
16 # 110410 - 2.0.0 - source cleaning |
|
17 # 110306 - 1.9.1 - fixes in recent posts - only post-type display - input added to add list of type (post,video,…) |
|
18 # 101104 - 1.8.4 - widget languages list with display condition |
|
19 # 101101 - 1.8.3 - languages list and recent comments rewritten as extended class of WP_Widget |
|
20 # |
|
21 # 101026 - 1.8.1 - fixes : add a missing ending tag in options list in widget xili-language list |
|
22 # 100713 - 1.7.0 - add a querytag to be compatible with new mechanism (join+where) of xili-language |
|
23 # 100602 - 1.6.0 - add list of options in widget - hook possible if hook in languages_list |
|
24 # 100416 - change theme_domain constant for multisite (WP3) |
|
25 # 100219 - add new widget recent posts if WP >= 2.8.0 |
|
26 # 090606 - xili-language list widget is now multiple and more features |
|
27 |
|
28 /* thanks to http://blog.zen-dreams.com/ tutorial |
|
29 |
|
30 Copyright 2009-10 dev.xiligroup.com |
|
31 |
|
32 This program is free software; you can redistribute it and/or modify |
|
33 it under the terms of the GNU General Public License as published by |
|
34 the Free Software Foundation; either version 2 of the License, or |
|
35 (at your option) any later version. |
|
36 |
|
37 This program is distributed in the hope that it will be useful, |
|
38 but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
39 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
40 GNU General Public License for more details. |
|
41 |
|
42 You should have received a copy of the GNU General Public License |
|
43 along with this program; if not, write to the Free Software |
|
44 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
45 */ |
|
46 |
|
47 /** |
|
48 * Recent_Posts widget class |
|
49 * rewritten from default WP widget to suppress wp_reset_query and add sub-selection by language (current or forced) |
|
50 * @since 1.4.0 |
|
51 */ |
|
52 class xili_Widget_Recent_Posts extends WP_Widget { |
|
53 |
|
54 function xili_Widget_Recent_Posts() { |
|
55 $widget_ops = array('classname' => 'xili_widget_recent_entries', 'description' => __( "The most recent posts on your blog by xili-language",'xili-language-widget').' © v. '.XILILANGUAGE_VER ); |
|
56 $this->WP_Widget('xili-recent-posts', __('List of recent posts','xili-language-widget'), $widget_ops); |
|
57 $this->alt_option_name = 'xili_widget_recent_entries'; |
|
58 |
|
59 add_action( 'save_post', array(&$this, 'flush_widget_cache') ); |
|
60 add_action( 'deleted_post', array(&$this, 'flush_widget_cache') ); |
|
61 add_action( 'switch_theme', array(&$this, 'flush_widget_cache') ); |
|
62 } |
|
63 |
|
64 function widget($args, $instance) { |
|
65 $cache = wp_cache_get('xili_widget_recent_posts', 'widget'); |
|
66 |
|
67 if ( !is_array($cache) ) |
|
68 $cache = array(); |
|
69 |
|
70 if ( isset($cache[$args['widget_id']]) ) { |
|
71 echo $cache[$args['widget_id']]; |
|
72 return; |
|
73 } |
|
74 |
|
75 ob_start(); |
|
76 extract($args); |
|
77 |
|
78 $title = apply_filters('widget_title', empty($instance['title']) ? __('Recent Posts') : $instance['title']); |
|
79 if ( !$number = (int) $instance['number'] ) |
|
80 $number = 10; |
|
81 else if ( $number < 1 ) |
|
82 $number = 1; |
|
83 else if ( $number > 15 ) |
|
84 $number = 15; |
|
85 |
|
86 $the_lang = $instance['the_lang']; |
|
87 if ( !isset ( $instance['post_type'] ) || $instance['post_type'] == '' ) { |
|
88 $post_type_arr = array('post'); |
|
89 } else { |
|
90 $post_type_arr = explode (',', $instance['post_type'] ); |
|
91 } |
|
92 global $wp_query; |
|
93 //$tmp_wp_query = $wp_query ; |
|
94 if ( class_exists('xili_language') ) { |
|
95 |
|
96 |
|
97 $tmp_query = ( isset( $wp_query->query_vars[QUETAG]) ) ? $wp_query->query_vars[QUETAG] : "" ; |
|
98 $wp_query->query_vars[QUETAG] = ""; |
|
99 //$wp_query = null; |
|
100 if ($the_lang == '') |
|
101 $thequery = array('xlrp' => 0, 'showposts' => $number, |
|
102 'post_type' => $post_type_arr , 'no_found_rows' => true, |
|
103 'post_status' => 'publish', 'ignore_sticky_posts' => 1); //2.2.3 |
|
104 else if ($the_lang == '*') |
|
105 $thequery = array ('xlrp' => 1, 'showposts' => $number, |
|
106 'post_type' => $post_type_arr , 'no_found_rows' => true, |
|
107 'post_status' => 'publish', 'ignore_sticky_posts' => 1, QUETAG => the_curlang()); |
|
108 else |
|
109 $thequery = array ('xlrp' => 1, 'showposts' => $number, |
|
110 'post_type' => $post_type_arr , 'no_found_rows' => true, |
|
111 'post_status' => 'publish', 'ignore_sticky_posts' => 1, QUETAG => $the_lang); |
|
112 //echo '===='.the_curlang(); |
|
113 add_action('parse_query','xiliml_add_lang_to_parsed_query'); |
|
114 $r = new WP_Query($thequery); |
|
115 remove_filter('parse_query','xiliml_add_lang_to_parsed_query'); |
|
116 |
|
117 } else { |
|
118 $thequery = array('showposts' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'caller_get_posts' => 1); |
|
119 $r = new WP_Query($thequery); |
|
120 } |
|
121 |
|
122 if ($r->have_posts()) : |
|
123 ?> |
|
124 <?php echo $before_widget; ?> |
|
125 <?php if ( $title ) echo $before_title . $title . $after_title; ?> |
|
126 <ul> |
|
127 <?php while ($r->have_posts()) : $r->the_post(); ?> |
|
128 <li><a href="<?php the_permalink() ?>" title="<?php echo esc_attr(get_the_title() ? get_the_title() : get_the_ID()); ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?> </a></li> |
|
129 <?php endwhile; ?> |
|
130 </ul> |
|
131 <?php echo $after_widget; ?> |
|
132 <?php |
|
133 |
|
134 endif; |
|
135 //$wp_query = $tmp_wp_query; |
|
136 $wp_query->query_vars[QUETAG] = $tmp_query; |
|
137 $cache[$args['widget_id']] = ob_get_flush(); |
|
138 wp_cache_add('xili_widget_recent_posts', $cache, 'widget'); |
|
139 } |
|
140 |
|
141 function update( $new_instance, $old_instance ) { |
|
142 $instance = $old_instance; |
|
143 $instance['title'] = strip_tags($new_instance['title']); |
|
144 $instance['the_lang'] = strtolower($new_instance['the_lang']); |
|
145 $instance['number'] = (int) $new_instance['number']; |
|
146 $instance['post_type'] = $new_instance['post_type']; |
|
147 $this->flush_widget_cache(); |
|
148 |
|
149 $alloptions = wp_cache_get( 'alloptions', 'options' ); |
|
150 if ( isset($alloptions['xili_widget_recent_entries']) ) |
|
151 delete_option('xili_widget_recent_entries'); |
|
152 |
|
153 return $instance; |
|
154 } |
|
155 |
|
156 function flush_widget_cache() { |
|
157 wp_cache_delete('xili_widget_recent_posts', 'widget'); |
|
158 } |
|
159 |
|
160 function form( $instance ) { |
|
161 $title = isset($instance['title']) ? esc_attr($instance['title']) : ''; |
|
162 $the_lang = isset($instance['the_lang']) ? strtolower($instance['the_lang']) : ''; |
|
163 if ( !isset($instance['number']) || !$number = (int) $instance['number'] ) |
|
164 $number = 5; |
|
165 $post_type = isset($instance['post_type']) ? esc_attr($instance['post_type']) : 'post'; |
|
166 ?> |
|
167 <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?></label> |
|
168 <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" /></p> |
|
169 |
|
170 <?php if (class_exists('xili_language')) { global $xili_language; ?> |
|
171 <p> |
|
172 <label for="<?php echo $this->get_field_id('the_lang'); ?>"><?php _e('Language:','xili-language-widget'); ?></label> |
|
173 <select name="<?php echo $this->get_field_name('the_lang'); ?>" id="<?php echo $this->get_field_id('the_lang'); ?>" class="widefat"> |
|
174 <option value=""<?php selected( $the_lang, '' ); ?>><?php _e('All languages','xili-language-widget'); ?></option> |
|
175 <option value="*"<?php selected( $the_lang, '*' ); ?>><?php _e('Current language','xili-language-widget'); ?></option> |
|
176 <?php $listlanguages = get_terms_of_groups_lite ($xili_language->langs_group_id,TAXOLANGSGROUP,TAXONAME,'ASC'); |
|
177 foreach ($listlanguages as $language) { ?> |
|
178 <option value="<?php echo $language->slug ?>"<?php selected( $the_lang, $language->slug ); ?>><?php _e($language->description,'xili-language-widget'); ?></option> |
|
179 |
|
180 <?php } /* end */ |
|
181 ?> |
|
182 </select> |
|
183 </p> |
|
184 <?php } ?> |
|
185 <p> |
|
186 <label for="<?php echo $this->get_field_id('post_type'); ?>"><?php _e('Post type(s):','xili-language-widget'); ?></label> |
|
187 <input class="widefat" id="<?php echo $this->get_field_id('post_type'); ?>" name="<?php echo $this->get_field_name('post_type'); ?>" type="text" value="<?php echo $post_type; ?>" /><br /> |
|
188 </p> |
|
189 |
|
190 <p><label for="<?php echo $this->get_field_id('number'); ?>"><?php _e('Number of posts to show:'); ?></label> |
|
191 <input id="<?php echo $this->get_field_id('number'); ?>" name="<?php echo $this->get_field_name('number'); ?>" type="text" value="<?php echo $number; ?>" size="3" /><br /> |
|
192 <small><?php _e('(at most 15)'); ?></small></p> |
|
193 <p><small>© xili-language v. <?php echo XILILANGUAGE_VER; ?></small></p> |
|
194 <?php |
|
195 } |
|
196 } |
|
197 |
|
198 /***** new class since 1.8.3 *****/ |
|
199 |
|
200 /** |
|
201 * Recent_Comments widget class |
|
202 * |
|
203 * @since 1.8.3 |
|
204 */ |
|
205 class xili_WP_Widget_Recent_Comments extends WP_Widget { |
|
206 |
|
207 function xili_WP_Widget_Recent_Comments() { |
|
208 $widget_ops = array('classname' => 'xili_widget_recent_comments', 'description' => __( 'The most recent comments by xili-language','xili-language-widget' ).' © v. '.XILILANGUAGE_VER ); |
|
209 $this->WP_Widget('xili-recent-comments', __('Recent Comments list','xili-language-widget'), $widget_ops); |
|
210 $this->alt_option_name = 'xili_widget_recent_comments'; |
|
211 |
|
212 if ( is_active_widget(false, false, $this->id_base) ) |
|
213 add_action( 'wp_head', array(&$this, 'recent_comments_style') ); |
|
214 |
|
215 add_action( 'comment_post', array(&$this, 'flush_widget_cache') ); |
|
216 add_action( 'transition_comment_status', array(&$this, 'flush_widget_cache') ); |
|
217 } |
|
218 |
|
219 function recent_comments_style() { ?> |
|
220 <style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style> |
|
221 <?php |
|
222 } |
|
223 |
|
224 function flush_widget_cache() { |
|
225 wp_cache_delete('xili_widget_recent_comments', 'widget'); |
|
226 } |
|
227 |
|
228 function widget( $args, $instance ) { |
|
229 global $comments, $comment; |
|
230 |
|
231 $cache = wp_cache_get('xili_widget_recent_comments', 'widget'); |
|
232 |
|
233 if ( ! is_array( $cache ) ) |
|
234 $cache = array(); |
|
235 |
|
236 if ( isset( $cache[$args['widget_id']] ) ) { |
|
237 echo $cache[$args['widget_id']]; |
|
238 return; |
|
239 } |
|
240 |
|
241 extract($args, EXTR_SKIP); |
|
242 $output = ''; |
|
243 $title = apply_filters('widget_title', empty($instance['title']) ? __('Recent Comments') : $instance['title']); |
|
244 |
|
245 if ( ! $number = (int) $instance['number'] ) |
|
246 $number = 5; |
|
247 else if ( $number < 1 ) |
|
248 $number = 1; |
|
249 /* if xili-language plugin is activated */ |
|
250 if (function_exists('xiliml_recent_comments')) { |
|
251 $comments = xiliml_recent_comments($number); |
|
252 } else { |
|
253 $comments = get_comments( array( 'number' => $number, 'status' => 'approve' ) ); |
|
254 } |
|
255 $output .= $before_widget; |
|
256 if ( $title ) |
|
257 $output .= $before_title . $title . $after_title; |
|
258 |
|
259 $output .= '<ul id="recentcomments">'; |
|
260 if ( $comments ) { |
|
261 foreach ( (array) $comments as $comment) { |
|
262 $output .= '<li class="recentcomments">' . /* translators: comments widget: 1: comment author, 2: post link */ sprintf(_x('%1$s on %2$s', the_theme_domain()), get_comment_author_link(), '<a href="' . esc_url( get_comment_link($comment->comment_ID) ) . '">' . get_the_title($comment->comment_post_ID) . '</a>') . '</li>'; |
|
263 } |
|
264 } |
|
265 $output .= '</ul>'; |
|
266 $output .= $after_widget; |
|
267 |
|
268 echo $output; |
|
269 $cache[$args['widget_id']] = $output; |
|
270 wp_cache_set('xili_widget_recent_comments', $cache, 'widget'); |
|
271 } |
|
272 |
|
273 function update( $new_instance, $old_instance ) { |
|
274 $instance = $old_instance; |
|
275 $instance['title'] = strip_tags($new_instance['title']); |
|
276 $instance['number'] = (int) $new_instance['number']; |
|
277 $this->flush_widget_cache(); |
|
278 |
|
279 $alloptions = wp_cache_get( 'alloptions', 'options' ); |
|
280 if ( isset($alloptions['xili_widget_recent_comments']) ) |
|
281 delete_option('xili_widget_recent_comments'); |
|
282 |
|
283 return $instance; |
|
284 } |
|
285 |
|
286 function form( $instance ) { |
|
287 $title = isset($instance['title']) ? esc_attr($instance['title']) : ''; |
|
288 $number = isset($instance['number']) ? absint($instance['number']) : 5; |
|
289 |
|
290 ?> |
|
291 <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?></label> |
|
292 <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" /></p> |
|
293 |
|
294 <p><label for="<?php echo $this->get_field_id('number'); ?>"><?php _e('Number of comments to show:'); ?></label> |
|
295 <input id="<?php echo $this->get_field_id('number'); ?>" name="<?php echo $this->get_field_name('number'); ?>" type="text" value="<?php echo $number; ?>" size="3" /></p> |
|
296 <p><small>© xili-language v. <?php echo XILILANGUAGE_VER; ?></small></p> |
|
297 <?php |
|
298 } |
|
299 |
|
300 } |
|
301 |
|
302 /** |
|
303 * xili-language list widget class |
|
304 * |
|
305 * @since 1.8.3 |
|
306 * rewritten |
|
307 */ |
|
308 class xili_language_Widgets extends WP_Widget { |
|
309 |
|
310 function xili_language_Widgets() { |
|
311 |
|
312 $widget_ops = array('classname' => 'xili-language_Widgets', 'description' => __( "List of available languages by xili-language plugin", 'xili-language-widget' ).' © v. '.XILILANGUAGE_VER ); |
|
313 $this->WP_Widget('xili_language_widgets', __("List of languages", 'xili-language-widget'), $widget_ops); |
|
314 $this->alt_option_name = 'xili_language_widgets_options'; |
|
315 } |
|
316 |
|
317 function widget( $args, $instance ) { |
|
318 |
|
319 extract($args, EXTR_SKIP); |
|
320 $thecondition = trim( $instance['thecondition'],'!' ) ; |
|
321 |
|
322 if ( '' != $instance['thecondition'] && function_exists( $thecondition ) ) { |
|
323 $not = ( $thecondition == $instance['thecondition'] ) ? false : true ; |
|
324 $arr_params = ('' != $instance['theparams']) ? array(explode( ',', $instance['theparams'] )) : array(); |
|
325 $condition_ok = ($not) ? !call_user_func_array ( $thecondition, $arr_params ) : call_user_func_array ( $thecondition, $arr_params ); |
|
326 } else { |
|
327 $condition_ok = true; |
|
328 } |
|
329 |
|
330 if ( $condition_ok ) { |
|
331 $output = ''; |
|
332 $output .= $before_widget; |
|
333 $title = apply_filters( 'widget_title', $instance['title'] ); |
|
334 if ( $title ) |
|
335 $output .= $before_title . $title . $after_title; |
|
336 |
|
337 if ( function_exists( 'xili_language_list' ) ) { |
|
338 $hidden = ( $instance['hidden'] == 'hidden' ) ? true : false ; |
|
339 $output .= $instance['beforelist']; |
|
340 $output .= xili_language_list( $instance['beforeline'], $instance['afterline'], $instance['theoption'], false, $hidden ); |
|
341 $output .= $instance['afterlist']; |
|
342 } |
|
343 $output .= $after_widget; |
|
344 echo $output; |
|
345 } |
|
346 } |
|
347 |
|
348 function update( $new_instance, $old_instance ) { |
|
349 $instance = $old_instance; |
|
350 |
|
351 $instance['title'] = strip_tags($new_instance['title']); |
|
352 $instance['beforelist'] = stripslashes($new_instance['beforelist']); |
|
353 $instance['beforeline'] = stripslashes($new_instance['beforeline']); |
|
354 $instance['afterline'] = stripslashes($new_instance['afterline']); |
|
355 $instance['afterlist'] = stripslashes($new_instance['afterlist']); |
|
356 $instance['theoption'] = strip_tags(stripslashes($new_instance['theoption'])); |
|
357 $instance['thecondition'] = strip_tags(stripslashes($new_instance['thecondition'])); // 1.8.4 |
|
358 $instance['theparams'] = strip_tags(stripslashes($new_instance['theparams'])); |
|
359 $instance['hidden'] = isset($new_instance['hidden']) ? $new_instance['hidden'] : '' ; // 2.4.0 checkbox |
|
360 return $instance; |
|
361 } |
|
362 |
|
363 function form( $instance ) { |
|
364 global $xili_language; |
|
365 $title = isset($instance['title']) ? esc_attr($instance['title']) : ''; |
|
366 $beforelist = isset($instance['beforelist']) ? htmlentities(stripslashes($instance['beforelist'])) : "<ul class='xililanguagelist'>"; |
|
367 $beforeline = isset($instance['beforeline']) ? htmlentities(stripslashes($instance['beforeline'])) : '<li>'; |
|
368 $afterline = isset($instance['afterline']) ? htmlentities(stripslashes($instance['afterline'])): '</li>'; |
|
369 $afterlist = isset($instance['afterlist']) ? htmlentities(stripslashes($instance['afterlist'])) : '</ul>'; |
|
370 $theoption = isset($instance['theoption']) ? stripslashes($instance['theoption']) : '' ; |
|
371 $thecondition = isset($instance['thecondition']) ? stripslashes($instance['thecondition']) : '' ; |
|
372 $theparams = isset($instance['theparams']) ? stripslashes($instance['theparams']) : '' ; |
|
373 $hidden = isset($instance['hidden']) ? $instance['hidden'] : '' ; // 1.8.9.1 |
|
374 |
|
375 ?> |
|
376 <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?></label> |
|
377 <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" /></p> |
|
378 <?php |
|
379 |
|
380 if ( class_exists('xili_language') ) { |
|
381 if ( $xili_language->this_has_filter('xili_language_list')) // one external action |
|
382 $xili_language->langs_list_options = array(); |
|
383 if ( has_filter('xili_language_list_options') ) { // is list of options described |
|
384 do_action('xili_language_list_options', $theoption); // update the list of external action |
|
385 } |
|
386 } |
|
387 if ( class_exists('xili_language') && isset($xili_language->langs_list_options) && $xili_language->langs_list_options != array()) { |
|
388 echo '<br /><label for="'.$this->get_field_id('theoption').'">'.__('Type','xili-language-widget').':'; |
|
389 echo '<select name="'.$this->get_field_name('theoption').'" id="'.$this->get_field_id('theoption').'">'; |
|
390 foreach ($xili_language->langs_list_options as $typeoption) { |
|
391 if ( false === strpos( $typeoption[0], 'navmenu' ) ) { // 2.0.1 |
|
392 $selectedoption = ($theoption == $typeoption[0]) ? 'selected = "selected"':''; |
|
393 echo '<option value="'.$typeoption[0].'" '.$selectedoption.' >'.$typeoption[1].'</option>'; |
|
394 } |
|
395 } |
|
396 echo '</select></label>'; |
|
397 } else { |
|
398 echo '<br /><label for="'.$this->get_field_id('theoption').'">'.__('Type','xili-language-widget').': <input id="'.$this->get_field_id('theoption').'" name="'.$this->get_field_name('theoption').'" type="text" value="'.$theoption.'" /></label>'; |
|
399 } |
|
400 |
|
401 ?> |
|
402 <small> <label for="<?php echo $this->get_field_id('hidden'); ?>"><?php _e('Hide:','xili-language-widget'); ?> <input id="<?php echo $this->get_field_id('hidden'); ?>" name="<?php echo $this->get_field_name('hidden'); ?>" type="checkbox" value="hidden" <?php echo ($hidden == 'hidden') ? 'checked="checked"' : '' ; ?> /></label></small> |
|
403 |
|
404 <fieldset style="margin:2px; padding:3px; border:1px solid #ccc;"><legend><?php _e('HTML tags of list','xili-language-widget'); ?></legend> |
|
405 <label for="<?php echo $this->get_field_id('beforelist'); ?>"><?php _e('before list','xili-language-widget'); ?></label>: |
|
406 <input class="widefat" id="<?php echo $this->get_field_id('beforelist'); ?>" name="<?php echo $this->get_field_name('beforelist'); ?>" type="text" value="<?php echo $beforelist; ?>" /> |
|
407 |
|
408 <label for="<?php echo $this->get_field_id('beforeline'); ?>"><?php _e('before line','xili-language-widget'); ?></label>: |
|
409 <input class="widefat" id="<?php echo $this->get_field_id('beforeline'); ?>" name="<?php echo $this->get_field_name('beforeline'); ?>" type="text" value="<?php echo $beforeline; ?>" /> |
|
410 |
|
411 <label for="<?php echo $this->get_field_id('afterline'); ?>"><?php _e('after line','xili-language-widget'); ?></label>: |
|
412 <input class="widefat" id="<?php echo $this->get_field_id('afterline'); ?>" name="<?php echo $this->get_field_name('afterline'); ?>" type="text" value="<?php echo $afterline; ?>" /> |
|
413 |
|
414 <label for="<?php echo $this->get_field_id('afterlist'); ?>"><?php _e('after list','xili-language-widget'); ?></label>: |
|
415 <input class="widefat" id="<?php echo $this->get_field_id('afterlist'); ?>" name="<?php echo $this->get_field_name('afterlist'); ?>" type="text" value="<?php echo $afterlist; ?>" /></fieldset> |
|
416 <fieldset style="margin:2px; padding:3px; border:1px solid #ccc;" > |
|
417 <label for="<?php echo $this->get_field_id('thecondition'); ?>"><?php _e('Condition','xili-language-widget'); ?></label>: |
|
418 <input class="widefat" id="<?php echo $this->get_field_id('thecondition'); ?>" name="<?php echo $this->get_field_name('thecondition'); ?>" type="text" value="<?php echo $thecondition; ?>" /> |
|
419 ( <input id="<?php echo $this->get_field_id('theparams'); ?>" name="<?php echo $this->get_field_name('theparams'); ?>" type="text" value="<?php echo $theparams; ?>" /> ) |
|
420 </fieldset> |
|
421 <p><small>© xili-language v. <?php echo XILILANGUAGE_VER; ?></small></p> |
|
422 <?php |
|
423 } |
|
424 } |
|
425 |
|
426 |
|
427 ?> |