Ejemplo n.º 1
0
 function csadv_slogan_function($title = "enabled", $style = "")
 {
     global $s;
     $html = '';
     if (csadv_is_single()) {
         if (csadv_postmeta('csadv_slogan')) {
             $html = csadv_postmeta('csadv_slogan');
         }
         if (csadv_postmeta('csadv_subslogan')) {
             $html .= '<span>' . csadv_postmeta('csadv_subslogan') . '</span>';
         }
     } elseif (is_search()) {
         $html = "<h1 class='title'>" . __('Search results for : ', "csadv") . $s . "</h1>";
     } elseif (is_404()) {
         $html = "<h1 class='title'>" . __('Content not found', "csadv") . "</h1>";
     } elseif (is_home()) {
         $html = "<h1 class='title'>" . get_bloginfo('name') . '<span>' . get_bloginfo('description') . '</span></h1>';
     } elseif (csadv_get_archive_title()) {
         if (strstr(csadv_get_archive_title(), ':')) {
             $archive_title = explode(":", csadv_get_archive_title());
             $html = "<h1 class='title'>" . $archive_title[1] . "</h1>";
         } else {
             $html = "<h1 class='title'>" . csadv_get_archive_title() . "</h1>";
         }
     }
     if (!empty($html)) {
         echo '<div id="slogan" ' . $style . '>' . $html . '</div>';
     }
 }
Ejemplo n.º 2
0
    function csadv_footer_sidebar_function()
    {
        $sidebarname = "footer-sidebar-area";
        $sidebar_check = true;
        if (csadv_is_single() && csadv_postmeta('csadv_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 
        }
    }
Ejemplo n.º 3
0
 function csadv_before_content_function()
 {
     if (!csadv_is_single()) {
         echo '<div class="post-article post-title">';
         do_action('csadv_get_title', 'blog');
         echo '</div>';
     } else {
         echo '<div class="post-article post-title">';
         do_action('csadv_get_title', 'post');
         echo '</div>';
     }
 }
Ejemplo n.º 4
0
 function csadv_after_content_function($type = "")
 {
     if (!csadv_is_single()) {
         do_action('csadv_excerpt');
     } else {
         if ((!csadv_postmeta('csadv_view_post_info') || csadv_postmeta('csadv_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 (!csadv_postmeta('csadv_post_icons') || csadv_postmeta('csadv_post_icons') == "on") {
                 echo csadv_posticon();
             }
             echo '</div></div>';
         }
         the_content();
         echo '<div class="clear"></div>';
     }
 }
Ejemplo n.º 5
0
<?php

/**
 * csadvTheme
 * 
 * @package csadvTheme
 * @author Goatshark
 *
 * 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 (!csadv_is_single()) {
    do_action('csadv_thumbnail', 'thumbnail');
} else {
    do_action('csadv_before_content');
    do_action('csadv_thumbnail', 'thumbnail');
    ?>

<div class="post-article">

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

</div>

<?php 
}
Ejemplo n.º 6
0
 function csadv_sidebar_name($type)
 {
     $sidebars = array("header" => array("postmeta" => "csadv_header_sidebar", "default" => "header-sidebar-area"), "side" => array("postmeta" => "csadv_sidebar", "default" => "side-sidebar-area"), "scroll" => array("postmeta" => "csadv_scroll_sidebar", "default" => "scroll-sidebar-area"), "bottom" => array("postmeta" => "csadv_bottom_sidebar", "default" => "bottom-sidebar-area"), "footer" => array("postmeta" => "csadv_footer_sidebar", "default" => "footer-sidebar-area"));
     if (csadv_is_single()) {
         $sidebar_name = csadv_postmeta($sidebars[$type]['postmeta']);
     } else {
         $sidebar_name = $sidebars[$type]['default'];
     }
     return $sidebar_name;
 }