예제 #1
0
/**
 * Add extra classes to page wrapper
 *
 * @since 1.0.0
 *
 * @return string
 */
function appica_get_page_wrapper()
{
    $wrapper = array();
    /**
     * @var bool Save the result of function call to increase the performance (a little)
     */
    $is_front_page = is_front_page();
    // Always wrap a page into .container to cover the cases, when option doesn't exists
    // for all pages, except Front page
    if (false === $is_front_page) {
        $wrapper[] = 'container';
    }
    // Wrap the page with class .content-wrap,
    // if "Sticky navbar" is enabled, user is on front page and intro screen is disabled.
    if ($is_front_page && false === appica_is_intro() && true === (bool) appica_get_option('navbar_is_sticky', false)) {
        $wrapper[] = 'content-wrap';
    }
    // But, if "layout" option exists and set to "fluid" in page settings meta box
    // remove the .container class
    $post_type = appica_get_settings_meta_box_slug('page');
    $page_settings = get_post_meta(get_the_ID(), "_{$post_type}_settings", true);
    if (is_array($page_settings) && array_key_exists('layout', $page_settings) && 'fluid' === $page_settings['layout']) {
        $key = array_search('container', $wrapper, true);
        if ($key !== false) {
            unset($wrapper[$key]);
        }
        unset($key);
    }
    return $wrapper;
}
예제 #2
0
<?php

/**
 * The template for displaying the footer.
 *
 * @package Appica 2
 */
?>


<?php 
/*
 * If intro is enabled close /div.content-wrap tag
 */
if (appica_is_intro()) {
    ?>

</div>
<?php 
}
?>


<footer class="footer">
	<div class="container">

		<?php 
if (appica_is_footer_app()) {
    ?>

		<div class="footer-head padding-top-3x">