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_product_share_box')) { function blocksy_has_product_share_box() { $prefix = blocksy_manager()->screen->get_prefix(); $post_type = get_post_type(); if ($post_type !== 'product') { return false; } $default_product_layout = blocksy_get_woo_single_layout_defaults(); $layout = blocksy_get_theme_mod( 'woo_single_layout', $default_product_layout ); $layout = blocksy_normalize_layout( $layout, $default_product_layout ); $product_view_type = blocksy_get_product_view_type(); if ( $product_view_type === 'top-gallery' || $product_view_type === 'columns-top-gallery' ) { $woo_single_split_layout = blocksy_get_theme_mod( 'woo_single_split_layout', [ 'left' => blocksy_get_woo_single_layout_defaults('left'), 'right' => blocksy_get_woo_single_layout_defaults('right') ] ); $layout = array_merge( $woo_single_split_layout['left'], $woo_single_split_layout['right'] ); } $product_sharebox = array_values(array_filter($layout, function($k) { return $k['id'] === 'product_sharebox'; })); if (empty($product_sharebox)) { return false; } if ( isset($product_sharebox[0]['enabled']) && $product_sharebox[0]['enabled'] ) { return true; } return false; } } 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; } 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; } $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'); $content_class = 'entry-content'; ob_start(); ?>
> 'type-1' ]); } if ($featured_image_location === 'below') { echo blocksy_get_featured_image_output(); } ?> [ 'data-location' => 'top' ], 'links_wrapper_attr' => $share_box_type === 'type-2' ? [ 'data-color' => $share_box2_colors ] : [], 'type' => $share_box_type, 'enable_shortcut' => true ]); ?>
'single', 'template_subtype' => 'content' ]) ) { $content = blc_render_content_block( blc_get_content_block_that_matches([ 'template_type' => 'single', 'template_subtype' => 'content' ]) ); } if ($content) { echo $content; } else { the_content( sprintf( wp_kses( /* translators: 1: span open 2: Name of current post. Only visible to screen readers 3: span closing */ __( 'Continue reading%1$s "%2$s"%3$s', 'blocksy' ), array( 'span' => array( 'class' => array(), ), ) ), '', get_the_title(), '' ) ); } } else { ?>
get_the_ID(), 'post_id' => get_the_ID(), 'size' => 'full', 'tag_name' => 'a', 'ratio' => 'original', 'html_atts' => [ 'href' => wp_get_attachment_url(get_the_ID()) ] ]); ?>
', get_the_title(), '' ) ); } wp_link_pages( [ 'before' => '', ] ); do_action('blocksy:single:content:bottom'); ?> $tax_to_check ]) && ! is_wp_error(blocksy_get_categories_list([ 'taxonomy' => $tax_to_check ])) ) { echo blocksy_html_tag( 'div', ['class' => 'entry-tags'], blocksy_get_categories_list([ 'taxonomy' => $tax_to_check, 'before_each' => '# ', 'has_term_class' => false ]) ); } ?> ['data-location' => 'bottom'], 'links_wrapper_attr' => $share_box_type === 'type-2' ? [ 'data-color' => $share_box2_colors ] : [], 'type' => $share_box_type, 'enable_shortcut' => true ]); ?>