本文整理汇总了PHP中genesis_widget_area函数的典型用法代码示例。如果您正苦于以下问题:PHP genesis_widget_area函数的具体用法?PHP genesis_widget_area怎么用?PHP genesis_widget_area使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了genesis_widget_area函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: onlinecrew_homepage
function onlinecrew_homepage()
{
genesis_widget_area('home-slider', array('before' => '<section class="home-slider home-sections">', 'after' => '</section>'));
genesis_widget_area('home-jcarousel', array('before' => '<section class="home-carousel home-sections">', 'after' => '</div></section>'));
genesis_widget_area('home-map', array('before' => '<section class="home-hrsolution home-sections">', 'after' => '</div></section>'));
genesis_widget_area('home-testimonials', array('before' => '<section class="home-testimonials home-sections">', 'after' => '</div></section>'));
}
示例2: executive_home_sections
function executive_home_sections()
{
genesis_widget_area('home-slider', array('before' => '<div class="home-slider widget-area">', 'after' => '</div>'));
genesis_widget_area('home-top', array('before' => '<div class="home-top widget-area">', 'after' => '</div>'));
genesis_widget_area('home-cta', array('before' => '<div class="home-cta widget-area">', 'after' => '</div>'));
genesis_widget_area('home-middle', array('before' => '<div class="home-middle widget-area">', 'after' => '</div>'));
}
示例3: eleven40_after_post
function eleven40_after_post()
{
if (!is_singular('post')) {
return;
}
genesis_widget_area('after-post', array('before' => '<div class="after-post widget-area">'));
}
示例4: author_front_page_widgets
function author_front_page_widgets()
{
genesis_widget_area('front-page-2', array('before' => '<div id="front-page-2" class="front-page-2"><div class="flexible-widgets widget-area' . author_widget_area_class('front-page-2') . '">', 'after' => '</div></div>'));
genesis_widget_area('front-page-3', array('before' => '<div id="front-page-3" class="front-page-3"><div class="flexible-widgets widget-area' . author_widget_area_class('front-page-3') . '">', 'after' => '</div></div>'));
genesis_widget_area('front-page-4', array('before' => '<div id="front-page-4" class="front-page-4"><div class="flexible-widgets widget-area' . author_widget_area_class('front-page-4') . '">', 'after' => '</div></div>'));
genesis_widget_area('front-page-5', array('before' => '<div id="front-page-5" class="front-page-5"><div class="flexible-widgets widget-area' . author_widget_area_class('front-page-5') . '">', 'after' => '</div></div>'));
}
示例5: tgd_hero_section
/**
* Hero Text & Countdown
*
* @since 1.0.0
*/
function tgd_hero_section()
{
$hero_text = get_option('tgd_hero');
?>
<section id="home-hero" class="hero">
<?php
if (isset($hero_text)) {
echo '<h2 class="hero-title">' . get_option('tgd_hero') . '</h2>';
}
?>
<div class="hero-left">
</div>
<div class="hero-right">
<?php
genesis_widget_area('home-cta', array('before' => '<div class="home-widgets">', 'after' => '</div>'));
?>
</div>
</section>
<?php
}
示例6: swank_homepage_widgets
function swank_homepage_widgets()
{
genesis_widget_area('home-slider', array('before' => '<div class="home-slider widget-area"><div class="wrap">', 'after' => '</div></div>'));
genesis_widget_area('under-home-slider', array('before' => '<div class="under-home-slider widget-area"><div class="wrap">', 'after' => '</div></div>'));
genesis_widget_area('featured-circles', array('before' => '<div class="featured-circles widget-area"><div class="wrap">', 'after' => '</div></div>'));
genesis_widget_area('home-featured-area', array('before' => '<div class="home-featured-area widget-area"><div class="wrap">', 'after' => '</div></div>'));
}
示例7: utility_bar
function utility_bar()
{
echo '<div class="utility-bar"><div class="wrap">';
genesis_widget_area('utility-bar-left', array('before' => '<div class="utility-bar-left">', 'after' => '</div>'));
genesis_widget_area('utility-bar-right', array('before' => '<div class="utility-bar-right">', 'after' => '</div>'));
echo '</div></div>';
}
示例8: hueman_home_widgets
function hueman_home_widgets()
{
echo '<div id="home-widgets" class="home-widgets">';
genesis_widget_area('home-top', array('before' => '<div id="home-top" class="home-top widget-area"><div class="wrap">', 'after' => '</div></div>'));
genesis_widget_area('home-bottom', array('before' => '<div id="home-bottom" class="home-bottom widget-area"><div class="wrap">', 'after' => '</div></div>'));
echo '</div>';
}
示例9: metro_after_post
function metro_after_post()
{
if (!is_singular('post')) {
return;
}
genesis_widget_area('after-entry', array('before' => '<div class="after-entry widget-area"><div class="wrap">', 'after' => '</div></div>'));
}
示例10: mpp_homepage_widgets
function mpp_homepage_widgets()
{
genesis_widget_area('home-about', array('before' => '<div id="about"><div class="wrap">', 'after' => '</div></div>'));
genesis_widget_area('home-portfolio', array('before' => '<div id="portfolio"><div class="wrap">', 'after' => '</div></div>'));
genesis_widget_area('home-services', array('before' => '<div id="services"><div class="wrap">', 'after' => '</div></div>'));
genesis_widget_area('home-blog', array('before' => '<div id="blog"><div class="wrap">', 'after' => '</div></div>'));
}
示例11: simple_staff_sidebar
function simple_staff_sidebar()
{
if (is_active_sidebar('after-staff')) {
echo '<div class="after-staff">';
genesis_widget_area('after-staff');
echo '</div>';
}
}
示例12: sk_show_posts
function sk_show_posts()
{
if (is_front_page()) {
printf('<div %s>', genesis_attr('home-below-content'));
genesis_widget_area('home-below-content');
echo '</div>';
}
}
示例13: parallax_homepage_widgets
function parallax_homepage_widgets()
{
genesis_widget_area('home-section-1', array('before' => '<div class="home-odd home-section-1 widget-area"><div class="wrap">', 'after' => '</div></div>'));
genesis_widget_area('home-section-2', array('before' => '<div class="home-even home-section-2 widget-area"><div class="wrap">', 'after' => '</div></div>'));
genesis_widget_area('home-section-3', array('before' => '<div class="home-odd home-section-3 widget-area"><div class="wrap">', 'after' => '</div></div>'));
genesis_widget_area('home-section-4', array('before' => '<div class="home-even home-section-4 widget-area"><div class="wrap">', 'after' => '</div></div>'));
genesis_widget_area('home-section-5', array('before' => '<div class="home-odd home-section-5 widget-area"><div class="wrap">', 'after' => '</div></div>'));
}
示例14: home_featured
function home_featured()
{
/** Do nothing on page 2 or greater */
if (get_query_var('paged') >= 2) {
return;
}
genesis_widget_area('home-featured', array('before' => '<div class="home-featured widget-area">'));
}
示例15: front_page_widgets
function front_page_widgets()
{
genesis_widget_area('front-page-1', array('before' => '<div id="front-page-1" class="front-page-1"><div class="image-section"><div class="flexible-widgets widget-area front-page"><div class="wrap">', 'after' => '</div></div></div></div>'));
genesis_widget_area('front-page-2', array('before' => '<div id="front-page-2" class="front-page-2"><div class="solid-section"><div class="flexible-widgets widget-area front-page"><div class="wrap">', 'after' => '</div></div></div></div>'));
genesis_widget_area('front-page-3', array('before' => '<div id="front-page-3" class="front-page-3"><div class="image-section"><div class="flexible-widgets widget-area front-page"><div class="wrap">', 'after' => '</div></div></div></div>'));
genesis_widget_area('front-page-4', array('before' => '<div id="front-page-4" class="front-page-4"><div class="solid-section"><div class="flexible-widgets widget-area front-page"><div class="wrap">', 'after' => '</div></div></div></div>'));
genesis_widget_area('front-page-5', array('before' => '<div id="front-page-5" class="front-page-5"><div class="image-section"><div class="flexible-widgets widget-area front-page"><div class="wrap">', 'after' => '</div></div></div></div>'));
}