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; } 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( blocksy_safe_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'); ?> true, 'tablet' => true, 'mobile' => true, ] )); $module_title_output = ''; $module_title = blocksy_get_theme_mod($prefix . '_post_tags_title', __('Tags', 'blocksy')); $module_wrapper = blocksy_get_theme_mod($prefix . '_post_tags_title_wrapper', 'span'); if (!empty($module_title) || is_customize_preview()) { $module_title_output = blocksy_html_tag( $module_wrapper, [ 'class' => 'ct-module-title' ], $module_title ); } $deep_link_args = blocksy_generic_get_deep_link( [ 'prefix' => $prefix, 'suffix' => $prefix . '_has_post_tags', 'shortcut' => 'border', 'return' => 'array' ] ); $tax_to_check = blocksy_maybe_get_matching_taxonomy( get_post_type(), false ); /** * Note to code reviewers: This line doesn't need to be escaped. * Function blocksy_post_meta() used here escapes the value properly. */ if ( $tax_to_check && blocksy_get_categories_list([ 'taxonomy' => $tax_to_check ]) && ! is_wp_error(blocksy_get_categories_list([ 'taxonomy' => $tax_to_check ])) ) { echo blocksy_html_tag( 'div', array_merge( [ 'class' => $class, ], $deep_link_args ), $module_title_output . blocksy_html_tag( 'div', [ 'class' => 'entry-tags-items' ], 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 ]); ?>