Skip to content

Commit

Permalink
Changed the link structure of classifieds
Browse files Browse the repository at this point in the history
  • Loading branch information
blutz committed Dec 23, 2012
1 parent 6951619 commit daa8382
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 13 deletions.
42 changes: 42 additions & 0 deletions archive-classifieds.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php get_header(); ?>

<div class="row" id="single-post">
<div class="span8" id="post">
<?php get_template_part('loop', 'classified'); ?>
</div><!-- end div#post -->

<aside class="span4" id="sidebar" role="complementary">
<div id="sidebar-inside">

<div id="place-ad">
<div class="side-head">
<h4>Place a Classified Ad</h4>
</div><!-- end div.side-head -->
<div class="side-info">
<p>Daily Bruin classifieds are the best way to find qualified applicants for your job openings or rental vacancies. Your classified ad appears every day in the Daily Bruin and online and weekly in the Corsair, the campus newspaper at nearby Santa Monica City College.</p>
<p>Deadline for placing an ad is 12 noon, one business day before publication. Payment must be received before deadline. In order to receive the flat rate, the ad must be 20 words or fewer. Anything with a space before and after is counted as one word. We reserve the right to edit ads.</p>
<p>You can also order over the phone by calling <a href="tel:3108252221">310-825-2221</a>.</p>
<p><a href="http://adpro.media.ucla.edu/online">Place a classified ad</a></p>


</div><!-- end div.side-info -->
</div><!-- end div#place-ad -->




<div class="row">
<?php get_template_part('sidebar'); ?>
</row>




</div><!-- end div#sidebar-inside -->
</aside><!-- end aside#sidebar -->


</div><!-- end div#single-post -->


<?php get_footer(); ?>
1 change: 1 addition & 0 deletions footer.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<span style="width:100%;display:block;clear:both;"></span>
<div class="container hidden-phone">
<hr />
<div class="row">
Expand Down
10 changes: 0 additions & 10 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,6 @@ $(document).ready(function() {
}
});

/***** ADJUST SIDEBAR HEIGHT *****/
$(document).ready(function() {
if($(window).width() >= 980) {
var heightOfArticle = Math.max($('#sidebar').height(), $('article.post').height());
if($('#post-listing').height())
heightOfArticle = Math.max($('#post-listing').height()-10, heightOfArticle);
$('#sidebar').attr('style','height:'+heightOfArticle+'px');
}
});


/***** TOGGLE DROPDOWNS *****/
$(document).ready(function() {
Expand Down
4 changes: 2 additions & 2 deletions loop-classified.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</div>
<?php
$args = array(
'post_type' => 'db_classified',
'post_type' => 'classifieds',
'featured' => 'Featured',
'post_status' => 'publish'
);
Expand All @@ -34,7 +34,7 @@
<?php // CATEGORIES ?>
<?php else : ?>
<div class="page-header">
<h2><a href="http://dailybruin.com/db_classified/">Daily Bruin Classified Ads</a></h2>
<h2><a href="/classifieds/">Daily Bruin Classified Ads</a></h2>
<h3><?php wp_title(''); ?></h3>
</div>

Expand Down
3 changes: 3 additions & 0 deletions single-classifieds.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php
header('Location: http://dailybruin.com/classifieds/');
?>
2 changes: 1 addition & 1 deletion taxonomy-classification.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php get_template_part('archive','db_classified'); ?>
<?php get_template_part('archive','classifieds'); ?>

0 comments on commit daa8382

Please sign in to comment.