Ejemplo n.º 1
0
$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) {
    ks_ordered_link($count++, $max, get_permalink($page_for_posts), __('New Posts', 'ktai_style'));
    ?>
 | <?php 
Ejemplo n.º 2
0
<?php 
if (have_posts()) {
    the_post();
    the_date('', '<div align="center"><font color="' . $ks_settings['date_color'] . '">', '</font></div>');
    ?>
	<div align="right"><font size="-1"><a href="#cont" accesskey="<?php 
    echo $next_accesskey;
    ?>
"><img localsrc="30" alt="<?php 
    _e('&darr;', 'ktai_style');
    ?>
" /><?php 
    _e('Skip the content', 'ktai_style');
    ?>
</a><?php 
    ks_pict_number($next_accesskey, true);
    ?>
</font></div>
	<h2><?php 
    if (ks_is_front()) {
        ?>
		<img localsrc="334" alt="[new] " />
	<?php 
    }
    the_title();
    ?>
</h2>
	<div><img localsrc="68" alt="" /><font color="<?php 
    echo $ks_settings['author_color'];
    ?>
"><?php 
Ejemplo n.º 3
0
    $google_link = 'http://www.google.com/gwt/n?_gwt_noimg=1&u=' . rawurlencode(preg_replace('|^http://|', '', ks_redir_get('full_url')));
    ?>
</p>
	<p><?php 
    _e('You can translate the PC site to view suitable for mobile using services below.', 'ktai_style');
    ?>
	<br /><?php 
    ks_ordered_link($accesskey++, 10, $sjk_link, __('Tsuukin(commuting)-browser', 'ktai_style'));
    ?>
	<br /><?php 
    ks_ordered_link($accesskey++, 10, $google_link, __('Google Wireless Transcoder', 'ktai_style'));
    if (is_ktai() == 'KDDI' && is_ktai('type') == 'WAP2.0') {
        echo '<br />';
        ks_ordered_link(0, 10, 'device:pcsiteviewer?url=' . esc_url(ks_redir_get('full_url')), __('PC Site Viewer on your phone.', 'ktai_style'));
    } elseif (is_ktai() == 'DoCoMo' && is_ktai('type') == 'FOMA') {
        echo '<br />' . ks_pict_number(0) . sprintf(__('<a %s>Full Browser on your phone.</a>', 'ktai_style'), 'href="' . esc_url(ks_redir_get('full_url')) . '" ifb="' . esc_url(ks_redir_get('full_url')) . '" accesskey="0"');
    }
    ?>
</p>
	<?php 
    if (!ks_redir_get('mobile_url') || ks_redir_get('mobile_url') != ks_redir_get('full_url')) {
        ?>
		<p><?php 
        _e('If you know that the site is suitable for mobile at the same URL, it is good to jump directly.', 'ktai_style');
        ?>
<br />#.<a href="<?php 
        echo esc_url(ks_redir_get('full_url'));
        ?>
"><?php 
        echo htmlspecialchars(ks_redir_get('full_url'), ENT_QUOTES);
        ?>
</p></div><?php 
            }
            ?>
			</ol>
		<?php 
        } else {
            // If there are no comments yet
            ?>
			<p><?php 
            echo $type != 'pings' ? __('No comments yet.') : __('No pings yet.', 'ktai_style');
            ?>
</p>
		<?php 
        }
    }
    ks_comments_post_link(__('Write a comment', 'redportal'), '<hr color="' . $ks_settings['hr_color'] . '" />', '', ks_pict_number(1), '1');
} elseif (ks_is_comment_post()) {
    ?>
	<h2 align="center"><?php 
    _e('Comment', 'redportal');
    ?>
</h2>
	<hr color="<?php 
    echo $ks_settings['hr_color'];
    ?>
" />
	<?php 
    $need_password = ks_check_password(__('Enter your password to post a comment.', 'ktai_style'));
    if ($need_password && !is_user_logged_in()) {
        echo $need_password;
        return;
Ejemplo n.º 5
0
</div>
		<hr color="<?php 
        echo $ks_settings['hr_color'];
        ?>
" />
		<?php 
        ks_content(__('(more...)'));
        ks_link_pages();
        ?>
		<hr color="<?php 
        echo $ks_settings['hr_color'];
        ?>
" />
		<?php 
        ks_comments_link(ks_pict_number(1), __('View Comments(0)', 'redportal'), __('View Comment(1)', 'redportal'), sprintf(__('View Comments(%d)', 'redportal'), get_comments_number($id)), '' . __('<img localsrc="61" alt="X " />Comments Stopped', 'redportal'), NULL, '1');
        ks_comments_post_link(__('Write a comment', 'redportal'), '<br />', '', ks_pict_number(2), '2');
        edit_post_link(__('Edit post'), '<br /><img localsrc="104" alt="" />');
        ?>
<hr color="<?php 
        echo $ks_settings['hr_color'];
        ?>
" /><?php 
        ks_previous_post_link('<div align="left"><img localsrc="7" alt="&laquo;">*.%link</div>');
        ks_next_post_link('<div align="right">#.%link<img localsrc="8" alt="&raquo;"></div>');
        ks_tags('<hr color="' . $ks_settings['hr_color'] . '" />' . __('<img localsrc="77" alt="" />Related Words', 'redportal') . '<br />');
    } else {
        // ks_is_comment()
        comments_template();
    }
} else {
    ?>
Ejemplo n.º 6
0
?>
</head>
<body>
<?php 
/* <body bgcolor="" text="" link="" alink="" vlink=""> */
global $ks_settings;
$ks_settings = array();
// erase array for security
$ks_settings['h2_style'] = '';
$ks_settings['list_pages'] = 'sort_column=menu_order,post_title';
$ks_settings['ol_max'] = 9;
$ks_settings['ol_count'] = 1;
$ks_settings['date_color'] = ks_option('ks_date_color');
$ks_settings['time_color'] = ks_option('ks_time_color');
$ks_settings['author_color'] = ks_option('ks_author_color');
$ks_settings['comment_color'] = ks_option('ks_comment_color');
$ks_settings['edit_color'] = ks_option('ks_edit_color');
ks_page_title();
/* ks_page_title('logo.png'); */
?>
<div align="right"><font size="-1"><a href="#tail" accesskey="0"><img localsrc="30" alt="<?php 
_e('&darr;', 'ktai_style');
?>
" /><?php 
_e('Menu', 'ktai_style');
?>
</a><?php 
ks_pict_number(0, true);
?>
</font></div>
<hr />
Ejemplo n.º 7
0
" />
</div></form>
<dl><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(' / ', 'ktai_style');
ks_ordered_link($count++, $max, ks_blogurl(KTAI_NOT_ECHO) . '?menu=tags', __('Tags'));
?>
</dt>
<?php 
if (is_user_logged_in()) {
    ks_admin_link(array('before' => '<dt>' . ks_pict_number($count) . '<img localsrc="112" alt="' . __('&dagger;', 'ktai_style') . '" />', 'accesskey' => $count++));
    $accesskey = NULL;
} else {
    $accesskey = $count++;
}
ks_login_link(array('before' => '<dt>' . ks_pict_number($accesskey) . '<img localsrc="120" alt="' . __('&dagger;', 'ktai_style') . '" />', 'before_logout' => '<img localsrc="120" alt="' . __('&dagger;', 'ktai_style') . '" />', 'after' => '</dt>', 'accesskey' => $accesskey));
?>
</dl>
<div id="footer" style="color:white;background-color:#dd143c;">
<div align="right">We<font color="white"><img localsrc="416" alt=" love " /></font>WordPress.<?php 
ks_switch_pc_view('color=#eeeeee');
?>
</div>
<?php 
ks_wp_footer(KTAI_NONE_PC_HEAD);
?>
</div></body></html>
function ks_ordered_link()
{
    //function ks_ordered_link($count, $max = 10, $link, $label = NULL, $format, $echo) {
    $defaults = array('count' => 1, 'max' => 10, 'link' => NULL, 'anchor' => NULL, 'format' => '%link', 'hide_over_max' => false, 'echo' => true);
    $r = _ks_parse_arg(func_get_args(), $defaults);
    if (isset($r['label'])) {
        $r['anchor'] = $r['label'];
    }
    if ($r['max'] <= 0 || $r['max'] > 10) {
        $r['max'] = 10;
    }
    if ($r['count'] > $r['max']) {
        $r['count'] = $r['hide_over_max'] ? '' : 99;
    }
    $output = ks_pict_number($r['count']);
    if ($r['link']) {
        $anchor = '<a href="' . htmlspecialchars($r['link'], ENT_QUOTES) . '"' . ks_accesskey_html($r['count']) . '>';
        if (!is_null($r['anchor'])) {
            $anchor .= $r['anchor'] . '</a>';
        }
    } else {
        $anchor = $r['anchor'];
    }
    $output .= str_replace('%link', $anchor, $r['format']);
    if ($r['echo']) {
        echo $output;
    }
    return $output;
}