Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Large group of updates to theme
Changes requested on 1/28/16
  • Loading branch information
briandunnigan authored and briandunnigan committed Mar 10, 2016
1 parent 39b58ad commit 5236571
Show file tree
Hide file tree
Showing 15 changed files with 1,412 additions and 180 deletions.
26 changes: 17 additions & 9 deletions content-presspage-headline-only.php
@@ -1,9 +1,17 @@
<article id="post-<?php the_ID(); ?>" <?php post_class('presspage-article presspage-headline-only'); ?>>
<?php $presslink = press_link(get_the_ID());?>
<header class="entry-header">
<h4 class="entry-title"><a href="<?php echo $presslink ?>"><?php the_title(); ?></a></h4>
<?php press_source(get_the_ID());?>
<p class="text-muted"><?php the_time('F j, Y'); ?></p>

</header>
</article>
<article id="post-<?php the_ID(); ?>" <?php post_class('presspage-article presspage-headline-only'); ?>>
<?php $presslink = press_link(get_the_ID());?>
<header class="entry-header">
<h4 class="entry-title">
<?php
if(strlen(get_the_content()) > 0) {
echo'<a href="'.$presslink.'">'.get_the_title().'</a>';
} else {
the_title();
}
?>
</h4>
<?php press_source(get_the_ID());?>
<p class="text-muted"><?php the_time('F j, Y'); ?></p>

</header>
</article>
34 changes: 23 additions & 11 deletions content-presspage-large-image-and-headline.php
@@ -1,12 +1,24 @@
<article id="post-<?php the_ID(); ?>" <?php post_class('presspage-article presspage-large-image'); ?>>
<header class="entry-header">
<?php $presslink = press_link(get_the_ID());?>
<a href="<?php echo $presslink ?>"><?php if ( has_post_thumbnail() ) {
the_post_thumbnail();
} ?></a>
<h4 class="entry-title"><a href="<?php echo $presslink ?>"><?php the_title(); ?></a></h4>
<?php press_source(get_the_ID());?>
<p class="text-muted"><?php the_time('F j, Y'); ?></p>

</header>
<article id="post-<?php the_ID(); ?>" <?php post_class('presspage-article presspage-large-image'); ?>>
<header class="entry-header">
<?php $presslink = press_link(get_the_ID());?>
<?php
if(strlen(get_the_content()) > 0 && has_post_thumbnail()) {
echo'<a href="'.$presslink.'">'.get_the_post_thumbnail().'</a>';
} elseif(has_post_thumbnail()) {
the_post_thumbnail();
}
?>
<h4 class="entry-title">
<?php
if(strlen(get_the_content()) > 0) {
echo'<a href="'.$presslink.'">'.get_the_title().'</a>';
} else {
the_title();
}
?>
</h4>
<?php press_source(get_the_ID());?>
<p class="text-muted"><?php the_time('F j, Y'); ?></p>

</header>
</article>
48 changes: 30 additions & 18 deletions content-presspage-small-image-and-headline.php
@@ -1,18 +1,30 @@
<article id="post-<?php the_ID(); ?>" <?php post_class('presspage-article presspage-small-image'); ?>>
<?php $presslink = press_link(get_the_ID());?>
<div class="row">
<div class="col-sm-5">
<a href="<?php echo $presslink ?>"><?php if ( has_post_thumbnail() ) {
the_post_thumbnail();
} ?></a>
</div>
<div class="col-sm-7">
<header class="entry-header">
<h4 class="entry-title"><a href="<?php echo $presslink ?>"><?php the_title(); ?></a></h4>
<?php press_source(get_the_ID());?>
<p class="text-muted"><?php the_time('F j, Y'); ?></p>

</header>
</div>
</div>
</article>
<article id="post-<?php the_ID(); ?>" <?php post_class('presspage-article presspage-small-image'); ?>>
<?php $presslink = press_link(get_the_ID());?>
<div class="row">
<div class="col-sm-5">
<?php
if(strlen(get_the_content()) > 0 && has_post_thumbnail()) {
echo'<a href="'.$presslink.'">'.get_the_post_thumbnail().'</a>';
} elseif(has_post_thumbnail()) {
the_post_thumbnail();
}
?>
</div>
<div class="col-sm-7">
<header class="entry-header">
<h4 class="entry-title">
<?php
if(strlen(get_the_content()) > 0) {
echo'<a href="'.$presslink.'">'.get_the_title().'</a>';
} else {
the_title();
}
?>
</h4>
<?php press_source(get_the_ID());?>
<p class="text-muted"><?php the_time('F j, Y'); ?></p>

</header>
</div>
</div>
</article>
57 changes: 34 additions & 23 deletions content-presspage-top.php
@@ -1,24 +1,35 @@
<div id="presstop">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="row">
<div class="col-sm-6">
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail();
} else {
echo '<p>Missing Featured Image for this post.</p>';
}?>
</div>
<div class="col-sm-6">
<header class="entry-header">

<?php the_title( '<h4 class="entry-title">', '</h4>' ); ?>
</header>
<div class="entry-content clearfix">
<?php the_excerpt(); ?>
</div>

</div>

</div>
</article>
<div id="presstop">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="row">
<div class="col-sm-6">
<?php
if(strlen(get_the_content()) > 0 && has_post_thumbnail()) {
echo'<a href="'.get_the_permalink().'">'.get_the_post_thumbnail().'</a>';
} elseif(has_post_thumbnail()) {
the_post_thumbnail();
} else {
echo '<p>Missing Featured Image for this post.</p>';
}
?>
</div>
<div class="col-sm-6">
<header class="entry-header">
<h4 class="entry-title">
<?php
if(strlen(get_the_content()) > 0) {
echo'<a href="'.get_the_permalink().'">'.get_the_title().'</a>';
} else {
the_title();
}
?>
</h4>
</header>
<div class="entry-content clearfix">
<?php the_content(); ?>
</div>

</div>

</div>
</article>
</div>
87 changes: 87 additions & 0 deletions content-single.php
@@ -0,0 +1,87 @@
<?php
// This is used when viewing a single post.
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php /* if ( has_post_thumbnail() ) {
echo '<div class="row">';
echo '<div class="col-sm-2">';
the_post_thumbnail();
echo '</div>';
echo '<div class="col-sm-10">';
} */?>

<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<div class="entry-meta">
<?php cs_posted_on(); ?>
</div><!-- .entry-meta -->

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

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

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


<?php the_content(); ?>


<hr/>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'cs' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->

<footer class="entry-footer">
<?php
/* translators: used between list items, there is a space after the comma */
$category_list = get_the_category_list( __( ', ', 'cs' ) );

/* translators: used between list items, there is a space after the comma */
$tag_list = get_the_tag_list( '', __( ', ', 'cs' ) );

if ( ! cs_categorized_blog() ) {
// This blog only has 1 category so we just need to worry about tags in the meta text
if ( '' != $tag_list ) {
$meta_text = __( 'This entry was tagged %2$s.', 'cs' );
} else {
$meta_text = __( '', 'cs' );
}

} else {
// But this blog has loads of categories so we should probably display them here
if ( '' != $tag_list ) {
$meta_text = __( 'This entry was posted in %1$s and tagged %2$s.', 'cs' );
} else {
$meta_text = __( 'This entry was posted in %1$s.', 'cs' );
}

} // end check for categories on this blog

printf(
$meta_text,
$category_list,
$tag_list,
get_permalink()
);
?>


<div id="social-buttons">

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_title(); ?>"><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(); ?>&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 education.uconn.edu&amp;body=<?php echo get_the_title(); ?>%0D%0A%0D%0A<?php the_permalink(); ?>"><img src="<?php echo get_stylesheet_directory_uri().'/img/email-icon.png';?>" alt="email" />Email</a>
</div>

<hr />

</footer><!-- .entry-footer -->
</article><!-- #post-## -->

0 comments on commit 5236571

Please sign in to comment.