public function output() { if (is_robots() || is_feed() || is_trackback()) { return; } require dirname(__FILE__) . '/' . self::INCLUDES_DIR . '/template-tags.php'; if (is_404()) { $this->theme->bypass_admin_404(); } if (!($template = $this->theme->load_template())) { $this->ks_die(__("Can't display pages. Bacause mobile phone templates are collapsed.", 'ktai_style')); // exit; } add_filter('wp_list_categories', array($this, 'filter_tags'), 90); add_filter('wp_list_pages', array($this, 'filter_tags'), 90); add_filter('ktai_raw_content', array($this->ktai, 'shrink_pre_encode'), 9); add_filter('ktai_encoding_converted', array($this->ktai, 'shrink_pre_split'), 5); add_filter('ktai_encoding_converted', array($this->ktai, 'replace_smiley'), 7); add_filter('ktai_encoding_converted', array($this->ktai, 'convert_pict'), 9); add_filter('ktai_split_page', array($this->ktai, 'shrink_post_split'), 15); add_action('ktai_wp_head', array($this, 'disallow_index')); //$buffer = $this->ktai->get('preamble'); $buffer .= $buffer ? "\n" : ''; ob_start(); include $template; $buffer .= ob_get_contents(); ob_end_clean(); if (isset($this->admin)) { $this->admin->store_referer()->save_data(); $this->admin->unset_prev_session($Ktai_Style->admin->get_sid()); } $buffer = apply_filters('ktai_raw_content', $buffer); $buffer = apply_filters('raw_content/ktai_style.php', $buffer); // backward compatiblity $buffer = $this->encode_for_ktai($buffer); //$buffer = apply_filters('ktai_encoding_converted', $buffer); $buffer = apply_filters('encoding_converted/ktai_style.php', $buffer); // backward compatiblity $buffer = apply_filters('ktai_split_page', $buffer, $this->shrinkage->get_page_num()); $buffer = apply_filters('split_page/ktai_style.php', $buffer, $this->shrinkage->get_page_num()); // backward compatiblity $mime_type = apply_filters('ktai_mime_type', $this->ktai->get('mime_type')); $iana_charset = apply_filters('ktai_iana_charset', $this->ktai->get('iana_charset')); if (ks_is_front() || ks_is_menu('comments')) { nocache_headers(); } if (function_exists('mb_http_output')) { mb_http_output('pass'); } header("Content-Type: {$mime_type}; charset={$iana_charset}"); echo $buffer; exit; }
<?php ks_header(); global $ks_settings; $tree_continued = sprintf('<font color="%s">%s</font>', $ks_settings['list_color'], __('|-', 'ktai_style')); $tree_last = sprintf('<font color="%s">%s</font>', $ks_settings['list_color'], __('+-', 'ktai_style')); $max = isset($ks_settings['ol_max']) ? $ks_settings['ol_max'] : 9; ?> <!--start paging[<hr color="<?php echo $ks_settings['hr_color']; ?> " />]--> <?php if (have_posts()) { if (ks_is_front()) { ?> <h2><?php _e('New Posts', 'ktai_style'); ?> </h2><?php } else { ks_pagenum('<div style="' . $ks_settings['pagenum_style'] . '"><h2>', '</h2></div>'); } ?> <dl> <?php for ($count = 1; have_posts(); $count++) { the_post(); ?> <dt><br /><div style="<?php echo $ks_settings['title_style'];
<?php ks_header(); global $ks_settings; if (have_posts()) { if (is_archive() || is_search()) { $post = $posts[0]; // Hack. Set $post so that the_date() works. } if (!ks_is_front()) { ks_pagenum('<div ' . $ks_settings['h2_style'] . '><h2>', '</h2></div>'); } ?> <dl><?php while (have_posts()) { the_post(); ?> <dt><br /><img localsrc="144" alt="" /><a href="<?php the_permalink(); ?> "><span style="<?php echo $ks_settings['title_style']; ?> "><?php the_title(); ?> </span></a><br /> <img localsrc="46" alt="@ " /><font color="<?php echo $ks_settings['date_color']; ?> "><?php