コード例 #1
0
    function jaxlite_footer_sidebar_function()
    {
        $sidebarname = "footer-sidebar-area";
        $sidebar_check = true;
        if (jaxlite_is_single() && jaxlite_postmeta('jaxlite_footer_sidebar') == "none") {
            $sidebar_check = false;
        }
        if (is_active_sidebar($sidebarname) && $sidebar_check == true) {
            ?>

        <footer id="footer">
            
            <div class="container">
    
    			<section class="row widgets">
							
					<?php 
            dynamic_sidebar($sidebarname);
            ?>
							
                </section>
    
            </div>
            
        </footer>
    
<?php 
        }
    }
コード例 #2
0
 function jaxlite_slogan_function($title = "enabled", $style = "")
 {
     global $s;
     $html = '';
     if (jaxlite_is_single()) {
         if (jaxlite_postmeta('jaxlite_slogan')) {
             $html = jaxlite_postmeta('jaxlite_slogan');
         }
         if (jaxlite_postmeta('jaxlite_subslogan')) {
             $html .= '<span>' . jaxlite_postmeta('jaxlite_subslogan') . '</span>';
         }
     } elseif (is_search()) {
         $html = "<h1 class='title'>" . __('Search results for : ', "jaxlite") . $s . "</h1>";
     } elseif (is_404()) {
         $html = "<h1 class='title'>" . __('Content not found', "jaxlite") . "</h1>";
     } elseif (is_home()) {
         $html = "<h1 class='title'>" . get_bloginfo('name') . '<span>' . get_bloginfo('description') . '</span></h1>';
     } elseif (jaxlite_get_archive_title()) {
         if (strstr(jaxlite_get_archive_title(), ':')) {
             $archive_title = explode(":", jaxlite_get_archive_title());
             $html = "<h1 class='title'>" . $archive_title[1] . "</h1>";
         } else {
             $html = "<h1 class='title'>" . jaxlite_get_archive_title() . "</h1>";
         }
     }
     if (!empty($html)) {
         echo '<div id="slogan" ' . $style . '>' . $html . '</div>';
     }
 }
コード例 #3
0
 function jaxlite_before_content_function()
 {
     if (!jaxlite_is_single()) {
         echo '<div class="post-article post-title">';
         do_action('jaxlite_get_title', 'blog');
         echo '</div>';
     } else {
         echo '<div class="post-article post-title">';
         do_action('jaxlite_get_title', 'post');
         echo '</div>';
     }
 }
コード例 #4
0
 function jaxlite_after_content_function($type = "")
 {
     if (!jaxlite_is_single()) {
         do_action('jaxlite_excerpt');
     } else {
         if ((!jaxlite_postmeta('jaxlite_view_post_info') || jaxlite_postmeta('jaxlite_view_post_info') == "on") && $type == "post") {
             echo '<div class="line"><div class="post-info">';
             echo '<span class="genericon genericon-time"></span>' . get_the_date();
             echo '<span class="genericon genericon-category"></span>';
             the_category(', ');
             the_tags('<span class="genericon genericon-tag"></span>', ', ');
             if (!jaxlite_postmeta('jaxlite_post_icons') || jaxlite_postmeta('jaxlite_post_icons') == "on") {
                 echo jaxlite_posticon();
             }
             echo '</div></div>';
         }
         the_content();
         echo '<div class="clear"></div>';
     }
 }
コード例 #5
0
<?php

/**
 * Wp in Progress
 * 
 * @package Jax Lite
 * @author WPinProgress
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * It is also available at this URL: http://www.gnu.org/licenses/gpl-3.0.txt
 */
if (!jaxlite_is_single()) {
    do_action('jaxlite_thumbnail', 'thumbnail');
} else {
    do_action('jaxlite_before_content');
    do_action('jaxlite_thumbnail', 'thumbnail');
    ?>

<div class="post-article">

	<?php 
    do_action('jaxlite_after_content', 'post');
    ?>

</div>

<?php 
}
コード例 #6
0
 function jaxlite_sidebar_name($type)
 {
     $sidebars = array("header" => array("postmeta" => "jaxlite_header_sidebar", "default" => "header-sidebar-area"), "side" => array("postmeta" => "jaxlite_sidebar", "default" => "side-sidebar-area"), "scroll" => array("postmeta" => "jaxlite_scroll_sidebar", "default" => "scroll-sidebar-area"), "bottom" => array("postmeta" => "jaxlite_bottom_sidebar", "default" => "bottom-sidebar-area"), "footer" => array("postmeta" => "jaxlite_footer_sidebar", "default" => "footer-sidebar-area"));
     if (jaxlite_is_single()) {
         $sidebar_name = jaxlite_postmeta($sidebars[$type]['postmeta']);
     } else {
         $sidebar_name = $sidebars[$type]['default'];
     }
     return $sidebar_name;
 }