the_ID();
?>
" <?php 
post_class('post-template post-default');
?>
>


	<?php 
global $st_Options;
// More tag
$more = 0;
// Post format
$st_['format'] = get_post_format($post->ID) && $st_Options['global']['post-formats'][get_post_format($post->ID)]['status'] && function_exists('st_kit') ? get_post_format($post->ID) : 'standard';
if (!empty($st_['title_disabled']) != 1) {
    echo '<h3 class="post-title"><a href="' . get_permalink() . '">' . get_the_title() . '</a></h3>';
}
include locate_template('/includes/posts/formats/' . $st_['format'] . '.php');
// Content
echo '<div id="content-data" class="post-format-' . $st_['format'] . '-content">';
the_content();
echo '</div><div class="clear"><!-- --></div>';
// Pagination
wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'strictthemes'), 'after' => '</div>'));
// Meta
st_post_meta();
?>

	<div class="clear"><!-- --></div>

</div><!-- .post-template -->
    echo '</div>' . "\n";
} else {
    $st_['postcount']++;
    $st_['priority'] = $st_['priority'] == 'odd' ? 'even' : 'odd';
    // Post's class
    $st_['class'] = '';
    if ($st_['postcount'] == 1) {
        $st_['class'] = 'first';
    }
    if ($st_['postcount'] == 4) {
        $st_['class'] = 'last';
        $st_['postcount'] = 0;
    }
    // Feat image
    if (has_post_thumbnail()) {
        $st_['id'] = get_post_thumbnail_id($post->ID);
        $st_['thumb'] = wp_get_attachment_image_src($st_['id'], 'project-thumb');
        $st_['thumb'] = $st_['thumb'][0];
    } else {
        $st_['thumb'] = get_template_directory_uri() . '/assets/images/placeholder.png';
    }
    // Compose post
    echo '<div class="posts-featured-c-wrapper c-' . $st_['priority'] . ' ' . $st_['class'] . '">';
    // Compose thumb
    echo '<a href="' . get_permalink() . '" class="post-thumb" ' . (function_exists('st_get_2x') ? st_get_2x($post->ID, 'project-thumb', 'attr') : '') . ' style="background-image: url(' . $st_['thumb'] . ')" data-format="' . $st_['format'] . '">&nbsp;</a>';
    // Other
    echo '<div class="posts-featured-details-wrapper"><div>' . '<h3><a href="' . get_permalink() . '">' . get_the_title() . '</a></h3>';
    st_post_meta(false, false, false, 'number', false, true, __('More', 'strictthemes'));
    echo '</div></div>';
    echo '</div>' . "\n";
}
Beispiel #3
0
}
/*
	This template uses for some purposes only e.g. for search page.
	It only comes with a title and excerpt.
	No featured images.
*/
?>
<div id="post-<?php 
the_ID();
?>
" <?php 
post_class('post-template post-t8');
?>
>

	<h5><a href="<?php 
the_permalink();
?>
"><?php 
the_title();
?>
</a></h5>

	<?php 
the_excerpt();
st_post_meta(true, true, false, false, false, false, true);
?>

	<div class="clear"><!-- --></div>

</div><!-- .post-template -->
Beispiel #4
0
                ?>
</h5>
																	
																	<?php 
                echo $st_['desc'];
                ?>
						
																</div><?php 
            }
            /*--- Post short info -----------------------------*/
            ?>
	
															<div class="post-short-info">
	
																<?php 
            st_post_meta(true, true, true, true, true, true);
            ?>
	
															</div><?php 
        }
        /*-------------------------------------------
        			2.8 - Post sidebar
        		-------------------------------------------*/
        echo '<div><!-- --></div>';
        echo '<div id="stickyDiv">';
        if (function_exists('dynamic_sidebar') && dynamic_sidebar('Post Sidebar')) {
        }
        echo '</div>';
        ?>
								
												</div><!-- .sidebar-post -->