0 ) : ?> 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')) ); } } 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 ); 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_get_posts($page_type, $query = null) { global $post, $wp_query; if (!$query) $query = $wp_query; if ( $query->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() { ?>