>
';
}
continue;
}
$output = 'post_meta' === $single_component['id'] ? blocksy_post_meta(
[
'categories' => blocksy_akg( 'meta/categories', $single_component, false ),
'tags' => blocksy_akg( 'meta/tags', $single_component, false ),
'author' => blocksy_akg( 'meta/author', $single_component, false ),
'author_avatar' => blocksy_akg( 'has_author_avatar', $single_component, 'no' ) === 'yes',
'post_date' => blocksy_akg( 'meta/date', $single_component, false ),
'updated_date' => blocksy_akg( 'meta/updated', $single_component, false ),
'comments' => blocksy_akg( 'meta/comments', $single_component, false ),
],
[
'avatar_size' => blocksy_default_akg( 'avatar_size', $single_component, 30 ) . 'px',
'meta_type' => blocksy_akg('meta_type', $single_component, 'simple'),
'date_format' => blocksy_akg('date_format', $single_component, 'M j, Y'),
'date_format_source' => blocksy_akg('date_format_source', $single_component, 'custom'),
'labels' => blocksy_akg('has_meta_label', $single_component, 'no') === 'yes',
'category_style' => blocksy_akg('category_style', $single_component, 'simple')
]
) : $outputs[ $single_component['id'] ];
if ( ! isset( $single_component['__id'] ) ) {
$single_component['__id'] = '';
}
if (
$last_enabled_component === $single_component['id'] . $single_component['__id'] && (
strpos( $last_enabled_component, 'post_meta' ) !== false
||
strpos( $last_enabled_component, 'featured_image' ) !== false
)
) {
echo '';
}
/**
* Note to code reviewers: This line doesn't need to be escaped.
* Variabile $output used here escapes the value properly.
*/
echo $output;
if (
$blog_post_structure === 'simple'
&&
$single_component['id'] === 'featured_image'
) {
echo '';
}
if (
$blog_post_structure === 'simple'
&&
$last_enabled_component === $single_component[
'id'
] . $single_component['__id']
) {
echo '
';
}
}
$id = get_the_ID();
$excerpt = blocksy_entry_excerpt('original');
if (is_customize_preview()) {
blocksy_add_customizer_preview_cache(
blocksy_html_tag(
'div',
[ 'data-id' => 'post-' . $id ],
array_reduce(
$archive_order,
function ( $carry, $single_component ) use ( $outputs, $excerpt, $read_more_arrow, $read_more_settings) {
$output = null;
if ( isset( $outputs[ $single_component['id'] ] ) ) {
$output = $outputs[ $single_component['id'] ];
}
if ( 'post_meta' === $single_component['id'] ) {
$output = blocksy_post_meta(
[
'categories' => true,
'author' => true,
'author_avatar' => true,
'post_date' => true,
'updated_date' => true,
'comments' => true,
'tags' => true
],
[
'labels' => true,
'meta_type' => 'simple',
'force_icons' => true
]
);
}
if ('excerpt' === $single_component['id']) {
$output = $excerpt;
}
if ('read_more' === $single_component['id']) {
$output = blocksy_html_tag(
'a',
[
'class' => 'entry-button',
'data-type' => blocksy_default_akg( 'button_type', $read_more_settings, 'background' ),
'data-alignment' => blocksy_default_akg( 'read_more_alignment', $read_more_settings, 'left' ),
'href' => esc_url( get_permalink() )
],
(
blocksy_default_akg(
'read_more_text',
$read_more_settings,
__('Read More', 'blocksy')
) . $read_more_arrow
)
);
}
return $carry . blocksy_html_tag(
'div',
[
'data-component' => $single_component['id'],
],
$output
);
},
''
)
)
);
}
?>