This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ require_once( AK_LIB . '/filesystem.php' ); if ( ! function_exists('ak_chameleon_menubar') ) : /** * Creates the header menu bar based on settings. * * @uses apply_filters() Calls the 'ak_chameleon_pages_menu' hook on the menu page list. * @uses apply_filters() Calls the 'register' hook on register/admin item. (Default WP hook). * @uses apply_filters() Calls the 'loginout' hook on login/logout item. (Default WP hook). * @return string HTML formated menu bar. */ function ak_chameleon_menubar() { $settings = ak_theme_option(); $menu = '' . PHP_EOL; return $menu; } endif; if ( ! function_exists('ak_chameleon_footer') ) : /** * Returns the footer text defined in Chameleon Settings. * * @return string Footer text. */ function ak_chameleon_footer() { return str_replace("\n", '
', ak_theme_option('footer-text')) . '
'; } endif; if ( ! function_exists('ak_chameleon_navigator') ) : /** * Draws the posts navigator bar * * @param string $class CSS class style * @return void */ function ak_chameleon_navigator( $class = '' ) { global $wp_query; $naviclass = ( empty($class) ) ? 'navigator' : "navigator {$class}"; if ( is_single () ) { ?>
'; wp_pagenavi(); echo ''; } else { if ( $wp_query->found_posts > get_option('posts_per_page') || is_paged()) { ?>