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

Commit

Permalink
Moved email address to main content area, required new content template.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmbacon committed Sep 29, 2015
1 parent 29a2347 commit 44c5a1c
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
32 changes: 32 additions & 0 deletions content-uup.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php
/**
* The template used for displaying page content in page.php
*
* @package cornerstone
*/
?>


<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<?php
$email = get_the_author_meta('user_email');

echo '<p><a href="mailto:'.$email.'">'.$email.'</a></p>';
?>
</header><!-- .entry-header -->

<div class="entry-content">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'cs' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php edit_post_link( __( 'Edit', 'cs' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->
2 changes: 2 additions & 0 deletions css/executive.css
Original file line number Diff line number Diff line change
Expand Up @@ -8397,6 +8397,8 @@ input[type="button"]#footers.btn-block {
margin-top: 30px; }
#page-user-profile .uup-user .uup-name {
display: none; }
#page-user-profile .uup-user .uup-email {
display: none; }
#page-user-profile .uup-user span {
margin-bottom: 15px; }
#page-user-profile .entry-content {
Expand Down
3 changes: 2 additions & 1 deletion page-user-profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
<div class="col-sm-9">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php get_template_part( 'content', 'page' ); ?>

<?php get_template_part( 'content', 'uup' ); ?>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() ) :
Expand Down
3 changes: 2 additions & 1 deletion sass/executive.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ $icon-font-path: "../../global/bootstrap-sass-master/assets/fonts/bootstrap/" !d

@import "_bootstrap-override.scss";
@import "_mixins.scss";

#masthead {
position:relative;
margin-top:-2px;
Expand Down Expand Up @@ -697,7 +698,7 @@ $widget-head-padding:20px 20px 0;
margin-top:30px;

.uup-name {display: none;}
.uup-email {}
.uup-email {display: none;}

span {
margin-bottom:15px;
Expand Down

0 comments on commit 44c5a1c

Please sign in to comment.