示例#1
0
文件: single.php 项目: uoyknaht/kc
*/
?>




</div>

<div class="entry-content">
	<?php 
global $kcsite_post_metabox;
$kcsite_post_metabox->the_meta();
if (has_post_thumbnail()) {
    if (!$kcsite_post_metabox->get_the_value('hide_feat_img_insingle') && get_post_type() != 'tribe_events') {
        $size = !$kcsite_post_metabox->get_the_value('show_not_cropped') ? 'medium-cropped' : 'medium';
        $post_thumbnail = kcsite_get_post_thumbnail($size, 'single-post-view-post-thumbnail');
        if ($post_thumbnail) {
            ?>
				<!-- <p><a href="<?php 
            the_permalink();
            ?>
"><?php 
            echo $post_thumbnail;
            ?>
</a></p> -->
				<p><?php 
            echo $post_thumbnail;
            ?>
</p>
			<?php 
        }
示例#2
0
if ($the_query->post_count > 0) {
    ?>
					

<div class="feat-news clearfix">
<?php 
    $i = 0;
    while ($the_query->have_posts()) {
        $the_query->the_post();
        $more = 0;
        $i++;
        if ($i < 3) {
            $additionalClass = $i == 1 ? ' first' : '';
            global $kcsite_post_metabox;
            $kcsite_post_metabox->the_meta();
            $post_thumbnail = kcsite_get_post_thumbnail('feat-thumbnail');
            //$articleClass = $post_thumbnail ? ' has-post-thumbnail' : '';
            $articleClass = !$kcsite_post_metabox->get_the_value('hide_feat_img') && get_post_type() != 'tribe_events' ? ' has-post-thumbnail' : '';
            ?>

		<article id="post-<?php 
            the_ID();
            ?>
" <?php 
            post_class('in-post-list clearfix' . $articleClass . $additionalClass);
            ?>
>
		
			<h2 class="entry-title"><a href="<?php 
            the_permalink();
            ?>
示例#3
0
文件: home.php 项目: uoyknaht/kc
$cat = $lang == 'lt' ? 'antra-eile' : 'antra-eile-' . $lang;
$args = array('post_type' => 'home-slideshow', 'home-slideshow-category' => $cat, 'orderby' => 'menu_order', 'order' => 'ASC', 'lang' => $lang);
$slideshowPosts = get_posts($args);
?>

	<div class="cycle-second-row-wrap">
		<ul class="cycle-second-row">
		<?php 
foreach ($slideshowPosts as $post) {
    setup_postdata($post);
    ?>
		
			<li class="hs-cycle-item">

				<?php 
    $post_thumbnail = kcsite_get_post_thumbnail('home-slideshow', false, false, true);
    if ($post_thumbnail) {
        echo $post_thumbnail;
    }
    ?>
		
				<div class="hs-cycle-item-overlay">
					<div class="hs-cycle-item-overlay-bg"></div>
					<div class="hs-cycle-item-overlay-inner">
						<h3 class="hs-cycle-item-title"><?php 
    the_title();
    ?>
</h3>
						<div class="hs-cycle-item-content"><?php 
    the_content();
    ?>
示例#4
0
文件: content.php 项目: uoyknaht/kc
<?php

/**
 * The default template for displaying content (categories, tags blog page, search, news blog)
 *
 */
global $kcsite_post_metabox;
$kcsite_post_metabox->the_meta();
$post_thumbnail = kcsite_get_post_thumbnail('thumbnail');
// $articleClass = ($post_thumbnail && !$kcsite_post_metabox->get_the_value('hide_feat_img') && get_post_type() != 'tribe_events' ) ? ' has-post-thumbnail' : '';
$articleClass = !$kcsite_post_metabox->get_the_value('hide_feat_img') && get_post_type() != 'tribe_events' ? ' has-post-thumbnail' : '';
if (get_post_type() == 'tribe_events') {
    $articleClass = '';
}
if (get_post_type() == 'interesting-fact') {
    $articleClass = '';
}
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class('in-post-list clearfix' . $articleClass);
?>
>
	<?php 
if (!$kcsite_post_metabox->get_the_value('hide_feat_img') && get_post_type() != 'tribe_events') {
    if (has_post_thumbnail()) {
        if ($post_thumbnail) {
            ?>