Skip to content

Commit

Permalink
finally got it working again to original
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredlucero committed Feb 25, 2016
1 parent cdcf07a commit 2c96a6e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 26 deletions.
22 changes: 11 additions & 11 deletions category-spectrum.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
</div>

<div class="row" id="archive-content">
<div class="small-12 columns" id="post-listing">
<div class="small-12 columns" id="post-listing">
<div class="page-header">
<?php /*if(is_category("sports-spectrum") ||
is_category("campus-spectrum") ||
is_category("humans-of-westwood") ||
is_category("archives") ||
is_category("westwoodla")) : ?>
<a id="pb-logo" href="/category/spectrum"><img src="/img/spectrum-<?php echo($the_cat->slug) ?>.png" /></a>
<?php else : ?>
<a id="pb-logo" href="/category/spectrum"><img src="/img/spectrumlogo.png" /></a>
<?php endif */?>
<!-- <a id="pb-logo" href="/category/spectrum"><img src="/img/spectrumlogo.png" /></a> -->
<?php /*if(is_category("sports-spectrum") ||
is_category("campus-spectrum") ||
is_category("humans-of-westwood") ||
is_category("archives") ||
is_category("westwoodla")) : ?>
<a id="pb-logo" href="/category/spectrum"><img src="/img/spectrum-<?php echo($the_cat->slug) ?>.png" /></a>
<?php else : ?>
<a id="pb-logo" href="/category/spectrum"><img src="/img/spectrumlogo.png" /></a>
<?php endif */?>
<!-- <a id="pb-logo" href="/category/spectrum"><img src="/img/spectrumlogo.png" /></a> -->
<!-- <h2>Exploring the UCLA experience through photojournalism</h2> -->
</div><!-- end div.page-header -->
<?php get_template_part('loop', 'category-photoblog'); ?>
Expand Down
6 changes: 2 additions & 4 deletions css/photoblog.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ body,
height: auto;
/*margin-bottom: 20px;*/
text-align: left;

}
#photoblog-post-block h1 {
color: #FFFFFF;
font-size: 24px;
Expand Down Expand Up @@ -264,7 +264,6 @@ a.photoblog-post-tag.pb-tag-westwoodla,
color: #549053;
list-style: none;
}
.sidebar-menu .sidebar-link {
color: #999999;
font-size: 16px;
Expand Down Expand Up @@ -359,7 +358,6 @@ a.photoblog-post-tag.pb-tag-westwoodla,
}
.campus.active a,
.campus a:hover{
}*/


Expand Down Expand Up @@ -657,4 +655,4 @@ a.photoblog-post-tag.pb-tag-westwoodla,
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
}
}
10 changes: 1 addition & 9 deletions loop-category-photoblog.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

<div class="grid">
<?php while (have_posts() ): the_post();

$cats = get_the_category();
//$the_cat = get_the_category()[0];
if ($cats) {
Expand All @@ -26,7 +25,6 @@
$start_of_href = strpos($image, 'href');
$start_of_url = strpos($image, '"', $start_of_href);
$end_of_url = strpos($image, '"', $start_of_url+1);

$final_tag = substr($image, 0, $start_of_url) . "\"" . $permalink . substr($image, $end_of_url);
echo $final_tag;
?>
Expand Down Expand Up @@ -64,7 +62,6 @@
} else {
echo $t;
}

?>

<p id="photoblog-post-author">Credit: <?php coauthors(); ?></p>
Expand Down Expand Up @@ -101,21 +98,17 @@
<script type="text/javascript">
/* Isotope
* ==================== */

var elem = document.querySelector('.grid');
var iso = new Isotope( elem, {
// options
itemSelector: '.grid-item',
layoutMode: 'fitRows'

});

// element argument can be a selector string
// for an individual element
var iso = new Isotope( '.grid', {
// options
});

$("div.grid-item").hover(
function () {
$(this).find(".picOverlay").fadeIn();
Expand All @@ -124,5 +117,4 @@ function () {
$(this).find(".picOverlay").fadeOut();
}
);

</script>
</script>
1 change: 0 additions & 1 deletion loop-photoblog.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
}
}
}

?>
<!-- <div class="page-header">
<a class="pb-logo" href="/category/spectrum"><img src="/img/spectrum-<?php echo($the_cat->slug) ?>.png" /></a>
Expand Down
2 changes: 1 addition & 1 deletion sidebar-photoblog.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
<a class="sidebar-link" href="/about-spectrum"> <?php _e( 'About Spectrum', 'gryphondor' ); ?></a>
<!--</div>--><!--sidebar-menu-->
</div>
</aside>
</aside>

0 comments on commit 2c96a6e

Please sign in to comment.