'Top Sidebar (300px)')); register_sidebars(1,array('name'=>'Bottom Left Sidebar (130px)')); register_sidebars(1,array('name'=>'Bottom Right Sidebar (160px)')); register_sidebars(1,array('name'=>'Footer')); // include the theme options include(TEMPLATEPATH."/includes/aureola-options.php"); include(TEMPLATEPATH."/includes/aureola_arch.php"); function aur_get_first_image($post) { $first_img = ''; ob_start(); ob_end_clean(); $output = preg_match_all('//i', $post->post_content, $matches); $first_img = $matches [1] [0]; return $first_img; } //Function to get limited content from the excerpt if (!function_exists('the_content_limit')){ function the_content_limit($max_char, $more_link_text = '(more...)', $stripteaser = 0, $more_file = '') { $content = get_the_content($more_link_text, $stripteaser, $more_file); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); $content = strip_tags($content); if (strlen($_GET['p']) > 0) { echo "

"; echo $content; echo " ".__("Read More", 'aureola')." →"; echo "

"; } else if ((strlen($content)>$max_char) && ($espacio = strpos($content, " ", $max_char ))) { $content = substr($content, 0, $espacio); $content = $content; echo "

"; echo $content; echo "..."; echo " ".$more_link_text.""; echo "

"; } else { echo "

"; echo $content; echo " ".__("Read More", 'aureola')." →"; echo "

"; } } } function aur_get_thumbnail($thumbnail) { if (empty($thumbnail)) { return false; } else { //if wpmu uncomment below lines START /* global $blog_id, $current_site; preg_match( "/\/files\/(.*)$/i", $thumbnail, $matches ); $file_matches = $matches[1]; if(empty($file_matches)){ $file_matches = "thumbnail.png"; } if (isset($blog_id)){ $thumbnail = "http://" . $current_site->domain . $current_site->path . "wp-content/blogs.dir/" . $blog_id . "/files/" . $file_matches; return $thumbnail; } */ //END return $thumbnail; } } ?>