本文整理汇总了PHP中ale_part函数的典型用法代码示例。如果您正苦于以下问题:PHP ale_part函数的具体用法?PHP ale_part怎么用?PHP ale_part使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ale_part函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
} elseif (has_post_format('image')) {
include 'templates/blog_image.php';
} elseif (has_post_format('quote')) {
include 'templates/blog_quote.php';
} elseif (has_post_format('video')) {
include 'templates/blog_video.php';
} else {
include 'templates/blog_standart.php';
}
?>
</div>
<?php
}
} else {
?>
<?php
ale_part('notfound');
?>
<?php
}
?>
</div>
<?php
ale_part('archives');
?>
</div>
</div>
<div class="cf"></div>
</section>
<?php
get_footer();
示例2: wp_get_post_terms
<?php
$current_category = wp_get_post_terms($post->ID, 'gallery-category', array("fields" => "all"));
foreach ($current_category as $curcat) {
echo $curcat->name . ' ';
}
?>
</span>
</a>
</figcaption>
</figure>
</div>
<?php
}
} else {
?>
<?php
ale_part('notfound');
?>
<?php
}
?>
</div>
</div>
<div class="cf"></div>
</div>
</div>
</div>
<div class="cf"></div>
</section>
<?php
get_footer();
示例3: ale_part
<section class="full"><?php
if (is_single()) {
?>
<?php
ale_part('postcontent');
?>
<?php
ale_part('postline');
}
?>
</section>
示例4: ale_part
?>
>
<a id="rel-top"></a>
<?php
if (ale_get_option('switcher') == 1) {
ale_part('switcher');
}
?>
</div>
<?php
} else {
?>
<div class="topline" <?php
if (ale_get_option('switcher') == 1) {
echo 'style="min-height:35px; line-height:35px;"';
}
?>
>
<a id="rel-top"></a>
<?php
if (ale_get_option('switcher') == 1) {
ale_part('switcher');
}
?>
</div>
<?php
}
?>
<div id="content-main" role="main">
示例5: _e
<div class="videotitle cf">
<div class="text"><?php
_e('Video Presentation', 'aletheme');
?>
</div>
<div class="plus">+</div>
</div>
<div class="videocode" <?php
if (ale_get_meta('aboutvideotog') == 'open') {
echo 'style="display:block;"';
}
?>
>
<?php
echo wp_oembed_get(ale_get_meta('aboutvideo'), array('width' => 1000));
?>
</div>
</div>
<?php
}
?>
</div>
<?php
ale_part('pagefooter');
?>
</div>
</div>
<div class="cf"></div>
</section>
<?php
get_footer();
示例6: ale_part
<section class="full"><?php
if (is_single()) {
?>
<?php
ale_part('postcontent');
?>
<div class="soclikesline cf">
<div class="lefticons">
<div class="couintbox"><?php
echo getPostLikeLink($post->ID);
?>
</div><div class="soctext"> <?php
_e('likes', 'aletheme');
?>
/ <?php
printf(_n('One comment', '%1$s Comments', get_comments_number(), 'aletheme'), number_format_i18n(get_comments_number()));
?>
</div>
</div>
<div class="righticons">
<?php
if (ale_get_option('social_sharing')) {
?>
<div class="righticonstext">
<?php
_e('Share this post:', 'aletheme');
?>
</div>
<div class="righticonsbuttons">
<a href="<?php
echo ale_get_share('fb');
示例7: ale_load_post
/**
* Load Post AJAX Hook
*/
function ale_load_post()
{
global $withcomments;
$query = new WP_Query(array('post_type' => 'post', 'p' => (int) $_POST['id'], 'post_status' => 'publish'));
while ($query->have_posts()) {
$query->the_post();
ale_part('postcontent', 'single');
ale_part('postactions', 'single');
# force inserting comments in index
$withcomments = 1;
comments_template();
}
exit;
}