'ffffff',
'text' => '545454',
'link' => '006a80',
'border' => 'cccccc',
'url' => '8fbf60',
);
$content_width = 490; //takes into account aligned images with border - 4px padding with every size + 2pix of border width
/**
* Make theme available for translation
* Translations can be filed in the /languages/ directory
*/
load_theme_textdomain( 'tarski', get_template_directory() . '/languages' );
$themeData = get_theme_data( get_template_directory() . '/style.css');
$installedVersion = $themeData['Version'];
if(!$installedVersion) {
$installedVersion = "unknown";
}
// Add default posts and comments RSS feed links to head
add_theme_support( 'automatic-feed-links' );
$highlightColor = "#a3c5cc";
// widgets!
if(function_exists('register_sidebar')) {
register_sidebar(array(
'name' => __( 'Main Sidebar', 'tarski' ),
'id' => 'main-sidebar',
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
));
register_sidebar(array(
'name' => __( 'Footer Widgets', 'tarski' ),
'id' => 'footer-widgets',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
));
}
// No CSS, just IMG call
define('HEADER_TEXTCOLOR', '');
define('HEADER_IMAGE', '%s/images/greytree.jpg'); // %s is theme dir uri
define('HEADER_IMAGE_WIDTH', 720);
define('HEADER_IMAGE_HEIGHT', 180);
define('NO_HEADER_TEXT', true );
function tarski_admin_header_style() {
?>
__( 'Primary Navigation', 'tarski' ),
) );
function tarski_page_menu() { // fallback for primary navigation ?>
comment_approved == '0') : ?>
id="comment-">
'comment', 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
tag based on what is being viewed.
*
* @since Tarski 3.1
*/
function tarski_wp_title( $title, $sep ) {
global $page, $paged;
if ( is_feed() )
return $title;
// Add the blog name
$title .= get_bloginfo( 'name' );
// Add the blog description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
$title .= " $sep $site_description";
// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
$title .= " $sep " . sprintf( __( 'Page %s', 'tarski' ), max( $paged, $page ) );
return $title;
}
add_filter( 'wp_title', 'tarski_wp_title', 10, 2 );
function tarski_get_user_count() {
static $count_users = null;
if ( $count_users === null ) {
$users = get_users_of_blog();
// Should really only look for users that can write posts, or maybe check to see how many authors have written posts
$count_users = is_countable( $users ) ? count( $users ) : 0;
}
return $count_users;
}
(', ')' ); ?>