コード例 #1
0
ファイル: functions.php プロジェクト: beardon/okprop
function ing_woo_page_end()
{
    do_action("ing_content_close");
    get_sidebar();
    do_action("ing_page_close");
    echo "<!-- this is where this is happening -->";
}
コード例 #2
0
function comicpress_display_comic_area()
{
    global $post, $wp_query, $comicpress_options;
    if (comicpress_check_child_file('partials/displaycomic') == false) {
        ?>
		<div id="comic-wrap">
			<div id="comic-head"><?php 
        get_sidebar('over');
        ?>
</div>
			<div class="clear"></div>
			<?php 
        get_sidebar('comicleft');
        ?>
			<div id="comic"><?php 
        comicpress_display_comic();
        ?>
</div>
			<?php 
        get_sidebar('comicright');
        ?>
			<div class="clear"></div>
			<div id="comic-foot"><?php 
        get_sidebar('under');
        ?>
</div>
		</div>
<?php 
    }
}
コード例 #3
0
ファイル: sidebars.php プロジェクト: schiz/scrollax
 /**
  *
  */
 function miss_get_sidebar()
 {
     wp_reset_query();
     global $wp_query;
     if (is_404()) {
         return;
     }
     $sidebar = true;
     if (is_singular()) {
         $type = get_post_type();
         $post_obj = $wp_query->get_queried_object();
         $template = get_post_meta($post_obj->ID, '_wp_page_template', true);
         $_layout = get_post_meta($post_obj->ID, '_layout', true);
         if ($_layout == 'full_width') {
             $sidebar = false;
         }
         if ($type == 'portfolio' && empty($_layout)) {
             $sidebar = false;
         }
         if ($template == 'templates/template-wiki.php') {
             $sidebar = false;
         }
         if (strpos($post_obj->post_content, '[portfolio') !== false && empty($_layout)) {
             $sidebar = false;
         }
     }
     if (is_front_page() && !is_active_sidebar('home')) {
         $sidebar = false;
     }
     $sidebar = apply_atomic('get_sidebar', $sidebar);
     if ($sidebar == true) {
         get_sidebar();
     }
 }
コード例 #4
0
ファイル: woocommerce-layout.php プロジェクト: jaiweb/ASP
    function whitelight_after_content()
    {
        ?>
			<?php 
        if (is_search() && is_post_type_archive()) {
            add_filter('woo_pagination_args', 'woocommerceframework_add_search_fragment', 10);
        }
        ?>
			<?php 
        woo_pagenav();
        ?>
			</div><!-- /#main -->
	        <?php 
        woo_main_after();
        ?>
			<?php 
        get_sidebar();
        ?>
			</div>
	    </div><!-- /#content -->
		<?php 
        woo_content_after();
        ?>
	    <?php 
    }
コード例 #5
0
    /**
     * Returns the sidebar or the front page featured pages area
     * @param Name of the widgetized area
     * @package Customizr
     * @since Customizr 1.0 
     */
    function tc_sidebar_display()
    {
        //first check if home and no content option is choosen
        if (tc__f('__is_home_empty')) {
            return;
        }
        //gets current screen layout
        $screen_layout = tc__f('__screen_layout', tc__f('__ID'), 'sidebar');
        //gets position from current hook and checks the context
        $position = apply_filters('tc_sidebar_position', strpos(current_filter(), 'before') ? 'left' : 'right');
        if ('left' == $position && $screen_layout != 'l' && $screen_layout != 'b') {
            return;
        }
        if ('right' == $position && $screen_layout != 'r' && $screen_layout != 'b') {
            return;
        }
        //gets the global layout settings
        $global_layout = apply_filters('tc_global_layout', TC_init::$instance->global_layout);
        $sidebar_layout = $global_layout[$screen_layout];
        //defines the sidebar wrapper class
        $class = sprintf('%1$s %2$s tc-sidebar', apply_filters("tc_{$position}_sidebar_class", $sidebar_layout['sidebar']), $position);
        ob_start();
        ?>
       
      <div class="<?php 
        echo $class;
        ?>
">
         <div id="<?php 
        echo $position;
        ?>
" class="widget-area" role="complementary">
             <?php 
        if (is_active_sidebar($position)) {
            ?>
                <?php 
            do_action("__before_{$position}_sidebar");
            ##hook of social icons
            ?>
                <?php 
            get_sidebar($position);
            ?>
                <?php 
            do_action("__after_{$position}_sidebar");
            ?>
              <?php 
        }
        ?>
          </div><!-- #left -->
      </div><!--.tc-sidebar -->

      <?php 
        $html = ob_get_contents();
        if ($html) {
            ob_end_clean();
        }
        echo apply_filters('tc_sidebar_display', $html, $sidebar_layout, $position);
    }
コード例 #6
0
/**
 * Get the standard sidebar
 *
 * This includes the primary and secondary widget areas. 
 * The sidebar can be switched on or off using cleanyetibasic_sidebar. <br>
 * Default: ON <br>
 * 
 * Filter: cleanyetibasic_sidebar
 */
function cleanyetibasic_sidebar()
{
    $show = TRUE;
    $show = apply_filters('cleanyetibasic_sidebar', $show);
    if ($show) {
        get_sidebar() . "\n\n";
    }
    return;
}
コード例 #7
0
function jc_sidebar_shortcode($atts, $content = "null")
{
    extract(shortcode_atts(array('name' => ''), $atts));
    ob_start();
    get_sidebar($name);
    $sidebar = ob_get_contents();
    ob_end_clean();
    return $sidebar;
}
コード例 #8
0
 function udesign_theme_wrapper_end()
 {
     echo '        </div><!-- end main-content-padding -->';
     echo '    </div><!-- end main-content -->';
     if (sidebar_exist('PagesSidebar8')) {
         get_sidebar('PagesSidebar8');
     }
     echo '</div><!-- end content-container -->';
 }
コード例 #9
0
/**
 * Get the standard sidebar
 *
 * This includes the primary and secondary widget areas. 
 * The sidebar can be switched on or off using thematic_sidebar. <br>
 * Default: ON <br>
 * 
 * Filter: thematic_sidebar
 */
function thematic_sidebar()
{
    $show = TRUE;
    $show = apply_filters('thematic_sidebar', $show);
    if ($show) {
        get_sidebar();
    }
    return;
}
コード例 #10
0
ファイル: functions.php プロジェクト: aleksking/sherrill
    if (isset($_GET['mls'])) {
        session_start();
        $mlsNo = $_GET['mls'];
        $_SESSION['mlsnum'] = $mlsNo;
        //$location = get_site_url()."/propertyview/";
        wp_redirect($location);
    }
}
add_action('get_header', 'get_property_view_item');
/**
コード例 #11
0
ファイル: woocommerce.php プロジェクト: obecolette/wordpress
function cpotheme_woocommerce_after_main_content()
{
    do_action('cpotheme_after_content');
    echo '</section>';
    get_sidebar();
    do_action('cpotheme_woocommerce_after_sidebar');
    echo '</div>';
    echo '</div>';
}
コード例 #12
0
ファイル: functions.php プロジェクト: jcrimp/openelis-itc210
function get_sidebar_if_children()
{
    global $post;
    $children = get_pages('child_of=' . $post->ID);
    $ancestors = $post->ancestors;
    if (count($children) != 0 || $ancestors || is_page_template('page-faq.php')) {
        get_sidebar();
    }
}
コード例 #13
0
function my_theme_wrapper_end()
{
    echo '</main><!-- #main --></div><!-- #primary -->';
    // don't show sidebar
    echo '<div style="display:none;">';
    get_sidebar();
    echo '</div>';
    echo '</div></div>';
}
コード例 #14
0
function sscarousel_slick_sidebar_shortcode()
{
    ob_start();
    get_sidebar("sscarousel_sidebar_slick_01");
    $sidebar = "<div class=\"slider slick-slider-responsive\">";
    $sidebar .= ob_get_contents();
    $sidebar .= "</div>";
    ob_end_clean();
    return $sidebar;
}
コード例 #15
0
function webriti_rambo_wrapper_end()
{
    if (is_active_sidebar('sidebar-primary')) {
        echo "</div>";
        get_sidebar();
        echo "</div></div>";
    } else {
        echo "</div></div></div>";
    }
}
コード例 #16
0
 function sidebar($position)
 {
     $sidebar = $this->get('sidebar', $this->template);
     if ($this->layout == $position) {
         echo '<aside class="col-sm-4 col-md-3 col-lg-3 mythemes-sidebar sidebar-to-' . esc_attr($position) . '">';
         get_sidebar(esc_attr($sidebar));
         echo '</aside>';
         return;
     }
 }
コード例 #17
0
/**
	*AJAX 加载页面时某些情况重新加载侧边栏
	*http://www.bgbk.org
*/
function Bing_ajax_load_page_refresh_sidebar()
{
    if (!is_date()) {
        return;
    }
    ob_start();
    get_sidebar();
    Bing_ajax_load_page_save_sidebar_code(ob_get_clean());
    add_filter('ajax_load_page_sidebar_code', 'Bing_ajax_load_page_save_sidebar_code', 12, 0);
}
コード例 #18
0
ファイル: _s.php プロジェクト: pra85/sensei
    /**
     * Output closing wrappers
     *
     * @since 1.9.0
     */
    public function wrapper_end()
    {
        ?>

            </main> <!-- main-site -->
          </div> <!-- content-area -->

	    <?php 
        get_sidebar();
    }
コード例 #19
0
function thematic_sidebar()
{
    $show = TRUE;
    // Filters should return Boolean
    $show = apply_filters('thematic_sidebar', $show);
    if ($show) {
        get_sidebar();
    }
    return;
}
コード例 #20
0
ファイル: shortcodes.php プロジェクト: farkbarn/hcudamp
function theme_page_right($atts, $content)
{
    if (is_active_sidebar('right-top')) {
        ob_start();
        get_sidebar('right-top');
        $sidebar_right_top = ob_get_contents();
        ob_end_clean();
    }
    return '<div class="page_right">' . $sidebar_right_top . do_shortcode($content) . '</div>';
}
コード例 #21
0
 function lambda_after_content()
 {
     global $lambda_content_column;
     # close content wrap
     echo '</section><!-- /#content-wrap -->';
     # display sidebar
     if ($lambda_content_column == 'span9' || $lambda_content_column == 'span6') {
         get_sidebar();
     }
 }
コード例 #22
0
ファイル: section.php プロジェクト: climo/PageLines-Framework
    /**
     * Section template.
     */
    function section_template()
    {
        global $pagelines_layout;
        ?>
		<div id="pagelines_content" class="<?php 
        echo $pagelines_layout->layout_mode;
        ?>
 fix">

			<?php 
        pagelines_register_hook('pagelines_content_before_columns', 'maincontent');
        // Hook
        ?>
			<div id="column-wrap" class="fix">

				<?php 
        pagelines_register_hook('pagelines_content_before_maincolumn', 'maincontent');
        // Hook
        ?>
				<div id="column-main" class="mcolumn fix">
					<div class="mcolumn-pad" >
						<?php 
        pagelines_template_area('pagelines_main', 'main');
        ?>
					</div>
				</div>

				<?php 
        if ($pagelines_layout->layout_mode == 'two-sidebar-center') {
            ?>
					<?php 
            pagelines_register_hook('pagelines_content_before_sidebar1', 'maincontent');
            // Hook
            ?>
					<div id="sidebar1" class="scolumn fix">
						<div class="scolumn-pad">
							<?php 
            pagelines_template_area('pagelines_sidebar1', 'sidebar1');
            ?>
						</div>
					</div>
					<?php 
            pagelines_register_hook('pagelines_content_after_sidebar1', 'maincontent');
            // Hook
            ?>
				<?php 
        }
        ?>
			</div>
			<?php 
        get_sidebar();
        ?>
		</div>
<?php 
    }
コード例 #23
0
    /**
     * Close the Twenty Seventeen wrapper.
     */
    public function output_content_wrapper_end()
    {
        ?>
				</main>
			</div>
			<?php 
        get_sidebar();
        ?>
		</div>
		<?php 
    }
コード例 #24
0
 function woocommerce_get_sidebar()
 {
     global $woo_options;
     if (!is_woocommerce()) {
         get_sidebar();
     } elseif ($woo_options['woo_shop_archives_fullwidth'] == "false" && is_woocommerce() || is_product()) {
         get_sidebar();
     } elseif ($woo_options['woo_shop_archives_fullwidth'] == "true" && is_archive(array('product'))) {
         // no sidebar
     }
 }
コード例 #25
0
function rockthemes_woocommerce_page_wrapper_after()
{
    echo '</div>';
    if (function_exists('rockthemes_pb_frontend_sidebar_after_content')) {
        rockthemes_pb_frontend_sidebar_after_content();
    } else {
        get_sidebar();
    }
    do_action('rockthemes_pb_frontend_after_page');
    echo '<div class="vertical-space"></div>';
}
コード例 #26
0
ファイル: functions.php プロジェクト: nmuende/bhs-nw
function choose_sidebar()
{
    $theParent = get_parent_title();
    if (is_page('about')) {
        get_sidebar('secondary');
    } elseif (is_page('Impressions') || $theParent == 'Impressions') {
        get_sidebar('impressions');
    } else {
        get_sidebar('primary');
    }
}
コード例 #27
0
ファイル: projects.php プロジェクト: rthburke/fltHub
function extra_project_get_sidebar()
{
    $details = extra_get_project_details();
    if ('split' == $details['location']) {
        extra_the_project_details_box(get_the_ID(), true);
    } else {
        if ('sidebar' == $details['location']) {
            get_sidebar();
        }
    }
}
コード例 #28
0
ファイル: twentyfourteen.php プロジェクト: pra85/sensei
    /**
     * Output closing wrappers
     *
     * @since 1.9.0
     */
    public function wrapper_end()
    {
        ?>


                    </div>
                </div>
            </div>
        </div>

        <?php 
        get_sidebar();
    }
コード例 #29
0
/**
 * Get the standard sidebar
 *
 * This includes the primary and secondary widget areas. 
 * The sidebar can be switched on or off using seamless_sidebar. <br>
 * Default: ON <br>
 * 
 * Filter: seamless_sidebar
 */
function seamless_sidebar()
{
    $current_layout = apply_filters('seamless_current_theme_layout', seamless_get_theme_opt('layout'));
    if (in_array($current_layout, seamless_available_layout_slugs()) && 'full-width' == $current_layout) {
        $show = false;
    } else {
        $show = true;
    }
    $show = apply_filters('seamless_sidebar', $show);
    if ($show) {
        get_sidebar();
    }
    return;
}
コード例 #30
0
ファイル: sidebars.php プロジェクト: TwoBeers/fastfood
/**
 * Check conditions and call the desired sidebar
 * 
 * @param	string	$name				(optional) the sidebar slug
 * @param	boolean	$only_if_active		(optional) condition
 * @return	none
 */
function fastfood_get_sidebar($name = 'primary', $only_if_active = false)
{
    if ($name === 'primary' && !fastfood_use_sidebar()) {
        return;
    }
    if (!apply_filters('fastfood_get_sidebar_' . $name, true)) {
        return;
    }
    $sidebars = fastfood_register_sidebars();
    if ($only_if_active && !is_active_sidebar($sidebars[$name])) {
        return;
    }
    get_sidebar($name);
}