Changeset 1367210
- Timestamp:
- 03/09/2016 03:32:04 AM (10 years ago)
- Location:
- muki-tag-cloud/trunk
- Files:
-
- 3 edited
-
muki-tag-cloud.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
widget.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
muki-tag-cloud/trunk/muki-tag-cloud.php
r1366444 r1367210 6 6 Author: Muki 7 7 Author URI: http://muki.tw 8 Version: 2.1 8 Version: 2.1.1 9 9 */ 10 10 -
muki-tag-cloud/trunk/readme.txt
r1366444 r1367210 5 5 Requires at least: 3.5 6 6 Tested up to: 4.4.2 7 Stable tag: 2.1 7 Stable tag: 2.1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 33 33 34 34 == Changelog == 35 36 = 2.1.1 = 37 * bug fixed 38 * Released 2016.03.09 35 39 36 40 = 2.1 = -
muki-tag-cloud/trunk/widget.php
r1366444 r1367210 237 237 if(is_array($word_list) && count($word_list) ) 238 238 { 239 if(muki_tag_cloud_get_option('usejq') =='wp') 240 { 241 echo '<script type="text/javascript" defer="defer">'."\n"; 242 echo '(function timerCheckjQuery(){if(typeof jQuery != "undefined"){muki_tag_cloud_run(jQuery);}else{var t=setTimeout(timerCheckjQuery,1000);}})();'."\n"; 243 echo 'var muki_tag_cloud_run = function($){'; 244 }else{ 245 echo '<script type="text/javascript">'."\n"; 246 echo '$(function(){'."\n"; 247 } 239 echo '<script type="text/javascript">'."\n"; 240 if(muki_tag_cloud_get_option('usejq') =='wp') 241 { 242 echo 'jQuery(function($){'."\n"; 243 }else{ 244 echo '$(function(){'."\n"; 245 } 248 246 echo 'var word_list = '.json_encode($word_list).';'."\n"; 249 247 foreach( $word_list as $id => $data) … … 251 249 echo "\t".'$(\'#muki_tag_cloud_'.$id.'\').empty().jQCloud(word_list["'.$id.'"]);' ."\n"; 252 250 } 253 if(muki_tag_cloud_get_option('usejq') =='wp') 254 { 255 echo '}'."\n"; 256 }else{ 257 echo '})'."\n"; 258 } 251 echo '})'."\n"; 259 252 echo '</script>'; 260 253 } … … 282 275 /* head script prefix add*/ 283 276 function muki_tag_cloud_script_prefix_add() { 284 wp_enqueue_script( 'jquery' );285 277 $jqcloud = muki_tag_cloud_get_option('usejq') =='wp' ? 'jqcloud-1.0.4.wp.min.js' : 'jqcloud-1.0.4.min.js'; 286 wp_enqueue_script( 'muki-jqcloud-script', plugins_url(MUKI_TG_NAME.'/' . $jqcloud), array( 'jquery') ,true);278 wp_enqueue_script( 'muki-jqcloud-script', plugins_url(MUKI_TG_NAME.'/' . $jqcloud), array( 'jquery') ); 287 279 /* Enqueue Styles */ 288 280 wp_register_style( 'muki-jqcloud-stylesheet', plugins_url(MUKI_TG_NAME.'/jqcloud.css') );
Note: See TracChangeset
for help on using the changeset viewer.