2020-12-29 04:33:20 +00:00
|
|
|
<?php
|
2021-01-03 23:47:07 +00:00
|
|
|
$prefix = blocksy_manager()->screen->get_prefix();
|
2020-12-29 04:33:20 +00:00
|
|
|
?>
|
|
|
|
|
|
|
|
<section class="tainacan-item-section tainacan-item-section--metadata">
|
2021-04-14 17:40:23 +00:00
|
|
|
<?php if ( get_theme_mod($prefix . '_display_section_labels', 'yes') == 'yes' && get_theme_mod($prefix . '_section_metadata_label', __( 'Metadata', 'tainacan-blocksy' )) != '' ) : ?>
|
2021-01-03 21:17:51 +00:00
|
|
|
<h2 class="tainacan-single-item-section" id="tainacan-item-metadata-label">
|
2021-04-14 17:40:23 +00:00
|
|
|
<?php echo esc_html( get_theme_mod($prefix . '_section_metadata_label', __( 'Metadata', 'tainacan-blocksy' ) ) ); ?>
|
2020-12-29 04:33:20 +00:00
|
|
|
</h2>
|
|
|
|
<?php endif; ?>
|
2021-01-03 23:47:07 +00:00
|
|
|
<div class="tainacan-item-section__metadata <?php echo get_theme_mod($prefix . '_metadata_list_structure_type', 'metadata-type-1') ?>">
|
2020-12-29 04:33:20 +00:00
|
|
|
<?php if (has_post_thumbnail() && (get_theme_mod($prefix . '_show_thumbnail', 'no') === 'yes') ): ?>
|
|
|
|
<div class="tainacan-item-section__metadata-thumbnail">
|
2021-04-14 17:40:23 +00:00
|
|
|
<h3 class="tainacan-metadata-label"><?php _e( 'Thumbnail', 'tainacan-blocksy' ); ?></h3>
|
2021-01-03 21:17:51 +00:00
|
|
|
<p class="tainacan-metadata-value"><?php the_post_thumbnail('tainacan-medium-full'); ?></p>
|
2020-12-29 04:33:20 +00:00
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
2021-04-14 17:40:23 +00:00
|
|
|
<?php do_action( 'tainacan-blocksy-single-item-metadata-begin' ); ?>
|
2020-12-29 04:33:20 +00:00
|
|
|
<?php
|
|
|
|
$args = array(
|
2021-02-23 02:09:46 +00:00
|
|
|
'display_slug_as_class' => true,
|
2021-01-03 23:47:07 +00:00
|
|
|
'before_title' => '<h3 class="tainacan-metadata-label">',
|
2020-12-29 04:33:20 +00:00
|
|
|
'after_title' => '</h3>',
|
2021-01-03 21:17:51 +00:00
|
|
|
'before_value' => '<p class="tainacan-metadata-value">',
|
2021-01-03 23:47:07 +00:00
|
|
|
'after_value' => '</p>',
|
2020-12-29 04:33:20 +00:00
|
|
|
'exclude_title' => (get_theme_mod($prefix . '_show_title_metadata', 'yes') === 'no')
|
|
|
|
);
|
|
|
|
tainacan_the_metadata( $args );
|
|
|
|
?>
|
2021-04-14 17:40:23 +00:00
|
|
|
<?php do_action( 'tainacan-blocksy-single-item-metadata-end' ); ?>
|
2021-01-03 21:17:51 +00:00
|
|
|
</div>
|
2020-12-29 04:33:20 +00:00
|
|
|
</section>
|