コード例 #1
0
ファイル: core.php プロジェクト: schiz/scrollax
/**
 * Theme typography
 */
function miss_typography_options()
{
    $font = array('Core' => __('Core Fonts', MISS_ADMIN_TEXTDOMAIN), "\"Source Sans Pro\", Arial, Helvetica, sans-serif" => 'Source Sans Pro', 'optgroup' => 'optgroup', 'Web' => __('System Fonts', MISS_ADMIN_TEXTDOMAIN), 'Arial, Helvetica, sans-serif' => 'Arial', 'Verdana, Geneva, Tahoma, sans-serif' => 'Verdana', '"Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", sans-serif' => 'Lucida', 'Georgia, Times, "Times New Roman", serif' => 'Georgia', '"Times New Roman", Times, Georgia, serif' => 'Times New Roman', '"Trebuchet MS", Tahoma, Arial, sans-serif' => 'Trebuchet', '"Courier New", Courier, monospace' => 'Courier New', 'Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif' => 'Impact', 'Tahoma, Geneva, Verdana, sans-serif' => 'Tahoma', 'inherit' => 'Inherit', 'optgroup' => 'optgroup');
    $gwf = miss_get_gwf();
    if (is_array($gwf) && count($gwf) > 0) {
        $gwf_array = array();
        $gwf_array['Google'] = __('Google Web Fonts', MISS_ADMIN_TEXTDOMAIN);
        foreach (miss_get_gwf() as $gwf_type_face) {
            $gwf_quotes = "\"" . $gwf_type_face . "\"";
            $gwf_array[$gwf_quotes] = $gwf_type_face;
        }
        $gwf_array['optgroup'] = 'optgroup';
        $font = array_merge($gwf_array, $font);
    }
    $size = range(1, 100);
    $transform = array('inherit', 'uppercase', 'lowercase');
    $decoration = array('default', 'none', 'underline');
    $size = array_merge(array('default', 'inherit'), $size);
    $weight = array('default', 'inherit', 'normal', 'bold', 100, 300, 400, 500, 600, 700, 800, 900);
    $style = array('default', 'inherit', 'normal', 'italic', 'oblique');
    $options = array('font-size' => $size, 'font-weight' => $weight, 'font-style' => $style, 'font-family' => $font, 'text-decoration' => $decoration);
    return $options;
}
コード例 #2
0
ファイル: custom.php プロジェクト: schiz/scrollax
<?php

/**
 * Deny hack attempt
 */
if (!defined('ABSPATH')) {
    header('HTTP/1.1 403 Forbidden');
    exit;
}
$css = '';
/**
 * Google Web Fonts Integration
 */
$gwf = miss_get_gwf();
if (is_array($gwf) && count($gwf) > 0) {
    $gwf_query = '';
    foreach ($gwf as $font) {
        $font = stripcslashes($font);
        $gwf_query .= str_replace(array(" ", '"', '\''), array("+", "", ""), $font) . "|";
    }
    $gwf_query = substr($gwf_query, 0, -1);
    $css .= "/* Begin Google Web Fonts */\n";
    $css .= '@import url(http://fonts.googleapis.com/css?family=' . $gwf_query . ');';
    $css .= "\n/* End Google Web Fonts */\n\n";
}
$header_height = miss_get_setting("header_height");
$menu_height = miss_get_setting("menu_height");
$css .= "/* Begin Theme Settings */\n";
$css .= '.site_info > .container > .row-fluid > * 
{
  height: ' . $header_height . 'px;