本文整理匯總了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();