>
';
}
continue;
}
$post_meta_default = null;
if ('post_meta' === $single_component['id']) {
$total_metas = [];
foreach ($archive_order as $nested_single_component) {
if ($nested_single_component['id'] === 'post_meta') {
$total_metas[] = $nested_single_component;
}
}
if (count($total_metas) > 1 && !$had_a_meta) {
$post_meta_default = blocksy_post_meta_defaults([
[
'id' => 'categories',
'enabled' => true,
],
]);
} else {
$post_meta_default = blocksy_post_meta_defaults([
[
'id' => 'author',
'enabled' => true,
],
[
'id' => 'post_date',
'enabled' => true,
],
[
'id' => 'comments',
'enabled' => true,
],
]);
}
$had_a_meta = true;
}
$output = 'post_meta' === $single_component['id'] ? blocksy_post_meta(
blocksy_akg(
'meta_elements',
$single_component,
$post_meta_default
),
[
'meta_type' => blocksy_akg('meta_type', $single_component, 'simple'),
'meta_divider' => blocksy_akg('meta_divider', $single_component, 'slash')
]
) : $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 '
';
}
}
?>