Ejemplo n.º 1
0
 function header()
 {
     // Scripts
     wp_enqueue_script('jquery');
     wp_enqueue_script('jqueryeasing', dc_jqfloatingmenu::get_plugin_directory() . '/js/jquery.easing.js', array('jquery'));
     wp_enqueue_script('jqueryhoverintent', dc_jqfloatingmenu::get_plugin_directory() . '/js/jquery.hoverIntent.minified.js', array('jquery'));
     wp_enqueue_script('dcjqfloatingmenu', dc_jqfloatingmenu::get_plugin_directory() . '/js/jquery.floater.2.2.js', array('jquery'));
 }
 /** Adds ID based slick menu skin to the header. */
 function styles()
 {
     if (!is_admin()) {
         $all_widgets = $this->get_settings();
         foreach ($all_widgets as $key => $wpdcjqfloatingmenu) {
             $widget_id = $this->id_base . '-' . $key;
             if (is_active_widget(false, $widget_id, $this->id_base)) {
                 $skin = $wpdcjqfloatingmenu['skin'];
                 $skin = htmlspecialchars(ucfirst(preg_replace('/\\..*$/', '', $skin)));
                 if ($skin != 'No-theme') {
                     echo "\n\t<link rel=\"stylesheet\" href=\"" . dc_jqfloatingmenu::get_plugin_directory() . "/skin.php?widget_id=" . $key . "&amp;skin=" . strtolower($skin) . "\" type=\"text/css\" media=\"screen\"  />";
                 }
             }
         }
     }
 }