public function internalStyles() { ?> <style id="wpi-css" type="text/css" title="<?php echo wpiTheme::UID; ?> " media="screen,projectile"> /*<![CDATA[*/<?php if (!self::getOption('css_via_header')) { ?> @import url('<?php echo wpi_get_stylesheets_url($this->css); ?> '); <?php } ?> <?php do_action(wpiFilter::ACTION_INTERNAL_CSS); ?> /*]]>*/ </style> <?php }
function wpi_get_stylesheet_uri_filter($stylesheet_uri = false, $stylesheet_dir_uri = false) { global $Wpi; return wpi_get_stylesheets_url($Wpi->Style->css); }
public function optionCache() { ?> <ol class="r mtb options-item"> <li class="ss"><h4 class="title-"> <?php _e('Manage Cached files', WPI_META); ?> </h4> <div class="dn"> <ul class="mtb"> <li class="last"> <h4><?php _e('Stylesheet', WPI_META); ?> </h4> <?php $css = wpi_get_dir(WPI_CACHE_CSS_DIR); ?> <?php if (has_count($css) && !empty($css)) { ?> <dl> <?php $size = 0; $n = 1; foreach ($css as $tag) { $s = filesize(WPI_CACHE_CSS_DIR . $tag); $size += $s; $s = format_filesize($s); $s = _t('small', ' - ' . $s); $t = str_rem('.css', $tag); $a = _t('a', $tag, array('href' => wpi_get_stylesheets_url($t), 'target' => '_blank')); $c = _t('small', $n . '. '); t('dd', $c . $a . $s, array('style' => 'display:block;clear:both')); $n++; } ?> <small> Cache directory size : <?php echo format_filesize($size); ?> </small> </dl> <button class="sbtn" type="submit" name="wpi_flush_css" id="wpi_flush_css" value="1">Erase Cache</button> <?php } else { ?> <p>No cached files.</p> <?php } ?> </li> </ul> </div> </li> </ol> <?php }
public static function dtd() { global $is_IE, $Wpi; if (defined('WPI_CLIENT_ACCEPT_XML') && WPI_CLIENT_ACCEPT_XML) { $charset = get_bloginfo('charset'); $xml = '<?xml version="1.0" encoding="' . $charset . '"?>' . PHP_EOL; if (!$is_IE && wpi_option('xhtml_mime_type') && !wpi_option('css_via_header')) { $css_url = wpi_get_stylesheets_url($Wpi->Style->css); $xml .= '<?xml-stylesheet href="' . $css_url . '" title="' . wpiTheme::UID . '" type=""text/css""?>' . PHP_EOL; } } $dtd = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . PHP_EOL; $output = apply_filters(wpiFilter::FILTER_PUBLIC_DTD, $dtd); if (isset($xml)) { $output = $xml . $output; } echo $output; }