'sidebar',
'id' => 'sidebar',
'description' => '',
'before_widget' => '
',
'after_widget' => '',
'before_title' => '' );
register_sidebar($args);
$args2 = array(
'name' => 'top',
'id' => 'top',
'description' => '',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '' );
register_sidebar($args2);
}
if (function_exists('register_nav_menu')) {
register_nav_menu( 'primary', 'Primary Menu');
}
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 150, 150 ); // default Post Thumbnail dimensions
}
if ( function_exists( 'add_image_size' ) ) {
// add_image_size( 'featured-thumb', 300, 9999 ); //300 pixels wide (and unlimited height)
add_image_size( 'featured-image', 470, 300, true ); //(cropped)
add_image_size( 'featured-small', 150, 93, true ); //(cropped)
}
function audiolabLatest(){
$posts = get_featured_posts(array( 'method' => 'arr'));
$out ='';
$small = '';
if (count($posts)==0)
return;
$out .='';
$small .='
';
foreach ($posts as $key => $post) {
$id = $post['id'];
$link = get_permalink($id);
$tid = get_post_thumbnail_id($id);
$url_img = wp_get_attachment_image_src($tid);
$out .='
';
}
$small .='
';
$out .='
' .$small . '
';
return $out;
}