コード例 #1
0
 function header()
 {
     echo "\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"" . dc_jqdrilldown::get_plugin_directory() . "/css/dcdrilldown.css\" media=\"screen\" />";
 }
コード例 #2
0
 /** Adds ID based dropdown menu skin to the header. */
 function styles()
 {
     if (!is_admin()) {
         $all_widgets = $this->get_settings();
         foreach ($all_widgets as $key => $wpdcjqdrilldown) {
             $widget_id = $this->id_base . '-' . $key;
             if (is_active_widget(false, $widget_id, $this->id_base)) {
                 $skin = $wpdcjqdrilldown['skin'];
                 $skin = htmlspecialchars(ucfirst(preg_replace('/\\..*$/', '', $skin)));
                 if ($skin != 'No-theme') {
                     echo "\n\t<link rel=\"stylesheet\" href=\"" . dc_jqdrilldown::get_plugin_directory() . "/skin.php?widget_id=" . $key . "&skin=" . strtolower($skin) . "\" type=\"text/css\" media=\"screen\"  />";
                 }
             }
         }
     }
 }