Changeset 489407
- Timestamp:
- 01/13/2012 02:55:53 PM (14 years ago)
- Location:
- kcite/trunk
- Files:
-
- 2 edited
-
kcite.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kcite/trunk/kcite.php
r475475 r489407 4 4 Plugin URI: http://knowledgeblog.org/kcite-plugin 5 5 Description: Add references and bibliography to blogposts 6 Version: 1.4. 16 Version: 1.4.2 7 7 Author: Simon Cockell, Phillip Lord 8 8 Author URI: http://knowledgeblog.org … … 111 111 echo "-->\n"; 112 112 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 } 130 132 } 131 133 -
kcite/trunk/readme.txt
r475475 r489407 45 45 == Changelog == 46 46 47 = 1.4.2 = 48 49 1. Javascript was being added when citeproc option was turned off. 50 47 51 = 1.4.1 = 48 52
Note: See TracChangeset
for help on using the changeset viewer.