Plugin Directory

Changeset 489407


Ignore:
Timestamp:
01/13/2012 02:55:53 PM (14 years ago)
Author:
knowledgeblog
Message:

1.4.2 Release

Location:
kcite/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kcite/trunk/kcite.php

    r475475 r489407  
    44   Plugin URI: http://knowledgeblog.org/kcite-plugin
    55   Description: Add references and bibliography to blogposts
    6    Version: 1.4.1
     6   Version: 1.4.2
    77   Author: Simon Cockell, Phillip Lord
    88   Author URI: http://knowledgeblog.org
     
    111111      echo "-->\n";
    112112     
    113 
    114       // load enqueue the scripts
    115       wp_enqueue_script( "xmle4x", plugins_url( "kcite-citeproc/xmle4x.js", __FILE__ ), false, null, true );
    116       wp_enqueue_script( "xmldom", plugins_url( "kcite-citeproc/xmldom.js",__FILE__  ), false, null, true );
    117       wp_enqueue_script( "citeproc", plugins_url( "kcite-citeproc/citeproc.js",__FILE__  ), false, null, true );
    118       wp_enqueue_script( "jquery" );
    119       wp_enqueue_script( "kcite_locale_style",
    120                          plugins_url( "kcite-citeproc/kcite_locale_style.js", __FILE__  ), false, null, true );
    121       wp_enqueue_script( "kcite", plugins_url( "kcite-citeproc/kcite.js",__FILE__  ), false, null, true );
    122    
    123       // and print them or they won't be printed because the footers already done
    124       wp_print_scripts( "xmle4x" );
    125       wp_print_scripts( "xmldom" );
    126       wp_print_scripts( "citeproc" );
    127       wp_print_scripts( "jquery" );
    128       wp_print_scripts( "kcite_locale_style" );
    129       wp_print_scripts( "kcite" );
     113      if( get_option( "citeproc" ) ){
     114     
     115          // load enqueue the scripts
     116          wp_enqueue_script( "xmle4x", plugins_url( "kcite-citeproc/xmle4x.js", __FILE__ ), false, null, true );
     117          wp_enqueue_script( "xmldom", plugins_url( "kcite-citeproc/xmldom.js",__FILE__  ), false, null, true );
     118          wp_enqueue_script( "citeproc", plugins_url( "kcite-citeproc/citeproc.js",__FILE__  ), false, null, true );
     119          wp_enqueue_script( "jquery" );
     120          wp_enqueue_script( "kcite_locale_style",
     121                             plugins_url( "kcite-citeproc/kcite_locale_style.js", __FILE__  ), false, null, true );
     122          wp_enqueue_script( "kcite", plugins_url( "kcite-citeproc/kcite.js",__FILE__  ), false, null, true );
     123         
     124          // and print them or they won't be printed because the footers already done
     125          wp_print_scripts( "xmle4x" );
     126          wp_print_scripts( "xmldom" );
     127          wp_print_scripts( "citeproc" );
     128          wp_print_scripts( "jquery" );
     129          wp_print_scripts( "kcite_locale_style" );
     130          wp_print_scripts( "kcite" );
     131      }
    130132  }
    131133
  • kcite/trunk/readme.txt

    r475475 r489407  
    4545== Changelog ==
    4646
     47= 1.4.2 =
     48
     491. Javascript was being added when citeproc option was turned off.
     50
    4751= 1.4.1 =
    4852
Note: See TracChangeset for help on using the changeset viewer.