本文整理汇总了PHP中ts_option_vs_default函数的典型用法代码示例。如果您正苦于以下问题:PHP ts_option_vs_default函数的具体用法?PHP ts_option_vs_default怎么用?PHP ts_option_vs_default使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ts_option_vs_default函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ts_register_sidebars
function ts_register_sidebars()
{
if (function_exists('register_sidebar')) {
register_sidebar(array('name' => __('Primary Sidebar', 'ThemeStockyard'), 'description' => __('Default content sidebar on pages/posts.', 'ThemeStockyard'), 'id' => 'ts-primary-sidebar', 'before_widget' => '<div id="%1$s" class="widget %2$s clearfix">', 'after_widget' => '</div>', 'before_title' => '<div class="page-title clearfix"><h5 class="mimic-small uppercase subtle-text-color"><span>', 'after_title' => '</span></h5></div>'));
register_sidebar(array('name' => __('Second Sidebar', 'ThemeStockyard'), 'description' => __('Sidebar con bluebox.', 'ThemeStockyard'), 'id' => 'ts-second-sidebar', 'before_widget' => '<div id="%1$s" class="widget %2$s clearfix">', 'after_widget' => '</div>', 'before_title' => '<div class="page-title clearfix"><h5 class="mimic-small uppercase subtle-text-color"><span>', 'after_title' => '</span></h5></div>'));
$footer_sidebar_layout = ts_option_vs_default('footer_layout', 'footer2');
switch ($footer_sidebar_layout) {
case "footer1":
register_sidebar(array('name' => __('Footer Area 1', 'ThemeStockyard'), 'id' => 'ts-footer-sidebar-1', 'before_widget' => '<div id="%1$s" class="widget %2$s clearfix">', 'after_widget' => '</div>', 'before_title' => '<div class="page-title clearfix"><h5 class="mimic-small uppercase subtle-text-color"><span>', 'after_title' => '</span></h5></div>'));
register_sidebar(array('name' => __('Footer Area 2', 'ThemeStockyard'), 'id' => 'ts-footer-sidebar-2', 'before_widget' => '<div id="%1$s" class="widget %2$s clearfix">', 'after_widget' => '</div>', 'before_title' => '<div class="page-title clearfix"><h5 class="mimic-small uppercase subtle-text-color"><span>', 'after_title' => '</span></h5></div>'));
register_sidebar(array('name' => __('Footer Area 3', 'ThemeStockyard'), 'id' => 'ts-footer-sidebar-3', 'before_widget' => '<div id="%1$s" class="widget %2$s clearfix">', 'after_widget' => '</div>', 'before_title' => '<div class="page-title clearfix"><h5 class="mimic-small uppercase subtle-text-color"><span>', 'after_title' => '</span></h5></div>'));
register_sidebar(array('name' => __('Footer Area 4', 'ThemeStockyard'), 'id' => 'ts-footer-sidebar-4', 'before_widget' => '<div id="%1$s" class="widget %2$s clearfix">', 'after_widget' => '</div>', 'before_title' => '<div class="page-title clearfix"><h5 class="mimic-small uppercase subtle-text-color"><span>', 'after_title' => '</span></h5></div>'));
break;
case "footer2":
case "footer5":
case "footer6":
register_sidebar(array('name' => __('Footer Area 1', 'ThemeStockyard'), 'id' => 'ts-footer-sidebar-1', 'before_widget' => '<div id="%1$s" class="widget %2$s clearfix">', 'after_widget' => '</div>', 'before_title' => '<div class="page-title clearfix"><h5 class="mimic-small uppercase subtle-text-color"><span>', 'after_title' => '</span></h5></div>'));
register_sidebar(array('name' => __('Footer Area 2', 'ThemeStockyard'), 'id' => 'ts-footer-sidebar-2', 'before_widget' => '<div id="%1$s" class="widget %2$s clearfix">', 'after_widget' => '</div>', 'before_title' => '<div class="page-title clearfix"><h5 class="mimic-small uppercase subtle-text-color"><span>', 'after_title' => '</span></h5></div>'));
register_sidebar(array('name' => __('Footer Area 3', 'ThemeStockyard'), 'id' => 'ts-footer-sidebar-3', 'before_widget' => '<div id="%1$s" class="widget %2$s clearfix">', 'after_widget' => '</div>', 'before_title' => '<div class="page-title clearfix"><h5 class="mimic-small uppercase subtle-text-color"><span>', 'after_title' => '</span></h5></div>'));
break;
case "footer3":
case "footer7":
case "footer8":
register_sidebar(array('name' => __('Footer Area 1', 'ThemeStockyard'), 'id' => 'ts-footer-sidebar-1', 'before_widget' => '<div id="%1$s" class="widget %2$s clearfix">', 'after_widget' => '</div>', 'before_title' => '<div class="page-title clearfix"><h5 class="mimic-small uppercase subtle-text-color"><span>', 'after_title' => '</span></h5></div>'));
register_sidebar(array('name' => __('Footer Area 2', 'ThemeStockyard'), 'id' => 'ts-footer-sidebar-2', 'before_widget' => '<div id="%1$s" class="widget %2$s clearfix">', 'after_widget' => '</div>', 'before_title' => '<div class="page-title clearfix"><h5 class="mimic-small uppercase subtle-text-color"><span>', 'after_title' => '</span></h5></div>'));
break;
default:
case "footer4":
register_sidebar(array('name' => __('Footer Area 1', 'ThemeStockyard'), 'id' => 'ts-footer-sidebar-1', 'before_widget' => '<div id="%1$s" class="widget %2$s clearfix">', 'after_widget' => '</div>', 'before_title' => '<div class="page-title clearfix"><h5 class="mimic-small uppercase subtle-text-color"><span>', 'after_title' => '</span></h5></div>'));
break;
}
}
}
示例2: ts_theme_styles
function ts_theme_styles()
{
wp_enqueue_style('font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css', '', '4.3.0');
wp_dequeue_style('rs-plugin-static');
wp_enqueue_style('theme-css', get_stylesheet_uri(), '', TS_THEME_VERSION);
if (ts_enable_style_selector()) {
wp_enqueue_style('style-selector', get_template_directory_uri() . '/css/style_selector.css', '', TS_THEME_VERSION);
}
$enable_inline_css = ts_option_vs_default('enable_inline_css', 0);
if ($enable_inline_css < 1) {
$ts_php_css_ver = get_option(ts_slugify(TS_THEMENAME) . '_activation_time');
$ts_php_css_ver = $ts_php_css_ver ? '-' . $ts_php_css_ver : '';
wp_enqueue_style('theme-options-css', esc_url(home_url() . '?theme-options=css'), '', TS_THEME_VERSION . $ts_php_css_ver);
}
if (ts_option_vs_default('rtl', 0) == 1) {
wp_enqueue_style('rtl', get_template_directory_uri() . '/rtl.css', '', TS_THEME_VERSION);
}
}
示例3: do_action
</ul>
<div class="tab-contents">
<div class="tab-context tab-details">
<?php
do_action('woocommerce_single_product_summary');
?>
</div>
<?php
$i = 1;
foreach ($tabs as $key => $tab) {
if ($key == 'additional_information') {
continue;
}
// we include this under the description/details tab
if (ts_option_vs_default('show_shop_reviews_on_single', 1) != 1 && $key == 'reviews') {
continue;
}
?>
<div class="tab-context tab-<?php
echo esc_attr($key);
?>
">
<?php
call_user_func($tab['callback'], $key, $tab);
?>
</div>
<?php
$i++;
示例4: sprintf
<?php
/**
* Loop Add to Cart
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.1.0
*/
if (!defined('ABSPATH')) {
exit;
}
// Exit if accessed directly
global $product;
if (ts_option_vs_default('show_add_to_cart_button_on_results', 1) == 1) {
echo apply_filters('woocommerce_loop_add_to_cart_link', sprintf('<a href="%s" rel="nofollow" data-product_id="%s" data-product_sku="%s" data-quantity="%s" class="button %s product_type_%s">%s</a>', esc_url($product->add_to_cart_url()), esc_attr($product->id), esc_attr($product->get_sku()), esc_attr(isset($quantity) ? $quantity : 1), $product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '', esc_attr($product->product_type), esc_html($product->add_to_cart_text())), $product);
}
示例5: remove_action
<?php
/**
* woocommerce_single_product_summary hook
*
* @hooked woocommerce_template_single_title - 5
* @hooked woocommerce_template_single_price - 10
* @hooked woocommerce_template_single_excerpt - 20
* @hooked woocommerce_template_single_add_to_cart - 30
* @hooked woocommerce_template_single_meta - 40
* @hooked woocommerce_template_single_sharing - 50
*/
//do_action( 'woocommerce_single_product_summary' );
remove_action('woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 15);
remove_action('woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20);
if (ts_option_vs_default('show_add_to_cart_button_on_single', 1) != 1) {
remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30);
}
do_action('woocommerce_after_single_product_summary');
?>
</div><!-- .summary -->
<?php
/**
* woocommerce_after_single_product_summary hook
*
* @hooked woocommerce_output_product_data_tabs - 10
* @hooked woocommerce_output_related_products - 20
*/
//do_action( 'woocommerce_after_single_product_summary' );
示例6: isset
$entries_class = $ts_show_sidebar == 'yes' ? 'has-sidebar' : 'no-sidebar';
$ts_query = isset($atts) && $atts['default_query'] === false ? new WP_Query($atts) : $wp_query;
$atts = isset($atts) ? $atts : array();
$entry_class = 'span4';
?>
<div class="loop-wrap loop-masonry-wrap <?php
echo esc_attr(ts_loop_wrap_class($atts));
?>
">
<div class="hfeed entries blog-entries loop loop-masonry <?php
echo esc_attr($entries_class);
?>
clearfix">
<?php
$exc_lnth = ts_option_vs_default('excerpt_length_minimum', 100);
$excerpt_length = isset($atts['excerpt_length']) && $atts['excerpt_length'] != '' ? $atts['excerpt_length'] : $exc_lnth;
$ts_show = ts_maybe_show_blog_elements($atts);
$show_excerpt = $excerpt_length == '0' || !$ts_show->excerpt ? false : true;
$title_size = ts_get_blog_loop_title_size($atts, 4);
$text_align = ts_get_blog_loop_text_align($atts);
$allow_vids = isset($atts['allow_videos']) ? $atts['allow_videos'] : '';
$allow_gals = isset($atts['allow_galleries']) ? $atts['allow_galleries'] : '';
if ($ts_query->have_posts()) {
while ($ts_query->have_posts()) {
$ts_query->the_post();
$atts['exclude_these_later'] = isset($atts['exclude_these_later']) ? $atts['exclude_these_later'] : '';
if (!ts_attr_is_false($atts['exclude_these_later'])) {
$ts_previous_posts[] = $ts_query->post->ID;
}
$post_type = get_post_type();
示例7: ts_option_vs_default
$show_shop_reviews_on_single = ts_option_vs_default('show_shop_reviews_on_single', 1);
if ($show_shop_reviews_on_single == 1) {
echo ' <span class="sep sep-1"> / </span> ';
echo '<a href="' . esc_url(get_permalink()) . '#reviews" class="to-comments-link reviews-smoothscroll">' . $comment_number . ' ';
echo $comment_number == 1 ? __('Review', 'ThemeStockyard') : __('Reviews', 'ThemeStockyard');
echo '</a>' . "\n";
}
} else {
echo ' <span class="sep sep-2"> / </span> ';
echo '<span class="mimic-small">';
echo __('By', 'ThemeStockyard') . ' ';
echo '<span class="author vcard">';
echo '<a href="' . get_author_posts_url($post->post_author) . '">' . get_the_author_meta('display_name', $post->post_author) . '</a>';
echo '</span>';
echo '</span>';
if (ts_option_vs_default('show_titlebar_post_view_count', 0) == 1) {
$ts_postview_nonce = wp_create_nonce('ts_update_postviews_nonce');
$post_view_count = ts_postmeta_vs_default($ts_page_id, '_p_ts_postviews', 0);
$post_view_count = !$post_view_count ? '0' : $post_view_count;
$post_view_count_text = sprintf(_n('1 view', '%s views', $post_view_count, 'ThemeStockyard'), $post_view_count);
echo ' <span class="sep sep-3"> / </span> ';
echo '<span id="ts-postviews" data-pid="' . esc_attr($ts_page_id) . '" data-nonce="' . esc_attr($ts_postview_nonce) . '">';
echo '<i class="fa fa-eye"></i>' . esc_html($post_view_count_text);
echo '</span>';
}
}
} else {
echo '<!-- comments closed -->' . "\n";
}
?>
</div>
示例8: get_option
<?php
global $smof_data, $ts_page_id, $ts_page_title;
$ts_page_id = get_option('page_for_posts');
$ts_show_sidebar = ts_option_vs_default('show_archive_sidebar', 1) != 1 ? 'no' : 'yes';
$ts_sidebar_position = ts_option_vs_default('page_sidebar_position', 'right');
$post = $posts[0];
$ts_queried_object = get_query_var('author');
$ts_page_title = __('Posts by:', 'ThemeStockyard') . ' ' . get_the_author_meta('display_name', get_query_var('author'));
$ts_caption = trim($ts_caption) ? $ts_caption : '';
get_header();
get_template_part('top');
get_template_part('title-page');
?>
<div id="main-container-wrap" class="<?php
echo esc_attr(ts_main_container_wrap_class('page'));
?>
">
<div id="main-container" class="container clearfix">
<div id="main" class="<?php
echo esc_attr(ts_main_div_class());
?>
clearfix">
<div class="entry single-entry clearfix">
<div class="post">
<?php
/*
* Run the loop to output the posts.
*/
$ts_loop = isset($smof_data['archive_layout']) ? $smof_data['archive_layout'] : '';
ts_blog($ts_loop, array('default_query' => true));
示例9: get_queried_object
<?php
/*
Template Name: Sitemap
*/
global $smof_data, $ts_previous_posts, $ts_page_id, $ts_show_top_ticker;
$ts_page_object = get_queried_object();
$ts_page_id = is_single() ? $post->ID : get_queried_object_id();
$ts_custom_css = get_post_meta($ts_page_id, '_page_css', true);
$ts_show_top_ticker_option = ts_option_vs_default('show_page_top_ticker', 0) == 1 ? 'yes' : 'no';
$ts_show_top_ticker = ts_postmeta_vs_default($ts_page_id, '_page_top_ticker', $ts_show_top_ticker_option);
$ts_show_sidebar_option = ts_option_vs_default('show_page_sidebar', 1) != 1 ? 'no' : 'yes';
$ts_show_sidebar = ts_postmeta_vs_default($ts_page_id, '_page_sidebar', $ts_show_sidebar_option);
$ts_sidebar_position_option = ts_option_vs_default('page_sidebar_position', 'right');
$ts_sidebar_position = ts_postmeta_vs_default($ts_page_id, '_page_sidebar_position', $ts_sidebar_position_option);
$ts_page_comments = ts_option_vs_default('page_comments', 0) == 1 ? true : false;
get_header();
get_template_part('top');
get_template_part('title-page');
?>
<div id="main-container-wrap" class="<?php
echo esc_attr(ts_main_container_wrap_class('page'));
?>
">
<?php
get_template_part('slider');
?>
<div id="main-container" class="container clearfix">
<div id="main" class="<?php
示例10: ts_escape
<?php
/**
* Single Product Price, including microdata for SEO
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/
if (!defined('ABSPATH')) {
exit;
}
// Exit if accessed directly
global $post, $product;
if (ts_option_vs_default('show_shop_prices_on_single', 1) != 1) {
return false;
}
?>
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<p itemprop="price" class="price"><?php
echo ts_escape($product->get_price_html());
?>
</p>
<meta itemprop="priceCurrency" content="<?php
echo ts_escape(get_woocommerce_currency());
?>
" />
<link itemprop="availability" href="http://schema.org/<?php
echo $product->is_in_stock() ? 'InStock' : 'OutOfStock';
示例11: form
function form($instance)
{
$defaults = array('label' => __("Social Links...", 'ThemeStockyard'), 'facebook' => ts_option_vs_default('social_url_facebook', ''), 'twitter' => ts_option_vs_default('social_url_twitter', ''), 'pinterest' => ts_option_vs_default('social_url_pinterest', ''), 'google_plus' => ts_option_vs_default('social_url_google_plus', ''), 'github' => ts_option_vs_default('social_url_github', ''), 'linkedin' => ts_option_vs_default('social_url_linkedin', ''), 'instagram' => ts_option_vs_default('social_url_instagram', ''), 'flickr' => ts_option_vs_default('social_url_flickr', ''), 'youtube' => ts_option_vs_default('social_url_youtube', ''), 'vimeo' => ts_option_vs_default('social_url_vimeo', ''), 'vk' => ts_option_vs_default('social_url_vk', ''), 'tumblr' => ts_option_vs_default('social_url_tumblr', ''), 'behance' => ts_option_vs_default('social_url_behance', ''), 'dribbble' => ts_option_vs_default('social_url_dribbble', ''), 'soundcloud' => ts_option_vs_default('social_url_soundcloud', ''), 'rss' => ts_option_vs_default('social_url_rss', ''));
$instance = wp_parse_args((array) $instance, $defaults);
?>
<p>
<label for="<?php
echo esc_attr($this->get_field_id('label'));
?>
"><?php
_e('Label (optional):', 'ThemeStockyard');
?>
</label>
<input type="text" name="<?php
echo esc_attr($this->get_field_name('label'));
?>
" value="<?php
echo esc_attr($instance['label']);
?>
" class="widefat" id="<?php
echo esc_attr($this->get_field_id('label'));
?>
" />
</p>
<p>
<label for="<?php
echo esc_attr($this->get_field_id('facebook'));
?>
"><?php
_e('Facebook URL:', 'ThemeStockyard');
?>
</label>
<input type="text" name="<?php
echo esc_attr($this->get_field_name('facebook'));
?>
" value="<?php
echo esc_attr($instance['facebook']);
?>
" class="widefat" id="<?php
echo esc_attr($this->get_field_id('facebook'));
?>
" />
</p>
<p>
<label for="<?php
echo esc_attr($this->get_field_id('twitter'));
?>
"><?php
_e('Twitter URL:', 'ThemeStockyard');
?>
</label>
<input type="text" name="<?php
echo esc_attr($this->get_field_name('twitter'));
?>
" value="<?php
echo esc_attr($instance['twitter']);
?>
" class="widefat" id="<?php
echo esc_attr($this->get_field_id('twitter'));
?>
" />
</p>
<p>
<label for="<?php
echo esc_attr($this->get_field_id('pinterest'));
?>
"><?php
_e('Pinterest URL:', 'ThemeStockyard');
?>
</label>
<input type="text" name="<?php
echo esc_attr($this->get_field_name('pinterest'));
?>
" value="<?php
echo esc_attr($instance['pinterest']);
?>
" class="widefat" id="<?php
echo esc_attr($this->get_field_id('pinterest'));
?>
" />
</p>
<p>
<label for="<?php
echo esc_attr($this->get_field_id('google_plus'));
?>
"><?php
_e('Google+ URL:', 'ThemeStockyard');
?>
</label>
<input type="text" name="<?php
echo esc_attr($this->get_field_name('google_plus'));
?>
" value="<?php
echo esc_attr($instance['google_plus']);
?>
" class="widefat" id="<?php
echo esc_attr($this->get_field_id('google_plus'));
?>
" />
</p>
//.........这里部分代码省略.........
示例12: esc_attr
<div id="ts-post-comments-share-wrap" class="clearfix <?php
echo esc_attr(ts_post_sharing_class());
?>
">
<?php
$comment_number = get_comments_number();
$ts_using_recommended_disqus_settings = ts_option_vs_default('using_recommended_disqus_settings', 'no');
?>
<a href="<?php
echo get_permalink() . ts_link2comments();
?>
" class="to-comments-link small-size smoothscroll" id="ts-moon-comment-bubble"><strong><?php
echo '<span class="disqus-comment-count" data-disqus-url="' . get_permalink() . '">';
echo intval($comment_number);
echo $ts_using_recommended_disqus_settings == 'yes' ? '</span> ' : ' ';
echo $comment_number == 1 ? __('Comment', 'ThemeStockyard') : __('Comments', 'ThemeStockyard');
echo $ts_using_recommended_disqus_settings == 'yes' ? '' : '</span>';
?>
</strong></a>
<?php
$ts_sharing_options = ts_sharing_options_on_posts();
if ($ts_sharing_options->show) {
?>
<div id="page-share" class="not-pulled small">
<?php
echo ts_social_sharing();
?>
</div>
<?php
示例13: comments_number
<?php
if (have_comments()) {
?>
<div id="comments-content">
<div class="page-title clearfix">
<h6 class="uppercase small"><?php
comments_number(__('No Comment', 'ThemeStockyard'), __('One Comment', 'ThemeStockyard'), __('% Comments', 'ThemeStockyard'));
?>
</h6>
<?php
echo do_shortcode('[divider height="10"]');
?>
</div>
<ol class="commentlist <?php
echo ts_option_vs_default('show_comments_avatars', 1) ? '' : 'no-comment-avatars';
?>
">
<?php
wp_list_comments(array('callback' => 'ts_custom_comment_list'));
?>
</ol>
<?php
if (get_comment_pages_count() > 1 && get_option('page_comments')) {
?>
<div id="comment-nav" class="comment-nav" role="navigation">
<div class="comm-prev"><?php
previous_comments_link(__('<i class="icon-chevron-left"></i> Older Comments', 'ThemeStockyard'));
?>
</div>
示例14: get_queried_object
<?php
global $smof_data, $post, $product, $ts_show_sidebar, $ts_sidebar_position, $ts_page_id;
$ts_page_object = get_queried_object();
$ts_page_id = ts_is_woo_shop() ? $ts_page_id : (is_single() ? $post->ID : get_queried_object_id());
$ts_custom_css = get_post_meta($ts_page_id, '_page_css', true);
if (is_product()) {
$ts_show_sidebar = ts_option_vs_default('show_woocommerce_product_sidebar', 0) == 1 ? 'yes' : 'no';
} else {
$ts_show_sidebar_option = ts_option_vs_default('show_woocommerce_page_sidebar', 1) == 1 ? 'yes' : 'no';
$ts_show_sidebar = ts_postmeta_vs_default($ts_page_id, '_page_sidebar', $ts_show_sidebar_option);
}
$ts_sidebar_position = ts_option_vs_default('woocommerce_sidebar_position', 'right');
if (ts_is_woo_shop()) {
$ts_sidebar_position = ts_postmeta_vs_default($ts_page_id, '_page_sidebar_position', $ts_sidebar_position);
}
get_header();
get_template_part('top');
get_template_part('title-page');
get_template_part('slider');
?>
<div id="main-container-wrap" class="<?php
echo esc_attr(ts_main_container_wrap_class('page'));
?>
">
<div id="main-container" class="container clearfix" data-pos="<?php
echo esc_attr($ts_sidebar_position);
?>
">
<div id="main" class="<?php
echo esc_attr(ts_main_div_class());
示例15: ts_dynamic_css
function ts_dynamic_css($color = '', $layout = '', $bg_image = '')
{
if (function_exists('ts_option_vs_default')) {
?>
/******************** ***********************/
/* SECTION 3: TYPOGRAPHY
Within this section....
- Section 3a: font-famiy
- Section 3b: font-size
- Section 3c: font-style
- Section 3d: line-height
================================================== */
<?php
$logo_font_family = ts_option_vs_default_font('logo_font_family', 'Montserrat');
$body_font_family = ts_option_vs_default_font('body_font_family', 'Open Sans');
$h1_font_family = ts_option_vs_default_font('h1_font_family', 'Montserrat');
$h2_font_family = ts_option_vs_default_font('h2_font_family', 'Montserrat');
$h3_font_family = ts_option_vs_default_font('h3_font_family', 'Montserrat');
$h4_font_family = ts_option_vs_default_font('h4_font_family', 'Montserrat');
$h5_font_family = ts_option_vs_default_font('h5_font_family', 'Open Sans');
$h6_font_family = ts_option_vs_default_font('h6_font_family', 'Open Sans');
$stylized_meta_font_family = ts_option_vs_default_font('stylized_meta_font_family', 'Libre Baskerville');
$stylized_meta_font_style = ts_option_vs_default('stylized_meta_font_style::style', 'italic');
$form_font_family = ts_option_vs_default_font('form_font_family', 'Open Sans');
$button_font_family = ts_option_vs_default_font('button_font_family', 'Open Sans');
$small_font_family = ts_option_vs_default_font('small_font_family', 'Open Sans');
$main_nav_font_family = ts_option_vs_default_font('main_nav_font_family', 'Open Sans');
$main_nav_submenu_font = ts_option_vs_default_font('main_nav_submenu_font', 'Open Sans');
?>
/* Section 3a: font-family */
#logo .logo-text { font-family: "<?php
echo esc_attr($logo_font_family);
?>
"; }
body { font-family: "<?php
echo esc_attr($body_font_family);
?>
"; }
h1 { font-family: "<?php
echo esc_attr($h1_font_family);
?>
"; }
h2 { font-family: "<?php
echo esc_attr($h2_font_family);
?>
"; }
h3 { font-family: "<?php
echo esc_attr($h3_font_family);
?>
"; }
h4 { font-family: "<?php
echo esc_attr($h4_font_family);
?>
"; }
h5,
.ts-tabs-widget .tab-header li { font-family: "<?php
echo esc_attr($h5_font_family);
?>
"; }
h6 { font-family: "<?php
echo esc_attr($h6_font_family);
?>
"; }
.stylized-meta { font-family: "<?php
echo esc_attr($stylized_meta_font_family);
?>
"; <?php
echo aq_font_style($stylized_meta_font_style);
?>
}
.main-nav { font-family: "<?php
echo esc_attr($main_nav_font_family);
?>
"; }
.main-nav ul ul { font-family: "<?php
echo esc_attr($main_nav_submenu_font);
?>
"; }
#top-bar > .right-side input,
small,
.small,
.smaller,
.mimic-small,
.mimic-smaller,
#header-social,
.dem-tags a,
.post-tags a,
#copyright-nav,
.widget .tagcloud a,
.post .wp-caption-text,
.mimic-post .wp-caption-text,
ol.commentlist .comment-head,
.post-single-prev-next strong { font-family: "<?php
echo esc_attr($small_font_family);
?>
//.........这里部分代码省略.........