當前位置: 首頁>>代碼示例>>PHP>>正文


PHP wpgrade::get_the_typo方法代碼示例

本文整理匯總了PHP中wpgrade::get_the_typo方法的典型用法代碼示例。如果您正苦於以下問題:PHP wpgrade::get_the_typo方法的具體用法?PHP wpgrade::get_the_typo怎麽用?PHP wpgrade::get_the_typo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在wpgrade的用法示例。


在下文中一共展示了wpgrade::get_the_typo方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: wpgrade_callback_enqueue_dynamic_css

function wpgrade_callback_enqueue_dynamic_css()
{
    $style_query = array();
    //		if (wpgrade::option('main_color')) {
    //			$main_color = wpgrade::option('main_color');
    //			$main_color = str_replace('#', '', $main_color);
    //			$style_query['color'] = $main_color;
    //		}
    if (wpgrade::option('use_google_fonts')) {
        add_action('wp_head', 'wpgrade_callback_load_google_fonts');
        $fonts_array = array('google_titles_font', 'google_second_font', 'google_nav_font', 'google_body_font');
        foreach ($fonts_array as $font) {
            $the_font = wpgrade::get_the_typo($font);
            //				var_dump($the_font);
            if (!empty($the_font)) {
                $style_query['fonts'][$font] = $the_font;
            }
        }
    }
    //		if (wpgrade::option('portfolio_text_color')) {
    //			$port_color = wpgrade::option('portfolio_text_color');
    //			$port_color = str_replace('#', '', $port_color);
    //			$style_query['port_color'] = $port_color;
    //		}
    if (wpgrade::option('inject_custom_css') == 'file') {
        wp_enqueue_style('wpgrade-custom-style', get_template_directory_uri() . '/theme-content/css/custom.css');
    }
}
開發者ID:qhuit,項目名稱:Tournesol,代碼行數:28,代碼來源:dynamic-css.php

示例2: array

                        // @TODO  make from this a method used also in customizer
                        wpgrade::display_dynamic_css_rule($rule, $key, $option_value);
                    }
                }
            }
        }
    }
}
/*  for PRO users! - *
 *======= TYPOGRAPHY
 */
$fonts = array();
if (wpgrade::option('use_google_fonts')) {
    $fonts_array = array('google_titles_font', 'google_subtitles_font', 'google_nav_font', 'google_body_font');
    foreach ($fonts_array as $font) {
        $the_font = wpgrade::get_the_typo($font);
        if (isset($the_font['font-family']) && !empty($the_font['font-family'])) {
            $fonts[$font] = $the_font;
        }
    }
}
if (isset($fonts['google_titles_font'])) {
    ?>
	/*  for PRO users! -  Titles classes here */
	h1, h2, h3, h4, h5, h6, hgroup,
	h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
	blockquote,
	.tabs__nav, .popular-posts__time,
	.pagination li a, .pagination li span{
	<?php 
    wpgrade::display_font_params($fonts['google_titles_font']);
開發者ID:qhuit,項目名稱:Tournesol,代碼行數:31,代碼來源:inline-custom-css.php


注:本文中的wpgrade::get_the_typo方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。