Changeset 57

Show
Ignore:
Timestamp:
06/01/07 10:58:12 (2 years ago)
Author:
pdingle
Message:

moved printJqueryLocation function from wp to pwlib and made the link sensitive to http vs. https

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-infocard/pwlib/utils.pwlib.php

    r56 r57  
    1717                { 
    1818                        print PW_SECUREPLUGINURL . "/infocard.css"; 
     19                } 
     20        } // end function printCSSlink 
     21 
     22        function printJqueryLocation() 
     23        { 
     24                if (strpos($_SERVER[SCRIPT_URI], "https")) 
     25                { 
     26                        print PW_PLUGINURL . "/vendor/jquery.js"; 
     27                } 
     28                else 
     29                { 
     30                        print PW_SECUREPLUGINURL . "/vendor/jquery.js"; 
    1931                } 
    2032        } // end function printCSSlink 
  • trunk/wp-infocard/wp/utils.pw.php

    r56 r57  
    209209        } 
    210210 
    211         function printJqueryLocation() 
    212         { 
    213                 echo PW_PLUGINURL . "/vendor/jquery.js";         
    214         } 
    215211} // end class pw_utils 
    216212?>