';
$output .= '' . get_theme_mod( 'header_top_bar_section_1_text', 'Sample text' ) . '';
$output .= '';
blocksy_add_customizer_preview_cache(
function () use ($output) {
return blocksy_html_tag(
'div',
[ 'data-id' => 'header-top-bar-text' ],
$output
);
}
);
blocksy_add_customizer_preview_cache(
function () {
return blocksy_html_tag(
'div',
[ 'data-id' => 'header-top-bar-socials' ],
'' . blocksy_social_icons( null, 'simple' ) . ''
);
}
);
}
function blocksy_get_transparent_header_source() {
static $result = null;
if (! is_null($result)) {
if (! is_customize_preview()) {
return $result;
}
}
if (blocksy_is_page() || is_single()) {
$post_options = blocksy_get_post_options();
$mode = blocksy_akg('has_transparent_header', $post_options, 'default');
if ($mode === 'default') {
$result = [
'strategy' => 'customizer',
'prefix' => ''
];
return $result;
}
$result = [
'strategy' => $post_options
];
return $result;
}
$result = [
'strategy' => 'customizer',
'prefix' => ''
];
return $result;
}
function blocksy_output_cta_header_button() {
return blocksy_html_tag(
'a',
array_merge(
[
'class' => 'ct-header-button ' . blocksy_visibility_classes(
get_theme_mod('header_button_visibility', [
'desktop' => false,
'tablet' => false,
'mobile' => false,
])
),
'data-type' => esc_attr(
get_theme_mod('header_button_type', 'type-1')
),
'data-size' => esc_attr(
get_theme_mod('header_button_size', 'medium')
)
],
(
get_theme_mod('header_button_target', 'no') === 'yes' ? [
'target' => '_blank'
] : []
),
(
!empty(get_theme_mod('header_button_link', '')) ? [
'href' => esc_attr(get_theme_mod('header_button_link', '')),
] : []
)
),
esc_html(get_theme_mod('header_button_text', __('Download', 'blocksy')))
);
}