screen->get_prefix();
$has_post_nav = blocksy_get_theme_mod(
$prefix . '_has_post_nav',
'no'
) === 'yes';
if (blocksy_is_page()) {
$has_post_nav = false;
}
if (
blocksy_default_akg(
'disable_posts_navigation', $post_options, 'no'
) === 'yes'
) {
$has_post_nav = false;
}
return $has_post_nav;
}
}
if (! function_exists('blocksy_has_share_box')) {
function blocksy_has_share_box() {
$post_options = blocksy_get_post_options();
$prefix = blocksy_manager()->screen->get_prefix();
$has_share_box = blocksy_get_theme_mod(
$prefix . '_has_share_box',
'no'
) === 'yes';
if (
blocksy_default_akg(
'disable_share_box',
$post_options,
'no'
) === 'yes'
) {
$has_share_box = false;
}
/**
* Filters whether the share box is displayed on a single post.
*
* @since 2.0.1
*
* @param bool $has_share_box Whether the share box is shown.
*/
return apply_filters(
'blocksy:single:has-share-box',
$has_share_box
);
}
}
if (! function_exists('blocksy_has_author_box')) {
function blocksy_has_author_box() {
$post_options = blocksy_get_post_options();
$prefix = blocksy_manager()->screen->get_prefix();
$has_author_box = blocksy_get_theme_mod(
$prefix . '_has_author_box',
'no'
) === 'yes';
if (blocksy_is_page()) {
$has_author_box = false;
}
if (
blocksy_default_akg(
'disable_author_box', $post_options, 'no'
) === 'yes'
) {
$has_author_box = false;
}
/**
* Filters whether the author box is displayed on a single post.
*
* @since 1.8.3.4
*
* @param bool $has_author_box Whether the author box is shown.
*/
$has_author_box = apply_filters(
'blocksy:single:has-author-box',
$has_author_box
);
return $has_author_box;
}
}
if (! function_exists('blocksy_single_content')) {
function blocksy_single_content($content = null) {
$post_options = blocksy_get_post_options();
$prefix = blocksy_manager()->screen->get_prefix();
$has_post_tags = blocksy_get_theme_mod(
$prefix . '_has_post_tags',
'no'
) === 'yes';
if (
blocksy_default_akg(
'disable_post_tags', $post_options, 'no'
) === 'yes'
) {
$has_post_tags = false;
}
$featured_image_location = 'none';
$page_title_source = blocksy_get_page_title_source();
$featured_image_source = blocksy_get_featured_image_source();
if ($page_title_source) {
$actual_type = blocksy_akg_or_customizer(
'hero_section',
blocksy_get_page_title_source(),
'type-1'
);
if ($actual_type !== 'type-2') {
$featured_image_location = blocksy_get_theme_mod(
$prefix . '_featured_image_location',
'above'
);
} else {
$featured_image_location = 'below';
}
} else {
$featured_image_location = 'above';
}
$share_box_type = blocksy_get_theme_mod($prefix . '_share_box_type', 'type-1');
$share_box1_location = blocksy_get_theme_mod($prefix . '_share_box1_location', [
'top' => false,
'bottom' => true,
]);
$share_box2_location = blocksy_get_theme_mod($prefix . '_share_box2_location', 'right');
$share_box2_colors = blocksy_get_theme_mod($prefix . '_share_box2_colors', 'custom');
$gutenberg_layout_class = "is-layout-constrained";
if (blocksy_sidebar_position() !== 'none') {
$gutenberg_layout_class = "is-layout-flow";
}
$content_class = 'entry-content ' . $gutenberg_layout_class;
ob_start();
?>