Example #1
0
    }
}
echo '<div class="entry-content">' . "\n";
the_content();
wp_link_pages(array('before' => '<div class="subpage_nav" role="navigation">' . '<strong>' . __('Pages', 'cmsmasters') . ':</strong>', 'after' => '</div>' . "\n", 'link_before' => ' [ ', 'link_after' => ' ] '));
cmsms_content_composer(get_the_ID());
echo "\t\t" . '</div>' . "\n";
?>
		</div>
	</div>
	<footer class="entry-meta">
		<div class="cmsms_meta_inner">
			<?php 
echo '<h5>' . __('Project details', 'cmsmasters') . '</h5>' . "\n\t\t";
echo '<ul class="cmsms_details">' . "\n\t\t\t";
cmsms_pj_date('post');
cmsms_pj_cat(get_the_ID(), 'pj-sort-categs', 'post');
cmsms_pj_author('post');
cmsms_pj_comments('post');
cmsms_pj_tag(get_the_ID(), 'pj-tags', 'post');
cmsms_link(get_the_ID(), 'project');
foreach ($cmsms_project_features as $cmsms_project_feature) {
    if ($cmsms_project_feature[0] != '' && $cmsms_project_feature[1] != '') {
        $cmsms_project_feature_lists = explode("\n", $cmsms_project_feature[1]);
        echo '<li>' . $cmsms_project_feature[0] . ':';
        foreach ($cmsms_project_feature_lists as $cmsms_project_feature_list) {
            echo '<span class="cmsms_details_links">' . trim($cmsms_project_feature_list) . '</span>';
        }
        echo '</li>' . "\n\t\t\t";
    }
}
    echo '<div class="media_box">' . '<figure class="preloader">' . get_the_post_thumbnail(get_the_ID(), $project_thumb, array('class' => 'fullwidth', 'alt' => cmsms_title(get_the_ID(), false), 'title' => cmsms_title(get_the_ID(), false))) . '</figure>' . '</div>';
    $cmsms_imagelink = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'full');
    echo '<div class="portfolio_rollover">' . '<a href="' . $cmsms_imagelink[0] . '" data-group="img_' . get_the_ID() . '" title="' . cmsms_title(get_the_ID(), false) . '" class="cmsms_imagelink jackbox"></a>' . '<a href="' . get_permalink() . '" title="' . cmsms_title(get_the_ID(), false) . '" class="cmsms_link"></a>' . '</div>';
} else {
    if (sizeof($cmsms_project_images) > 0) {
        echo '<div class="media_box">' . '<figure class="preloader">' . wp_get_attachment_image($cmsms_project_images[0], $project_thumb, false, array('class' => 'fullwidth', 'alt' => cmsms_title(get_the_ID(), false), 'title' => cmsms_title(get_the_ID(), false))) . '</figure>' . '</div>';
        $cmsms_imagelink = wp_get_attachment_image_src($cmsms_project_images[0], 'full');
        echo '<div class="portfolio_rollover">' . '<a href="' . $cmsms_imagelink[0] . '" data-group="img_' . get_the_ID() . '" title="' . cmsms_title(get_the_ID(), false) . '" class="cmsms_imagelink jackbox"></a>' . '<a href="' . get_permalink() . '" title="' . cmsms_title(get_the_ID(), false) . '" class="cmsms_link"></a>' . '</div>';
    }
}
if (sizeof($cmsms_project_images) > 1) {
    unset($cmsms_project_images[0]);
    echo '<div class="dn">';
    foreach ($cmsms_project_images as $cmsms_project_image) {
        $link_href = wp_get_attachment_image_src($cmsms_project_image, 'full');
        echo '<figure>' . '<a href="' . $link_href[0] . '" data-group="img_' . get_the_ID() . '" title="' . cmsms_title(get_the_ID(), false) . '" class="preloader highImg jackbox">' . wp_get_attachment_image($cmsms_project_image, $project_thumb, false, array('class' => 'fullwidth', 'alt' => cmsms_title(get_the_ID(), false), 'title' => cmsms_title(get_the_ID(), false))) . '</a>' . '</figure>';
    }
    echo '</div>';
}
?>
</div>
<?php 
cmsms_heading(get_the_ID(), 'project', true, 'h4');
cmsms_pj_date('page');
cmsms_meta('project', 'page', get_the_ID(), 'pj-sort-categs', 'fullwidth');
cmsms_exc_cont('project');
?>
</article>
<!--_________________________ Finish Slider Project _________________________ -->