This repository has been archived by the owner. It is now read-only.
Permalink
Cannot retrieve contributors at this time
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?
ucs/page-2Col-scholarships.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
41 lines (34 sloc)
1.24 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template Name: Default w/Sidebar - Scholarships | |
*/ | |
get_header(); ?> | |
<div class="row"> | |
<div class="span8 floatleft"> | |
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> | |
<div class="post content clearfix" id="post-<?php the_ID(); ?>"> | |
<h1> | |
<?php the_title(); ?> | |
</h1> | |
<div class="entry"> | |
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> | |
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> | |
</div> | |
</div> | |
<?php endwhile; endif; ?> | |
</div> | |
<div class="span3 floatleft sidebar"> | |
<h4 class="opp-padding">Scholarship Opportunities</h4> | |
<?php $the_query = new WP_Query( 'showposts=5&category_name=scholarships' ); ?> | |
<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?> | |
<ul> | |
<li class="listing"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li> | |
</ul> | |
<?php endwhile;?> | |
<br /> | |
<ul> | |
<li><a href="<?php bloginfo('get_stylesheet_directory'); ?>/scholarships">View All Scholarships »</a></li> | |
</ul> | |
</div> | |
</div> | |
<?php get_footer(); ?> |