$cmsms_post_video_type = get_post_meta(get_the_ID(), 'cmsms_post_video_type', true);
$cmsms_post_video_link = get_post_meta(get_the_ID(), 'cmsms_post_video_link', true);
$cmsms_post_video_links = get_post_meta(get_the_ID(), 'cmsms_post_video_links', true);
?>

<!--_________________________ Start Video Article _________________________ -->
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
	<div class="cmsms_info">
		<?php 
cmsms_post_date();
if (!post_password_required()) {
    cmsms_comments();
}
?>
	</div>
	<div class="ovh">
		<header class="entry-header">
			<?php 
if (!post_password_required()) {
    if ($cmsms_post_video_type == 'selfhosted' && !empty($cmsms_post_video_links) && sizeof($cmsms_post_video_links) > 0) {
        foreach ($cmsms_post_video_links as $cmsms_post_video_link_url) {
            $video_link[$cmsms_post_video_link_url[0]] = $cmsms_post_video_link_url[1];
        }
        if (has_post_thumbnail()) {
            $poster = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'post-thumbnail');
>
<?php 
    $cmsms_testimonial_author = get_post_meta(get_the_ID(), 'cmsms_testimonial_author', true);
    $cmsms_testimonial_author_link = get_post_meta(get_the_ID(), 'cmsms_testimonial_author_link', true);
    $cmsms_testimonial_company = get_post_meta(get_the_ID(), 'cmsms_testimonial_company', true);
    echo '<div class="cl"></div>' . "\n" . '<blockquote>';
    the_content();
    echo '</blockquote>' . "\n" . '<div class="cmsms_author_wrap">';
    if ($cmsms_option[CMSMS_SHORTNAME . '_testimonial_post_author_avatar'] && has_post_thumbnail() != '') {
        echo '<figure class="tl_author_img">' . get_the_post_thumbnail(get_the_ID(), 'thumbnail', array('alt' => cmsms_title(get_the_ID(), false), 'title' => cmsms_title(get_the_ID(), false), 'style' => 'width:70px; height:70px;'));
        echo '</figure>' . "\n";
    }
    cmsms_tl_descr(get_the_ID(), 'post');
    echo '</div><div class="divider"></div>';
    echo '<footer class="entry-meta">';
    cmsms_post_date('testimonial', 'post');
    if (!post_password_required()) {
        echo cmsms_comments('post', 'testimonial');
    }
    cmsms_tl_cat(get_the_ID(), 'tl-categs', 'post');
    echo '</footer>';
    ?>
</article>
<?php 
    if ($cmsms_option[CMSMS_SHORTNAME . '_testimonial_post_nav_box']) {
        echo '<aside class="project_navi">' . "\n\t";
        next_post_link('%link');
        previous_post_link('%link');
        echo '</aside>' . "\n";
    }
    if ($cmsms_option[CMSMS_SHORTNAME . '_testimonial_post_share_box']) {
if ($cmsms_post_link_address == '') {
    $cmsms_post_link_address = '#';
}
?>

<!--_________________________ Start Link Article _________________________ -->
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
	<header class="entry-header">
		<?php 
cmsms_post_date('post', 'post');
?>
		<div class="ovh">
			<?php 
cmsms_heading_nolink(get_the_ID(), 'post', true) . "\n";
cmsms_meta('post', 'post');
if (!post_password_required()) {
    cmsms_comments('post');
}
?>
		</div>
	</header>
	<div class="cmsms_wrapper_content">
		<span class="cmsms_post_format_img"></span>
		<?php 
if (!post_password_required()) {
        ?>

<!--_________________________ Start Aside Article _________________________ -->
<article id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class();
        ?>
>
<?php 
        cmsms_tl_cat(get_the_ID(), 'tl-categs', 'page');
        if (!post_password_required()) {
            echo cmsms_comments('page', 'testimonial');
        }
        cmsms_post_date('testimonial', 'page');
        echo '<div class="cl"></div>' . "\n" . '<div class="tl-content_wrap">' . "\n\t" . '<div class="tl-content">' . "\n\t\t" . '<blockquote>' . theme_excerpt(60, false) . '</blockquote>' . "\n\t" . '</div>' . "\n" . '</div>' . "\n";
        if ($cmsms_option[CMSMS_SHORTNAME . '_testimonial_page_author_avatar'] && has_post_thumbnail() != '') {
            echo '<figure class="tl_author_img">' . get_the_post_thumbnail(get_the_ID(), 'thumbnail', array('alt' => cmsms_title(get_the_ID(), false), 'title' => cmsms_title(get_the_ID(), false), 'style' => 'width:50px; height:50px;'));
            echo '</figure>' . "\n";
        }
        cmsms_more(get_the_ID(), 'testimonial');
        cmsms_tl_descr(get_the_ID(), 'page');
        ?>
</article>

<!--_________________________ Finish Testimonial Article _________________________ -->
<?php 
    }
    echo '</section>' . "\n";
    pagination();