Plugin Directory

Changeset 174407


Ignore:
Timestamp:
11/17/2009 01:10:41 AM (16 years ago)
Author:
billyblay
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-licenses/branches/licenses/wp-licenses.php

    r173518 r174407  
    330330
    331331function ScriptsAction() { 
    332     global $post;      
     332    global $post, $wp_plugin_url;   
    333333    $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     }
    344 }
     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   
     342}
     343
    345344/* ------------------------------------------------------ */
    346345function StyleAction() { 
Note: See TracChangeset for help on using the changeset viewer.