function zupp_footer_sidebar_function() { $sidebarname = "footer-sidebar-area"; $sidebar_check = true; if (zupp_is_single() && zupp_postmeta('zupp_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 } }
function zupp_slogan_function($title = "enabled", $style = "") { global $s; $html = ''; if (zupp_is_single()) { if (zupp_postmeta('zupp_slogan')) { $html = zupp_postmeta('zupp_slogan'); } if (zupp_postmeta('zupp_subslogan')) { $html .= '<span>' . zupp_postmeta('zupp_subslogan') . '</span>'; } } elseif (is_search()) { $html = "<h1 class='title'>" . __('Search results for : ', "zupp") . $s . "</h1>"; } elseif (is_404()) { $html = "<h1 class='title'>" . __('Content not found', "zupp") . "</h1>"; } elseif (is_home()) { $html = "<h1 class='title'>" . get_bloginfo('name') . '<span>' . get_bloginfo('description') . '</span></h1>'; } elseif (zupp_get_archive_title()) { if (strstr(zupp_get_archive_title(), ':')) { $archive_title = explode(":", zupp_get_archive_title()); $html = "<h1 class='title'>" . $archive_title[1] . "</h1>"; } else { $html = "<h1 class='title'>" . zupp_get_archive_title() . "</h1>"; } } if (!empty($html)) { echo '<div id="slogan" ' . $style . '>' . $html . '</div>'; } }
function zupp_before_content_function() { if (!zupp_is_single()) { echo '<div class="post-article post-title">'; do_action('zupp_get_title', 'blog'); echo '</div>'; } else { echo '<div class="post-article post-title">'; do_action('zupp_get_title', 'post'); echo '</div>'; } }
function zupp_after_content_function($type = "") { if (!zupp_is_single()) { do_action('zupp_excerpt'); } else { if ((!zupp_postmeta('zupp_view_post_info') || zupp_postmeta('zupp_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 (!zupp_postmeta('zupp_post_icons') || zupp_postmeta('zupp_post_icons') == "on") { echo zupp_posticon(); } echo '</div></div>'; } the_content(); echo '<div class="clear"></div>'; } }
<?php /** * ZuppTheme * * @package ZuppTheme * @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 (!zupp_is_single()) { do_action('zupp_thumbnail', 'thumbnail'); } else { do_action('zupp_before_content'); do_action('zupp_thumbnail', 'thumbnail'); ?> <div class="post-article"> <?php do_action('zupp_after_content', 'post'); ?> </div> <?php }
function zupp_sidebar_name($type) { $sidebars = array("header" => array("postmeta" => "zupp_header_sidebar", "default" => "header-sidebar-area"), "side" => array("postmeta" => "zupp_sidebar", "default" => "side-sidebar-area"), "scroll" => array("postmeta" => "zupp_scroll_sidebar", "default" => "scroll-sidebar-area"), "bottom" => array("postmeta" => "zupp_bottom_sidebar", "default" => "bottom-sidebar-area"), "footer" => array("postmeta" => "zupp_footer_sidebar", "default" => "footer-sidebar-area")); if (zupp_is_single()) { $sidebar_name = zupp_postmeta($sidebars[$type]['postmeta']); } else { $sidebar_name = $sidebars[$type]['default']; } return $sidebar_name; }