Plugin Directory

Changeset 1367210


Ignore:
Timestamp:
03/09/2016 03:32:04 AM (10 years ago)
Author:
muki
Message:

bug fixed

Location:
muki-tag-cloud/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • muki-tag-cloud/trunk/muki-tag-cloud.php

    r1366444 r1367210  
    66Author: Muki
    77Author URI: http://muki.tw
    8 Version: 2.1
     8Version: 2.1.1
    99*/
    1010
  • muki-tag-cloud/trunk/readme.txt

    r1366444 r1367210  
    55Requires at least: 3.5
    66Tested up to: 4.4.2
    7 Stable tag: 2.1
     7Stable tag: 2.1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3333
    3434== Changelog ==
     35
     36= 2.1.1 =
     37* bug fixed
     38* Released 2016.03.09
    3539
    3640= 2.1 =
  • muki-tag-cloud/trunk/widget.php

    r1366444 r1367210  
    237237    if(is_array($word_list) && count($word_list) )
    238238    {
    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         }
     239echo '<script type="text/javascript">'."\n";
     240if(muki_tag_cloud_get_option('usejq') =='wp')
     241{
     242echo 'jQuery(function($){'."\n";
     243}else{
     244echo '$(function(){'."\n";
     245}
    248246echo 'var word_list = '.json_encode($word_list).';'."\n";
    249247foreach( $word_list as $id => $data)
     
    251249    echo "\t".'$(\'#muki_tag_cloud_'.$id.'\').empty().jQCloud(word_list["'.$id.'"]);' ."\n";
    252250}
    253         if(muki_tag_cloud_get_option('usejq') =='wp')
    254         {
    255             echo '}'."\n";
    256         }else{
    257             echo '})'."\n";
    258         }
     251echo '})'."\n";
    259252echo '</script>';
    260253    }
     
    282275/* head script prefix add*/
    283276function muki_tag_cloud_script_prefix_add() {
    284     wp_enqueue_script( 'jquery' );
    285277    $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') );
    287279    /* Enqueue Styles */
    288280    wp_register_style( 'muki-jqcloud-stylesheet', plugins_url(MUKI_TG_NAME.'/jqcloud.css') );
Note: See TracChangeset for help on using the changeset viewer.