Created
June 26, 2013 21:01
-
-
Save adrianrodriguez/5871645 to your computer and use it in GitHub Desktop.
Single post before with loop
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 get_header(); ?> | |
<div class="container" id="content-container"> | |
<div class="row content"> | |
<div class="eightcol left-column promo"> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<article id="post-<?php the_ID(); ?>"> | |
<h2 class="title"><?php the_title(); ?></h2> | |
<!-- AddThis Button BEGIN --> | |
<div class="addthis_toolbox addthis_default_style "> | |
<a class="addthis_button_facebook"></a> | |
<a class="addthis_button_twitter"></a> | |
<a class="addthis_button_email last"></a> | |
</div> | |
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script> | |
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5127966e2c3c352f"></script> | |
<!-- AddThis Button END --> | |
<div class="promo-container"> | |
<?php the_content(); ?> | |
<div class="promo-info" style="display: none"><?php the_field('rules'); ?></div> | |
</div> | |
</article> | |
</div> | |
<!-- end left-column --> | |
<div class="fourcol sidebar last"> | |
<div class="widget details"> | |
<h4>Details</h4> | |
<p class="promo-title"><?php the_title(); ?></p> | |
<ul> | |
<li> | |
<i class="icon-calendar"></i> | |
<p>Start Date: <?php the_time('D F d, Y'); ?></p> | |
</li> | |
<li> | |
<i class="icon-time"></i> | |
<p><?php the_field('promotion_time'); ?></p> | |
</li> | |
<li> | |
<i class="icon-file-alt"></i> | |
<p> | |
<a href="javascript:void(0);" class="rules-trigger">See Rules</a> | |
<a href="javascript:void(0);" class="close-trigger" style="display: none">Close Rules</a></p> | |
</li> | |
</ul> | |
<p><?php the_field('sidebar_details'); ?></p> | |
</div> | |
<?php endwhile; ?> | |
<?php get_sidebar(); ?> | |
</div> | |
<!-- end sidebar --> | |
</div> | |
<!-- end row.content --> | |
</div> | |
<!-- end content-container --> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment