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
Update fork
  • Loading branch information
szk11001 committed Jan 25, 2016
2 parents a1890ee + 9edce68 commit ffe1e91
Show file tree
Hide file tree
Showing 24 changed files with 7,871 additions and 5,115 deletions.
21 changes: 16 additions & 5 deletions archive.php 100755 → 100644
Expand Up @@ -15,6 +15,7 @@ get_header(); ?>
<main id="main" class="site-main" role="main">
<?php if ( have_posts() ) : ?>
<header class="entry-header">

<h1 class="page-title">
<?php
if ( is_category() ) :
Expand Down Expand Up @@ -61,6 +62,12 @@ get_header(); ?>

elseif ( is_tax( 'post_format', 'post-format-chat' ) ) :
_e( 'Chats', 'cs' );

elseif ( is_tax( 'group') || is_tax('persontag')):
global $wp_query;
$term = $wp_query->get_queried_object();
$name = $term->name;
echo $name;

else :
_e( 'Archives', 'cs' );
Expand All @@ -81,11 +88,15 @@ get_header(); ?>
<?php while ( have_posts() ) : the_post(); ?>

<?php
/* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
if ( is_tax( 'group') || is_tax('persontag')){
get_template_part( 'content', 'person' );
} else {
/* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
}
?>

<?php endwhile; ?>
Expand Down
2 changes: 1 addition & 1 deletion content-blank.php
Expand Up @@ -12,4 +12,4 @@
<footer class="entry-footer">
<?php edit_post_link( __( 'Edit', 'cs' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->
</article><!-- #post-## -->
62 changes: 62 additions & 0 deletions content-person.php
@@ -0,0 +1,62 @@
<?php

$information_to_display = get_field( "information_to_display" );


?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

<?php if ( has_post_thumbnail() ) {
echo '<div class="row">';
echo '<div class="col-sm-2"><a href="'.get_permalink().'">';
the_post_thumbnail();
echo '</a></div>';
echo '<div class="col-sm-10">';
} ?>
<header class="entry-header">
<?php
echo '<h2 class="archive-person-name"><a href="'.get_permalink().'">';
the_field('first_name');
echo ' ';
if (get_field('middle_name')){
the_field('middle_name');
echo ' ';
}
the_field('last_name');
echo '</a></h2>';
?>
</header><!-- .entry-header -->




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

echo '<p>'.get_field('title').'</p>';
if (strlen(get_field('email')) . 0 ){
echo '<p><a href="mailto:'.get_field('email').'">'.get_field('email').'</a></p>';
}
if (strlen(get_field('phone')) > 0 ){
echo '<p>'.get_field('phone').'</p>';
}

?>




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

<?php if ( has_post_thumbnail() ) {
echo '</div>';
echo '</div>';
} ?>
</article><!-- #post-## -->
Empty file modified content-single.php 100755 → 100644
Empty file.
18 changes: 11 additions & 7 deletions css/megamenu-cornerstone-base.css
@@ -1,3 +1,13 @@
#megamenu-wrapper {
background: #dbdbdb;
background: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#dbdbdb));
background: -moz-linear-gradient(top, #ebebeb, #dbdbdb);
background: -ms-linear-gradient(top, #ebebeb, #dbdbdb);
background: -o-linear-gradient(top, #ebebeb, #dbdbdb);
background: linear-gradient(to bottom, #ebebeb, #dbdbdb);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ebebeb', endColorstr='#dbdbdb');
}

#mega-menu-wrap-primary, #mega-menu-wrap-primary #mega-menu-primary, #mega-menu-wrap-primary #mega-menu-primary ul, #mega-menu-wrap-primary #mega-menu-primary li, #mega-menu-wrap-primary #mega-menu-primary p, #mega-menu-wrap-primary #mega-menu-primary img, #mega-menu-wrap-primary #mega-menu-primary div, #mega-menu-wrap-primary #mega-menu-primary a {
color: #474747;
font-family: inherit;
Expand Down Expand Up @@ -562,13 +572,7 @@
z-index: 1;
cursor: pointer;
text-align: right;
background: #dbdbdb;
background: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#dbdbdb));
background: -moz-linear-gradient(top, #ebebeb, #dbdbdb);
background: -ms-linear-gradient(top, #ebebeb, #dbdbdb);
background: -o-linear-gradient(top, #ebebeb, #dbdbdb);
background: linear-gradient(to bottom, #ebebeb, #dbdbdb);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ebebeb', endColorstr='#dbdbdb');

-webkit-border-radius: 2px 2px 2px 2px;
-moz-border-radius: 2px 2px 2px 2px;
-ms-border-radius: 2px 2px 2px 2px;
Expand Down
176 changes: 95 additions & 81 deletions footer.php
@@ -1,81 +1,95 @@
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package cornerstone
*/
?>

</div><!-- .container-->
</div><!-- #content -->
<div id="footers">
<?php get_template_part('inc/mega','footer'); ?>
<footer id="footer" class="site-footer" role="contentinfo">
<div class="container">
<ul id="uc-footer-links" class="clearfix">
<?php
$options = get_option('uconn_banner_options');
$text_string = $options['text_string'];
$location = $text_string;
if($location == 'uchc'){
?>
<li>
<a href="http://www.uchc.edu/siteindex/index.html">A-Z Index</a>
</li>
<li>
<a href="http://www.uchc.edu/" >UConn Health</a>
</li>
<li>
<a href="http://www.uchc.edu/disclaimer/index.html">Disclaimer, Privacy Notice &amp; Copyright</a>
</li>
<li>
<a href="http://www.uchc.edu/directions/index.html" >Maps &amp; Directions</a>
</li>
<!-- <li>
<a href="http://www.uchc.edu/contact/index.html">Contact Us</a>
</li> -->
<li>
&copy; UConn Health
</li>
<?php
} else {
?>
<li>
&copy; <a href="http://uconn.edu">University of Connecticut</a>
</li>
<li>
<a href="http://uconn.edu/disclaimers-privacy-copyright/">Disclaimers, Privacy &amp; Copyright</a>
</li>
<?php
}
?>
<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>
</footer>
</div><!-- #footers -->
</div><!-- #page -->
<!--[if lte IE 9]></div><![endif]-->
<?php wp_footer(); ?>

</body>
</html>
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package cornerstone
*/
if ( apply_filters( 'load_custom_footer', false ) ) {
$custom_footer = apply_filters( 'get_custom_footer', '' );

if ( '' != $custom_footer ) {
// Get the header that we just received
// and call the native 'get_header' function
// as usual
load_template( $custom_footer );

// By calling 'return' we are skipping
// parsing this template any further
return;
}
}
?>

</div><!-- .container-->
</div><!-- #content -->
<div id="footers">
<?php get_template_part('inc/mega','footer'); ?>
<footer id="footer" class="site-footer" role="contentinfo">
<div class="container">
<ul id="uc-footer-links" class="clearfix">
<?php
$options = get_option('uconn_banner_options');
$text_string = $options['text_string'];
$location = $text_string;
if($location == 'uchc'){
?>
<li>
<a href="http://www.uchc.edu/siteindex/index.html">A-Z Index</a>
</li>
<li>
<a href="http://www.uchc.edu/" >UConn Health</a>
</li>
<li>
<a href="http://www.uchc.edu/disclaimer/index.html">Disclaimer, Privacy Notice &amp; Copyright</a>
</li>
<li>
<a href="http://www.uchc.edu/directions/index.html" >Maps &amp; Directions</a>
</li>
<!-- <li>
<a href="http://www.uchc.edu/contact/index.html">Contact Us</a>
</li> -->
<li>
&copy; UConn Health
</li>
<?php
} else {
?>
<li>
&copy; <a href="http://uconn.edu">University of Connecticut</a>
</li>
<li>
<a href="http://uconn.edu/disclaimers-privacy-copyright/">Disclaimers, Privacy &amp; Copyright</a>
</li>
<?php
}
?>
<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>
</footer>
</div><!-- #footers -->
</div><!-- #page -->
<!--[if lte IE 9]></div><![endif]-->
<?php wp_footer(); ?>

</body>
</html>

0 comments on commit ffe1e91

Please sign in to comment.