function arjuna_print_page_menu() { $arjunaOptions = arjuna_get_options(); $html = ''; $html .= '<ul id="headerMenu2">'; if ($arjunaOptions['menus']['2']['displayHome']) { $html .= '<li><a href="' . (function_exists('icl_get_home_url') ? icl_get_home_url() : home_url('/')) . '" class="homeIcon">' . __('Home', 'Arjuna') . '</a></li>'; } $html .= wp_list_pages('title_li=&echo=0&depth=' . $arjunaOptions['menus']['2']['depth']); $html .= '</ul>'; print $html; }
<?php $arjunaOptions = arjuna_get_options(); get_header(); ?> <div class="contentArea" id="contentArea"> <?php if (have_posts()) { ?> <h3 class="contentHeader"><?php if (is_category()) { printf(__('Browsing Posts in <em>%s</em>', 'Arjuna'), single_cat_title(NULL, false)); } elseif (is_tag()) { printf(__('Browsing Posts tagged <em>%s</em>', 'Arjuna'), single_tag_title(NULL, false)); } elseif (is_day()) { printf(__('Browsing Posts published on %s', 'Arjuna'), get_the_time(get_option('date_format'))); } elseif (is_month()) { printf(__('Browsing Posts published in %s', 'Arjuna'), get_the_time(__('F, Y', 'Arjuna'))); } elseif (is_year()) { printf(__('Browsing Posts published in %s', 'Arjuna'), get_the_time(__('Y', 'Arjuna'))); } elseif (is_author()) { $currentAuthor = get_queried_object(); printf(__('Browsing Posts published by <em>%s</em>', 'Arjuna'), $currentAuthor->display_name ? $currentAuthor->display_name : $currentAuthor->nickname); } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { _e('Blog Archives', 'Arjuna'); } ?> </h3> <?php