<?php
/*
______ _____   _______ _______ _______ _______ ______ _______
|   __ \     |_|    ___|_     _|   |   |       |   __ \   _   |
|    __/       |    ___| |   | |       |   -   |      <       |
|___|  |_______|_______| |___| |___|___|_______|___|__|___|___|

P L E T H O R A T H E M E S . C O M                    (c) 2022

Single View Template Parts / Media, according to post format ( image, audio or video )
 */

$options = get_query_var( 'options' );
if ( is_array( $options ) ) { extract($options); }
$media_config = Plethora_Theme::get_post_media(array(
    'post_id'      => get_the_ID(),
    'type'         => $post_format,
    'stretch'      => true,
    'link_to_post' => false,
    'return'       => 'config',
));

/**
 * You can override this template on your child theme and use the
 * $media_config array variable values to compose your own markup:
 *
 *      'post_id'
 *      'post_link'
 *      'post_title'
 *      'media_type'
 *      'media_container'  - media container tag attributes
 *          'tag'
 *          'class'
 *          'style'
 *      'media'            - media items
 *          'id'
 *          'url'
 *          'title'
 *          'alt'
 *          'html'
 *      'html',            - all media items html combined
 */
foreach ($media_config['media'] as $media) {

    echo $media['html'];

}
