function ks_yearly_menu($link, $year) { $link = ks_blogurl(KTAI_NOT_ECHO) . '?menu=months&y=' . intval($year); return $link; }
" /> <input type="submit" value="<?php _e('Search'); ?> " /> </div></form> <dl><dt><?php ks_ordered_link($count++, $max, ks_blogurl(KTAI_NOT_ECHO) . '?menu=comments', ks_option('ks_separate_comments') ? __('Recent Comments/Pings', 'ktai_style') : __('Recent Comments', 'ktai_style')); ?> </dt> <dt><?php ks_ordered_link('', $max, ks_blogurl(KTAI_NOT_ECHO) . '?menu=months', __('Archives')); _e(' / ', 'ktai_style'); ks_ordered_link('', $max, ks_blogurl(KTAI_NOT_ECHO) . '?menu=cats', __('Categories')); _e(' / ', 'ktai_style'); ks_ordered_link('', $max, ks_blogurl(KTAI_NOT_ECHO) . '?menu=tags', __('Tags')); ?> </dt> <?php ks_admin_link('<dt><img localsrc="152" alt="" />'); ks_login_link(array('before' => '<dt><img localsrc="120" alt="' . __('†', 'ktai_style') . '" />', 'before_logout' => '<img localsrc="120" alt="' . __('†', 'ktai_style') . '" />', 'after' => '</dt>')); ?> </dl> <div id="footer" style="background-color:yellow;"> <div align="right"><?php $admin_user = ks_get_admin_user(); if ($admin_user) { ?> Copyright <img localsrc="81" /> <?php echo date('Y'), ' ', esc_html($admin_user->display_name); } else {
ks_ordered_link('', $max, ks_blogurl(KTAI_NOT_ECHO) . '?menu=comments', ks_option('ks_separate_comments') ? __('Recent Comments/Pings', 'ktai_style') : __('Recent Comments', 'ktai_style')); ?> | <?php ks_ordered_link('', $max, ks_blogurl(KTAI_NOT_ECHO) . '?menu=months', __('Archives')); ?> | <?php ks_ordered_link('', $max, ks_blogurl(KTAI_NOT_ECHO) . '?menu=cats', __('Categories')); ?> | <?php ks_ordered_link('', $max, ks_blogurl(KTAI_NOT_ECHO) . '?menu=tags', __('Tags')); ks_admin_link(' | '); ks_login_link(' | '); ?> </div> <form method="get" action="<?php ks_blogurl(); ?> "><div> <input type="text" name="ks" value="<?php the_search_query(); ?> " /> <input type="submit" value="<?php _e('Search'); ?> " /> </div></form> <?php ks_pages_menu(' | ', '<div>', '</div>', $ks_settings['list_pages']); ?> <div align="right">Converted by Ktai Style plugin.<?php
<div align="center"><?php $title = __('New Posts', 'ktai_style'); $url = ks_blogurl(KTAI_NOT_ECHO); $ks_settings['need_front'] = false; if (get_option('show_on_front') == 'page') { if ($post_id = get_option('page_for_posts')) { $url = get_permalink($post_id); $ks_settings['need_front'] = true; } else { $title = __('Front Page', 'ktai_style'); } } if (ks_is_front()) { echo $title; } else { ks_ordered_link(1, 10, $url, $title); } ?> | <?php $title = ks_option('ks_separate_comments') ? __('Recent Comments/Pings', 'ktai_style') : __('Recent Comments', 'ktai_style'); if (ks_is_menu('comments')) { echo $title; } else { ks_ordered_link(2, 10, ks_blogurl(KTAI_NOT_ECHO) . '?menu=comments', $title); } ?> </div> <hr color="<?php echo $ks_settings['hr_color']; ?> " />
?> </dt><dt><?php ks_ordered_link($count++, $max, ks_blogurl(KTAI_NOT_ECHO) . '?menu=months', __('Archives')); ?> </dt><dt><?php ks_ordered_link($count++, $max, ks_blogurl(KTAI_NOT_ECHO) . '?menu=cats', __('Categories')); _e(', ', 'redportal'); ?> <a href="<?php ks_blogurl(); ?> ?menu=tags"><?php _e('Tags'); ?> </a></dt><dt><?php ks_ordered_link($count++, $max, ks_blogurl(KTAI_NOT_ECHO) . '?menu=pages', __('Pages')); ?> </dt><?php ks_admin_link('<dt><img localsrc="112" alt="" />', '</dt>'); ks_login_link('<dt><img localsrc="120" alt="' . __('†', 'ktai_style') . '" />', '</dt>'); ?> </dl> <hr color="<?php echo esc_attr($ks_settings['hr_color']); ?> " /> <div align="center">Redportal theme for Ktai Style.<?php ks_switch_pc_view(); ?> </div> <?php
$menu_items = array(); foreach ($menu as $item) { // 0 = name, 1 = capability, 2 = file $is_current = strcmp($self, $item[2]) == 0 && empty($parent_file) || $parent_file && $item[2] == $parent_file; if (!empty($submenu[$item[2]])) { $submenu[$item[2]] = array_values($submenu[$item[2]]); // Re-index. $m = array('link' => $submenu[$item[2]][0][2], 'desc' => $item[0]); } else { if (current_user_can($item[1])) { $m = array('link' => $item[2], 'desc' => $item[0]); } } if ($is_current) { $menu_items[] = $m['desc']; } else { $menu_items[] = '<a href="' . esc_attr($m['link']) . '">' . $m['desc'] . '</a>'; } } echo implode(' | ', $menu_items); printf(' [<a href="%s">' . __('Log out') . '</a>]', ks_get_logout_url()); echo '<br />'; if ($Ktai_Style->get('cookie_available')) { ks_ordered_link(0, 0, ks_blogurl(KTAI_NOT_ECHO), __('Visit Site with logged in', 'ktai_style')); } else { ?> <img localsrc="1" alt="!" /><font color="red"><?php _e('DO NOT bookmark this page. DO NOT tell others the URL of this page.', 'ktai_style'); ?> </font><br /><?php }
function ks_pages_menu() { $defaults = array('sep' => ' | ', 'before' => '', 'after' => '', 'args' => array(), 'authors' => '', 'exclude' => '', 'parent_only' => true, 'child_of' => false, 'sort_column' => 'menu_order,post_title', 'all_page_anchor' => __('All Pages', 'ktai_style'), 'color' => '', 'echo' => true); $r = _ks_parse_arg(func_get_args(), $defaults); if ($r['args']) { $r = array_merge($r, _ks_parse_arg(array($r['args']))); } if (isset($r['all_page_label'])) { $r['all_page_anchor'] = $r['all_page_label']; } unset($r['args']); $args = $r; unset($args['sep'], $args['before'], $args['after'], $args['all_page_label'], $args['echo']); $pages = get_pages($args); $menu = array(); if (count($pages) < 1) { return; } $has_children = 0; $a_open = $r['color'] ? '<font color="' . $r['color'] . '">' : ''; $a_close = $r['color'] ? '</font>' : ''; foreach ($pages as $p) { if ($r['parent_only'] && $p->post_parent) { $has_children++; continue; } $menu[] = '<a href="' . KtaiStyle::strip_host(get_page_link($p->ID)) . '"' . $style . '>' . $a_open . esc_attr($p->post_title) . $a_close . '</a>'; } if ($has_children) { $menu[] = '<a href="' . ks_blogurl(KTAI_NOT_ECHO) . '?menu=pages">' . $a_open . $r['all_page_anchor'] . $a_close . '</a>'; } $output = $r['before'] . implode($r['sep'], $menu) . $r['after']; if ($r['echo']) { echo $output; } return $output; }