Skip to content

Commit

Permalink
Front page styles are closer to being as designed
Browse files Browse the repository at this point in the history
  • Loading branch information
slifty committed Aug 17, 2016
1 parent 941d980 commit e1fa184
Show file tree
Hide file tree
Showing 12 changed files with 687 additions and 678 deletions.
7 changes: 7 additions & 0 deletions content-explore_candidates.php
Expand Up @@ -5,6 +5,13 @@
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div id="explore-candidates-description" class="explore-description-row text-center">
<p>BLAH BLAH BLAH CANDIDATES Pea horseradish azuki bean lettuce avocado asparagus okra. Kohlrabi radish okra azuki bean corn fava bean mustard tigernut jicama green bean celtuce collard greens avocado quandong fennel gumbo black-eyed pea. Grape silver beet watercress potato tigernut corn groundnut. </p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-lg-8 col-lg-offset-2 ">
<div id="explore-candidates-content" class="explore-content-row text-center">
Expand Down
2 changes: 1 addition & 1 deletion content-explore_factchecks.php
Expand Up @@ -6,7 +6,7 @@
</div>
</div>
<div class="row">
<div class="col-sm-10 col-sm-offset-1">
<div class="col-xs-12">
<div id="explore-factchecks-content" class="explore-content-row text-center">

<?php
Expand Down
8 changes: 7 additions & 1 deletion content-explore_sponsor_types.php
Expand Up @@ -5,7 +5,13 @@
</div>
</div>
</div>

<div class="row">
<div class="col-md-12">
<div id="explore-sponsor_types-description" class="explore-description-row text-center">
<p>BLAH BLAH BLAH SPONSOR TYPES Pea horseradish azuki bean lettuce avocado asparagus okra. Kohlrabi radish okra azuki bean corn fava bean mustard tigernut jicama green bean celtuce collard greens avocado quandong fennel gumbo black-eyed pea. Grape silver beet watercress potato tigernut corn groundnut. </p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-lg-8 col-lg-offset-2 ">
<div id="explore-sponsor_types-content" class="explore-content-row text-center">
Expand Down
7 changes: 7 additions & 0 deletions content-explore_sponsors.php
Expand Up @@ -5,6 +5,13 @@
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div id="explore-sponsors-description" class="explore-description-row text-center">
<p>BLAH BLAH BLAH SPONSORS Pea horseradish azuki bean lettuce avocado asparagus okra. Kohlrabi radish okra azuki bean corn fava bean mustard tigernut jicama green bean celtuce collard greens avocado quandong fennel gumbo black-eyed pea. Grape silver beet watercress potato tigernut corn groundnut. </p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-lg-8 col-lg-offset-2 ">
<div id="explore-sponsors-content" class="explore-content-row text-center">
Expand Down
4 changes: 2 additions & 2 deletions content-home_blog_posts.php
Expand Up @@ -9,7 +9,7 @@
$post = $featured_post;
setup_postdata($featured_post);
?>
<div class="post_home col-xs-12 col-sm-12 col-md-4 col-lg-12">
<div class="post_home col-xs-12">
<div class="post_home_inner">
<h2 class="post-title_home"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<p class="post-date">
Expand All @@ -26,7 +26,7 @@
}
remove_filter('the_excerpt', 'wpautop');
?>
<p class="post-excerpt">
<p class="post-excerpt <?php if(get_the_post_thumbnail()) { ?>hidden-md<?php } ?>">
<?php the_excerpt(); ?>
</p>
</div>
Expand Down
38 changes: 13 additions & 25 deletions content-home_canonical_ad.php
Expand Up @@ -5,55 +5,43 @@
$post = $featured_ad;
setup_postdata($featured_ad);
$post_id = get_the_ID();
$post_metadata = get_fields($post_id);
$ad_embed_url = $post_metadata['embed_url'];
$ad_notes = $post_metadata['ad_notes'];
$ad_id = $post_metadata['archive_id'];
$ad_sponsors = $post_metadata['ad_sponsors'];
$ad_candidates = $post_metadata['ad_candidates'];
$ad_type = $post_metadata['ad_type'];
$ad_message = $post_metadata['ad_message'];
$ad_air_count = $post_metadata['air_count'];
$ad_market_count = $post_metadata['market_count'];
$ad_network_count = $post_metadata['network_count'];
$ad_first_seen = $post_metadata['first_seen'];
$ad_last_seen = $post_metadata['last_seen'];

$ad = new PoliticalAdArchiveAd($post_id);
?>
<div class="row">
<!-- <a href="<?php the_permalink(); ?>"><h2 class="ad-title_home">Featured Political Ad</h2></a> -->
<div class="col-md-12 hidden-xs hidden-sm">
<div class="row">
<div id="ad-embed" class="col-md-12">
<iframe id="ad-embed-iframe" frameborder="0" width="100%" height="auto" allowfullscreen src="<?php echo($ad_embed_url);?>" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>
<iframe id="ad-embed-iframe" frameborder="0" width="100%" height="auto" allowfullscreen src="<?php echo($ad->embed_url);?>&nolinks=1" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>
</div>
</div>
<div class="row">
<div class="col-md-3 p-l-0 p-r-0">
<div class="col-md-5 col-lg-3 p-l-0 p-r-0">
<div id="ad-sponsor_home" class="ad-info_home">
<div class="cell-label cell-label_home">Sponsor</div>
<div class="cell-value ad-sponsor_content">
<?php foreach ($ad_sponsors as $key => $value) { ?>
<a class="ad-sponsor_link" href="<?php bloginfo('url'); ?>/browse/?q=<?php echo(urlencode("sponsor:\"".$ad_sponsors[$key]['ad_sponsor']."\""));?>">
<?php echo ($ad_sponsors[$key]['ad_sponsor']);?></a>
<?php foreach ($ad->sponsors as $sponsor) { ?>
<a class="ad-sponsor_link" href="<?php bloginfo('url'); ?>/browse?sponsor_filter=<?php echo(urlencode($sponsor->name));?>">
<?php echo ($sponsor->name);?>
</a>
<?php }; ?>
</div>
</div>
<div id="ad-candidate_home" class="ad-info_home">
<div class="cell-label cell-label_home">Candidate</div>
<div class="cell-value ad-candidate_content">
<?php foreach ($ad_candidates as $key => $value) { ?>
<a class="ad-sponsor_link" href="<?php bloginfo('url'); ?>/browse/?q=<?php echo(urlencode("sponsor:\"".$ad_candidates[$key]['ad_candidate']."\""));?>">
<?php echo ($ad_candidates[$key]['ad_candidate']);?></a>
<?php foreach ($ad->candidates as $candidate) { ?>
<a class="ad-sponsor_link" href="<?php bloginfo('url'); ?>/browse?candidate_filter=<?php echo(urlencode($candidate->name));?>">
<?php echo($candidate->name);?> (<?php echo($candidate->affiliation);?>)
</a>
<?php }; ?>
</div>
</div>
</div>
<div class="col-md-9 p-l-0 p-r-0">
<div class="col-md-7 col-lg-9 p-l-0 p-r-0">
<div id="ad-note_home" class="ad-note_home">
<div class="cell-label cell-label_home">Note</div>
<div class="cell-multiline-value ad-note_content">
<?php echo substr($ad_notes, 0, 400).'&hellip;';?>
<?php echo substr($ad->notes, 0, 400).'&hellip;';?>
<a href="<?php the_permalink(); ?>">READ MORE</a>
</div>
</div>
Expand Down

0 comments on commit e1fa184

Please sign in to comment.