예제 #1
0
파일: info.php 프로젝트: r15ch13/unwakeable
function get_k2info($show = '')
{
    $output = '';
    switch ($show) {
        case 'version':
            $output = K2_CURRENT;
            break;
        case 'style_footer':
            if (K2_STYLES) {
                $styleinfo = get_option('unwakeable_styleinfo');
                if (!empty($styleinfo['footer'])) {
                    $output = stripslashes($styleinfo['footer']);
                }
            }
            break;
        case 'styles_url':
            if (K2_STYLES) {
                $output = unwakeable_styles::get_styles_url();
            }
            break;
        case 'headers_url':
            $output = K2_HEADERS_URL . '/';
            break;
    }
    return $output;
}
예제 #2
0
 /**
  * Load styles css in the <head> tag - called by 'wp_head' action
  */
 function load_styles()
 {
     $styles_url = unwakeable_styles::get_styles_url();
     // Styles
     $active_styles = get_option('unwakeable_styles');
     if (!empty($active_styles)) {
         krsort($active_styles);
         foreach ($active_styles as $style) {
             echo '<link rel="stylesheet" type="text/css" href="' . $styles_url . '/' . $style . '" />' . "\n";
         }
     }
 }