<?php
/**
* Template Name: Three columns - two sidebars
*
* @package EvoLve
* @subpackage Template
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--BEGIN html-->
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<!--BEGIN head-->
<head profile="<?php evlget_profile_uri(); ?>">
<title><?php wp_title('-', true); ?></title>
<!-- Meta Tags -->
<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="generator" content="WordPress" />
<?php wp_head(); ?>
<style type="text/css">
.hfeed {min-width: 506px;width: 53%;}
.aside {min-width: 210px;width: 20%;}
</style>
<!--END head-->
</head>
<!--BEGIN body-->
<body <?php body_class(); ?>>
<?php $options = get_option('evolve'); if ($options['evl_custom_background'] == "1") { ?>
<div id="wrapper">
<?php } ?>
<div id="top"></div>
<!--BEGIN .header-->
<div class="header" style="margin: 0 auto;<?php if( get_header_image() ) { ?>padding:10px 20px 35px 20px;width: 940px;background:url('<?php header_image(); ?>');<?php } ?>">
<?php $options = get_option('evolve');
if ($options['evl_main_menu_pos'] == "before") { ?>
<!--BEGIN .container-menu-->
<div class="container" style="margin:0 auto;margin-top:40px;position:relative;z-index:99;">
<?php main_menu_pos(); ?>
</div> <?php } ?>
<!--BEGIN .container-->
<div class="container" style="margin-bottom:0px;">
<div class="radial-effect"></div>
<!-- AD Space 1 -->
<?php $options = get_option('evolve');
if (!empty($options['evl_ads_1_id'])) {
$ads_slot = $options['evl_ads_1_id'];
$adsize = $options['evl_ads_1'];
echo '<div style="float:right;margin-left:10px;overflow:hidden;">'.adsense_unit($ads_slot,$adsize).'</div>';
}
if (!empty($options['evl_space_1'])) {
$ad_space_1 = $options['evl_space_1'];
echo '<div style="float:right;margin-left:10px;overflow:hidden;">'.stripslashes($ad_space_1).'</div>';
}
?>
<?php $options = get_option('evolve');
if ($options['evl_search_field'] == "inside") { ?>
<!--BEGIN #righttopcolumn-->
<div id="righttopcolumn">
<?php get_search_form(); ?>
</div>
<!--END #righttopcolumn-->
<?php } ?>
<?php $options = get_option('evolve'); if ($options['evl_pos_logo'] == "disable") { ?>
<?php } else { ?>
<?php $options = get_option('evolve');
if (!empty($options['evl_header_logo'])) {
echo "<a href=".home_url()."><img id='logo-image' src=".$options['evl_header_logo']." /></a>";
}
?>
<?php } ?>
<?php
$taglinestyle = '';
if (($options['evl_tagline_pos'] !== "disable") && ($options['evl_tagline_pos'] == "under")) {
$taglinestyle = "style='clear:left;padding-top:10px;'";
}
if (($options['evl_tagline_pos'] !== "disable") && ($options['evl_tagline_pos'] == "above")) {
$taglinestyle = "style='padding-top:0px;'"; }
$tagline = '<div id="tagline" '.$taglinestyle.'>'.get_bloginfo( 'description' ).'</div>';
if (($options['evl_tagline_pos'] !== "disable") && ($options['evl_tagline_pos'] == "above")) {
$taglinestyle = "padding-top:10px;'";
echo $tagline;
} ?>
<?php if ($options['evl_blog_title'] == "1") { ?>
<?php } else { ?>
<div id="logo"><span></span><a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ) ?></a></div>
<?php } if (($options['evl_tagline_pos'] !== "disable") && (($options['evl_tagline_pos'] == "") || ($options['evl_tagline_pos'] == "next") || ($options['evl_tagline_pos'] == "under")))
{
echo $tagline;
} ?>
<!--END .container-->
</div>
<!--END .header-->
</div>
<div class="menu-container">
<div class="menu-back">
<?php $options = get_option('evolve');
if ($options['evl_main_menu_pos'] == "after" || $options['evl_main_menu_pos'] == "") { ?>
<!--BEGIN .container-menu-->
<div class="container nacked-menu" style="margin:0 auto;padding-bottom:10px;position:relative;z-index:9;">
<?php main_menu_pos(); ?>
</div>
<?php } else { } ?>
<?php $options = get_option('evolve');
if ($options['evl_main_menu_pos'] == "before") { ?>
<div style=";margin-bottom:30px;"></div> <?php } ?>
<!--BEGIN header-content.php -->
<?php $options = get_option('evolve');
if (is_home()) {
$settings = $options['evl_home_header_content'];
} elseif (is_single()) {
$settings = $options['evl_single_header_content'];
} else {
$settings = $options['evl_archives_header_content']; }
?>
<?php get_template_part('header-content', 'header'); ?>
<!--END header-content.php -->
<?php $options = get_option('evolve');
// if Header widgets exist
if (($options['evl_widgets_header'] == "") || ($options['evl_widgets_header'] == "disable"))
{ } else { ?>
<div class="container widgets-back" style="margin-top:0;margin-bottom:0;width:100%;">
<!--BEGIN .widgets-holder-->
<div class="widgets-holder widgets-back-inside" style="margin:20px auto 0 auto;">
<div class="header-1">
<?php if ( !dynamic_sidebar( 'header-1' )) : ?>
<?php endif; ?>
</div>
<div class="header-2">
<?php if ( !dynamic_sidebar( 'header-2' ) ) : ?>
<?php endif; ?>
</div>
<div class="header-3">
<?php if ( !dynamic_sidebar( 'header-3' ) ) : ?>
<?php endif; ?>
</div>
<div class="header-4">
<?php if ( !dynamic_sidebar( 'header-4' ) ) : ?>
<?php endif; ?>
</div>
</div>
<!--END .widgets-holder-->
</div>
<?php } ?>
<!-- AD Space 2 -->
<?php $options = get_option('evolve');
if (!empty($options['evl_space_2'])) {
if (!empty($options['evl_ads_2_id'])) {
$ads_slot = $options['evl_ads_2_id'];
$adsize = $options['evl_ads_2'];
echo '<div style="clear:both;text-align:center;margin:10px 0 15px 0;overflow:hidden;">'.adsense_unit($ads_slot,$adsize).'</div>';
}
$ad_space_2 = $options['evl_space_2'];
echo '<div style="clear:both;text-align:center;margin:10px 0 15px 0;overflow:hidden;">'.stripslashes($ad_space_2).'</div>';
}
?>
</div>
<?php if (is_home() && ($options['evl_bigslideshow_home'] == "1") ||
is_single() && ($options['evl_bigslideshow_post'] == "1") ||
(is_archive() || is_page()) && ($options['evl_bigslideshow_archives'] == "1")
) { ?>
<div class="slider-wrapper theme-default" style="margin-top:0;">
<div id="shadow-effect"></div>
<div id="nivo_holder" class="nivoSlider">
<?php $postscategory = ''; if ($options['evl_slideshow_content'] == "posts_category" && !empty($options['evl_category_number']) ) { $postscategory = $options['evl_category_number']; }
$postsnumber = $options['evl_posts_number'];
?>
<?php
$featured = "";
$captions = array();
$tmp = $featured;
$args=array(
'cat'=> $postscategory,
'showposts'=> $postsnumber,
'ignore_sticky_posts' =>1,
);
query_posts($args);
?>
<?php if (have_posts()) : $featured = new WP_Query($args); while($featured->have_posts()) : $featured->the_post();$captions[] = get_the_title($post->ID); ?>
<?php $image = evlget_first_image();
if ($image) { ?>
<a href="<?php the_permalink() ?>"><img src="<?php echo $image; ?>" title="#caption<?php echo count($captions)-1; ?>" alt="<?php the_title_attribute(); ?>" /></a>
<?php } else { ?>
<a href="<?php the_permalink() ?>"><img src="<?php echo get_bloginfo( 'template_url' ); ?>/library/media/images/default.jpg" title="#caption<?php echo count($captions)-1; ?>" alt="<?php the_title_attribute(); ?>" /></a>
<?php } ?>
<?php endwhile; ?>
<?php else: ?>
<span>
<?php _e( 'Oops, please check your slideshow settings', 'evolve' ); ?>
</span>
<?php endif; $featured = $tmp; ?>
</div> <div id="nivo-control-bar"></div>
</div>
<!-- close #slider -->
<?php
foreach($captions as $key => $caption) :
?>
<div id="caption<?php echo $key; ?>" class="nivo-html-caption">
<div class="ribbon"><?php $options = get_option('evolve');if ($options['evl_ribbon_text'] != "" ) { echo $options['evl_ribbon_text']; } else { echo 'Featured'; } ?></div><?php echo $caption; ?>
</div>
<?php
endforeach;
?>
<?php wp_reset_query(); ?>
<div style="clear:both;"></div> <?php } ?>
<!--BEGIN .content-->
<div class="content <?php semantic_body(); ?>">
<!--BEGIN .container-->
<div class="container" style="margin:0px auto;">
<!--BEGIN #content-->
<div id="content">
<?php get_sidebar('2'); ?>
<!--BEGIN #primary .hfeed-->
<div id="primary" class="hfeed">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<!--BEGIN .hentry-->
<div id="post-<?php the_ID(); ?>" class="<?php semantic_entries(); ?>">
<h1 class="entry-title"><?php if ( get_the_title() ){ the_title(); }else{ _e( 'Untitled', 'evolve' ); } ?></h1>
<?php if ( current_user_can( 'edit_post', $post->ID ) ): ?>
<?php edit_post_link( __( 'EDIT', 'evolve' ), '<span class="edit-page">', '</span>' ); ?>
<?php endif; ?>
<br /><br />
<!--BEGIN .entry-content .article-->
<div class="entry-content article">
<?php the_content( __('READ MORE »', 'evolve' ) ); ?>
<!--END .entry-content .article-->
<div style="clear:both;"></div>
</div>
<!-- Auto Discovery Trackbacks
<?php trackback_rdf(); ?>
-->
<!--END .hentry-->
</div>
<?php $options = get_option('evolve'); if (($options['evl_share_this'] == "all")) {
evolve_sharethis(); } ?>
<?php comments_template( '', true ); ?>
<?php endwhile; endif; ?>
<!--END #primary .hfeed-->
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>