' . "\n"; if(get_theme_mod('header_image')) { echo ' ' . __('Header image','tarski') . '' . "\n"; } else { echo ' ' . __('Header image','tarski') . '' . "\n"; } echo "\n"; } } // Site title output function tarski_doctitle() { global $wp_query; $titleSep = '·'; echo get_bloginfo('name'); if((get_option('show_on_front') == 'posts') && is_home()) { if(get_bloginfo('description') != '') { echo ' ' . $titleSep . ' ' . get_bloginfo('description'); } } elseif(is_search()) { echo ' ' . $titleSep . ' ' . __('Search results','tarski'); } elseif(is_month()) { echo ' ' . $titleSep . ' '; single_month_title(' '); } else { wp_title($titleSep); } } // Returns site title in markup function tarski_sitetitle() { global $wp_query; $frontPageID = get_option('page_on_front'); if(get_tarski_option('display_title') != 'lolno') { if((get_option('show_on_front') == 'page') && ($frontPageID == $wp_query->post->ID)) { $prefix = '

'; $suffix = '

'; } elseif((get_option('show_on_front') == 'posts') && is_home()) { $prefix = '

'; $suffix = '

'; } else { $prefix = '

'; $suffix = '

'; } return $prefix . get_bloginfo('name') . $suffix; } } // Returns tagline in markup function tarski_tagline() { if((get_tarski_option('display_tagline') && get_bloginfo('description') != '')) { return '

' . get_bloginfo('description') . '

'; } } // Outputs site title and tagline function tarski_titleandtag() { $openingTag = '
'; $closingTag = '
'; if(tarski_tagline() || tarski_sitetitle()) { echo $openingTag . "\n"; echo tarski_sitetitle() . "\n"; echo tarski_tagline() . "\n"; echo $closingTag . "\n"; } } // Navbar function tarski_navbar() { $current = 'class="nav-current" '; if(get_option('show_on_front') != 'page') { if(is_home()) { $homeStatus = $current; } echo '
  • ' . __('Home','tarski') . "
  • \n"; } global $wpdb; $nav_pages = get_tarski_option('nav_pages'); if($nav_pages) { $nav_pages = explode(',', $nav_pages); foreach($nav_pages as $page) { if(is_page($page) || ((get_option('show_on_front') == 'page') && (get_option('page_for_posts') == $page) && is_home())) { $pageStatus = $current; } else { $pageStatus = ''; } echo '
  • posts WHERE ID = $page") . '" ' . $pageStatus . 'href="' . get_permalink($page) . '">' . $wpdb->get_var("SELECT post_title from $wpdb->posts WHERE ID = $page") . '
  • ' . "\n"; } } global $navbarInclude; if($navbarInclude) { echo $navbarInclude . "\n"; } if(is_user_logged_in()) { echo '
  • ' . __('Site Admin','tarski') . '
  • ' . "\n"; } } // Body classes function tarski_bodyclass() { if(get_tarski_option('centered_theme')) { // Centred or not echo 'center'; } else { echo 'left'; } if(get_tarski_option('swap_sides')) { // Swapped or not echo ' janus'; } if(get_tarski_option('style')) { // Alternate style echo ' ' . str_replace('.css', '', get_tarski_option('style')); } if (is_page() || is_single() || is_404()) { // Is it a single page? echo ' single'; } } // Footer sidebar function tarski_searchform() { if(!is_search()) { include(TEMPLATEPATH . '/searchform.php'); } } function tarski_livecomments_integration() { if (function_exists('live_preview')) { live_preview(); } } // Default footer stuff including credit function tarski_feed_and_credit() { ?>

    WordPress and Tarski', 'tarski'); ?>domain . $current_site->path . '">' . $current_site->site_name . ''; } ?>