Changeset 174406
- Timestamp:
- 11/17/2009 01:09:59 AM (16 years ago)
- File:
-
- 1 edited
-
wp-licenses/tags/0.0.4/wp-licenses.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-licenses/tags/0.0.4/wp-licenses.php
r173518 r174406 330 330 331 331 function ScriptsAction() { 332 global $post ;332 global $post, $wp_plugin_url; 333 333 $direitos = stripslashes(get_post_meta($post->ID, "direitos", true)); 334 if ($direitos != "") { 335 global $wp_plugin_url; 336 if (get_option('license-tooltip') == 1) { 337 wp_enqueue_script('jquery'); 338 wp_enqueue_script('tooltipScript', $wp_plugin_url.'/js/jquery.tooltip.js', array('jquery'),'1.1'); 339 } 340 if (is_admin()){ 341 wp_enqueue_script('wpLicenseScript', $wp_plugin_url.'/js/wp-licenses.js', array('jquery'),'1.0'); 342 } 343 } 334 if (($direitos != "") && (get_option('license-tooltip') == 1)) { 335 wp_enqueue_script('jquery'); 336 wp_enqueue_script('tooltipScript', $wp_plugin_url.'/js/jquery.tooltip.js', array('jquery'),'1.1'); 337 } 338 if (is_admin()){ 339 wp_enqueue_script('wpLicenseScript', $wp_plugin_url.'/js/wp-licenses.js', array('jquery'),'1.0'); 340 } 341 344 342 } 345 343 /* ------------------------------------------------------ */
Note: See TracChangeset
for help on using the changeset viewer.