<?php

global $ks_settings, $show_on_front, $page_for_posts;
$count = $ks_settings['ol_max'] + 1;
$max = 10;
?>
<!--end paging[<hr color="<?php 
echo $ks_settings['hr_color'];
?>
" />]-->
<?php 
ks_switch_inline_images('<hr color="' . $ks_settings['hr_color'] . '" /><div align="center">', '</div>');
?>
<hr color="<?php 
echo $ks_settings['hr_color'];
?>
" />
<div><?php 
ks_pict_number($count, true);
?>
<a name="tail" href="<?php 
ks_blogurl();
?>
" accesskey="<?php 
echo intval($count++);
?>
"><?php 
echo $show_on_front ? __('Front Page', 'ktai_style') : __('New Posts', 'ktai_style');
?>
</a> | <?php 
if ($show_on_front && $page_for_posts) {
<!--end paging-->
<?php 
ks_switch_inline_images();
?>
<hr />
<div><a name="tail" href="<?php 
ks_blogurl();
?>
"><?php 
global $ks_settings;
$max = 10;
$show_on_front = get_option('show_on_front') == 'page';
echo $show_on_front ? __('Front Page', 'ktai_style') : __('New Posts', 'ktai_style');
?>
</a><?php 
if ($show_on_front && ($page_for_posts = get_option('page_for_posts'))) {
    ?>
 | <?php 
    ks_ordered_link('', $max, get_permalink($page_for_posts), __('New Posts', 'ktai_style'));
}
?>
 | <?php 
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