Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
<?php
/*
Template Name: Home
*/
get_header();
$homepageLayout = get_theme_mod( 'homepagelayout','3-3');
if($homepageLayout == '1-3') {
/*
Template Name: Homepage 1-3
*/
?>
<div id="home">
<div class="row" id="row1">
<div id="home1" class="span3" role="complementary">
<p class="text-serif text-light-grey">WHY HUMAN<br /> RIGHTS MATTER<br /> RIGHT NOW</p>
</div>
<div class="span6" role="complementary">
<p class="text-serif text-med-grey">The Human Rights Institute at the University of Connecticut is a leading innovator in research and teaching that critically engages contemporary dynamics and discourses on the theory and practice of human rights throughout the world.</p>
</div>
</div>
<hr class="home-sub-human-hr" />
<div class="row row-section-title">
<h3 class="text-serif">OUR APPROACH</h3>
</div>
<div class="home-slider-wrapper">
<?php ( is_active_sidebar('sidebar-slideshow') ? dynamic_sidebar('sidebar-slideshow'): '' ); ?>
</div>
</div>
</div>
<div class="container" id="home-bottom-half-container">
<div class="row">
<div class="span9">
<div class="span9">
<h3 class="text-serif">OPPORTUNITIES</h3>
<hr class="home-bottom-hr" />
<div class="home-opportunities">
<p>Experience the practical application of human rights issues or find support for your own research. We’re here to help.</p>
<a href="<?php bloginfo('url'); ?>/internships"><img src="<?php bloginfo('template_url'); ?>/img/home/internships.png" alt="internship link" class="home-internship" onMouseOver="this.src='<?php bloginfo('template_url'); ?>/img/home/internships-rollover.png'" onMouseOut="this.src='<?php bloginfo('template_url'); ?>/img/home/internships.png'" /></a>
<a href="#"> <img src="<?php bloginfo('template_url'); ?>/img/home/opportunity_circle.png" alt="circular graphic of a person writing" class="home-circular" /></a>
<a href="<?php bloginfo('url'); ?>/undergraduate-research-and-internship-funding"><img src="<?php bloginfo('template_url'); ?>/img/home/funding.png" alt="finding link" class="home-funding" onMouseOver="this.src='<?php bloginfo('template_url'); ?>/img/home/funding-rollover.png'" onMouseOut="this.src='<?php bloginfo('template_url'); ?>/img/home/funding.png'" /></a>
</div>
<hr class="opportunities-hr" />
</div>
<div class="row">
<div class="span6 latest-news">
<h3 class="text-serif">THE LATEST NEWS</h3>
<hr />
<div class="span3 home-bottom-image">
<?php $args = array('category_name' => 'home-latest-news',
'posts_per_page' => 1,
'orderby' => 'post-date');
$posts = get_posts($args);
?>
<?php if ( !empty($posts) && isset($posts[0])) : foreach( $posts as $post ) : setup_postdata($post); ?>
<img src="<?php $key="featured-image-square"; echo( get_post_meta($post->ID, $key, true)); ?>" />
</div>
<div class="span3 home-bottom-news">
<div class="date">
<img src="<?php bloginfo('template_url'); ?>/img/icon-calendar-green.png"/> &nbsp;<?php the_date(); ?>
</div>
<h4 class="text-serif"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h4>
<?php the_excerpt(); ?>
</div>
<hr class="lower-hr" />
<a class="see-all-latest-news" href="<?php the_permalink(); ?>">READ MORE</a>
<?php endforeach; ?>
<?php else: ?>
<p><?php _e('Sorry, no recent news.'); ?></p>
<?php endif; ?>
</div>
<div class="span3 recent-publications">
<h3 class="text-serif">RECENT PUBLICATIONS</h3>
<hr />
<div class="span3 home-recent-pub">
<?php $args = array('category_name' => 'home-recent-publications',
'posts_per_page' => 1,
'orderby' => 'post-date');
$posts = get_posts($args);
?>
<?php if ( !empty($posts) && isset($posts[0])) : foreach( $posts as $post ) : setup_postdata($post); ?>
<?php echo get_the_post_thumbnail($post->ID, array(220,220) , 'medium'); ?>
<a class="home-recent-pub-title" href="<?php the_permalink(); ?>"><?php the_title();?></a>
</div>
<hr class="lower-hr" />
<a class="see-all" href="<?php bloginfo('url'); ?>/category/bog">SEE ALL PUBLICATIONS</a>
<?php endforeach; ?>
<?php else: ?>
<p><?php _e('Sorry, no recent news.'); ?></p>
<?php endif; ?>
</div>
</div>
</div>
<div class="span3">
<?php if ( is_active_sidebar( 'home-calendar' ) ) { ?>
<?php dynamic_sidebar( 'home-calendar' ); ?>
<?php } else { ?>
<h1>Home3</h1>
<p>Go to Appearance > Widgets, and drag items into Home3 to edit this area.</p>
<?php }; ?>
<hr class="lower-hr-events" />
<a class="see-all" href="http://events.uconn.edu/current/month/102">SEE THE FULL CALENDAR</a>
</div>
</div>
<?php } get_footer(); ?>