예제 #1
0
function pl_posts_404()
{
    $head = __('Nothing Found', 'pagelines');
    $subhead = is_search() ? __('Try another search?', 'pagelines') : __("Sorry, what you are looking for isn't here.", 'pagelines');
    $the_text = sprintf('<h2 class="center">%s</h2><p class="subhead center">%s</p>', $head, $subhead);
    return sprintf('<section class="billboard">%s <div class="center fix">%s</div></section>', apply_filters('pagelines_posts_404', $the_text), pagelines_search_form(false));
}
예제 #2
0
 /**
  *
  * @TODO document
  *
  */
 function master_array()
 {
     $left = sprintf('<div class="widget"><div class="widget-pad"><h3 class="widget-title">%s</h3><p>%s</p>%s<br class="clear"/><p>%s</p></div></div>', __('Looking for something?', 'pagelines'), __('Use the form below to search the site:', 'pagelines'), pagelines_search_form(false), __("Still not finding what you're looking for? Drop us a note so we can take care of it!", 'pagelines'));
     $middle = sprintf('<div class="widget"><div class="widget-pad"><h3 class="widget-title">%s</h3><p>%s</p><ul>%s</ul></div></div>', __('Visit our friends!', 'pagelines'), __('A few highly recommended friends...', 'pagelines'), wp_list_bookmarks('title_li=&categorize=0&echo=0'));
     $right = sprintf('<div class="widget"><div class="widget-pad"><h3 class="widget-title">%s</h3><p>%s</p><ul>%s</ul></div></div>', __('Archives', 'pagelines'), __('All entries, chronologically...', 'pagelines'), wp_get_archives('type=monthly&limit=12&echo=0'));
     $this->master = array('left' => array('name' => 'MoreFoot Left', 'description' => __('Left sidebar in morefoot section.', 'pagelines'), 'default' => $left), 'middle' => array('name' => 'MoreFoot Middle', 'description' => __('Middle sidebar in morefoot section.', 'pagelines'), 'default' => $middle), 'right' => array('name' => 'MoreFoot Right', 'description' => __('Right sidebar in morefoot section.', 'pagelines'), 'default' => $right));
 }
예제 #3
0
    function menu_template()
    {
        if (has_action('pl_no_mobile_menu')) {
            return;
        }
        $menu = pl_setting('primary_navigation_menu') ? pl_setting('primary_navigation_menu') : false;
        $menu2 = pl_setting('secondary_navigation_menu') ? pl_setting('secondary_navigation_menu') : false;
        ?>
		<div class="pl-mobile-menu">
			
			<?php 
        if ('1' !== pl_setting('mobile_menus_disable_search')) {
            pagelines_search_form(true, 'mm-search');
        }
        ?>
				
			<div class="mm-holder">
				
				
				<?php 
        if (is_array(wp_get_nav_menu_items($menu)) || has_nav_menu('mobile_nav')) {
            wp_nav_menu(array('menu_class' => 'mobile-menu primary-menu', 'menu' => $menu, 'container' => null, 'container_class' => '', 'depth' => 3, 'fallback_cb' => '', 'theme_location' => 'mobile_nav'));
        } else {
            pl_nav_fallback('mobile-menu primary-menu');
        }
        if (is_array(wp_get_nav_menu_items($menu2))) {
            wp_nav_menu(array('menu_class' => 'mobile-menu secondary-menu', 'menu' => $menu2, 'container' => null, 'container_class' => '', 'depth' => 3, 'fallback_cb' => ''));
        }
        $twitter = pl_setting('twittername');
        $facebook = pl_setting('facebook_name');
        ?>
				<div class="social-menu">
					
					<?php 
        if ($facebook) {
            printf('<a href="http://www.facebook.com/%s"><i class="mm-icon icon icon-large icon-facebook"></i></a>', $facebook);
        }
        if ($twitter) {
            printf('<a href="http://www.twitter.com/%s"><i class="mm-icon icon icon-large icon-twitter"></i></a>', $twitter);
        }
        ?>
				</div>
			</div>
		</div>
		<?php 
    }
예제 #4
0
    /**
     * Section template.
     */
    function section_template($location = false)
    {
        $menu = $this->opt('navi_menu') ? $this->opt('navi_menu') : false;
        $offset = $this->opt('navi_offset') ? sprintf('data-offset="%s"', $this->opt('navi_offset')) : false;
        $hide_search = $this->opt('navi_search') ? true : false;
        $class = $this->meta['draw'] == 'area' ? 'pl-content' : '';
        ?>
	<div class="navi-wrap <?php 
        echo $class;
        ?>
 fix">
		<div class="navi-left navi-container">
			<?php 
        if ('1' !== $this->opt('navi_logo_disable')) {
            ?>
				<a href="<?php 
            echo home_url('/');
            ?>
"><?php 
            echo $this->image('navi_logo', pl_get_theme_logo(), array(), get_bloginfo('name'));
            ?>
</a>
			<?php 
        }
        ?>
		</div>
		<div class="navi-right">
			<?php 
        $menu_args = array('theme_location' => 'navi_nav', 'menu' => $menu, 'menu_class' => 'inline-list pl-nav sf-menu', 'attr' => $offset, 'walker' => new PageLines_Walker_Nav_Menu());
        echo pl_navigation($menu_args);
        if (!$hide_search) {
            pagelines_search_form(true, 'navi-searchform');
        }
        ?>

		</div>
		<div class="navi-left navi-search">

		</div>



	</div>
<?php 
    }
예제 #5
0
function pl_get_search_form()
{
    $searchform = trailingslashit(get_stylesheet_directory()) . 'searchform.php';
    if (file_exists($searchform)) {
        include $searchform;
    } else {
        pagelines_search_form();
    }
}
예제 #6
0
<?php

/**
 * SEARCH FORM
 *
 * PageLines search form
 *
 * @package     PageLines Framework
 * @since       1.0
 *
 * @link        http://www.pagelines.com/
 * @link        http://www.pagelines.com/tour
 *
 * @author      PageLines   http://www.pagelines.com/
 * @copyright   Copyright (c) 2008-2012, PageLines  hello@pagelines.com
 *
 * @usedby get_search_form
 * @internal $echo is passed from that function
 *
 * @internal    last revised January 20, 2012
 * @version     ...
 *
 * @todo Define version
 * @todo clarify *usedby and *internal
 */
pagelines_search_form(true);
예제 #7
0
파일: section.php 프로젝트: taeche/SoDoEx
 function posts_404()
 {
     $head = is_search() ? sprintf(__('No results for &quot;%s&quot;', 'pagelines'), get_search_query()) : __('Nothing Found', 'pagelines');
     $subhead = is_search() ? __('Try another search?', 'pagelines') : __("Sorry, what you are looking for isn't here.", 'pagelines');
     $the_text = sprintf('<h1 class="center">%s</h1><p class="subhead center">%s</p>', $head, $subhead);
     printf('<section class="billboard">%s <div class="center fix">%s</div></section>', apply_filters('pagelines_posts_404', $the_text), pagelines_search_form(false));
 }
예제 #8
0
파일: section.php 프로젝트: taeche/SoDoEx
    /**
     * Section template.
     */
    function section_template($location = false)
    {
        $menu = $this->opt('navi_menu') ? $this->opt('navi_menu') : false;
        $offset = $this->opt('navi_offset') ? sprintf('data-offset="%s"', $this->opt('navi_offset')) : false;
        $hide_search = $this->opt('navi_search') ? true : false;
        $class = $this->meta['draw'] == 'area' ? 'pl-content' : '';
        $blog_name = get_bloginfo('name');
        $blog_tagline = get_bloginfo('description');
        $hide_logo = $this->opt('navi_logo_disable') ? $this->opt('navi_logo_disable') : false;
        $show_site_info = $this->opt('navi_site_info') ? $this->opt('navi_site_info') : false;
        $logo_container_class = $this->opt('navi_logo_disable') ? ' ' : 'navi-container';
        ?>
	<div class="navi-wrap <?php 
        echo $class;
        ?>
 fix">
		<div class="navi-left <?php 
        echo $logo_container_class;
        ?>
">

			<?php 
        if ('1' !== $hide_logo) {
            ?>
				
				<a href="<?php 
            echo home_url('/');
            ?>
"><?php 
            echo $this->image('navi_logo', pl_get_theme_logo(), array(), get_bloginfo('name'));
            ?>
</a>
			
			<?php 
        } else {
            if ('1' == $show_site_info) {
                ?>
				
				<a href="<?php 
                echo home_url('/');
                ?>
"><h1 class="navi-site-title"><?php 
                echo $blog_name;
                ?>
</h1></a>
				<h2 class="navi-site-description"><?php 
                echo $blog_tagline;
                ?>
</h2>

			<?php 
            }
        }
        ?>
		</div>
		<div class="navi-right">
			<?php 
        $menu_args = array('theme_location' => 'navi_nav', 'menu' => $menu, 'menu_class' => 'inline-list pl-nav sf-menu', 'attr' => $offset);
        echo pl_navigation($menu_args);
        if (!$hide_search) {
            pagelines_search_form(true, 'navi-searchform');
        }
        ?>

		</div>
		<div class="navi-left navi-search">

		</div>



	</div>
<?php 
    }