Example #1
0
$cmsms_project_video_link = get_post_meta(get_the_ID(), 'cmsms_project_video_link', true);
$cmsms_project_video_links = get_post_meta(get_the_ID(), 'cmsms_project_video_links', true);
?>

<!--_________________________ Start Video Project _________________________ -->
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class('format-video');
?>
>
	<div class="project_content">
		<?php 
if ($cmsms_option[CMSMS_SHORTNAME . '_portfolio_project_title']) {
    cmsms_heading_nolink(get_the_ID(), true, 'h1');
}
?>
		<div class="resize">
			<?php 
if ($cmsms_project_video_type == 'selfhosted' && !empty($cmsms_project_video_links) && sizeof($cmsms_project_video_links) > 0) {
    foreach ($cmsms_project_video_links as $cmsms_project_video_link_url) {
        $video_link[$cmsms_project_video_link_url[0]] = $cmsms_project_video_link_url[1];
    }
    if (has_post_thumbnail()) {
        $poster = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'project-thumb-full');
        $video_link['poster'] = $poster[0];
    }
    echo '<div class="cmsms_blog_media">' . cmsmastersSingleVideoPlayer($video_link) . '</div>';
} elseif ($cmsms_project_video_type == 'embedded' && $cmsms_project_video_link != '') {
    echo '<div class="cmsms_blog_media">' . '<div class="resizable_block">' . get_video_iframe($cmsms_project_video_link) . '</div>' . '</div>';
Example #2
0
<!--_________________________ 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()) {
    echo '<h3 class="entry-title">' . '<a href="' . $cmsms_post_link_address . '" target="_blank">' . $cmsms_post_link_text . '</a>' . '</h3>' . "\n\t" . '<h6>- ' . $cmsms_post_link_address . ' -</h6>' . "\n";
} else {
    echo '<h3 class="entry-title">' . $cmsms_post_link_text . '</h3>';
}
    $project_thumb = 'full-thumb';
}
$colnumb = 0;
?>

<!--_________________________ Start Album Project _________________________ -->
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class(array('format-album', $cmsms_project_columns));
?>
>
	<div class="project_content">
		<?php 
cmsms_heading_nolink(get_the_ID(), 'project', true, 'h1');
if (sizeof($cmsms_project_images) > 0 && $cmsms_project_images[0] != '') {
    echo '<div class="resize">';
    foreach ($cmsms_project_images as $cmsms_project_image) {
        $link_href = wp_get_attachment_image_src($cmsms_project_image, 'full');
        if ($cmsms_project_columns == 'cmsms_one') {
            if ($colnumb == 1) {
                echo '</div><div class="resize">';
                $colnumb = 0;
            }
        } else {
            if ($cmsms_project_columns == 'cmsms_two') {
                if ($colnumb == 2) {
                    echo '</div><div class="resize">';
                    $colnumb = 0;
                }