%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/gachan/www/wp-content/themes/medicure/framework/postType/blog/page/sidebar/
Upload File :
Create Path :
Current File : /home/gachan/www/wp-content/themes/medicure/framework/postType/blog/page/sidebar/gallery.php

<?php
/**
 * @package WordPress
 * @subpackage Medicure
 * @since Medicure 1.0
 * 
 * Blog Page with Sidebar Gallery Post Format Template
 * Created by CMSMasters
 * 
 */


$cmsms_post_featured_image_show = get_post_meta(get_the_ID(), 'cmsms_post_featured_image_show', true);

$cmsms_post_images = explode(',', str_replace(' ', '', str_replace('img_', '', get_post_meta(get_the_ID(), 'cmsms_post_images', true))));

?>

<!--_________________________ Start Gallery Article _________________________ -->
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<div class="cmsms_info">
		<span class="cmsms_post_format_img"></span>
		<div class="cmsms_like"><?php cmsmsLike(); ?></div>
		<?php cmsms_post_date('post', 'page'); ?>
	</div>
	<div class="ovh">
		<header class="entry-header">
		<?php 
			if (!post_password_required()) {
				if ($cmsms_post_featured_image_show == 'true' && has_post_thumbnail()) {
					cmsms_thumb(get_the_ID(), 'post-thumbnail', false, 'img_' . get_the_ID(), true, true, true, true, false);
				} elseif (sizeof($cmsms_post_images) > 1) {
		?>
					<div class="shortcode_slideshow" id="slideshow_<?php the_ID(); ?>">
						<div class="shortcode_slideshow_body">
							<script type="text/javascript">
								jQuery(document).ready(function () { 
									jQuery('#slideshow_<?php the_ID(); ?> .shortcode_slideshow_slides').cmsmsResponsiveContentSlider( { 
										sliderWidth : '100%', 
										sliderHeight : 'auto', 
										animationSpeed : 500, 
										animationEffect : 'slide', 
										animationEasing : 'easeInOutExpo', 
										pauseTime : 0, 
										activeSlide : 1, 
										touchControls : true, 
										pauseOnHover : false, 
										arrowNavigation : true, 
										slidesNavigation : false 
									} );
								} );
							</script>
							<div class="shortcode_slideshow_container">
								<ul class="shortcode_slideshow_slides responsiveContentSlider">
								<?php 
									foreach ($cmsms_post_images as $cmsms_post_image) {
										echo "\t\t\t\t\t\t" . 
										'<li>' . "\n\t\t\t\t\t\t\t" . 
											'<figure>' . "\n\t\t\t\t\t\t\t\t" . 
												wp_get_attachment_image($cmsms_post_image, 'slider-thumb', false, array( 
													'class' => 'fullwidth', 
													'alt' => cmsms_title(get_the_ID(), false), 
													'title' => cmsms_title(get_the_ID(), false) 
												)) . "\r\t\t\t\t\t\t\t" . 
											'</figure>' . "\r\t\t\t\t\t\t" . 
										'</li>' . "\r";
									}
								?>
								</ul>
							</div>
						</div>
					</div>
				<?php 
				} else if (sizeof($cmsms_post_images) == 1 && $cmsms_post_images[0] != '') {
					cmsms_thumb(get_the_ID(), 'post-thumbnail', false, 'img_' . get_the_ID(), true, true, true, true, $cmsms_post_images[0]);
				} else if (sizeof($cmsms_post_images) < 1 && has_post_thumbnail()) {
					cmsms_thumb(get_the_ID(), 'post-thumbnail', false, 'img_' . get_the_ID(), true, true, true, true, false);
				}
			}
			
			cmsms_heading(get_the_ID(), 'post', true, 'h2');
		?>
			<div class="cmsms_post_info">
			<?php 
				cmsms_meta('post', 'page');
				
				if (!post_password_required()) {
					cmsms_comments('page', 'post');
				}
			?>
			</div>
		</header>
		<?php
			cmsms_exc_cont('post');
			
			cmsms_more(get_the_ID(), 'post');
		?>
		<div class="cl"></div>
		<div class="divider"></div>
		<footer class="entry-meta">
			<?php cmsms_tags(get_the_ID(), 'post', 'page'); ?>
		</footer>
	</div>
</article>
<!--_________________________ Finish Gallery Article _________________________ -->


Zerion Mini Shell 1.0