コード例 #1
0
<?php

/**
 * Portfolio Shortcode Content Style 2
 *
 * @since roen 1.0
 */
global $portfolio_shortcode_content, $portfolio_shortcode_thumbnail_size;
$output = '
	<div class="portfolio-wrap">
        ' . get_the_post_thumbnail(get_the_ID(), $portfolio_shortcode_thumbnail_size) . '
        <div class="post-mask-content">
        	<div class="centered">
				<h4 class="entry-title" itemprop="name"><a href="' . esc_url(get_permalink()) . '" itemprop="url">' . get_the_title() . '</a></h4>
                <ul class="portfolio-custom-fields inline">';
$output .= roen_get_portfolio_custom_fields(get_the_ID(), 'item', true, 3) . '
                </ul>
                
                <a class="more-details" href="' . get_permalink() . '">' . __('Details', 'ROEN') . '</a>
        	</div>
        </div>
    </div>';
$portfolio_shortcode_content = $output;
?>

コード例 #2
0
ファイル: metas.php プロジェクト: VLabsInc/WordPressPlatforms
    <li class="single-portfolio-cats">
        <article>
        	<span class="meta-icon"><i class="fa fa-folder-open-o"></i></span>
        	<div class="type"><?php 
_e('Categories', 'ROEN');
?>
</div>
        	<div class="value"><?php 
echo penguin_get_custom_post_categories_links(penguin_get_custom_post_categories(get_the_ID(), 'portfolio-cats', false), '<span class="seperator">/</span>');
?>
</div>
        </article>
    </li>
    
	<?php 
roen_get_portfolio_custom_fields(get_the_ID());
?>

    
    <?php 
if (penguin_get_post_meta_key('portfolio-link') != "") {
    ?>

     <li class="single-portfolio-link">
     	<article>
        <span class="meta-icon"><i class="fa fa-link"></i></span>
        <div class="type"><?php 
    _e('Link', 'ROEN');
    ?>
</div>
        <div class="value"><a href="<?php 
コード例 #3
0
    ?>

                <h3 class="entry-title" itemprop="name"><a href="<?php 
    echo esc_url(get_permalink());
    ?>
" itemprop="url"><?php 
    the_title();
    ?>
</a></h3>
                <?php 
}
?>

                <ul class="portfolio-custom-fields inline">
                    <?php 
roen_get_portfolio_custom_fields(get_the_ID(), 'item', false, 3);
?>

                </ul>
                
                <a class="more-details" href="<?php 
echo esc_url(get_permalink());
?>
"><?php 
echo _e('Details', 'ROEN');
?>
</a>
        	</div>
        </div>
    </div>
</article>