Skip to content

Commit

Permalink
Removes hover library. Adds final styling based on current year's des…
Browse files Browse the repository at this point in the history
…ign.
  • Loading branch information
slushman committed Jan 9, 2017
1 parent 20d06dc commit dd0396d
Show file tree
Hide file tree
Showing 100 changed files with 1,955 additions and 3,132 deletions.
1,233 changes: 273 additions & 960 deletions config.codekit

Large diffs are not rendered by default.

32 changes: 0 additions & 32 deletions content-home.php

This file was deleted.

2 changes: 2 additions & 0 deletions content-single.php
Expand Up @@ -7,6 +7,8 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header contentsingle"><?php

the_post_thumbnail( 'full' );

the_title( '<h1 class="entry-title">', '</h1>' );

?><div class="entry-meta"><?php
Expand Down
31 changes: 15 additions & 16 deletions footer.php
Expand Up @@ -7,36 +7,35 @@
* @package Festival of Trees
*/
?>

</div><!-- .wrap -->
</div><!-- #content -->

<footer id="colophon" class="site-footer" role="contentinfo">

<div class="footer-wrap wrap">

<div class="footer-left"><?php
<div class="footer-top">
<div class="wrap footer-top-wrap">
<img src="<?php echo get_theme_mod( 'footer_artwork' ); ?>" class="footer-trees">
<div class="stay-connected">Stay Connected</div><?php

//
get_template_part( 'menus/menu', 'social' );

?></div><!-- .footer_left -->
?></div>
</div>
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="footer-wrap wrap">
<div class="site-info"><?php

printf( __( '<div class="copyright">All content &copy %1$s <a href="%2$s" title="Login">%3$s</a></a></div>', 'festival-of-trees' ), date( 'Y' ), get_admin_url(), get_bloginfo( 'name' ) );

?></div><!-- .site-info -->
<div class="footer-right"><?php
get_template_part( 'menus/menu', 'footer' );

//
printf( __( '<div class="credits">Site designed &amp; developed by <a href="%1$s" title="DCC Marketing">DCC Marketing</a></div>', 'festival-of-trees' ), 'http://dccmarketing.com' );

?></div><!-- .site-info -->

</div><!-- .footer-wrap -->

</footer><!-- #colophon -->
</div><!-- #page --><?php

</div><!-- #page -->

<?php wp_footer(); ?>
wp_footer();

</body>
?></body>
</html>
73 changes: 72 additions & 1 deletion functions.php
Expand Up @@ -52,7 +52,8 @@ function festival_of_trees_setup() {
register_nav_menus( array(
'primary' => __( 'Primary Menu', 'festival-of-trees' ),
'social' => __( 'Social Links', 'festival-of-trees' ),
'header' => __( 'Header Menu', 'festival-of-trees' )
'header' => __( 'Header Menu', 'festival-of-trees' ),
'footer' => __( 'Footer Menu', 'festival-of-trees' )
) );

/*
Expand Down Expand Up @@ -109,6 +110,8 @@ function festival_of_trees_scripts() {
wp_enqueue_style( 'festivaloftrees-style', get_stylesheet_uri() );

wp_enqueue_script( 'festivaloftrees-navigation', get_template_directory_uri() . '/js/navigation.min.js', array(), '20120206', true );
wp_enqueue_script( 'festivaloftrees-classie', get_template_directory_uri() . '/js/classie.min.js', array(), '20150316', true );
wp_enqueue_script( 'festivaloftrees-nav-header', get_template_directory_uri() . '/js/nav-header.min.js', array( 'festivaloftrees-classie' ), '20150316', true );

wp_enqueue_script( 'festivaloftrees-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.min.js', array(), '20130115', true );

Expand Down Expand Up @@ -149,4 +152,72 @@ function festival_of_trees_scripts() {
*/
require get_template_directory() . '/inc/themekit.php';

/**
* Load Attractions CPT
*/
//require get_template_directory() . '/inc/attractions.php';

/**
* Returns a post object of the requested post type
*
* @param string $post The name of the post type
* @param array $params Optional parameters
* @return object A post object
*/
function festival_of_trees_get_posts( $post, $params = array() ) {

$return = '';
$return = wp_cache_get( 'festival_of_trees_' . $post . '_posts', 'festival_of_trees_posts' );

if ( false === $return ) {

$args['post_type'] = $post;
$args['post_status'] = 'publish';
$args['order'] = 'DESC';
$args['orderby'] = 'date';
$args['posts_per_page'] = 50;
$args['no_found_rows'] = true;
$args['update_post_meta_cache'] = false;
$args['update_post_term_cache'] = false;

if ( ! empty( $params ) ) {

foreach ( $params as $key => $value ) {

$args[$key] = $value;

}

}

$query = new WP_Query( $args );

if ( ! is_wp_error( $query ) && $query->have_posts() ) {

wp_cache_set( 'festival_of_trees_' . $post . '_posts', $query, 'festival_of_trees_posts', 5 * MINUTE_IN_SECONDS );

$return = $query;

}

}

return $return;

} // festival_of_trees_get_posts()

function festival_of_trees_get_events() {

$args['posts_per_page'] = 200;
$args['eventDisplay'] = 'list';
$args['meta_key'] = '_EventStartDate';
$args['meta_value'] = array( current_time( 'Y-m-d' ) . ' 00:00:00', current_time( 'Y-m-d' ) . ' 23:59:59' );
$args['meta_compare'] = 'BETWEEN';

return tribe_get_events( $args );

}




1 change: 0 additions & 1 deletion header.php
Expand Up @@ -32,7 +32,6 @@
get_template_part( 'menus/menu', 'header' );

?></div><!-- .header_wrap -->

<nav id="site-navigation" class="main-navigation" role="navigation">
<button class="menu-toggle" aria-controls="menu" aria-expanded="false"><?php _e( 'Menu', 'festival-of-trees' ); ?></button><?php

Expand Down
Binary file added images/fot-bkgd.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/header_bg.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/new-tree-teal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/trees.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dd0396d

Please sign in to comment.