本文整理汇总了PHP中x_featured_image函数的典型用法代码示例。如果您正苦于以下问题:PHP x_featured_image函数的具体用法?PHP x_featured_image怎么用?PHP x_featured_image使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了x_featured_image函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: vint_featured_portfolio
function vint_featured_portfolio($cropped = '')
{
$entry_id = get_the_ID();
$media = get_post_meta($entry_id, '_x_portfolio_media', true);
$index_media = get_post_meta($entry_id, '_x_portfolio_index_media', true);
if (is_singular()) {
switch ($media) {
case 'Image':
x_featured_image();
break;
case 'Gallery':
x_featured_gallery();
break;
case 'Video':
x_featured_video('portfolio');
break;
}
} else {
if ($index_media == 'Media') {
switch ($media) {
case 'Image':
$cropped == 'cropped' ? vint_featured_image('cropped') : vint_featured_image();
break;
case 'Gallery':
x_featured_gallery();
break;
case 'Video':
x_featured_video('portfolio');
break;
}
} else {
$cropped == 'cropped' ? vint_featured_image('cropped') : vint_featured_image();
}
}
}
示例2: get_post_meta
// -----------------------------------------------------------------------------
// Standard page output for Integrity.
// =============================================================================
$disable_page_title = get_post_meta(get_the_ID(), '_x_entry_disable_page_title', true);
?>
<article id="post-<?php
the_ID();
?>
" <?php
post_class();
?>
>
<div class="entry-featured">
<?php
x_featured_image();
?>
</div>
<div class="entry-wrap">
<?php
if (is_singular()) {
?>
<?php
if ($disable_page_title != 'on') {
?>
<header class="entry-header">
<h1 class="entry-title"><?php
the_title();
?>
</h1>
</header>