Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Pre-launch fixes
-Change to faculty/staff page (adding links and fixing listing)
-Removing some categories from archive
-Removing some categories from content-single.php
-Fixing social media on single page
-Adding support for links in footer
  • Loading branch information
briandunnigan authored and briandunnigan committed Feb 3, 2016
1 parent bf8d9f3 commit 3c66308
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 11 deletions.
22 changes: 20 additions & 2 deletions content-news-archive.php
Expand Up @@ -12,8 +12,26 @@
<a href="<?php the_permalink() ?>"><?php the_title( '<h1 class="entry-title">', '</h1>' ); ?></a>
<p>by: <strong class="less-strong"><?php the_author() ?></strong>&nbsp; &nbsp;<span class="news-story-date"><?php the_time('F j, Y'); ?></span></p>
<?php the_excerpt() ?>
<!-- <?php the_tags('<ul><li>', '</li><li>', '</li></ul>') ?> -->
<?php the_category() ?>
<!-- <?php the_tags('<ul><li>', '</li><li>', '</li></ul>') ?>
<?php the_category() ?> -->

<ul class="post-categories">
<?php
$categories = get_the_category();
$separator = ' ';
$output = '';
if($categories){
foreach($categories as $category) {
if($category->name !== 'Uncategorized')
if($category->name !== 'Home-Featured')
if($category->name !== 'News Featured')
{
$output .= '<li><a href="'.get_category_link( $category->term_id ).'" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '">'.$category->cat_name.'</a></li>'.$separator; }
}
echo trim($output, $separator);
}
?>
</ul>

</div>
</header><!-- .entry-header -->
Expand Down
30 changes: 22 additions & 8 deletions content-single.php
Expand Up @@ -16,24 +16,38 @@
<ul class="single-author-tags clearfix" >
<li class="single-author">by: <strong class="less-strong"><?php the_author(); ?></strong></li>
<li class="news-story-date"><?php the_time('F j, Y'); ?></li>
<li class="single-category"><?php the_category() ?></li>
</uli>
<li class="single-category">
<ul class="post-categories">
<?php
$categories = get_the_category();
$separator = ' ';
$output = '';
if($categories){
foreach($categories as $category) {
if($category->name !== 'Uncategorized')
if($category->name !== 'Home-Featured')
if($category->name !== 'News Featured')
{
$output .= '<li><a href="'.get_category_link( $category->term_id ).'" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '">'.$category->cat_name.'</a></li>'.$separator; }
}
echo trim($output, $separator);
}
?>
</ul>
</li>
</ul>

</div><!-- .entry-meta -->

<?php /*if ( has_post_thumbnail() ) {
echo '</div>';
echo '</div>';
} */?>

</header><!-- .entry-header -->

<div class="entry-content clearfix subpage">

<div class="single-content-wrapper">
<div class="single-featured-image">
<!-- <div class="single-featured-image">
<?php the_post_thumbnail('medium') ?>
</div>
</div> -->

<div class="single-content">
<?php the_content(); ?>
Expand Down
3 changes: 3 additions & 0 deletions css/neag.css
Expand Up @@ -11347,6 +11347,9 @@ h1#uc-site-title {
#page-news .news-archive-featured .entry-header .title-wrapper h1.entry-title.ie8 {
padding: 20px;
}
#page-news .news-archive-featured .entry-header .title-wrapper h1.entry-title.ie9 {
padding: 20px !important;
}
#page-news .news-archive-featured .entry-header .title-wrapper h1.entry-title:hover {
color: #ce952e !important;
}
Expand Down
14 changes: 14 additions & 0 deletions footer.php
Expand Up @@ -39,6 +39,20 @@
<li>
<a href="<?php echo site_url(); ?>/wp-admin/">Webmaster Login</a>
</li>
<?php

// Only display the footer if a menu of "Footer" exists in the site.
if (wp_get_nav_menu_object('Footer')){
$defaults = array(
'menu' => 'Footer',
'container' => false,
'items_wrap' => '%3$s',
'depth' => 1,
'fallback_cb' => false
);
wp_nav_menu( $defaults );
}
?>

</ul>
</div>
Expand Down
3 changes: 3 additions & 0 deletions sass/neag.scss
Expand Up @@ -784,6 +784,9 @@ h1#uc-site-title {
&.ie8 {
padding:20px;
}
&.ie9 {
padding:20px !important;
}
&:hover {
color:$gold !important;
}
Expand Down
2 changes: 1 addition & 1 deletion single.php
Expand Up @@ -20,7 +20,7 @@ get_header(); ?>
Share on:&nbsp; <a href="http://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>"><img src="<?php echo get_stylesheet_directory_uri().'/img/asset.f.logo.lg.png';?>" alt="facebook" />Facebook</a>
<a href="http://twitter.com/share?url=<?php the_permalink(); ?>&text=<?php echo get_the_excerpt(); ?>"><img src="<?php echo get_stylesheet_directory_uri().'/img/twitter-bird-white-on-blue.png';?>" alt="Twitter" />Twitter </a>
<a href="http://www.linkedin.com/shareArticle?url=<?php the_permalink(); ?>&title=<?php echo get_the_title(); ?>&summary=<?php echo get_the_excerpt(); ?>&source=<?php the_permalink(); ?>"> <img src="<?php echo get_stylesheet_directory_uri().'/img/linkedin.png';?>" alt="LinkedIn" />LinkedIn</a>
<a href="mailto:?subject=Shared from neag.uconn.edu&amp;body=<h1><?php echo get_the_title(); ?></h1><br/><?php echo get_the_excerpt(); ?><br/><br/><?php the_permalink(); ?>"title="Share by Email"><img src="<?php echo get_stylesheet_directory_uri().'/img/email-icon.png';?>" alt="email" />Email</a>
<a href="mailto:?subject=Shared from neag.uconn.edu&amp;body=<h1><?php echo get_the_title(); ?></h1><br/><?php echo get_the_excerpt(); ?><br/><br/><?php the_permalink(); ?>"><img src="<?php echo get_stylesheet_directory_uri().'/img/email-icon.png';?>" alt="email" />Email</a>
</div>

<hr />
Expand Down

0 comments on commit 3c66308

Please sign in to comment.