'; } } function arras_override_styles() { ?> 0 ) : ?> #index-featured .posts-default .post { width: px; } #index-featured .posts-default img, #index-featured .entry-thumbnails-link { width: px; height: px; } #index-featured .entry-thumbnails { width: px; height: px; } #index-featured .posts-default .entry-meta, #index-featured .posts-quick .entry-meta { width: px; } #index-featured .posts-quick .entry-meta { margin: px 0 0 -px; } #index-news .posts-default .post, #archive-posts .posts-default .post { width: px; } #index-news .posts-default img, #index-news .entry-thumbnails-link, #archive-posts .posts-default img, #archive-posts .entry-thumbnails-link { width: px; height: px; } #index-news .entry-thumbnails, #archive-posts .entry-thumbnails { width: px; } #index-news .posts-default .entry-meta, #index-news .posts-quick .entry-meta, #archive-posts .posts-default .entry-meta, #archive-posts .posts-quick .entry-meta { width: px; } #index-news .posts-quick .entry-meta, #archive-posts .posts-quick .entry-meta { margin: px 0 0 -px; } .featured, .featured-article { height: 300px; } .featured-article { width: 940px; } #controls { width: 920px; padding-top: 120px; } .featured-entry { height: 100px; top: 200px; } .featured, .featured-article { height: 225px; } .featured-article { width: 490px; } #controls { width: 470px; padding-top: 70px; } .featured-entry { height: 100px; top: 125px; } 0) { echo ''; } else { echo ' '; $scheme = arras_get_option('style'); if ( $scheme != 'default' ) echo ' '; else echo ' '; if (!ARRAS_CHILD) { echo ' '; } } } /** * Generates semantic classes for BODY element. * Sandbox's version was removed from 1.4 onwards. */ function arras_body_class() { if ( function_exists('body_class') ) { return body_class( array('layout-' . arras_get_option('layout'), 'style-' . arras_get_option('style'), 'no-js') ); } } function arras_get_thumbnail($size = 'thumbnail', $id = 1) { global $post; if ($post) $id = $post->ID; // get post thumbnail (WordPress 2.9+) if ( function_exists('has_post_thumbnail') && has_post_thumbnail($id) ) { $image_src = wp_get_attachment_image_src( get_post_thumbnail_id($id), $size ); if (!$image_src[0]) return false; else return $image_src[0]; } else { // go back to legacy (phpThumb or timThumb) $thumbnail = get_post_meta($id, ARRAS_POST_THUMBNAIL, true); if (!$thumbnail) { return false; } else { switch($size) { case 'sidebar-thumb': $w = 36; $h = 36; break; case 'featured-slideshow-thumb': $w = 640; $h = 250; break; case 'featured-post-thumb': $w = arras_get_option('featured_thumb_w'); $h = arras_get_option('featured_thumb_h'); break; case 'news-post-thumb': $w = arras_get_option('news_thumb_w'); $h = arras_get_option('news_thumb_h'); break; case 'archive-post-thumb': $w = arras_get_option('news_thumb_w'); $h = arras_get_option('news_thumb_h'); break; default: $w = get_option('thumbnail_size_w'); $h = get_option('thumbnail_size_h'); } return get_bloginfo('template_directory') . '/library/timthumb.php?src=' . $thumbnail . '&w=' . $w . '&h=' . $h . '&zc=1'; } } } function arras_render_posts($query = null, $display_type = 'default', $page_type = 'news') { global $post, $wp_query; if (!$query) $query = $wp_query; if ($query->have_posts()) { switch($display_type) { case 'traditional': ?>
have_posts()) : $query->the_post() ?>
>
Read the rest of this entry »

', 'arras') ); ?>
have_posts() ) : ?>
have_posts()) : $query->the_post() ?>
>
Read the rest of this entry »

', 'arras') ); ?>
  • id="li-trackback-">
  • id="li-comment-">
    $depth, 'max_depth' => $args['max_depth']))) ?>
    comment_approved == '0' ) : ?>
    ', ']]>', $content); $words = explode(' ', $content, ($limit + 1)); if(count($words) > $limit) { array_pop($words); //add a ... at last article when more than limit word count return implode(' ', $words) . '...'; } else { //otherwise return implode(' ', $words); } } function arras_js_footer() { ?>