本文整理汇总了PHP中nectar_page_header函数的典型用法代码示例。如果您正苦于以下问题:PHP nectar_page_header函数的具体用法?PHP nectar_page_header怎么用?PHP nectar_page_header使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了nectar_page_header函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_header
<?php
get_header();
if (is_shop() || is_product_category() || is_product_tag()) {
//page header for main shop page
nectar_page_header(woocommerce_get_page_id('shop'));
}
//change to 3 columsn per row when using sidebar
if (!function_exists('loop_columns')) {
function loop_columns()
{
return 3;
// 3 products per row
}
}
?>
<div class="container-wrap">
<div class="container main-content">
<div class="row">
<?php
if (function_exists('yoast_breadcrumb')) {
yoast_breadcrumb('<p id="breadcrumbs">', '</p>');
}
$options = get_nectar_theme_options();
$main_shop_layout = !empty($options['main_shop_layout']) ? $options['main_shop_layout'] : 'no-sidebar';
$single_product_layout = !empty($options['single_product_layout']) ? $options['single_product_layout'] : 'no-sidebar';
//single product layout
示例2: get_header
<?php
get_header();
?>
<?php
nectar_page_header(get_option('page_for_posts'));
?>
<div class="container-wrap">
<div class="container main-content">
<div class="row">
<?php
$options = get_nectar_theme_options();
$blog_type = $options['blog_type'];
if ($blog_type == null) {
$blog_type = 'std-blog-sidebar';
}
$masonry_class = null;
$masonry_style = null;
$infinite_scroll_class = null;
$load_in_animation = !empty($options['blog_loading_animation']) ? $options['blog_loading_animation'] : 'none';
//enqueue masonry script if selected
if ($blog_type == 'masonry-blog-sidebar' || $blog_type == 'masonry-blog-fullwidth' || $blog_type == 'masonry-blog-full-screen-width') {
$masonry_class = 'masonry';
}
if ($blog_type == 'masonry-blog-full-screen-width') {
$masonry_class = 'masonry full-width-content';
示例3: get_header
<?php
get_header();
?>
<?php
nectar_page_header($post->ID);
?>
<div class="container-wrap">
<div class="container main-content">
<div class="row">
<?php
//breadcrumbs
if (function_exists('yoast_breadcrumb') && !is_home() && !is_front_page()) {
yoast_breadcrumb('<p id="breadcrumbs">', '</p>');
}
//buddypress
global $bp;
if ($bp && !bp_is_blog_page()) {
echo '<h1>' . get_the_title() . '</h1>';
}
?>
<?php
if (have_posts()) {
while (have_posts()) {
the_post();