%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/gachan/www/wp-content/themes/medicure/
Upload File :
Create Path :
Current File : /home/gachan/www/wp-content/themes/medicure/search.php

<?php
/**
 * @package WordPress
 * @subpackage Medicure
 * @since Medicure 1.0
 * 
 * Search Page Template
 * Created by CMSMasters
 * 
 */


get_header();


$cmsms_option = cmsms_get_global_options();


$cmsms_layout = $cmsms_option[CMSMS_SHORTNAME . '_search_layout'];

if (!$cmsms_layout) { 
    $cmsms_layout = 'r_sidebar'; 
}


echo '<!--_________________________ Start Content _________________________ -->' . "\n";

if ($cmsms_layout == 'r_sidebar') {
	echo '<section id="content" role="main">' . "\n\t";
} elseif ($cmsms_layout == 'l_sidebar') {
	echo '<section id="content" class="fr" role="main">' . "\n\t";
} else {
	echo '<section id="middle_content" role="main">' . "\n\t";
}
?>
	<div class="entry-summary">
		<section class="blog">
<?php 
if (!have_posts()) : 
	echo '<div class="error_block">' . 
		'<h2>' . __('Nothing found. Try another search?', 'cmsmasters') . '</h2>';
	
	get_search_form();
	
	echo '</div>';
else : 
	while (have_posts()) : the_post();
		if (get_post_type() == 'post') {
			if (get_post_format() != '') {
				get_template_part('framework/postType/blog/page/sidebar/' . get_post_format());
			} else {
				get_template_part('framework/postType/blog/page/sidebar/standard');
			}
		} elseif (get_post_type() == 'service') {
			$cmsms_service_format = get_post_meta(get_the_ID(), 'cmsms_service_format', true);
			
			if (!$cmsms_service_format) { 
				$cmsms_service_format = 'slider'; 
			}
?>
			<article id="post-<?php the_ID(); ?>" <?php post_class('format-' . $cmsms_service_format); ?>>
				<?php 
					cmsms_heading(get_the_ID(), 'service');
					
					if (has_post_thumbnail()) {
						cmsms_thumb(get_the_ID(), 'post-thumbnail', true, false, true, false, true, true, false);
					}
					
					cmsms_exc_cont('service');
					
					cmsms_more(get_the_ID(), 'service');
				?>
			</article>
<?php 
		} elseif (get_post_type() == 'page') { 
?>
			<article id="post-<?php the_ID(); ?>" <?php post_class('format-page'); ?>>
				<?php 
					cmsms_heading(get_the_ID());
					
					if (has_post_thumbnail()) {
						cmsms_thumb(get_the_ID(), 'post-thumbnail', true, false, true, false, true, true, false);
					}
				?>
					<div class="entry-content">
						<h6><?php _e('This page contains your query', 'cmsmasters'); ?></h6>
					</div>
					<footer class="entry-meta">
					<?php cmsms_more(get_the_ID()); ?>
					</footer>
			</article>
<?php 
		}
	endwhile;
	
	pagination();
endif; 
?>
		</section>
	</div>
</section>
<!-- _________________________ Finish Content _________________________ -->

<?php
if ($cmsms_layout == 'r_sidebar') {
	echo "\n" . '<!-- _________________________ Start Sidebar _________________________ -->' . "\n" . 
	'<section id="sidebar" role="complementary">' . "\n";
	
	get_sidebar();
	
	echo "\n" . '</section>' . "\n" . 
	'<!-- _________________________ Finish Sidebar _________________________ -->' . "\n";
} elseif ($cmsms_layout == 'l_sidebar') {
	echo "\n" . '<!-- _________________________ Start Sidebar _________________________ -->' . "\n" . 
	'<section id="sidebar" class="fl" role="complementary">' . "\n";
	
	get_sidebar();
	
	echo "\n" . '</section>' . "\n" . 
	'<!-- _________________________ Finish Sidebar _________________________ -->' . "\n";
}

get_footer();


Zerion Mini Shell 1.0