예제 #1
0
 /**
  * Database access to the scripts and styles.
  *
  * @since		2.1
  * @return		string|void
  */
 public function login_footer_jquery()
 {
     $jquery = CL_Common::get_option('custom_jquery', 'design', '');
     if ('' != $jquery) {
         global $cl_js_atts;
         $cl_js_atts = array('version' => CUSTOM_LOGIN_VERSION, 'trans_key' => CL_Common::get_transient_key('script'));
         $cl_js_atts = wp_parse_args(CL_Common::get_options('design'), $cl_js_atts);
         foreach ($cl_js_atts as $atts => $value) {
             if ('custom_jquery' !== $atts && 'version' !== $atts && 'trans_key' !== $atts) {
                 unset($cl_js_atts[$atts]);
             }
         }
         ob_start();
         echo "<script type=\"text/javascript\">\n";
         CL_Templates::get_template_part('wp-login', 'script');
         echo "\n</script>\n";
         echo ob_get_clean();
     }
 }