PluginProbe
jQuery UI Widgets / 0.43
jQuery UI Widgets v0.43
trunk 0.2 0.21 0.22 0.3 0.31 0.32 0.33 0.34 0.35 0.36 0.37 0.38 0.4 0.42 0.43 0.50 0.60
jquery-ui-widgets / jquery-ui-widgets.php

jquery-ui-widgets.php in jQuery UI Widgets 0.43, at jquery-ui-widgets.php

658 lines 40.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: jQuery UI Widgets
4 Plugin URI: http://wordpress.org/plugins/jquery-ui-widgets/
5 Description: Simple, clean, and flexible way to add jQuery UI widgets to your site pages.
6 Version: 0.43
7 Author: David Gwyer
8 Author URI: http://www.wpgoplugins.com
9 License: GPLv2
10 */
11
12 /* Copyright 2009 David Gwyer (email : david@wpgoplugins.com)
13
14 This program is free software; you can redistribute it and/or modify
15 it under the terms of the GNU General Public License as published by
16 the Free Software Foundation; either version 2 of the License, or
17 (at your option) any later version.
18
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU General Public License for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with this program; if not, write to the Free Software
26 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27 */
28
29 // Note: jquiw_ prefix is derived from [jq]uery [ui] [w]idgets
30 define( "JQUIW_PLUGIN_URL", WP_PLUGIN_URL . '/' . plugin_basename( dirname( __FILE__ ) ) );
31
32 // --------------------
33 // -- PLUGIN HOOKS --
34 // --------------------
35
36 add_action( 'wp_head', 'jquiw_initialize_scripts' );
37 add_action( 'wp_enqueue_scripts', 'jquiw_enqueue_scripts' );
38 register_activation_hook( __FILE__, 'jquiw_add_defaults' );
39 register_uninstall_hook( __FILE__, 'jquiw_delete_plugin_options' );
40 add_action( 'admin_init', 'jquiw_init' );
41 add_action( 'plugins_loaded', 'jquiw_localize_plugin' );
42 add_action( 'admin_menu', 'jquiw_add_options_page' );
43 add_filter( 'plugin_row_meta', 'jquiw_plugin_action_links', 10, 2 );
44 add_filter( 'plugin_action_links', 'jquiw_plugin_settings_link', 10, 2 );
45 add_action( 'admin_notices', 'jquiw_admin_notice' );
46 register_activation_hook( __FILE__, 'jquiw_admin_notice_set_transient' );
47
48 /* Runs only when the plugin is activated. */
49 function jquiw_admin_notice_set_transient() {
50
51 /* Create transient data */
52 set_transient( 'jquiw-admin-notice', true, 5 );
53 }
54
55 /* Admin Notice on Activation. */
56 function jquiw_admin_notice(){
57
58 /* Check transient, if available display notice */
59 if( get_transient( 'jquiw-admin-notice' ) ){
60 ?>
61 <div class="updated notice is-dismissible">
62 <p><a href="https://wpgoplugins.com/plugins/jquery-ui-widgets-pro/" target="_blank"><strong>jQuery UI Widgets PRO</strong></a> is now available! Access great new features. <b>Try risk free today with our 100% money back guarantee! <span class="dashicons dashicons-smiley"></span></b></p>
63 </div>
64 <?php
65 /* Delete transient, only display this notice once. */
66 delete_transient( 'jquiw-admin-notice' );
67 }
68 }
69 // --------------------------------------
70 // -- DEFINE DEFAULT OPTION SETTINGS --
71 // --------------------------------------
72
73 function jquiw_add_defaults() {
74
75 $tmp = get_option( 'jquiw_options' );
76
77 // The 'base' theme doesn't exist anymore so change to new default theme.
78 if ( $tmp['drp_jquery_theme'] == 'base' ) {
79 $tmp['drp_jquery_theme'] = 'smoothness';
80 update_option( 'jquiw_options', $tmp );
81 }
82
83 if ( ( ( isset( $tmp['chk_default_options_db'] ) && $tmp['chk_default_options_db'] == '1' ) ) || ( ! is_array( $tmp ) ) ) {
84 delete_option( 'jquiw_options' );
85 $arr = array( "txt_custom_theme_path" => "",
86 "txtar_override_css" => ".ui-widget {\r\nfont-family: inherit;\r\nfont-size: inherit;\r\n}",
87 "drp_jquery_theme" => "smoothness",
88 "chk_inc_accordion" => "1",
89 "chk_inc_autocomplete" => "1",
90 "chk_inc_button" => "1",
91 "chk_inc_uicore" => "1",
92 "chk_inc_datepicker" => "1",
93 "chk_inc_dialog" => "1",
94 "chk_inc_draggable" => "1",
95 "chk_inc_droppable" => "1",
96 "chk_inc_menu" => "1",
97 "chk_inc_mouse" => "1",
98 "chk_inc_position" => "1",
99 "chk_inc_progressbar" => "1",
100 "chk_inc_resizable" => "1",
101 "chk_inc_selectable" => "1",
102 "chk_inc_slider" => "1",
103 "chk_inc_spinner" => "1",
104 "chk_inc_sortable" => "1",
105 "chk_inc_tabs" => "1",
106 "chk_inc_tooltip" => "1",
107 "chk_inc_widget" => "1",
108 "chk_inc_blind" => "1",
109 "chk_inc_bounce" => "1",
110 "chk_inc_clip" => "1",
111 "chk_inc_coreeffects" => "1",
112 "chk_inc_drop" => "1",
113 "chk_inc_explode" => "1",
114 "chk_inc_fade" => "1",
115 "chk_inc_fold" => "1",
116 "chk_inc_highlight" => "1",
117 "chk_inc_pulsate" => "1",
118 "chk_inc_scale" => "1",
119 "chk_inc_shake" => "1",
120 "chk_inc_slide" => "1",
121 "chk_inc_transfer" => "1",
122 "txtar_jquery_code" => "",
123 "txt_custom_theme" => "",
124 "chk_default_options_db" => ""
125 );
126 update_option( 'jquiw_options', $arr );
127 }
128 }
129
130 // ------------------------------------------------
131 // -- ADD INITIALIZATION SCRIPTS TO THE HEADER --
132 // ------------------------------------------------
133
134 function jquiw_initialize_scripts() {
135
136 $options = get_option( 'jquiw_options' );
137
138 /* If jQuery code text box not empty then add to header. */
139 if ( ! empty( $options['txtar_jquery_code'] ) ) {
140 echo "<script type=\"text/javascript\">\r\n";
141 echo $options['txtar_jquery_code'] . "\r\n";
142 echo "</script>\r\n";
143 }
144
145 /* If custom CSS text box not empty then add to header. */
146 if ( ! empty( $options['txtar_override_css'] ) ) {
147 echo "<style type=\"text/css\">\r\n";
148 echo $options['txtar_override_css'];
149 echo "\r\n</style>\r\n";
150 }
151 }
152
153 // ---------------------------------------------------------
154 // -- REGISTER THE BLOG SCRIPTS AND PLUGIN SETTINGS API --
155 // ---------------------------------------------------------
156
157 function jquiw_init() {
158
159 /* Make sure we always have a theme selected. */
160 $tmp = get_option( 'jquiw_options' );
161 if ( ! isset( $tmp['drp_jquery_theme'] ) ) {
162 $tmp["drp_jquery_theme"] = 'smoothness';
163 update_option( 'jquiw_options', $tmp );
164 }
165 register_setting( 'jquiw_plugin_options', 'jquiw_options' );
166 }
167
168 // --------------------------------------------------
169 // -- ENQUEUE SCRIPTS ON FRONT FACING PAGES ONLY --
170 // --------------------------------------------------
171
172 function jquiw_enqueue_scripts() {
173
174 $options = get_option( 'jquiw_options' );
175 $jquery_theme = empty( $options['drp_jquery_theme'] ) ? 'smoothness' : $options['drp_jquery_theme'];
176 $jquery_css_base = '//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/' . $jquery_theme . '/jquery-ui.css';
177
178 /* Register jQuery scripts if selected in Plugin options. */
179 if ( isset( $options['chk_inc_accordion'] ) && $options['chk_inc_accordion'] ) {
180 wp_enqueue_script( 'jquery-ui-accordion' );
181 }
182 if ( isset( $options['chk_inc_autocomplete'] ) && $options['chk_inc_autocomplete'] ) {
183 wp_enqueue_script( 'jquery-ui-autocomplete' );
184 }
185 if ( isset( $options['chk_inc_button'] ) && $options['chk_inc_button'] ) {
186 wp_enqueue_script( 'jquery-ui-button' );
187 }
188 if ( isset( $options['chk_inc_uicore'] ) && $options['chk_inc_uicore'] ) {
189 wp_enqueue_script( 'jquery-ui-core' );
190 }
191 if ( isset( $options['chk_inc_datepicker'] ) && $options['chk_inc_datepicker'] ) {
192 wp_enqueue_script( 'jquery-ui-datepicker' );
193 }
194 if ( isset( $options['chk_inc_dialog'] ) && $options['chk_inc_dialog'] ) {
195 wp_enqueue_script( 'jquery-ui-dialog' );
196 }
197 if ( isset( $options['chk_inc_draggable'] ) && $options['chk_inc_draggable'] ) {
198 wp_enqueue_script( 'jquery-ui-draggable' );
199 }
200 if ( isset( $options['chk_inc_droppable'] ) && $options['chk_inc_droppable'] ) {
201 wp_enqueue_script( 'jquery-ui-droppable' );
202 }
203 if ( isset( $options['chk_inc_menu'] ) && $options['chk_inc_menu'] ) {
204 wp_enqueue_script( 'jquery-ui-menu' );
205 }
206 if ( isset( $options['chk_inc_mouse'] ) && $options['chk_inc_mouse'] ) {
207 wp_enqueue_script( 'jquery-ui-mouse' );
208 }
209 if ( isset( $options['chk_inc_position'] ) && $options['chk_inc_position'] ) {
210 wp_enqueue_script( 'jquery-ui-position' );
211 }
212 if ( isset( $options['chk_inc_progressbar'] ) && $options['chk_inc_progressbar'] ) {
213 wp_enqueue_script( 'jquery-ui-progressbar' );
214 }
215 if ( isset( $options['chk_inc_resizable'] ) && $options['chk_inc_resizable'] ) {
216 wp_enqueue_script( 'jquery-ui-resizable' );
217 }
218 if ( isset( $options['chk_inc_selectable'] ) && $options['chk_inc_selectable'] ) {
219 wp_enqueue_script( 'jquery-ui-selectable' );
220 }
221 if ( isset( $options['chk_inc_slider'] ) && $options['chk_inc_slider'] ) {
222 wp_enqueue_script( 'jquery-ui-slider' );
223 }
224 if ( isset( $options['chk_inc_spinner'] ) && $options['chk_inc_spinner'] ) {
225 wp_enqueue_script( 'jquery-ui-spinner' );
226 }
227 if ( isset( $options['chk_inc_sortable'] ) && $options['chk_inc_sortable'] ) {
228 wp_enqueue_script( 'jquery-ui-sortable' );
229 }
230 if ( isset( $options['chk_inc_tabs'] ) && $options['chk_inc_tabs'] ) {
231 wp_enqueue_script( 'jquery-ui-tabs' );
232 }
233 if ( isset( $options['chk_inc_tooltip'] ) && $options['chk_inc_tooltip'] ) {
234 wp_enqueue_script( 'jquery-ui-tooltip' );
235 }
236 if ( isset( $options['chk_inc_widget'] ) && $options['chk_inc_widget'] ) {
237 wp_enqueue_script( 'jquery-ui-widget' );
238 }
239 if ( isset( $options['chk_inc_blind'] ) && $options['chk_inc_blind'] ) {
240 wp_enqueue_script( 'jquery-effects-blind' );
241 }
242 if ( isset( $options['chk_inc_bounce'] ) && $options['chk_inc_bounce'] ) {
243 wp_enqueue_script( 'jquery-effects-bounce' );
244 }
245 if ( isset( $options['chk_inc_clip'] ) && $options['chk_inc_clip'] ) {
246 wp_enqueue_script( 'jquery-effects-clip' );
247 }
248 if ( isset( $options['chk_inc_coreeffects'] ) && $options['chk_inc_coreeffects'] ) {
249 wp_enqueue_script( 'jquery-effects-core' );
250 }
251 if ( isset( $options['chk_inc_drop'] ) && $options['chk_inc_drop'] ) {
252 wp_enqueue_script( 'jquery-effects-drop' );
253 }
254 if ( isset( $options['chk_inc_explode'] ) && $options['chk_inc_explode'] ) {
255 wp_enqueue_script( 'jquery-effects-explode' );
256 }
257 if ( isset( $options['chk_inc_fade'] ) && $options['chk_inc_fade'] ) {
258 wp_enqueue_script( 'jquery-effects-fade' );
259 }
260 if ( isset( $options['chk_inc_fold'] ) && $options['chk_inc_fold'] ) {
261 wp_enqueue_script( 'jquery-effects-fold' );
262 }
263 if ( isset( $options['chk_inc_highlight'] ) && $options['chk_inc_highlight'] ) {
264 wp_enqueue_script( 'jquery-effects-highlight' );
265 }
266 if ( isset( $options['chk_inc_pulsate'] ) && $options['chk_inc_pulsate'] ) {
267 wp_enqueue_script( 'jquery-effects-pulsate' );
268 }
269 if ( isset( $options['chk_inc_scale'] ) && $options['chk_inc_scale'] ) {
270 wp_enqueue_script( 'jquery-effects-scale' );
271 }
272 if ( isset( $options['chk_inc_shake'] ) && $options['chk_inc_shake'] ) {
273 wp_enqueue_script( 'jquery-effects-shake' );
274 }
275 if ( isset( $options['chk_inc_slide'] ) && $options['chk_inc_slide'] ) {
276 wp_enqueue_script( 'jquery-effects-slide' );
277 }
278 if ( isset( $options['chk_inc_transfer'] ) && $options['chk_inc_transfer'] ) {
279 wp_enqueue_script( 'jquery-effects-transfer' );
280 }
281
282 /* Register style sheet. */
283 if ( empty( $options['txt_custom_theme'] ) ) {
284 wp_enqueue_style( 'jquery-ui-standard-css', $jquery_css_base );
285 } else {
286 /* Enqueue custom theme rolled styles. */
287 $upload_dir = wp_upload_dir();
288 $relative_path = trim( $options['txt_custom_theme'], "/" );
289 $full_path_url = trailingslashit( $upload_dir['baseurl'] ) . $relative_path;
290 $full_path_dir = trailingslashit( $upload_dir['basedir'] ) . $relative_path;
291 if ( file_exists( $full_path_dir ) ) {
292 wp_enqueue_style( 'jquery-ui-custom-css', $full_path_url );
293 } else {
294 wp_enqueue_style( 'jquery-ui-standard-css', $jquery_css_base );
295 }
296 }
297 }
298
299 // ---------------------
300 // -- ADD MENU PAGE --
301 // ---------------------
302
303 function jquiw_add_options_page() {
304
305 global $jquiw_page;
306
307 $jquiw_page = add_options_page( 'jQuery UI Widgets Options Page', 'jQuery UI Widgets', 'manage_options', __FILE__, 'jquiw_render_form' );
308 }
309
310 // -----------------------------------------------------------------------------
311 // -- DELETE OPTIONS TABLE ENTRIES ONLY WHEN PLUGIN DEACTIVATED AND DELETED --
312 // -----------------------------------------------------------------------------
313
314 function jquiw_delete_plugin_options() {
315 delete_option( 'jquiw_options' );
316 }
317
318 // --------------------------------------
319 // -- RENDER THE PLUGIN OPTIONS PAGE --
320 // --------------------------------------
321
322 function jquiw_render_form() {
323 ?>
324 <style>
325 a:focus{ box-shadow: none;}
326 .pcdm.dashicons { width: 32px; height: 32px; font-size: 32px; }
327 .pcdm.dashicons-yes { color: #1cc31c; }
328 .pcdm.dashicons-no { color: red; }
329 </style>
330 <div class="wrap">
331 <h2><?php _e( 'jQuery UI Widgets Options', 'jquery-ui-widgets' ); ?></h2>
332
333 <div class="notice" style="border: 2px #32cd32 solid;margin: 20px 0;">
334 <p><a style="color:#32cd32;" href="https://wpgoplugins.com/plugins/jquery-ui-widgets-pro/" target="_blank"><strong>jQuery UI Widgets PRO</strong></a> is now available! Access great new features. <b>Try risk free today with our 100% money back guarantee!</b></p>
335 </div>
336
337 <form method="post" action="options.php">
338 <?php settings_fields( 'jquiw_plugin_options' ); ?>
339 <?php $options = get_option( 'jquiw_options' ); ?>
340 <style type="text/css">
341 .info_image {
342 position: relative;
343 top: 3px;
344 left: 2px;
345 width: 14px;
346 height: 14px;
347 }
348 </style>
349 <table class="form-table">
350 <tr valign="top">
351 <th scope="row"><?php _e( 'Custom jQuery Code', 'jquery-ui-widgets' ); ?></th>
352 <td colspan="3">
353 <?php $res_jquery = jquiw_get_textarea_rows( $options['txtar_jquery_code'], $min = 5, $max = 30 ); ?>
354 <textarea placeholder="e.g. jQuery(document).ready(function($) { // Add jQuery code here... });" class="widefat" style="font-family: Lucida Console;" name="jquiw_options[txtar_jquery_code]" rows="<?php echo $res_jquery['rows']; ?>" type='textarea'><?php if ( isset( $options['txtar_jquery_code'] ) ) {
355 echo $options['txtar_jquery_code'];
356 } ?></textarea><br>
357
358 <p style="margin:5px 0 0 0;">
359 <?php
360 printf( __('Add custom jQuery code above, e.g. %1$s and it will be added automatically to your site. %2$sDon\'t forget to add your jQuery inside the proper wrapper.%3$s', 'jquery-ui-widgets'),
361 '<code>$( "#accordion" ).accordion();</code>',
362 '<b>',
363 '</b>'
364 );
365 ?>
366 </p>
367 </td>
368 </tr>
369 <tr valign="top">
370 <th scope="row"><?php _e( 'Use These jQuery UI Scripts', 'jquery-ui-widgets' ); ?></th>
371 <td width="200">
372 <label><input name="jquiw_options[chk_inc_accordion]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_accordion'] ) ) {
373 checked( '1', $options['chk_inc_accordion'] );
374 } ?>> <?php _e( 'Accordion', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/accordion/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
375 <label><input name="jquiw_options[chk_inc_autocomplete]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_autocomplete'] ) ) {
376 checked( '1', $options['chk_inc_autocomplete'] );
377 } ?>> <?php _e( 'Autocomplete', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/autocomplete/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
378 <label><input name="jquiw_options[chk_inc_button]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_button'] ) ) {
379 checked( '1', $options['chk_inc_button'] );
380 } ?>> <?php _e( 'Button', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/button/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
381 <label><input name="jquiw_options[chk_inc_uicore]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_uicore'] ) ) {
382 checked( '1', $options['chk_inc_uicore'] );
383 } ?>> <?php _e( 'UI Core', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/category/ui-core/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
384 <label><input name="jquiw_options[chk_inc_datepicker]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_datepicker'] ) ) {
385 checked( '1', $options['chk_inc_datepicker'] );
386 } ?>> <?php _e( 'Datepicker', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/datepicker/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
387 <label><input name="jquiw_options[chk_inc_dialog]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_dialog'] ) ) {
388 checked( '1', $options['chk_inc_dialog'] );
389 } ?>> <?php _e( 'Dialog', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/dialog/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
390 <label><input name="jquiw_options[chk_inc_draggable]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_draggable'] ) ) {
391 checked( '1', $options['chk_inc_draggable'] );
392 } ?>> <?php _e( 'Draggable', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/draggable/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
393 </td>
394 <td width="200">
395 <label><input name="jquiw_options[chk_inc_droppable]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_droppable'] ) ) {
396 checked( '1', $options['chk_inc_droppable'] );
397 } ?>> <?php _e( 'Droppable', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/droppable/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
398 <label><input name="jquiw_options[chk_inc_menu]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_menu'] ) ) {
399 checked( '1', $options['chk_inc_menu'] );
400 } ?>> <?php _e( 'Menu', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/menu/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
401 <label><input name="jquiw_options[chk_inc_mouse]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_mouse'] ) ) {
402 checked( '1', $options['chk_inc_mouse'] );
403 } ?>> <?php _e( 'Mouse', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/mouse/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
404 <label><input name="jquiw_options[chk_inc_position]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_position'] ) ) {
405 checked( '1', $options['chk_inc_position'] );
406 } ?>> <?php _e( 'Position', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/position/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
407 <label><input name="jquiw_options[chk_inc_progressbar]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_progressbar'] ) ) {
408 checked( '1', $options['chk_inc_progressbar'] );
409 } ?>> <?php _e( 'Progress Bar', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/progressbar/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
410 <label><input name="jquiw_options[chk_inc_resizable]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_resizable'] ) ) {
411 checked( '1', $options['chk_inc_resizable'] );
412 } ?>> <?php _e( 'Resizable', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/resizable/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
413 <label><input name="jquiw_options[chk_inc_selectable]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_selectable'] ) ) {
414 checked( '1', $options['chk_inc_selectable'] );
415 } ?>> <?php _e( 'Selectable', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/selectable/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
416 </td>
417 <td>
418 <label><input name="jquiw_options[chk_inc_slider]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_slider'] ) ) {
419 checked( '1', $options['chk_inc_slider'] );
420 } ?>> <?php _e( 'Slider', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/slider/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
421 <label><input name="jquiw_options[chk_inc_spinner]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_spinner'] ) ) {
422 checked( '1', $options['chk_inc_spinner'] );
423 } ?>> <?php _e( 'Spinner', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/spinner/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
424 <label><input name="jquiw_options[chk_inc_sortable]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_sortable'] ) ) {
425 checked( '1', $options['chk_inc_sortable'] );
426 } ?>> <?php _e( 'Sortable', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/sortable/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
427 <label><input name="jquiw_options[chk_inc_tabs]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_tabs'] ) ) {
428 checked( '1', $options['chk_inc_tabs'] );
429 } ?>> <?php _e( 'Tabs', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/tabs/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
430 <label><input name="jquiw_options[chk_inc_tooltip]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_tooltip'] ) ) {
431 checked( '1', $options['chk_inc_tooltip'] );
432 } ?>> <?php _e( 'Tooltip', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/tooltip/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
433 <label><input name="jquiw_options[chk_inc_widget]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_widget'] ) ) {
434 checked( '1', $options['chk_inc_widget'] );
435 } ?>> <?php _e( 'Widget Factory', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/jQuery.widget/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
436 </td>
437 </tr>
438 <tr valign="top">
439 <th scope="row">&nbsp;</th>
440 <td colspan="3"><?php _e( 'Note: Scripts such as UI Core, Mouse, Position etc. are included by default with other widget scripts.', 'jquery-ui-widgets' ); ?></td>
441 </tr>
442 <tr valign="top">
443 <th scope="row"><?php _e( 'Use These jQuery Effect Scripts', 'jquery-ui-widgets' ); ?></th>
444 <td width="200">
445 <label><input name="jquiw_options[chk_inc_blind]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_blind'] ) ) {
446 checked( '1', $options['chk_inc_blind'] );
447 } ?>> <?php _e( 'Blind', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/blind-effect/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
448 <label><input name="jquiw_options[chk_inc_bounce]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_bounce'] ) ) {
449 checked( '1', $options['chk_inc_bounce'] );
450 } ?>> <?php _e( 'Bounce', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/bounce-effect/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
451 <label><input name="jquiw_options[chk_inc_clip]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_clip'] ) ) {
452 checked( '1', $options['chk_inc_clip'] );
453 } ?>> <?php _e( 'Clip', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/clip-effect/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
454 <label><input name="jquiw_options[chk_inc_coreeffects]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_coreeffects'] ) ) {
455 checked( '1', $options['chk_inc_coreeffects'] );
456 } ?>> <?php _e( 'Core Effects', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/category/effects-core/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
457 <label><input name="jquiw_options[chk_inc_drop]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_drop'] ) ) {
458 checked( '1', $options['chk_inc_drop'] );
459 } ?>> <?php _e( 'Drop', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/drop-effect/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
460 </td>
461 <td width="200">
462 <label><input name="jquiw_options[chk_inc_explode]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_explode'] ) ) {
463 checked( '1', $options['chk_inc_explode'] );
464 } ?>> <?php _e( 'Explode', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/explode-effect/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
465 <label><input name="jquiw_options[chk_inc_fade]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_fade'] ) ) {
466 checked( '1', $options['chk_inc_fade'] );
467 } ?>> <?php _e( 'Fade', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/fade-effect/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
468 <label><input name="jquiw_options[chk_inc_fold]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_fold'] ) ) {
469 checked( '1', $options['chk_inc_fold'] );
470 } ?>> <?php _e( 'Fold', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/fold-effect/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
471 <label><input name="jquiw_options[chk_inc_highlight]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_highlight'] ) ) {
472 checked( '1', $options['chk_inc_highlight'] );
473 } ?>> <?php _e( 'Highlight', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/highlight-effect/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
474 <label><input name="jquiw_options[chk_inc_pulsate]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_pulsate'] ) ) {
475 checked( '1', $options['chk_inc_pulsate'] );
476 } ?>> <?php _e( 'Pulsate', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/pulsate-effect/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
477 </td>
478 <td>
479 <label><input name="jquiw_options[chk_inc_scale]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_scale'] ) ) {
480 checked( '1', $options['chk_inc_scale'] );
481 } ?>> <?php _e( 'Scale', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/scale-effect/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
482 <label><input name="jquiw_options[chk_inc_shake]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_shake'] ) ) {
483 checked( '1', $options['chk_inc_shake'] );
484 } ?>> <?php _e( 'Shake', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/shake-effect/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
485 <label><input name="jquiw_options[chk_inc_slide]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_slide'] ) ) {
486 checked( '1', $options['chk_inc_slide'] );
487 } ?>> <?php _e( 'Slide', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/slide-effect/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
488 <label><input name="jquiw_options[chk_inc_transfer]" type="checkbox" value="1" <?php if ( isset( $options['chk_inc_transfer'] ) ) {
489 checked( '1', $options['chk_inc_transfer'] );
490 } ?>> <?php _e( 'Transfer', 'jquery-ui-widgets' ); ?></label><a href="http://api.jqueryui.com/transfer-effect/" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/info.png" class="info_image"></a><br>
491 </td>
492 </tr>
493 <tr valign="top">
494 <th scope="row">&nbsp;</th>
495 <td colspan="3"><?php _e( 'Note: The Core Effects script is included by default with other effect scripts.', 'jquery-ui-widgets' ); ?></td>
496 </tr>
497 <tr valign="top">
498 <th scope="row"><?php _e( 'Select jQuery UI Theme', 'jquery-ui-widgets' ); ?></th>
499 <td colspan="3">
500 <select name='jquiw_options[drp_jquery_theme]'>
501 <option value='black-tie' <?php selected( 'black-tie', $options['drp_jquery_theme'] ); ?>><?php _e( 'Black Tie', 'jquery-ui-widgets' ); ?></option>
502 <option value='blitzer' <?php selected( 'blitzer', $options['drp_jquery_theme'] ); ?>><?php _e( 'Blitzer', 'jquery-ui-widgets' ); ?></option>
503 <option value='cupertino' <?php selected( 'cupertino', $options['drp_jquery_theme'] ); ?>><?php _e( 'Cupertino', 'jquery-ui-widgets' ); ?></option>
504 <option value='dark-hive' <?php selected( 'dark-hive', $options['drp_jquery_theme'] ); ?>><?php _e( 'Dark Hive', 'jquery-ui-widgets' ); ?></option>
505 <option value='dot-luv' <?php selected( 'dot-luv', $options['drp_jquery_theme'] ); ?>><?php _e( 'Dot Luv', 'jquery-ui-widgets' ); ?></option>
506 <option value='eggplant' <?php selected( 'eggplant', $options['drp_jquery_theme'] ); ?>><?php _e( 'Eggplant', 'jquery-ui-widgets' ); ?></option>
507 <option value='excite-bike' <?php selected( 'excite-bike', $options['drp_jquery_theme'] ); ?>><?php _e( 'Excite Bike', 'jquery-ui-widgets' ); ?></option>
508 <option value='flick' <?php selected( 'flick', $options['drp_jquery_theme'] ); ?>><?php _e( 'Flick', 'jquery-ui-widgets' ); ?></option>
509 <option value='hot-sneaks' <?php selected( 'hot-sneaks', $options['drp_jquery_theme'] ); ?>><?php _e( 'Hot Sneaks', 'jquery-ui-widgets' ); ?></option>
510 <option value='humanity' <?php selected( 'humanity', $options['drp_jquery_theme'] ); ?>><?php _e( 'Humanity', 'jquery-ui-widgets' ); ?></option>
511 <option value='le-frog' <?php selected( 'le-frog', $options['drp_jquery_theme'] ); ?>><?php _e( 'Le Frog', 'jquery-ui-widgets' ); ?></option>
512 <option value='mint-choc' <?php selected( 'mint-choc', $options['drp_jquery_theme'] ); ?>><?php _e( 'Mint Choc', 'jquery-ui-widgets' ); ?></option>
513 <option value='overcast' <?php selected( 'overcast', $options['drp_jquery_theme'] ); ?>><?php _e( 'Overcast', 'jquery-ui-widgets' ); ?></option>
514 <option value='pepper-grinder' <?php selected( 'pepper-grinder', $options['drp_jquery_theme'] ); ?>><?php _e( 'Pepper Grinder', 'jquery-ui-widgets' ); ?></option>
515 <option value='redmond' <?php selected( 'redmond', $options['drp_jquery_theme'] ); ?>><?php _e( 'Redmond', 'jquery-ui-widgets' ); ?></option>
516 <option value='smoothness' <?php selected( 'smoothness', $options['drp_jquery_theme'] ); ?>><?php _e( 'Smoothness', 'jquery-ui-widgets' ); ?></option>
517 <option value='south-street' <?php selected( 'south-street', $options['drp_jquery_theme'] ); ?>><?php _e( 'South Street', 'jquery-ui-widgets' ); ?></option>
518 <option value='start' <?php selected( 'start', $options['drp_jquery_theme'] ); ?>><?php _e( 'Start', 'jquery-ui-widgets' ); ?></option>
519 <option value='sunny' <?php selected( 'sunny', $options['drp_jquery_theme'] ); ?>><?php _e( 'Sunny', 'jquery-ui-widgets' ); ?></option>
520 <option value='swanky-purse' <?php selected( 'swanky-purse', $options['drp_jquery_theme'] ); ?>><?php _e( 'Swanky Purse', 'jquery-ui-widgets' ); ?></option>
521 <option value='trontastic' <?php selected( 'trontastic', $options['drp_jquery_theme'] ); ?>><?php _e( 'Trontastic', 'jquery-ui-widgets' ); ?></option>
522 <option value='ui-darkness' <?php selected( 'ui-darkness', $options['drp_jquery_theme'] ); ?>><?php _e( 'UI Darkness', 'jquery-ui-widgets' ); ?></option>
523 <option value='ui-lightness' <?php selected( 'ui-lightness', $options['drp_jquery_theme'] ); ?>><?php _e( 'UI Lightness', 'jquery-ui-widgets' ); ?></option>
524 <option value='vader' <?php selected( 'vader', $options['drp_jquery_theme'] ); ?>><?php _e( 'Vader', 'jquery-ui-widgets' ); ?></option>
525 </select><br>
526 <?php _e( 'Choose a standard jQuery UI theme to render widgets. Preview these themes on the jQuery UI', 'jquery-ui-widgets' ); ?>
527 <a href="http://jqueryui.com/themeroller/#themeGallery" target="_blank"><?php _e( 'ThemeRoller page', 'jquery-ui-widgets' ); ?></a>.<br><br>
528 <input class="widefat" type="text" size="57" name="jquiw_options[txt_custom_theme]" value="<?php echo $options['txt_custom_theme']; ?>"><br>
529 <?php $upload_dir = wp_upload_dir(); ?>
530
531 <?php
532 printf( __('Create a %1$scustom theme%2$s to override the standard theme. Upload to %3$s%4$s%5$s and enter the path/name of the custom stylesheet above, relative to this folder. See the Plugin %6$sFAQ%7$s for detailed instructions on using custom themes.', 'jquery-ui-widgets'),
533 '<a href="http://jqueryui.com/themeroller/" target="_blank">',
534 '</a>',
535 '<code style="font-style:normal;">',
536 $upload_dir['baseurl'].'/',
537 '</code>',
538 '<a href="http://wordpress.org/extend/plugins/jquery-ui-widgets/faq/" target="_blank">',
539 '</a>'
540 );
541 ?>
542 <br>
543 <?php
544 /* Enqueue custom theme rolled styles. */
545 $upload_dir = wp_upload_dir();
546 $relative_path = trim( $options['txt_custom_theme'], "/" );
547 $full_path_url = trailingslashit( $upload_dir['baseurl'] ) . $relative_path;
548 $full_path_dir = trailingslashit( $upload_dir['basedir'] ) . $relative_path;
549 if ( ! file_exists( $full_path_dir ) ) {
550 printf( __('%1$Cannot find the file: %2$%3$%4$. Reverting to the standard theme. Please enter a valid custom stylesheet path.%5$', 'jquery-ui-widgets'),
551 '<div class="error inline">',
552 '<code style="background-color: #ffebe8;">',
553 $full_path_url,
554 '</code>',
555 '</div>'
556 );
557 }
558 ?>
559 </td>
560 </tr>
561 <tr valign="top">
562 <th scope="row"><?php _e( 'Override jQuery UI Theme Styles', 'jquery-ui-widgets' ); ?></th>
563 <td colspan="3">
564 <?php $res_css = jquiw_get_textarea_rows( $options['txtar_override_css'], $min = 5, $max = 20 ); ?>
565 <textarea class="widefat" style="font-family: Lucida Console;" name="jquiw_options[txtar_override_css]" rows="<?php echo $res_css['rows']; ?>" type='textarea'><?php echo $options['txtar_override_css']; ?></textarea><br><?php _e( 'Edit the custom CSS rules above to override the current jQuery UI theme (whether a standard or custom theme). This is a great place to tweak the theme styles.', 'jquery-ui-widgets' ); ?>
566 </td>
567 </tr>
568 <tr>
569 <td colspan="3">
570 <div style="margin-top:0;"></div>
571 </td>
572 </tr>
573 <tr valign="top" style="border-top:#dddddd 1px solid;">
574 <th scope="row"><?php _e( 'Database Options', 'jquery-ui-widgets' ); ?></th>
575 <td colspan="3">
576 <label><input name="jquiw_options[chk_default_options_db]" type="checkbox" value="1" <?php if ( isset( $options['chk_default_options_db'] ) ) {
577 checked( '1', $options['chk_default_options_db'] );
578 } ?>> <?php _e( 'Restore defaults upon Plugin deactivation/reactivation', 'jquery-ui-widgets' ); ?></label>
579 <br><span class="description"><?php _e( 'Only check this if you want to reset Plugin settings upon reactivation.', 'jquery-ui-widgets' ); ?></span>
580 </td>
581 </tr>
582 </table>
583 <p class="submit">
584 <input type="submit" class="button-primary" value="<?php _e( 'Save Changes', 'jquery-ui-widgets' ) ?>">
585 </p>
586 </form>
587
588 <div style="margin-top:15px;">
589 <p style="margin-bottom:10px;">If you use this FREE Plugin on your website <b><em>please</em></b> consider making a <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FHPU3ZABJAX5U" target="_blank">donation</a> to support continued development. Thank you.<span style="margin-left:5px;" class="dashicons dashicons-smiley"></span></p>
590 </div>
591
592 <div style="clear:both;">
593 <span><a href="http://www.twitter.com/dgwyer" title="Follow us on Twitter" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/twitter.png" /></a></span>
594 <span><a href="https://www.facebook.com/wpgoplugins/" title="Our Facebook page" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/facebook.png" /></a></span>
595 <span><a href="https://www.youtube.com/channel/UCWzjTLWoyMgtIfpDgJavrTg" title="View our YouTube channel" target="_blank"><img src="<?php echo plugins_url(); ?>/jquery-ui-widgets/images/yt.png" /></a></span>
596 <span><a style="text-decoration:none;" title="Need help with ANY aspect of WordPress? We're here to help!" href="https://wpgoplugins.com/need-help-with-wordpress/" target="_blank"><span style="margin-left:-2px;color:#d41515;font-size:39px;line-height:32px;width:39px;height:39px;" class="dashicons dashicons-sos"></span></a></span>
597 <span style="margin-left:20px;"><input class="button" style="vertical-align:12px;" type="button" value="Visit Our Site" onClick="window.open('http://www.wpgoplugins.com')"></span>
598 <span style="margin-left:3px;"><input class="button" style="vertical-align:12px;" type="button" value="Subscribe (free)" title="Signup today for all the latest plugin news and updates!" onClick="window.open('http://eepurl.com/bXZmmD')"></span>
599 </div>
600
601 </div>
602 <?php
603 }
604
605 // --------------------------------------------------------
606 // -- DISPLAY A SETTINGS LINK ON THE MAIN PLUGINS PAGE --
607 // --------------------------------------------------------
608
609 function jquiw_plugin_action_links( $links, $file ) {
610
611 //if ( $file == plugin_basename( __FILE__ ) ) {
612 // add a link to pro plugin
613 //$links[] = '<a style="color:limegreen;" href="https://wpgoplugins.com/plugins/jquery-ui-widgets-pro/" target="_blank" title="Try out the Pro version today. Risk FREE - 100% money back guarantee!"><span class="dashicons dashicons-awards"></span></a>';
614 //}
615
616 return $links;
617 }
618
619 function jquiw_plugin_settings_link( $links, $file ) {
620
621 if ( $file == plugin_basename( __FILE__ ) ) {
622 $posk_links = '<a style="color:limegreen;" href="https://wpgoplugins.com/plugins/jquery-ui-widgets-pro/" target="_blank" title="Upgrade to Pro - 100% money back guarantee"><span class="dashicons dashicons-awards"></span></a> | ';
623 $posk_links .= '<a href="' . get_admin_url() . 'options-general.php?page=jquery-ui-widgets/jquery-ui-widgets.php">' . __( 'Settings' ) . '</a>';
624 /* Make the 'Settings' link appear first. */
625 array_unshift( $links, $posk_links );
626 }
627
628 return $links;
629 }
630
631 // ------------------------------------------------------------------------------------
632 // -- CALCULATE NUMBER OF TEXTAREA ROWS, AND CLASS FOR WIDTH, DEPENDING ON CONTENT --
633 // ------------------------------------------------------------------------------------
634
635 function jquiw_get_textarea_rows( $content = null, $min = 3, $max = 25, $default_class = 'gray', $extra_class = 'gray-medium-textarea' ) {
636
637 $res = array(); // Initialize array
638 if ( empty( $content ) ) {
639 $res['rows'] = $min;
640 $res['class'] = $default_class;
641 } else {
642 $arr = explode( "\n", $content );
643 $rows = ( count( $arr ) < ( $min + 1 ) ) ? $min : count( $arr ); // Min of 3 lines.
644 $rows = ( count( $arr ) > $max ) ? $max : $rows; // Max of 25 lines.
645 $res['rows'] = $rows;
646 $res['class'] = $extra_class;
647 }
648
649 return $res;
650 }
651
652 /**
653 * Add Plugin localization support.
654 */
655 function jquiw_localize_plugin() {
656
657 load_plugin_textdomain( 'jquery-ui-widgets', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
658 }