コード例 #1
0
ファイル: panel-float.php プロジェクト: Teplitsa/giger
		<div class="product-meta-panel pictured-card-item">
		
			<div class="pr-avatar round-image pci-img"><?php 
    echo get_the_post_thumbnail(get_the_ID(), 'thumbnail');
    ?>
</div>
			
			<div class="pr-content pci-content">
				<h5 class="pr-title mdl-typography--body-1">
					<?php 
    the_title();
    ?>
				</h5>
				<p class="pr-price mdl-typography--caption">
					<?php 
    echo tst_get_post_excerpt($post, 10, true);
    ?>
				</p>
			</div>
		</div>
	</div>
<?php 
} else {
    ?>
	
	<div class="mdl-cell mdl-cell--8-col mdl-cell--hide-phone mdl-cell--hide-tablet">
		<div class="mdl-grid mdl-grid--no-spacing">
			<div class="mdl-cell mdl-cell--6-col">
			<?php 
    $author = tst_get_post_author($post);
    if (!empty($author)) {
コード例 #2
0
ファイル: cards.php プロジェクト: Teplitsa/giger
/** Compact person item **/
function tst_compact_person_item($cpost)
{
    if (is_int($cpost)) {
        $cpost = get_post($cpost);
    }
    $e = tst_get_post_excerpt($cpost, 30, true);
    ?>
	<div class="tpl-related-project"><a href="<?php 
    echo get_permalink($cpost);
    ?>
">
	
	<div class="mdl-grid mdl-grid--no-spacing">
		<div class="mdl-cell mdl-cell--9-col mdl-cell--5-col-tablet mdl-cell--4-col-phone">
			<h4 class="entry-title"><?php 
    echo get_the_title($cpost);
    ?>
</h4>
				
			<!-- summary -->
			<p class="entry-summary">
				<?php 
    echo apply_filters('tst_the_tite', $e);
    ?>
			</p>
		</div>
		
		<div class="mdl-cell mdl-cell--3-col mdl-cell--3-col-tablet mdl-cell--hide-phone">
		<?php 
    $thumb = get_the_post_thumbnail($cpost->ID, 'thumbnail-landscape', array('alt' => __('Thumbnail', 'tst')));
    if (empty($thumb)) {
        $thumb = tst_get_default_post_thumbnail('thumbnail-landscape');
    }
    echo $thumb;
    ?>
		</div>
	</div>	
	
	</a></div>
<?php 
}