/**
* Related Posts Loader for Astra theme.
*
* @package Astra
* @author Brainstorm Force
* @copyright Copyright (c) 2021, Brainstorm Force
* @link https://www.brainstormforce.com
* @since Astra 3.5.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Customizer Initialization
*
* @since 3.5.0
*/
class Astra_Related_Posts_Loader {
/**
* Constructor
*
* @since 3.5.0
*/
public function __construct() {
add_filter( 'astra_theme_defaults', array( $this, 'theme_defaults' ) );
add_action( 'customize_register', array( $this, 'related_posts_customize_register' ), 2 );
// Load Google fonts.
add_action( 'astra_get_fonts', array( $this, 'add_fonts' ), 1 );
}
/**
* Enqueue google fonts.
*
* @return void
*/
public function add_fonts() {
if ( astra_target_rules_for_related_posts() ) {
// Related Posts Section title.
$section_title_font_family = astra_get_option( 'related-posts-section-title-font-family' );
$section_title_font_weight = astra_get_option( 'related-posts-section-title-font-weight' );
Astra_Fonts::add_font( $section_title_font_family, $section_title_font_weight );
// Related Posts - Posts title.
$post_title_font_family = astra_get_option( 'related-posts-title-font-family' );
$post_title_font_weight = astra_get_option( 'related-posts-title-font-weight' );
Astra_Fonts::add_font( $post_title_font_family, $post_title_font_weight );
// Related Posts - Meta Font.
$meta_font_family = astra_get_option( 'related-posts-meta-font-family' );
$meta_font_weight = astra_get_option( 'related-posts-meta-font-weight' );
Astra_Fonts::add_font( $meta_font_family, $meta_font_weight );
// Related Posts - Content Font.
$content_font_family = astra_get_option( 'related-posts-content-font-family' );
$content_font_weight = astra_get_option( 'related-posts-content-font-weight' );
Astra_Fonts::add_font( $content_font_family, $content_font_weight );
}
}
/**
* Set Options Default Values
*
* @param array $defaults Astra options default value array.
* @return array
*/
public function theme_defaults( $defaults ) {
// Related Posts.
$defaults['enable-related-posts'] = false;
$defaults['related-posts-title'] = __( 'Related Posts', 'astra' );
$defaults['releted-posts-title-alignment'] = 'left';
$defaults['related-posts-total-count'] = 2;
$defaults['enable-related-posts-excerpt'] = false;
$defaults['related-posts-excerpt-count'] = 25;
$defaults['related-posts-based-on'] = 'categories';
$defaults['related-posts-order-by'] = 'date';
$defaults['related-posts-order'] = 'asc';
$defaults['related-posts-grid-responsive'] = array(
'desktop' => '2-equal',
'tablet' => '2-equal',
'mobile' => 'full',
);
$defaults['related-posts-structure'] = array(
'featured-image',
'title-meta',
);
$defaults['related-posts-meta-structure'] = array(
'comments',
'category',
'author',
);
// Related Posts - Color styles.
$defaults['related-posts-text-color'] = '';
$defaults['related-posts-link-color'] = '';
$defaults['related-posts-title-color'] = '';
$defaults['related-posts-background-color'] = '';
$defaults['related-posts-meta-color'] = '';
$defaults['related-posts-link-hover-color'] = '';
$defaults['related-posts-meta-link-hover-color'] = '';
// Related Posts - Title typo.
$defaults['related-posts-section-title-font-family'] = 'inherit';
$defaults['related-posts-section-title-font-weight'] = 'inherit';
$defaults['related-posts-section-title-text-transform'] = '';
$defaults['related-posts-section-title-line-height'] = '';
$defaults['related-posts-section-title-font-size'] = array(
'desktop' => '30',
'tablet' => '',
'mobile' => '',
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
);
// Related Posts - Title typo.
$defaults['related-posts-title-font-family'] = 'inherit';
$defaults['related-posts-title-font-weight'] = 'inherit';
$defaults['related-posts-title-text-transform'] = '';
$defaults['related-posts-title-line-height'] = '1';
$defaults['related-posts-title-font-size'] = array(
'desktop' => '20',
'tablet' => '',
'mobile' => '',
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
);
// Related Posts - Meta typo.
$defaults['related-posts-meta-font-family'] = 'inherit';
$defaults['related-posts-meta-font-weight'] = 'inherit';
$defaults['related-posts-meta-text-transform'] = '';
$defaults['related-posts-meta-line-height'] = '';
$defaults['related-posts-meta-font-size'] = array(
'desktop' => '14',
'tablet' => '',
'mobile' => '',
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
);
// Related Posts - Content typo.
$defaults['related-posts-content-font-family'] = 'inherit';
$defaults['related-posts-content-font-weight'] = 'inherit';
$defaults['related-posts-content-text-transform'] = '';
$defaults['related-posts-content-line-height'] = '';
$defaults['related-posts-content-font-size'] = array(
'desktop' => '',
'tablet' => '',
'mobile' => '',
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
);
return $defaults;
}
/**
* Add postMessage support for site title and description for the Theme Customizer.
*
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
*
* @since 3.5.0
*/
public function related_posts_customize_register( $wp_customize ) {
/**
* Register Config control in Related Posts.
*/
// @codingStandardsIgnoreStart WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound
require_once ASTRA_RELATED_POSTS_DIR . 'customizer/class-astra-related-posts-configs.php';
// @codingStandardsIgnoreEnd WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound
}
/**
* Render the Related Posts title for the selective refresh partial.
*
* @since 3.5.0
*/
public function render_related_posts_title() {
return astra_get_option( 'related-posts-title' );
}
}
/**
* Kicking this off by creating NEW instace.
*/
new Astra_Related_Posts_Loader();
深入了解BK8新加坡:在线博彩与娱乐的最佳选择 – Quality Formación
Ir al contenido
BK8新加坡:在线博彩与娱乐的最佳选择
BK8新加坡是东南亚地区最快速发展的在线博彩平台之一,以其卓越的用户体验和丰富的游戏选择而著称。无论您是新手还是经验丰富的玩家,BK8都能为您提供一个安全、公平且令人兴奋的博彩体验。为了帮助您更好地享受平台的优势,不妨试试 bk8 Singapore bk8 奖金代码,以获得更多的福利和优惠。
BK8新加坡的优势
BK8新加坡之所以备受欢迎,主要是因为它提供了多种多样的饮食服务和博彩产品,包括体育博彩、真人娱乐、老虎机以及电子游艺。用户界面友好,流畅的操作体验,让玩家无论是在电脑上还是移动设备上都能轻松畅玩。安全性也是BK8的一大亮点,平台采用了最先进的加密技术,以确保用户的个人信息和资金安全。
多样的游戏选择
BK8新加坡汇聚了来自世界顶尖的游戏供应商,为用户提供高质量的在线游戏选择。玩家可以在这里找到各种类型的游戏,包括:
- 体育博彩:覆盖全球主要体育赛事,包括足球、篮球、网球等。
- 真人娱乐:与真实荷官互动,感受身临其境的游戏体验。
- 老虎机:丰富多彩的老虎机游戏,具有各种主题和奖励机制。
- 电子游艺:精彩刺激的电子竞技赛事,让玩家体验到无与伦比的乐趣。
安全与信任
BK8新加坡深知安全是玩家最关注的事项之一。平台持有合法的博彩许可证,并通过严格审核,以确保所有游戏的公平性。此外,BK8还提供多种安全的支付方式,确保用户的资金能够及时安全地存取。客服团队24/7在线,随时为用户解答疑问,解决问题。
如何开始在BK8新加坡游戏
开始在BK8新加坡游戏非常简单,您只需按照以下步骤操作:
- 访问BK8官方网站并注册账户。
- 完成身份验证,确保您的账户安全。
- 选择您感兴趣的游戏,使用BK8奖金代码领取优惠奖励。
- 开始游戏,享受无与伦比的博彩体验!
利用奖金代码提升您的体验
在BK8新加坡,奖金代码是获取额外福利的重要方式。新用户注册后可以使用特定的奖金代码来获得注册优惠,而老用户则可以定期查找平台提供的其它优惠活动。善用这些奖金代码,不仅能增加资金,还能提升您在平台上的整体游戏体验。
总结
BK8新加坡是一个令人兴奋的在线博彩平台,凭借其丰富的游戏选择、安全的支付方式以及优秀的客户服务,迅速赢得了众多玩家的青睐。通过合理利用BK8奖金代码,玩家可以在这个平台上找到更多的乐趣和机遇。如果您正在寻找一个值得信赖的在线博彩平台,BK8新加坡无疑是一个不可错过的选择。
monopoly casino