';
} elseif ( $feature_option == "Small slides and feature text box-thumbnails" ) {
echo '
';
echo '
';
echo '
';
} elseif ( $feature_option == "Small slides and feature text box-nonav" ) {
echo '
';
echo '
';
echo '
';
} elseif ( $feature_option == "Small single image and feature text box" ) {
$category_ID = get_cat_ID('Feature');
global $post;
$args = array('category'=>$category_ID,'numberposts'=>1);
$custom_posts = get_posts($args);
if ($category_ID !== 0 && $custom_posts){
$post = $custom_posts[0];
echo '
';
if (has_post_thumbnail()) {
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID),'full') ;
$image_url = $thumb[0];
$title = get_post(get_post_thumbnail_id())->post_excerpt;
echo '
';
echo '
';
echo '';
} else {
echo '
';
echo '
'.__('Error: There were no feature images found?','blogBox').'
';
echo '';
return;
}
echo '
';
} else {
echo '
 . '/images/feature_slider/defaultslide.jpg)
';
}
} elseif ( $feature_option == "Full single image" ) {
$category_ID = get_cat_ID('Feature');
global $post;
$args = array('category'=>$category_ID,'numberposts'=>1);
$custom_posts = get_posts($args);
if ($category_ID !== 0 && $custom_posts){
$post = $custom_posts[0];
echo '
';
if (has_post_thumbnail()) {
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID),'full') ;
$image_url = $thumb[0];
$title = get_post(get_post_thumbnail_id())->post_excerpt;
echo '
';
echo '
';
echo '';
} else {
echo '
';
echo '
'.__('Error: There were no feature images found?','blogBox').'
';
echo '';
return;
}
echo '
';
} else {
echo '
 . '/images/feature_slider/defaultslide.jpg)
';
}
}
if ( $feature_option != 'Small single image and feature text box' && $feature_option != 'Full single image') {
$category_ID = get_cat_ID('Feature');
global $post;
$args = array('category'=>$category_ID,'numberposts'=>999);
$custom_posts = get_posts($args);
if ($category_ID !== 0 && $custom_posts){
foreach($custom_posts as $post) : setup_postdata($post);
if (has_post_thumbnail()) {
if ($feature_option == 'Small slides and feature text box-thumbnails' || $feature_option == 'Full feature slides-thumbnails') {
$thumb1 = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID),'wide_thumbnail') ;
$thumb_url = $thumb1[0];
}
$thumb2 = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID),'full') ;
$image_url = $thumb2[0];
$title = get_post(get_post_thumbnail_id())->post_excerpt;
echo '
';
if( $feature_option == "Full feature slides" || $feature_option == "Small slides and feature text box" ) {
echo '
';
} elseif( $feature_option == "Full feature slides-thumbnails" || $feature_option == "Small slides and feature text box-thumbnails" ) {
echo '
';
} else {
echo '
';
}
echo '';
}
endforeach;
} else {
if( $feature_option == "Full feature slides" || $feature_option == "Full feature slides-thumbnails" ) {
echo '
 . '/images/feature_slider/defaultslide.jpg)
';
} else {
echo '
 . '/images/feature_slider/defaultslide.jpg)
';
}
}
echo '
';
echo '
';
}
if( $feature_option == "Small slides and feature text box" || $feature_option == "Small slides and feature text box-thumbnails" || $feature_option == "Small single image and feature text box" || $feature_option == "Small slides and feature text box-nonav" ) {
echo '
';
if( $use_feature_widget_area != 1 ) {
echo "
".stripslashes($blogBox_option['bB_left_feature_title'])."
";
echo wp_kses_post(stripcslashes($blogBox_option['bB_left_feature_text']));
} else {
if ( !dynamic_sidebar('Feature Area') ) :
endif;
}
echo '';
}
echo '
';
}
}
if ( !function_exists ('blogBox_home_sections')){
function blogBox_home_sections() {
global $blogBox_option;
$blogBox_option = blogBox_get_options();
if ($blogBox_option['bB_home1section1_onoroff'] == 1) { ?>
'; ?>
'.stripslashes($blogBox_option['bB_home1service1_title']).''; ?>
'.wp_kses_post(stripslashes($blogBox_option['bB_home1service1_text'])).''; ?>
'; ?>
'.stripslashes($blogBox_option['bB_home1service2_title']).''; ?>
'.wp_kses_post(stripslashes($blogBox_option['bB_home1service2_text'])).''; ?>
'; ?>
'.stripslashes($blogBox_option['bB_home1service3_title']).''; ?>
'.wp_kses_post(stripslashes($blogBox_option['bB_home1service3_text'])).''; ?>
'primary-nav',
'container_class' => 'main-nav',
'container_id' => 'main-menu-right-noborder',
'menu_class' => 'sf-menu',
'menu_id' => 'main_menu_ul',
'fallback_cb' => 'wp_page_menu'
)
);
}
} else if ( $blogBox_option['bB_menu_loc'] == 'left' ) {
if(has_nav_menu('primary-nav')){
wp_nav_menu(
array(
'theme_location' => 'primary-nav',
'container_class' => 'main-nav',
'container_id' => 'main-menu-left-noborder',
'menu_class' => 'sf-menu',
'menu_id' => 'main_menu_ul',
'fallback_cb' => 'wp_page_menu'
)
);
}
} else {
If ( $blogBox_option['bB_menu_border'] == 'menu only' ) {
if(has_nav_menu('primary-nav')){
wp_nav_menu(
array(
'theme_location' => 'primary-nav',
'container_class' => 'main-nav',
'container_id' => 'main-menu-center-border',
'menu_class' => 'sf-menu',
'menu_id' => 'main_menu_ul',
'fallback_cb' => 'wp_page_menu'
)
);
}
} else {
if(has_nav_menu('primary-nav')){
wp_nav_menu(
array(
'theme_location' => 'primary-nav',
'container_class' => 'main-nav',
'container_id' => 'main-menu-center-noborder',
'menu_class' => 'sf-menu',
'menu_id' => 'main_menu_ul',
'fallback_cb' => 'wp_page_menu'
)
);
}
}
}
}
}
?>