wmta client theme
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 15 Nov 2017 20:13:54 +0000 (15:13 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 15 Nov 2017 20:13:54 +0000 (15:13 -0500)
138 files changed:
404.php [new file with mode: 0644]
README.md [new file with mode: 0644]
archive.php [new file with mode: 0644]
assets/img/rs-universal.png [new file with mode: 0644]
assets/javascript/foundation.min.js [new file with mode: 0644]
assets/javascript/jquery.adrotate.dyngroup-custom.js [new file with mode: 0644]
assets/stylesheets/custom-editor-style.css [new file with mode: 0644]
assets/stylesheets/foundation.min.css [new file with mode: 0644]
assets/stylesheets/ouibounce.css [new file with mode: 0644]
assets/stylesheets/royalSlider-homepage.css [new file with mode: 0644]
assets/stylesheets/royalSlider-sidebar-posts.css [new file with mode: 0644]
assets/vendor/chosen/chosen-sprite.png [new file with mode: 0644]
assets/vendor/chosen/chosen-sprite@2x.png [new file with mode: 0644]
assets/vendor/chosen/chosen.jquery.min.js [new file with mode: 0644]
assets/vendor/chosen/chosen.min.css [new file with mode: 0644]
author.php [new file with mode: 0644]
comments.php [new file with mode: 0644]
custom-search.js [new file with mode: 0644]
footer.php [new file with mode: 0644]
front-page.php [new file with mode: 0644]
functions.php [new file with mode: 0644]
header.php [new file with mode: 0644]
img/cross.png [new file with mode: 0644]
img/favicon.ico [new file with mode: 0644]
img/favicon.png [new file with mode: 0644]
img/favicon512.png [new file with mode: 0644]
img/hero-default.jpg [new file with mode: 0644]
img/hero-events.jpg [new file with mode: 0644]
img/hero-news.jpg [new file with mode: 0644]
inc/custom-header.php [new file with mode: 0644]
inc/custom.php [new file with mode: 0644]
inc/customizer.php [new file with mode: 0644]
inc/directory-for-search.php [new file with mode: 0644]
inc/extras.php [new file with mode: 0644]
inc/hero-header-event.php [new file with mode: 0644]
inc/hero-header-news-single.php [new file with mode: 0644]
inc/hero-header-news.php [new file with mode: 0644]
inc/hero-header-search.php [new file with mode: 0644]
inc/hero-header.php [new file with mode: 0644]
inc/jetpack.php [new file with mode: 0644]
inc/royalslider.php [new file with mode: 0644]
inc/slider-header.php [new file with mode: 0644]
inc/template-tags.php [new file with mode: 0644]
index.php [new file with mode: 0644]
js/classie.js [new file with mode: 0644]
js/custom-search.js [new file with mode: 0644]
js/customizer.js [new file with mode: 0644]
js/min/custom-search-min.js [new file with mode: 0644]
js/min/overlay-min.js [new file with mode: 0644]
js/modernizr-custom.js [new file with mode: 0644]
js/navigation.js [new file with mode: 0644]
js/ouibounce.js [new file with mode: 0644]
js/overlay.js [new file with mode: 0644]
js/skip-link-focus-fix.js [new file with mode: 0644]
languages/readme.txt [new file with mode: 0644]
languages/wmta.pot [new file with mode: 0644]
layouts/content-sidebar.css [new file with mode: 0644]
layouts/sidebar-content.css [new file with mode: 0644]
main.css [new file with mode: 0644]
page-templates/page-fullwidth.php [new file with mode: 0644]
page-templates/page-memberprofile.php [new file with mode: 0644]
page.php [new file with mode: 0644]
plugins/events-manager/forms/event-editor.php [new file with mode: 0644]
plugins/events-manager/forms/event/attributes-public.php [new file with mode: 0644]
plugins/events-manager/templates/event-single.php [new file with mode: 0644]
readme.txt [new file with mode: 0644]
rtl.css [new file with mode: 0644]
sass/_normalize.scss [new file with mode: 0644]
sass/elements/_elements.scss [new file with mode: 0644]
sass/elements/_lists.scss [new file with mode: 0644]
sass/elements/_tables.scss [new file with mode: 0644]
sass/forms/_buttons.scss [new file with mode: 0644]
sass/forms/_fields.scss [new file with mode: 0644]
sass/forms/_forms.scss [new file with mode: 0644]
sass/forms/_gravityforms.scss [new file with mode: 0644]
sass/layout/_content-deals.scss [new file with mode: 0644]
sass/layout/_content-directory.scss [new file with mode: 0644]
sass/layout/_content-events.scss [new file with mode: 0644]
sass/layout/_content-homepage.scss [new file with mode: 0644]
sass/layout/_content-member_sidebar.scss [new file with mode: 0644]
sass/layout/_content-news.scss [new file with mode: 0644]
sass/layout/_content-page.scss [new file with mode: 0644]
sass/layout/_content-sidebar.scss [new file with mode: 0644]
sass/layout/_footer-content.scss [new file with mode: 0644]
sass/layout/_header-content.scss [new file with mode: 0644]
sass/layout/_heading-img.scss [new file with mode: 0644]
sass/layout/_hero-header.scss [new file with mode: 0644]
sass/layout/_sidebar-content.scss [new file with mode: 0644]
sass/media/_captions.scss [new file with mode: 0644]
sass/media/_galleries.scss [new file with mode: 0644]
sass/media/_media.scss [new file with mode: 0644]
sass/mixins/_functions.scss [new file with mode: 0644]
sass/mixins/_mixins-master.scss [new file with mode: 0644]
sass/modules/_accessibility.scss [new file with mode: 0644]
sass/modules/_alignments.scss [new file with mode: 0644]
sass/modules/_clearings.scss [new file with mode: 0644]
sass/modules/_infinite-scroll.scss [new file with mode: 0644]
sass/modules/_overlay.scss [new file with mode: 0644]
sass/navigation/_links.scss [new file with mode: 0644]
sass/navigation/_menus.scss [new file with mode: 0644]
sass/navigation/_navigation.scss [new file with mode: 0644]
sass/site/_site.scss [new file with mode: 0644]
sass/site/primary/_asides.scss [new file with mode: 0644]
sass/site/primary/_comments.scss [new file with mode: 0644]
sass/site/primary/_posts-and-pages.scss [new file with mode: 0644]
sass/site/secondary/_widgets.scss [new file with mode: 0644]
sass/style.scss [new file with mode: 0644]
sass/typography/_copy.scss [new file with mode: 0644]
sass/typography/_headings.scss [new file with mode: 0644]
sass/typography/_typography.scss [new file with mode: 0644]
sass/variables-site/_colors.scss [new file with mode: 0644]
sass/variables-site/_media.scss [new file with mode: 0644]
sass/variables-site/_structure.scss [new file with mode: 0644]
sass/variables-site/_typography.scss [new file with mode: 0644]
sass/variables-site/_variables-site.scss [new file with mode: 0644]
screenshot.png [new file with mode: 0644]
search.php [new file with mode: 0644]
sidebar-event.php [new file with mode: 0644]
sidebar-member.php [new file with mode: 0644]
sidebar-page.php [new file with mode: 0644]
sidebar.php [new file with mode: 0644]
single-event.php [new file with mode: 0644]
single.php [new file with mode: 0644]
style-101216.css [new file with mode: 0644]
style.css [new file with mode: 0644]
template-parts/child-pages.php [new file with mode: 0644]
template-parts/content-front.php [new file with mode: 0644]
template-parts/content-none.php [new file with mode: 0644]
template-parts/content-page.php [new file with mode: 0644]
template-parts/content-search.php [new file with mode: 0644]
template-parts/content-single.php [new file with mode: 0644]
template-parts/content.php [new file with mode: 0644]
template-parts/deals-loop.php [new file with mode: 0644]
template-parts/main-nav.php [new file with mode: 0644]
template-parts/membersonly-loop.php [new file with mode: 0644]
template-parts/press-loop.php [new file with mode: 0644]
template-parts/search-overlay.php [new file with mode: 0644]
template-parts/top-nav.php [new file with mode: 0644]

diff --git a/404.php b/404.php
new file mode 100644 (file)
index 0000000..f6e001b
--- /dev/null
+++ b/404.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * The template for displaying 404 pages (not found).
+ *
+ * @link https://codex.wordpress.org/Creating_an_Error_404_Page
+ *
+ * @package wmta
+ */
+
+get_header(); ?>
+
+<?php get_template_part('inc/hero','header'); ?>
+
+       <div class="body-content row column">
+
+        <div id="primary" class="content-area">
+            <main id="main" class="site-search" role="main">
+
+                <section class="error-404 not-found">
+                    <header class="page-header">
+                        <h1 class="page-title"><?php esc_html_e( 'Page not found', 'wmta' ); ?></h1>
+                    </header><!-- .page-header -->
+
+
+                </section><!-- .error-404 -->
+
+            </main><!-- #main -->
+        </div><!-- #primary -->
+
+       </div><!-- .body-content -->
+
+<?php
+get_footer();
diff --git a/README.md b/README.md
new file mode 100644 (file)
index 0000000..42171a1
--- /dev/null
+++ b/README.md
@@ -0,0 +1,45 @@
+[![Build Status](https://travis-ci.org/Automattic/_s.svg?branch=master)](https://travis-ci.org/Automattic/_s)
+
+_s
+===
+
+Hi. I'm a starter theme called `_s`, or `underscores`, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
+
+My ultra-minimal CSS might make me look like theme tartare but that means less stuff to get in your way when you're designing your awesome theme. Here are some of the other more interesting things you'll find here:
+
+* A just right amount of lean, well-commented, modern, HTML5 templates.
+* A helpful 404 template.
+* A sample custom header implementation in `inc/custom-header.php` that can be activated by uncommenting one line in `functions.php` and adding the code snippet found in the comments of `inc/custom-header.php` to your `header.php` template.
+* Custom template tags in `inc/template-tags.php` that keep your templates clean and neat and prevent code duplication.
+* Some small tweaks in `inc/extras.php` that can improve your theming experience.
+* A script at `js/navigation.js` that makes your menu a toggled dropdown on small screens (like your phone), ready for CSS artistry. It's enqueued in `functions.php`.
+* 2 sample CSS layouts in `layouts/` for a sidebar on either side of your content.
+* Smartly organized starter CSS in `style.css` that will help you to quickly get your design off the ground.
+* Licensed under GPLv2 or later. :) Use it to make something cool.
+
+Getting Started
+---------------
+
+If you want to keep it simple, head over to http://underscores.me and generate your `_s` based theme from there. You just input the name of the theme you want to create, click the "Generate" button, and you get your ready-to-awesomize starter theme.
+
+If you want to set things up manually, download `_s` from GitHub. The first thing you want to do is copy the `_s` directory and change the name to something else (like, say, `megatherium`), and then you'll need to do a five-step find and replace on the name in all the templates.
+
+1. Search for `'_s'` (inside single quotations) to capture the text domain.
+2. Search for `_s_` to capture all the function names.
+3. Search for `Text Domain: _s` in style.css.
+4. Search for <code>&nbsp;_s</code> (with a space before it) to capture DocBlocks.
+5. Search for `_s-` to capture prefixed handles.
+
+OR
+
+* Search for: `'_s'` and replace with: `'megatherium'`
+* Search for: `_s_` and replace with: `megatherium_`
+* Search for: `Text Domain: _s` and replace with: `Text Domain: megatherium` in style.css.
+* Search for: <code>&nbsp;_s</code> and replace with: <code>&nbsp;Megatherium</code>
+* Search for: `_s-` and replace with: `megatherium-`
+
+Then, update the stylesheet header in `style.css` and the links in `footer.php` with your own information. Next, update or delete this readme.
+
+Now you're ready to go! The next step is easy to say, but harder to do: make an awesome WordPress theme. :)
+
+Good luck!
diff --git a/archive.php b/archive.php
new file mode 100644 (file)
index 0000000..41343a0
--- /dev/null
@@ -0,0 +1,128 @@
+<?php
+/**
+ * The template for displaying archive pages.
+ *
+ * @link https://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package wmta
+ */
+
+get_header(); ?>
+
+
+<?php get_template_part('inc/hero','header-news'); ?>
+
+       <div class="body-content row column">
+
+               <div class="medium-8 large-9 columns">
+
+                       <div id="primary" class="content-area">
+
+                               <main id="main" class="site-main" role="main">
+
+                    <div class="post-page-title"><?php echo '<h1><a href="',get_the_permalink('34'),'">',get_the_title('34'),'</a></h1>'; ?></div>
+
+                    <div class="news-wrapper">
+
+                        <?php
+
+                        if (is_user_logged_in() && is_category('members-only')) {
+                            if ( have_posts() ) : ?>
+
+                                <header class="page-header">
+                                    <?php
+                                    the_archive_title( '<h1 class="page-title">', '</h1>' );
+                                    the_archive_description( '<div class="taxonomy-description">', '</div>' );
+                                    ?>
+                                </header><!-- .page-header -->
+
+                                <?php
+
+
+
+                                global $query_string;
+                                query_posts( $query_string . '&cat=665' );
+                                /* Start the Loop */
+                                while ( have_posts() ) : the_post();
+
+                                    /*
+                                     * 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( 'template-parts/content', get_post_format() );
+
+                                endwhile;
+
+                                the_posts_navigation();
+
+                            else :
+
+                                get_template_part( 'template-parts/content', 'none' );
+
+                            endif;
+                        }
+                        elseif (!is_user_logged_in() && is_category('members-only')) {
+                            if ( have_posts() ) :
+
+                                echo 'You must be a WMTA Member to view this page.';
+
+                            endif;
+                        }
+                        else {
+                            if ( have_posts() ) : ?>
+
+                                <header class="page-header">
+                                    <?php
+                                    the_archive_title( '<h1 class="page-title">', '</h1>' );
+                                    the_archive_description( '<div class="taxonomy-description">', '</div>' );
+                                    ?>
+                                </header><!-- .page-header -->
+
+                                <?php
+
+
+
+                                global $query_string;
+                                query_posts( $query_string . '&cat=-665' );
+                                /* Start the Loop */
+                                while ( have_posts() ) : the_post();
+
+                                    /*
+                                     * 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( 'template-parts/content', get_post_format() );
+
+                                endwhile;
+
+                                the_posts_navigation();
+
+                            else :
+
+                                get_template_part( 'template-parts/content', 'none' );
+
+                            endif;
+                        }
+
+
+                        ?>
+
+                    </div>
+
+                               </main><!-- #main -->
+
+                       </div><!-- #primary -->
+
+               </div><!-- .large-9.columns -->
+
+               <div class="medium-4 large-3 columns page-sidebar">
+                       <?php get_sidebar();?>
+               </div><!-- .large-3.columns -->
+
+       </div><!-- .row -->
+
+<?php
+
+get_footer();
diff --git a/assets/img/rs-universal.png b/assets/img/rs-universal.png
new file mode 100644 (file)
index 0000000..389b33b
Binary files /dev/null and b/assets/img/rs-universal.png differ
diff --git a/assets/javascript/foundation.min.js b/assets/javascript/foundation.min.js
new file mode 100644 (file)
index 0000000..caa0df5
--- /dev/null
@@ -0,0 +1 @@
+!function(t){"use strict";function e(t){if(void 0===Function.prototype.name){var e=/function\s([^(]{1,})\(/,n=e.exec(t.toString());return n&&n.length>1?n[1].trim():""}return void 0===t.prototype?t.constructor.name:t.prototype.constructor.name}function n(t){return/true/.test(t)?!0:/false/.test(t)?!1:isNaN(1*t)?t:parseFloat(t)}function i(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}var o="6.0.5",r={version:o,_plugins:{},_uuids:[],_activePlugins:{},rtl:function(){return"rtl"===t("html").attr("dir")},plugin:function(t,n){var o=n||e(t),r=i(o);this._plugins[r]=this[o]=t},registerPlugin:function(t){var n=e(t.constructor).toLowerCase();t.uuid=this.GetYoDigits(6,n),t.$element.attr("data-"+n)||t.$element.attr("data-"+n,t.uuid),t.$element.trigger("init.zf."+n),this._activePlugins[t.uuid]=t},unregisterPlugin:function(t){var n=e(t.constructor).toLowerCase();delete this._activePlugins[t.uuid],t.$element.removeAttr("data-"+n).trigger("destroyed.zf."+n)},_reflow:function(t){var e=Object.keys(this._activePlugins),n=this;if(t){if("string"==typeof t){var i=t.split("-")[1];i?this._activePlugins[t]._init():(i=new RegExp(t,"i"),e.filter(function(t){return i.test(t)}).forEach(function(t){n._activePlugins[t]._init()}))}}else e.forEach(function(t){n._activePlugins[t]._init()})},GetYoDigits:function(t,e){return t=t||6,Math.round(Math.pow(36,t+1)-Math.random()*Math.pow(36,t)).toString(36).slice(1)+(e?"-"+e:"")},reflow:function(e,i){"undefined"==typeof i?i=Object.keys(this._plugins):"string"==typeof i&&(i=[i]);var o=this;t.each(i,function(i,r){var a=o._plugins[r],s=t(e).find("[data-"+r+"]").addBack("*");s.each(function(){var e=t(this),i={};if(e.attr("zf-plugin"))return void console.warn("Tried to initialize "+r+" on an element that already has a Foundation plugin.");if(e.attr("data-options")){e.attr("data-options").split(";").forEach(function(t,e){var o=t.split(":").map(function(t){return t.trim()});o[0]&&(i[o[0]]=n(o[1]))})}try{e.data("zf-plugin",new a(t(this),i))}catch(o){console.error(o)}finally{return}})})},getFnName:e,transitionend:function(t){var e,n={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend"},i=document.createElement("div");for(var o in n)"undefined"!=typeof i.style[o]&&(e=n[o]);return e?e:(e=setTimeout(function(){t.triggerHandler("transitionend",[t])},1),"transitionend")}};r.util={throttle:function(t,e){var n=null;return function(){var i=this,o=arguments;null===n&&(n=setTimeout(function(){t.apply(i,o),n=null},e))}}};var a=function(n){var i=typeof n,o=t("meta.foundation-mq"),a=t(".no-js");if(o.length||t('<meta class="foundation-mq">').appendTo(document.head),a.length&&a.removeClass("no-js"),"undefined"===i)r.MediaQuery._init(),r.reflow(this);else{if("string"!==i)throw new TypeError("We're sorry, '"+i+"' is not a valid parameter. You must use a string representing the method you wish to invoke.");var s=Array.prototype.slice.call(arguments,1),u=this.data("zfPlugin");if(void 0===u||void 0===u[n])throw new ReferenceError("We're sorry, '"+n+"' is not an available method for "+(u?e(u):"this element")+".");1===this.length?u[n].apply(u,s):this.each(function(e,i){u[n].apply(t(i).data("zfPlugin"),s)})}return this};window.Foundation=r,t.fn.foundation=a,function(){Date.now&&window.Date.now||(window.Date.now=Date.now=function(){return(new Date).getTime()});for(var t=["webkit","moz"],e=0;e<t.length&&!window.requestAnimationFrame;++e){var n=t[e];window.requestAnimationFrame=window[n+"RequestAnimationFrame"],window.cancelAnimationFrame=window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"]}if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){var i=0;window.requestAnimationFrame=function(t){var e=Date.now(),n=Math.max(i+16,e);return setTimeout(function(){t(i=n)},n-e)},window.cancelAnimationFrame=clearTimeout}window.performance&&window.performance.now||(window.performance={start:Date.now(),now:function(){return Date.now()-this.start}})}(),Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,i=function(){},o=function(){return n.apply(this instanceof i?this:t,e.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(i.prototype=this.prototype),o.prototype=new i,o})}(jQuery),!function(t,e){var n=function(t,e,n,o){var r,a,s,u,d=i(t);if(e){var f=i(e);a=d.offset.top+d.height<=f.height+f.offset.top,r=d.offset.top>=f.offset.top,s=d.offset.left>=f.offset.left,u=d.offset.left+d.width<=f.width}else a=d.offset.top+d.height<=d.windowDims.height+d.windowDims.offset.top,r=d.offset.top>=d.windowDims.offset.top,s=d.offset.left>=d.windowDims.offset.left,u=d.offset.left+d.width<=d.windowDims.width;var l=[a,r,s,u];return n?s===u==!0:o?r===a==!0:-1===l.indexOf(!1)},i=function(t,n){if(t=t.length?t[0]:t,t===e||t===document)throw new Error("I'm sorry, Dave. I'm afraid I can't do that.");var i=t.getBoundingClientRect(),o=t.parentNode.getBoundingClientRect(),r=document.body.getBoundingClientRect(),a=e.pageYOffset,s=e.pageXOffset;return{width:i.width,height:i.height,offset:{top:i.top+a,left:i.left+s},parentDims:{width:o.width,height:o.height,offset:{top:o.top+a,left:o.left+s}},windowDims:{width:r.width,height:r.height,offset:{top:a,left:s}}}},o=function(t,e,n,o,r,a){var s=i(t),u=e?i(e):null;switch(n){case"top":return{left:u.offset.left,top:u.offset.top-(s.height+o)};case"left":return{left:u.offset.left-(s.width+r),top:u.offset.top};case"right":return{left:u.offset.left+u.width+r,top:u.offset.top};case"center top":return{left:u.offset.left+u.width/2-s.width/2,top:u.offset.top-(s.height+o)};case"center bottom":return{left:a?r:u.offset.left+u.width/2-s.width/2,top:u.offset.top+u.height+o};case"center left":return{left:u.offset.left-(s.width+r),top:u.offset.top+u.height/2-s.height/2};case"center right":return{left:u.offset.left+u.width+r+1,top:u.offset.top+u.height/2-s.height/2};case"center":return{left:s.windowDims.offset.left+s.windowDims.width/2-s.width/2,top:s.windowDims.offset.top+s.windowDims.height/2-s.height/2};case"reveal":return{left:(s.windowDims.width-s.width)/2,top:s.windowDims.offset.top+o};case"reveal full":return{left:s.windowDims.offset.left,top:s.windowDims.offset.top};default:return{left:u.offset.left,top:u.offset.top+u.height+o}}};t.Box={ImNotTouchingYou:n,GetDimensions:i,GetOffsets:o}}(window.Foundation,window),!function(t,e){"use strict";e.Keyboard={};var n={9:"TAB",13:"ENTER",27:"ESCAPE",32:"SPACE",37:"ARROW_LEFT",38:"ARROW_UP",39:"ARROW_RIGHT",40:"ARROW_DOWN"},i=function(t){var e={};for(var n in t)e[t[n]]=t[n];return e}(n);e.Keyboard.keys=i;var o=function(t){var e=n[t.which||t.keyCode]||String.fromCharCode(t.which).toUpperCase();return t.shiftKey&&(e="SHIFT_"+e),t.ctrlKey&&(e="CTRL_"+e),t.altKey&&(e="ALT_"+e),e};e.Keyboard.parseKey=o;var r={},a=function(n,i,a){var s,u,d,f=r[e.getFnName(i)],l=o(n);return f?(s="undefined"==typeof f.ltr?f:e.rtl()?t.extend({},f.ltr,f.rtl):t.extend({},f.rtl,f.ltr),u=s[l],d=a[u],void(d&&"function"==typeof d?(d.apply(i),(a.handled||"function"==typeof a.handled)&&a.handled.apply(i)):(a.unhandled||"function"==typeof a.unhandled)&&a.unhandled.apply(i))):console.warn("Component not defined!")};e.Keyboard.handleKey=a;var s=function(e){return e.find("a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]").filter(function(){return!t(this).is(":visible")||t(this).attr("tabindex")<0?!1:!0})};e.Keyboard.findFocusable=s;var u=function(t,e){r[t]=e};e.Keyboard.register=u}(jQuery,window.Foundation),!function(t,e){function n(t){var e={};return"string"!=typeof t?e:(t=t.trim().slice(1,-1))?e=t.split("&").reduce(function(t,e){var n=e.replace(/\+/g," ").split("="),i=n[0],o=n[1];return i=decodeURIComponent(i),o=void 0===o?null:decodeURIComponent(o),t.hasOwnProperty(i)?Array.isArray(t[i])?t[i].push(o):t[i]=[t[i],o]:t[i]=o,t},{}):e}var i={queries:[],current:"",atLeast:function(t){var e=this.get(t);return e?window.matchMedia(e).matches:!1},get:function(t){for(var e in this.queries){var n=this.queries[e];if(t===n.name)return n.value}return null},_init:function(){var e,i=this,o=t(".foundation-mq").css("font-family");e=n(o);for(var r in e)i.queries.push({name:r,value:"only screen and (min-width: "+e[r]+")"});this.current=this._getCurrentSize(),this._watcher()},_getCurrentSize:function(){var t;for(var e in this.queries){var n=this.queries[e];window.matchMedia(n.value).matches&&(t=n)}return"object"==typeof t?t.name:t},_watcher:function(){var e=this;t(window).on("resize.zf.mediaquery",function(){var n=e._getCurrentSize();n!==e.current&&(t(window).trigger("changed.zf.mediaquery",[n,e.current]),e.current=n)})}};e.MediaQuery=i,window.matchMedia||(window.matchMedia=function(){"use strict";var t=window.styleMedia||window.media;if(!t){var e=document.createElement("style"),n=document.getElementsByTagName("script")[0],i=null;e.type="text/css",e.id="matchmediajs-test",n.parentNode.insertBefore(e,n),i="getComputedStyle"in window&&window.getComputedStyle(e,null)||e.currentStyle,t={matchMedium:function(t){var n="@media "+t+"{ #matchmediajs-test { width: 1px; } }";return e.styleSheet?e.styleSheet.cssText=n:e.textContent=n,"1px"===i.width}}}return function(e){return{matches:t.matchMedium(e||"all"),media:e||"all"}}}())}(jQuery,Foundation),!function(t,e){function n(n,r,a,s){function u(){n||r.hide(),d(),s&&s.apply(r)}function d(){r[0].style.transitionDuration=0,r.removeClass(f+" "+l+" "+a)}if(r=t(r).eq(0),r.length){var f=n?i[0]:i[1],l=n?o[0]:o[1];d(),r.addClass(a).css("transition","none"),requestAnimationFrame(function(){r.addClass(f),n&&r.show()}),requestAnimationFrame(function(){r[0].offsetWidth,r.css("transition",""),r.addClass(l)}),r.one(e.transitionend(r),u)}}var i=["mui-enter","mui-leave"],o=["mui-enter-active","mui-leave-active"],r={animateIn:function(t,e,i){n(!0,t,e,i)},animateOut:function(t,e,i){n(!1,t,e,i)}},a=function(t,e,n){function i(s){a||(a=window.performance.now()),r=s-a,n.apply(e),t>r?o=window.requestAnimationFrame(i,e):(window.cancelAnimationFrame(o),e.trigger("finished.zf.animate",[e]).triggerHandler("finished.zf.animate",[e]))}var o,r,a=null;o=window.requestAnimationFrame(i)};e.Move=a,e.Motion=r}(jQuery,Foundation),!function(t,e){"use strict";e.Nest={Feather:function(e,n){e.attr("role","menubar"),n=n||"zf";var i=e.find("li").attr({role:"menuitem"}),o="is-"+n+"-submenu",r=o+"-item",a="is-"+n+"-submenu-parent";e.find("a:first").attr("tabindex",0),i.each(function(){var e=t(this),n=e.children("ul");n.length&&(e.addClass("has-submenu "+a).attr({"aria-haspopup":!0,"aria-selected":!1,"aria-expanded":!1,"aria-label":e.children("a:first").text()}),n.addClass("submenu "+o).attr({"data-submenu":"","aria-hidden":!0,role:"menu"})),e.parent("[data-submenu]").length&&e.addClass("is-submenu-item "+r)})},Burn:function(t,e){var n=(t.find("li").removeAttr("tabindex"),"is-"+e+"-submenu"),i=n+"-item",o="is-"+e+"-submenu-parent";t.find("*").removeClass(n+" "+i+" "+o+" has-submenu is-submenu-item submenu is-active").removeAttr("data-submenu").css("display","")}}}(jQuery,window.Foundation),!function(t,e){"use strict";var n=function(t,e,n){var i,o,r=this,a=e.duration,s=Object.keys(t.data())[0]||"timer",u=-1;this.restart=function(){u=-1,clearTimeout(o),this.start()},this.start=function(){clearTimeout(o),u=0>=u?a:u,t.data("paused",!1),i=Date.now(),o=setTimeout(function(){e.infinite&&r.restart(),n()},u),t.trigger("timerstart.zf."+s)},this.pause=function(){clearTimeout(o),t.data("paused",!0);var e=Date.now();u-=e-i,t.trigger("timerpaused.zf."+s)}},i=function(e,n){var i=e.length;0===i&&n();var o=function(){i--,0===i&&n()};e.each(function(){this.complete?o():"undefined"!=typeof this.naturalWidth&&this.naturalWidth>0?o():t(this).one("load",function(){o()})})};e.Timer=n,e.onImagesLoaded=i}(jQuery,window.Foundation),function(t){function e(){this.removeEventListener("touchmove",n),this.removeEventListener("touchend",e),d=!1}function n(n){if(t.spotSwipe.preventDefault&&n.preventDefault(),d){var i,o=n.touches[0].pageX,f=n.touches[0].pageY,l=r-o,c=a-f;u=(new Date).getTime()-s,Math.abs(l)>=t.spotSwipe.moveThreshold&&u<=t.spotSwipe.timeThreshold?i=l>0?"left":"right":Math.abs(c)>=t.spotSwipe.moveThreshold&&u<=t.spotSwipe.timeThreshold&&(i=c>0?"down":"up"),i&&(e.call(this),t(this).trigger("swipe",i).trigger("swipe"+i))}}function i(t){1==t.touches.length&&(r=t.touches[0].pageX,a=t.touches[0].pageY,d=!0,s=(new Date).getTime(),this.addEventListener("touchmove",n,!1),this.addEventListener("touchend",e,!1))}function o(){this.addEventListener&&this.addEventListener("touchstart",i,!1)}t.spotSwipe={version:"1.0.0",enabled:"ontouchstart"in document.documentElement,preventDefault:!0,moveThreshold:75,timeThreshold:200};var r,a,s,u,d=!1;t.event.special.swipe={setup:o},t.each(["left","up","down","right"],function(){t.event.special["swipe"+this]={setup:function(){t(this).on("swipe",t.noop)}}})}(jQuery),!function(t){t.fn.addTouch=function(){this.each(function(n,i){t(i).bind("touchstart touchmove touchend touchcancel",function(){e(event)})});var e=function(t){var e=t.changedTouches,n=e[0],i={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup"},o=i[t.type],r=document.createEvent("MouseEvent");r.initMouseEvent(o,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),n.target.dispatchEvent(r)}}}(jQuery),!function(t,e){"use strict";e(document).on("click.zf.trigger","[data-open]",function(){var t=e(this).data("open");e("#"+t).triggerHandler("open.zf.trigger",[e(this)])}),e(document).on("click.zf.trigger","[data-close]",function(){var t=e(this).data("close");t?e("#"+t).triggerHandler("close.zf.trigger",[e(this)]):e(this).trigger("close.zf.trigger")}),e(document).on("click.zf.trigger","[data-toggle]",function(){var t=e(this).data("toggle");e("#"+t).triggerHandler("toggle.zf.trigger",[e(this)])}),e(document).on("close.zf.trigger","[data-closable]",function(){var n=e(this).data("closable")||"fade-out";t.Motion?t.Motion.animateOut(e(this),n,function(){e(this).trigger("closed.zf")}):e(this).fadeOut().trigger("closed.zf")});var n=function(){for(var t=["WebKit","Moz","O","Ms",""],e=0;e<t.length;e++)if(t[e]+"MutationObserver"in window)return window[t[e]+"MutationObserver"];return!1}(),i=function(){s(),r(),a(),o()};e(window).load(function(){i()});var o=function(t){var n=e("[data-yeti-box]"),i=["dropdown","tooltip","reveal"];if(t&&("string"==typeof t?i.push(t):"object"==typeof t&&"string"==typeof t[0]?i.concat(t):console.error("Plugin names must be strings")),n.length){var o=i.map(function(t){return"closeme.zf."+t}).join(" ");e(window).off(o).on(o,function(t,n){var i=t.namespace.split(".")[0],o=e("[data-"+i+"]").not('[data-yeti-box="'+n+'"]');o.each(function(){var t=e(this);t.triggerHandler("close.zf.trigger",[t])})})}},r=function(t){var i,o=e("[data-resize]");o.length&&e(window).off("resize.zf.trigger").on("resize.zf.trigger",function(r){i&&clearTimeout(i),i=setTimeout(function(){n||o.each(function(){e(this).triggerHandler("resizeme.zf.trigger")}),o.attr("data-events","resize")},t||10)})},a=function(t){var i,o=e("[data-scroll]");o.length&&e(window).off("scroll.zf.trigger").on("scroll.zf.trigger",function(r){i&&clearTimeout(i),i=setTimeout(function(){n||o.each(function(){e(this).triggerHandler("scrollme.zf.trigger")}),o.attr("data-events","scroll")},t||10)})},s=function(){if(!n)return!1;var t=document.querySelectorAll("[data-resize], [data-scroll], [data-mutate]"),i=function(t){var n=e(t[0].target);switch(n.attr("data-events")){case"resize":n.triggerHandler("resizeme.zf.trigger",[n]);break;case"scroll":n.triggerHandler("scrollme.zf.trigger",[n,window.pageYOffset]);break;default:return!1}};if(t.length)for(var o=0;o<=t.length-1;o++){var r=new n(i);r.observe(t[o],{attributes:!0,childList:!1,characterData:!1,subtree:!1,attributeFilter:["data-events"]})}};t.IHearYou=i}(window.Foundation,window.jQuery),!function(t,e){"use strict";function n(i,o){this.$element=i,this.options=t.extend({},n.defaults,this.$element.data(),o),e.Nest.Feather(this.$element,"drilldown"),this._init(),e.registerPlugin(this),e.Keyboard.register("Drilldown",{ENTER:"open",SPACE:"open",ARROW_RIGHT:"next",ARROW_UP:"up",ARROW_DOWN:"down",ARROW_LEFT:"previous",ESCAPE:"close",TAB:"down",SHIFT_TAB:"up"})}n.defaults={backButton:'<li class="js-drilldown-back"><a>Back</a></li>',wrapper:"<div></div>",closeOnClick:!1},n.prototype._init=function(){this.$submenuAnchors=this.$element.find("li.has-submenu"),this.$submenus=this.$submenuAnchors.children("[data-submenu]"),this.$menuItems=this.$element.find("li:visible").not(".js-drilldown-back").attr("role","menuitem"),this._prepareMenu(),this._keyboardEvents()},n.prototype._prepareMenu=function(){var e=this;this.$submenuAnchors.each(function(){var n=t(this),i=n.find("a:first");i.data("savedHref",i.attr("href")).removeAttr("href"),n.children("[data-submenu]").attr({"aria-hidden":!0,tabindex:0,role:"menu"}),e._events(n)}),this.$submenus.each(function(){var n=t(this),i=n.find(".js-drilldown-back");i.length||n.prepend(e.options.backButton),e._back(n)}),this.$element.parent().hasClass("is-drilldown")||(this.$wrapper=t(this.options.wrapper).addClass("is-drilldown").css(this._getMaxDims()),this.$element.wrap(this.$wrapper))},n.prototype._events=function(e){var n=this;e.off("click.zf.drilldown").on("click.zf.drilldown",function(i){if(t(i.target).parentsUntil("ul","li").hasClass("is-drilldown-submenu-parent")&&(i.stopImmediatePropagation(),i.preventDefault()),n._show(e),n.options.closeOnClick){var o=t("body").not(n.$wrapper);o.off(".zf.drilldown").on("click.zf.drilldown",function(t){t.preventDefault(),n._hideAll(),o.off(".zf.drilldown")})}})},n.prototype._keyboardEvents=function(){var n=this;this.$menuItems.add(this.$element.find(".js-drilldown-back")).on("keydown.zf.drilldown",function(i){var o,r,a=t(this),s=a.parent("ul").children("li");s.each(function(e){return t(this).is(a)?(o=s.eq(Math.max(0,e-1)),void(r=s.eq(Math.min(e+1,s.length-1)))):void 0}),e.Keyboard.handleKey(i,n,{next:function(){a.is(n.$submenuAnchors)&&(n._show(a),a.on(e.transitionend(a),function(){a.find("ul li").filter(n.$menuItems).first().focus()}))},previous:function(){n._hide(a.parent("ul")),a.parent("ul").on(e.transitionend(a),function(){setTimeout(function(){a.parent("ul").parent("li").focus()},1)})},up:function(){o.focus()},down:function(){r.focus()},close:function(){n._back()},open:function(){a.is(n.$menuItems)?a.is(n.$submenuAnchors)&&(n._show(a),setTimeout(function(){a.find("ul li").filter(n.$menuItems).first().focus()},1)):(n._hide(a.parent("ul")),setTimeout(function(){a.parent("ul").parent("li").focus()},1))},handled:function(){i.preventDefault(),i.stopImmediatePropagation()}})})},n.prototype._hideAll=function(){var t=this.$element.find(".is-drilldown-sub.is-active").addClass("is-closing");t.one(e.transitionend(t),function(e){t.removeClass("is-active is-closing")}),this.$element.trigger("closed.zf.drilldown")},n.prototype._back=function(t){var e=this;t.off("click.zf.drilldown"),t.children(".js-drilldown-back").on("click.zf.drilldown",function(n){n.stopImmediatePropagation(),e._hide(t)})},n.prototype._menuLinkEvents=function(){var t=this;this.$menuItems.not(".has-submenu").off("click.zf.drilldown").on("click.zf.drilldown",function(e){setTimeout(function(){t._hideAll()},0)})},n.prototype._show=function(t){t.children("[data-submenu]").addClass("is-active"),this.$element.trigger("open.zf.drilldown",[t])},n.prototype._hide=function(t){t.addClass("is-closing").one(e.transitionend(t),function(){t.removeClass("is-active is-closing")}),t.trigger("hide.zf.drilldown",[t])},n.prototype._getMaxDims=function(){var e=0,n={};return this.$submenus.add(this.$element).each(function(){var n=t(this).children("li").length;e=n>e?n:e}),n.height=e*this.$menuItems[0].getBoundingClientRect().height+"px",n.width=this.$element[0].getBoundingClientRect().width+"px",n},n.prototype.destroy=function(){this._hideAll(),e.Nest.Burn(this.$element,"drilldown"),this.$element.unwrap().find(".js-drilldown-back").remove().end().find(".is-active, .is-closing, .is-drilldown-sub").removeClass("is-active is-closing is-drilldown-sub").end().find("[data-submenu]").removeAttr("aria-hidden tabindex role").off(".zf.drilldown").end().off("zf.drilldown"),this.$element.find("a").each(function(){var e=t(this);e.data("savedHref")&&e.attr("href",e.data("savedHref")).removeData("savedHref")}),e.unregisterPlugin(this)},e.plugin(n,"Drilldown")}(jQuery,window.Foundation);
\ No newline at end of file
diff --git a/assets/javascript/jquery.adrotate.dyngroup-custom.js b/assets/javascript/jquery.adrotate.dyngroup-custom.js
new file mode 100644 (file)
index 0000000..96abce4
--- /dev/null
@@ -0,0 +1,112 @@
+/****************************************************************************************
+ * Dynamic advert rotation for AdRotate                                                                                                        *
+ * Arnan de Gans from AJdG Solutions (http://meandmymac.net, https://ajdg.solutions/)  *
+ * Version: 0.8.1                                                                                                                                              *
+ * With help from: Mathias Joergensen (http://www.moofy.me), Fraser Munro                              *
+ * Original code: Arnan de Gans                                                                                                                        *
+ ****************************************************************************************/
+
+/* ------------------------------------------------------------------------------------
+*  COPYRIGHT AND TRADEMARK NOTICE
+*  Copyright 2008-2015 Arnan de Gans. All Rights Reserved.
+*  ADROTATE is a trademark of Arnan de Gans.
+
+*  COPYRIGHT NOTICES AND ALL THE COMMENTS SHOULD REMAIN INTACT.
+*  By using this code you agree to indemnify Arnan de Gans from any
+*  liability that might arise from it's use.
+------------------------------------------------------------------------------------ */
+
+/* == Settings ==
+groupid : PHP Group ID [integer, defaults to 0]
+speed : Time each slide is shown [integer: milliseconds, defaults to 3000]
+*/
+
+(function($) {
+       $.fn.gslider = function(settings) {
+               var config = {groupid:0,speed:3000};
+               if(settings) $.extend(true, config, settings)
+
+               this.each(function(i) {
+                       var $cont = $(this);
+                       var gallery = $(this).children();
+                       var length = gallery.length;
+                       var timer = 0;
+                       var counter = 1;
+
+                       if(length == 1) {
+                               // Impression tracker (Single ad)
+                   var tracker = $cont.find(".c-1 a").attr("data-track");
+                               if(typeof tracker !== 'undefined') {
+                                       impressiontracker(tracker);
+                               }
+                       }
+                       
+                       if(length > 1) {
+                               $cont.find(".c-1").show();
+                               for(n = 2; n <= length; n++) {
+                                       $cont.find(".c-" + n).hide();
+                               }
+                               
+                               timer = setInterval(function(){ play(); }, config.speed);
+                       }
+
+                       function transitionTo(gallery, index) {
+                               if((counter >= length) || (index >= length)) { 
+                                       counter = 1;
+                               } else { 
+                                       counter++;
+                               }
+
+                               $cont.find(".c-" + counter).fadeIn(0);
+
+                               // Impression tracker (Multiple ads)
+                   var tracker = $cont.find(".c-" + counter + ' a').attr("data-track");
+                               if(typeof tracker !== 'undefined') {
+                                       impressiontracker(tracker);
+                               }
+                               $cont.find(".c-" + index).fadeOut(0);
+                       }
+                       
+                       function play() {
+                               transitionTo(gallery, counter);
+                       }
+
+                       function impressiontracker(tracker) {
+                   admeta = atob(tracker).split(',');
+                               var now = Math.round(Date.now()/1000);
+                               var unixtime = now - admeta[3];
+
+                               cookietime = readCookie('adrotate-'+admeta[0]);
+                               if(cookietime <= unixtime) {
+                                       $.post(
+                                               impression_object.ajax_url, 
+                                               {'action': 'adrotate_impression','track': tracker}
+                                       );
+                                       createCookie('adrotate-'+admeta[0], now);
+                                       delete tracker;
+                               }
+                       }
+
+                       function createCookie(name, value) {
+                           var expires;
+                       var date = new Date();
+
+                       date.setTime(date.getTime() + 86400000);
+                       expires = "; expires=" + date.toGMTString();
+                           document.cookie = escape(name) + "=" + escape(value) + expires + "; path=/";
+                       }
+                       
+                       function readCookie(name) {
+                           var nameEQ = escape(name) + "=";
+                           var ca = document.cookie.split(';');
+                           for (var i = 0; i < ca.length; i++) {
+                               var c = ca[i];
+                               while (c.charAt(0) === ' ') c = c.substring(1, c.length);
+                               if (c.indexOf(nameEQ) === 0) return unescape(c.substring(nameEQ.length, c.length));
+                           }
+                           return 0;
+                       }
+               });
+               return this;
+       };
+}(jQuery));
\ No newline at end of file
diff --git a/assets/stylesheets/custom-editor-style.css b/assets/stylesheets/custom-editor-style.css
new file mode 100644 (file)
index 0000000..2193bc9
--- /dev/null
@@ -0,0 +1,53 @@
+@charset "UTF-8";
+/* CSS Document */
+
+body#tinymce.wp-editor {padding:12px;}
+
+body#tinymce.wp-editor h1{color:#666;font:30px/1 "Roboto", sans-serif;font-weight: bold;}
+body#tinymce.wp-editor h2{color:#666;font:25px/1 "Roboto", sans-serif;font-weight: bold;}
+body#tinymce.wp-editor h3{color:#666;font:20px/1 "Roboto", sans-serif}
+body#tinymce.wp-editor h4{color:#666;font:18px/1 "Roboto", sans-serif}
+body#tinymce.wp-editor h5{color:#666;font:16px/1 "Roboto", sans-serif}
+body#tinymce.wp-editor h6{color:#666;font:16px/1 "Roboto", sans-serif}
+body#tinymce.wp-editor p{color:#666;font:14px/18px "Roboto", sans-serif;}
+body#tinymce.wp-editor ul{color:#666;font:14px/18px "Roboto", sans-serif;margin-left:15px;}
+body#tinymce.wp-editor ol{color:#666;font:14px/18px "Roboto", sans-serif;margin-left:20px;}
+body#tinymce.wp-editor li{padding:2px 0;position:relative;left:0;}
+body#tinymce.wp-editor a{color:inherit;}
+body#tinymce.wp-editor a.read-more{font:14px/18px "Roboto", sans-serif;}
+body#tinymce.wp-editor hr{margin:15px 0;padding:0;border:none 0;border-top:#333 1px solid;height:1px;clear:both;}
+
+body#tinymce.wp-editor .alignleft {display: inline;float: left;margin-right: 1.5em;}
+body#tinymce.wp-editor .alignright {display: inline;float: right;margin-left: 1.5em;}
+body#tinymce.wp-editor .aligncenter {clear: both;display: block;margin: 0 auto;}
+
+body#tinymce.wp-editor .mega-left {
+    display:table-cell;
+    width:1%;
+    padding-right:20px;
+    vertical-align:top;
+}
+body#tinymce.wp-editor .mega-right {
+    display:table-cell;
+    width:1%;
+    vertical-align:top;
+    text-align:left;
+}
+
+body#tinymce.wp-editor .mega-right p{
+    padding:10px 0;
+    margin:0;
+    font-size:16px;
+}
+body#tinymce.wp-editor .mega-thumb{
+    display:table-cell;
+    width:170px;
+    height:100px;
+    background-repeat: no-repeat;
+    background-position: center center;
+    background-size:cover;
+    font-size:16px;
+    color:#fff;
+    padding:15px;
+    vertical-align:bottom;
+}
\ No newline at end of file
diff --git a/assets/stylesheets/foundation.min.css b/assets/stylesheets/foundation.min.css
new file mode 100644 (file)
index 0000000..c2ce64b
--- /dev/null
@@ -0,0 +1 @@
+/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */button,img,legend{border:0}body,button,legend{padding:0}.row.collapse>.column,.row.collapse>.columns,.row.small-collapse>.column,.row.small-collapse>.columns{padding-left:0;padding-right:0}.small-pull-1,.small-pull-10,.small-pull-11,.small-pull-2,.small-pull-3,.small-pull-4,.small-pull-5,.small-pull-6,.small-pull-7,.small-pull-8,.small-pull-9,.small-push-1,.small-push-10,.small-push-11,.small-push-2,.small-push-3,.small-push-4,.small-push-5,.small-push-7,.small-push-8,.small-push-9,sub,sup{position:relative}img,textarea[rows]{height:auto}button,select{-webkit-appearance:none;-moz-appearance:none}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,optgroup,strong{font-weight:700}dfn{font-style:italic}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{max-width:100%;-ms-interpolation-mode:bicubic;display:inline-block;vertical-align:middle}svg:not(:root){overflow:hidden}figure{margin:1em 40px}pre,textarea{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}a,b,em,i,small,strong{line-height:inherit}dl,ol,p,ul{line-height:1.6}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}table{border-collapse:collapse;border-spacing:0}.foundation-mq{font-family:"small=0em&medium=40em&large=64em&xlarge=75em&xxlarge=90em"}body,h1,h2,h3,h4,h5,h6{font-family:"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif;font-weight:400;color:#222}body,html{font-size:100%;box-sizing:border-box}*,:after,:before{box-sizing:inherit}body{margin:0;line-height:1.5;background:#fefefe;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}select{width:100%}#map_canvas embed,#map_canvas img,#map_canvas object,.map_canvas embed,.map_canvas img,.map_canvas object,.mqa-display embed,.mqa-display img,.mqa-display object{max-width:none!important}button{overflow:visible;background:0 0;border-radius:3px;line-height:1}.row{max-width:62.5rem;margin-left:auto;margin-right:auto}.row::after,.row::before{content:' ';display:table}.row::after{clear:both}.row .row{margin-left:-.9375rem;margin-right:-.9375rem}.row .row.collapse{margin-left:0;margin-right:0}.row.small-uncollapse>.column,.row.small-uncollapse>.columns{padding-left:30px;padding-right:30px}@media screen and (min-width:40em){.row.medium-collapse>.column,.row.medium-collapse>.columns{padding-left:0;padding-right:0}.row.medium-uncollapse>.column,.row.medium-uncollapse>.columns{padding-left:30px;padding-right:30px}}@media screen and (min-width:64em){.row.large-collapse>.column,.row.large-collapse>.columns{padding-left:0;padding-right:0}.row.large-uncollapse>.column,.row.large-uncollapse>.columns{padding-left:30px;padding-right:30px}}.row.expanded{max-width:none}.column,.columns{width:100%;float:left;padding-left:.9375rem;padding-right:.9375rem}.column:last-child:not(:first-child),.columns:last-child:not(:first-child){float:right}.column.end:last-child:last-child,.end.columns:last-child:last-child{float:left}.column.row.row,.row.row.columns{float:none}.small-1{width:8.33333%}.small-push-1{left:8.33333%}.small-pull-1{left:-8.33333%}.small-offset-0{margin-left:0}.small-2{width:16.66667%}.small-push-2{left:16.66667%}.small-pull-2{left:-16.66667%}.small-offset-1{margin-left:8.33333%}.small-3{width:25%}.small-push-3{left:25%}.small-pull-3{left:-25%}.small-offset-2{margin-left:16.66667%}.small-4{width:33.33333%}.small-push-4{left:33.33333%}.small-pull-4{left:-33.33333%}.small-offset-3{margin-left:25%}.small-5{width:41.66667%}.small-push-5{left:41.66667%}.small-pull-5{left:-41.66667%}.small-offset-4{margin-left:33.33333%}.small-6{width:50%}.small-push-6{position:relative;left:50%}.small-pull-6{left:-50%}.small-offset-5{margin-left:41.66667%}.small-7{width:58.33333%}.small-push-7{left:58.33333%}.small-pull-7{left:-58.33333%}.small-offset-6{margin-left:50%}.small-8{width:66.66667%}.small-push-8{left:66.66667%}.small-pull-8{left:-66.66667%}.small-offset-7{margin-left:58.33333%}.small-9{width:75%}.small-push-9{left:75%}.small-pull-9{left:-75%}.small-offset-8{margin-left:66.66667%}.small-10{width:83.33333%}.small-push-10{left:83.33333%}.small-pull-10{left:-83.33333%}.small-offset-9{margin-left:75%}.small-11{width:91.66667%}.small-push-11{left:91.66667%}.small-pull-11{left:-91.66667%}.small-offset-10{margin-left:83.33333%}.small-12{width:100%}.small-offset-11{margin-left:91.66667%}.small-up-1>.column,.small-up-1>.columns{width:100%;float:left}.small-up-1>.column:nth-of-type(1n),.small-up-1>.columns:nth-of-type(1n){clear:none}.small-up-1>.column:nth-of-type(1n+1),.small-up-1>.columns:nth-of-type(1n+1){clear:both}.small-up-1>.column:last-child,.small-up-1>.columns:last-child{float:left}.small-up-2>.column,.small-up-2>.columns{width:50%;float:left}.small-up-2>.column:nth-of-type(1n),.small-up-2>.columns:nth-of-type(1n){clear:none}.small-up-2>.column:nth-of-type(2n+1),.small-up-2>.columns:nth-of-type(2n+1){clear:both}.small-up-2>.column:last-child,.small-up-2>.columns:last-child{float:left}.small-up-3>.column,.small-up-3>.columns{width:33.33333%;float:left}.small-up-3>.column:nth-of-type(1n),.small-up-3>.columns:nth-of-type(1n){clear:none}.small-up-3>.column:nth-of-type(3n+1),.small-up-3>.columns:nth-of-type(3n+1){clear:both}.small-up-3>.column:last-child,.small-up-3>.columns:last-child{float:left}.small-up-4>.column,.small-up-4>.columns{width:25%;float:left}.small-up-4>.column:nth-of-type(1n),.small-up-4>.columns:nth-of-type(1n){clear:none}.small-up-4>.column:nth-of-type(4n+1),.small-up-4>.columns:nth-of-type(4n+1){clear:both}.small-up-4>.column:last-child,.small-up-4>.columns:last-child{float:left}.small-up-5>.column,.small-up-5>.columns{width:20%;float:left}.small-up-5>.column:nth-of-type(1n),.small-up-5>.columns:nth-of-type(1n){clear:none}.small-up-5>.column:nth-of-type(5n+1),.small-up-5>.columns:nth-of-type(5n+1){clear:both}.small-up-5>.column:last-child,.small-up-5>.columns:last-child{float:left}.small-up-6>.column,.small-up-6>.columns{width:16.66667%;float:left}.small-up-6>.column:nth-of-type(1n),.small-up-6>.columns:nth-of-type(1n){clear:none}.small-up-6>.column:nth-of-type(6n+1),.small-up-6>.columns:nth-of-type(6n+1){clear:both}.small-up-6>.column:last-child,.small-up-6>.columns:last-child{float:left}.small-up-7>.column,.small-up-7>.columns{width:14.28571%;float:left}.small-up-7>.column:nth-of-type(1n),.small-up-7>.columns:nth-of-type(1n){clear:none}.small-up-7>.column:nth-of-type(7n+1),.small-up-7>.columns:nth-of-type(7n+1){clear:both}.small-up-7>.column:last-child,.small-up-7>.columns:last-child{float:left}.small-up-8>.column,.small-up-8>.columns{width:12.5%;float:left}.small-up-8>.column:nth-of-type(1n),.small-up-8>.columns:nth-of-type(1n){clear:none}.small-up-8>.column:nth-of-type(8n+1),.small-up-8>.columns:nth-of-type(8n+1){clear:both}.small-up-8>.column:last-child,.small-up-8>.columns:last-child{float:left}.column.small-centered,.small-centered.columns{float:none;margin-left:auto;margin-right:auto}.small-pull-0,.small-push-0,.small-uncenter{position:static;margin-left:0;margin-right:0}@media screen and (min-width:40em){.medium-pull-1,.medium-pull-10,.medium-pull-11,.medium-pull-2,.medium-pull-3,.medium-pull-4,.medium-pull-5,.medium-pull-6,.medium-pull-7,.medium-pull-8,.medium-pull-9,.medium-push-1,.medium-push-10,.medium-push-11,.medium-push-2,.medium-push-3,.medium-push-4,.medium-push-5,.medium-push-7,.medium-push-8,.medium-push-9{position:relative}.medium-1{width:8.33333%}.medium-push-1{left:8.33333%}.medium-pull-1{left:-8.33333%}.medium-offset-0{margin-left:0}.medium-2{width:16.66667%}.medium-push-2{left:16.66667%}.medium-pull-2{left:-16.66667%}.medium-offset-1{margin-left:8.33333%}.medium-3{width:25%}.medium-push-3{left:25%}.medium-pull-3{left:-25%}.medium-offset-2{margin-left:16.66667%}.medium-4{width:33.33333%}.medium-push-4{left:33.33333%}.medium-pull-4{left:-33.33333%}.medium-offset-3{margin-left:25%}.medium-5{width:41.66667%}.medium-push-5{left:41.66667%}.medium-pull-5{left:-41.66667%}.medium-offset-4{margin-left:33.33333%}.medium-6{width:50%}.medium-push-6{position:relative;left:50%}.medium-pull-6{left:-50%}.medium-offset-5{margin-left:41.66667%}.medium-7{width:58.33333%}.medium-push-7{left:58.33333%}.medium-pull-7{left:-58.33333%}.medium-offset-6{margin-left:50%}.medium-8{width:66.66667%}.medium-push-8{left:66.66667%}.medium-pull-8{left:-66.66667%}.medium-offset-7{margin-left:58.33333%}.medium-9{width:75%}.medium-push-9{left:75%}.medium-pull-9{left:-75%}.medium-offset-8{margin-left:66.66667%}.medium-10{width:83.33333%}.medium-push-10{left:83.33333%}.medium-pull-10{left:-83.33333%}.medium-offset-9{margin-left:75%}.medium-11{width:91.66667%}.medium-push-11{left:91.66667%}.medium-pull-11{left:-91.66667%}.medium-offset-10{margin-left:83.33333%}.medium-12{width:100%}.medium-offset-11{margin-left:91.66667%}.medium-up-1>.column,.medium-up-1>.columns{width:100%;float:left}.medium-up-1>.column:nth-of-type(1n),.medium-up-1>.columns:nth-of-type(1n){clear:none}.medium-up-1>.column:nth-of-type(1n+1),.medium-up-1>.columns:nth-of-type(1n+1){clear:both}.medium-up-1>.column:last-child,.medium-up-1>.columns:last-child{float:left}.medium-up-2>.column,.medium-up-2>.columns{width:50%;float:left}.medium-up-2>.column:nth-of-type(1n),.medium-up-2>.columns:nth-of-type(1n){clear:none}.medium-up-2>.column:nth-of-type(2n+1),.medium-up-2>.columns:nth-of-type(2n+1){clear:both}.medium-up-2>.column:last-child,.medium-up-2>.columns:last-child{float:left}.medium-up-3>.column,.medium-up-3>.columns{width:33.33333%;float:left}.medium-up-3>.column:nth-of-type(1n),.medium-up-3>.columns:nth-of-type(1n){clear:none}.medium-up-3>.column:nth-of-type(3n+1),.medium-up-3>.columns:nth-of-type(3n+1){clear:both}.medium-up-3>.column:last-child,.medium-up-3>.columns:last-child{float:left}.medium-up-4>.column,.medium-up-4>.columns{width:25%;float:left}.medium-up-4>.column:nth-of-type(1n),.medium-up-4>.columns:nth-of-type(1n){clear:none}.medium-up-4>.column:nth-of-type(4n+1),.medium-up-4>.columns:nth-of-type(4n+1){clear:both}.medium-up-4>.column:last-child,.medium-up-4>.columns:last-child{float:left}.medium-up-5>.column,.medium-up-5>.columns{width:20%;float:left}.medium-up-5>.column:nth-of-type(1n),.medium-up-5>.columns:nth-of-type(1n){clear:none}.medium-up-5>.column:nth-of-type(5n+1),.medium-up-5>.columns:nth-of-type(5n+1){clear:both}.medium-up-5>.column:last-child,.medium-up-5>.columns:last-child{float:left}.medium-up-6>.column,.medium-up-6>.columns{width:16.66667%;float:left}.medium-up-6>.column:nth-of-type(1n),.medium-up-6>.columns:nth-of-type(1n){clear:none}.medium-up-6>.column:nth-of-type(6n+1),.medium-up-6>.columns:nth-of-type(6n+1){clear:both}.medium-up-6>.column:last-child,.medium-up-6>.columns:last-child{float:left}.medium-up-7>.column,.medium-up-7>.columns{width:14.28571%;float:left}.medium-up-7>.column:nth-of-type(1n),.medium-up-7>.columns:nth-of-type(1n){clear:none}.medium-up-7>.column:nth-of-type(7n+1),.medium-up-7>.columns:nth-of-type(7n+1){clear:both}.medium-up-7>.column:last-child,.medium-up-7>.columns:last-child{float:left}.medium-up-8>.column,.medium-up-8>.columns{width:12.5%;float:left}.medium-up-8>.column:nth-of-type(1n),.medium-up-8>.columns:nth-of-type(1n){clear:none}.medium-up-8>.column:nth-of-type(8n+1),.medium-up-8>.columns:nth-of-type(8n+1){clear:both}.medium-up-8>.column:last-child,.medium-up-8>.columns:last-child{float:left}.column.medium-centered,.medium-centered.columns{float:none;margin-left:auto;margin-right:auto}.medium-pull-0,.medium-push-0,.medium-uncenter{position:static;margin-left:0;margin-right:0}}@media screen and (min-width:64em){.large-pull-1,.large-pull-10,.large-pull-11,.large-pull-2,.large-pull-3,.large-pull-4,.large-pull-5,.large-pull-6,.large-pull-7,.large-pull-8,.large-pull-9,.large-push-1,.large-push-10,.large-push-11,.large-push-2,.large-push-3,.large-push-4,.large-push-5,.large-push-7,.large-push-8,.large-push-9{position:relative}.large-1{width:8.33333%}.large-push-1{left:8.33333%}.large-pull-1{left:-8.33333%}.large-offset-0{margin-left:0}.large-2{width:16.66667%}.large-push-2{left:16.66667%}.large-pull-2{left:-16.66667%}.large-offset-1{margin-left:8.33333%}.large-3{width:25%}.large-push-3{left:25%}.large-pull-3{left:-25%}.large-offset-2{margin-left:16.66667%}.large-4{width:33.33333%}.large-push-4{left:33.33333%}.large-pull-4{left:-33.33333%}.large-offset-3{margin-left:25%}.large-5{width:41.66667%}.large-push-5{left:41.66667%}.large-pull-5{left:-41.66667%}.large-offset-4{margin-left:33.33333%}.large-6{width:50%}.large-push-6{position:relative;left:50%}.large-pull-6{left:-50%}.large-offset-5{margin-left:41.66667%}.large-7{width:58.33333%}.large-push-7{left:58.33333%}.large-pull-7{left:-58.33333%}.large-offset-6{margin-left:50%}.large-8{width:66.66667%}.large-push-8{left:66.66667%}.large-pull-8{left:-66.66667%}.large-offset-7{margin-left:58.33333%}.large-9{width:75%}.large-push-9{left:75%}.large-pull-9{left:-75%}.large-offset-8{margin-left:66.66667%}.large-10{width:83.33333%}.large-push-10{left:83.33333%}.large-pull-10{left:-83.33333%}.large-offset-9{margin-left:75%}.large-11{width:91.66667%}.large-push-11{left:91.66667%}.large-pull-11{left:-91.66667%}.large-offset-10{margin-left:83.33333%}.large-12{width:100%}.large-offset-11{margin-left:91.66667%}.large-up-1>.column,.large-up-1>.columns{width:100%;float:left}.large-up-1>.column:nth-of-type(1n),.large-up-1>.columns:nth-of-type(1n){clear:none}.large-up-1>.column:nth-of-type(1n+1),.large-up-1>.columns:nth-of-type(1n+1){clear:both}.large-up-1>.column:last-child,.large-up-1>.columns:last-child{float:left}.large-up-2>.column,.large-up-2>.columns{width:50%;float:left}.large-up-2>.column:nth-of-type(1n),.large-up-2>.columns:nth-of-type(1n){clear:none}.large-up-2>.column:nth-of-type(2n+1),.large-up-2>.columns:nth-of-type(2n+1){clear:both}.large-up-2>.column:last-child,.large-up-2>.columns:last-child{float:left}.large-up-3>.column,.large-up-3>.columns{width:33.33333%;float:left}.large-up-3>.column:nth-of-type(1n),.large-up-3>.columns:nth-of-type(1n){clear:none}.large-up-3>.column:nth-of-type(3n+1),.large-up-3>.columns:nth-of-type(3n+1){clear:both}.large-up-3>.column:last-child,.large-up-3>.columns:last-child{float:left}.large-up-4>.column,.large-up-4>.columns{width:25%;float:left}.large-up-4>.column:nth-of-type(1n),.large-up-4>.columns:nth-of-type(1n){clear:none}.large-up-4>.column:nth-of-type(4n+1),.large-up-4>.columns:nth-of-type(4n+1){clear:both}.large-up-4>.column:last-child,.large-up-4>.columns:last-child{float:left}.large-up-5>.column,.large-up-5>.columns{width:20%;float:left}.large-up-5>.column:nth-of-type(1n),.large-up-5>.columns:nth-of-type(1n){clear:none}.large-up-5>.column:nth-of-type(5n+1),.large-up-5>.columns:nth-of-type(5n+1){clear:both}.large-up-5>.column:last-child,.large-up-5>.columns:last-child{float:left}.large-up-6>.column,.large-up-6>.columns{width:16.66667%;float:left}.large-up-6>.column:nth-of-type(1n),.large-up-6>.columns:nth-of-type(1n){clear:none}.large-up-6>.column:nth-of-type(6n+1),.large-up-6>.columns:nth-of-type(6n+1){clear:both}.large-up-6>.column:last-child,.large-up-6>.columns:last-child{float:left}.large-up-7>.column,.large-up-7>.columns{width:14.28571%;float:left}.large-up-7>.column:nth-of-type(1n),.large-up-7>.columns:nth-of-type(1n){clear:none}.large-up-7>.column:nth-of-type(7n+1),.large-up-7>.columns:nth-of-type(7n+1){clear:both}.large-up-7>.column:last-child,.large-up-7>.columns:last-child{float:left}.large-up-8>.column,.large-up-8>.columns{width:12.5%;float:left}.large-up-8>.column:nth-of-type(1n),.large-up-8>.columns:nth-of-type(1n){clear:none}.large-up-8>.column:nth-of-type(8n+1),.large-up-8>.columns:nth-of-type(8n+1){clear:both}.large-up-8>.column:last-child,.large-up-8>.columns:last-child{float:left}.column.large-centered,.large-centered.columns{float:none;margin-left:auto;margin-right:auto}.large-pull-0,.large-push-0,.large-uncenter{position:static;margin-left:0;margin-right:0}}.clearfix::after,hr{clear:both}ol,ul{margin-left:1.25rem}blockquote,dd,div,dl,dt,form,h1,h2,h3,h4,h5,h6,li,ol,p,pre,td,th,ul{margin:0;padding:0}dl,ol,p,ul{margin-bottom:1rem}p{font-size:inherit;text-rendering:optimizeLegibility}em,i{font-style:italic}h1,h2,h3,h4,h5,h6{font-style:normal;text-rendering:optimizeLegibility;margin-top:0;margin-bottom:.5rem;line-height:1.4}code,kbd{color:#0a0a0a;font-family:Consolas,"Liberation Mono",Courier,monospace;background-color:#e6e6e6}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{color:#cacaca;line-height:0}h1{font-size:1.5rem}h2{font-size:1.25rem}h3{font-size:1.1875rem}h4{font-size:1.125rem}h5{font-size:1.0625rem}h6{font-size:1rem}@media screen and (min-width:40em){h1{font-size:3rem}h2{font-size:2.5rem}h3{font-size:1.9375rem}h4{font-size:1.5625rem}h5{font-size:1.25rem}h6{font-size:1rem}}a{background-color:transparent;color:#2ba6cb;text-decoration:none;cursor:pointer}a:focus,a:hover{color:#258faf}a img{border:0}hr{box-sizing:content-box;max-width:62.5rem;height:0;border-right:0;border-top:0;border-bottom:1px solid #cacaca;border-left:0;margin:1.25rem auto}dl,ol,ul{list-style-position:outside}li{font-size:inherit}ul{list-style-type:disc}ol ol,ol ul,ul ol,ul ul{margin-left:1.25rem;margin-bottom:0;list-style-type:inherit}dl dt{margin-bottom:.3rem;font-weight:700}.subheader,code,label{font-weight:400}blockquote{margin:0 0 1rem;padding:.5625rem 1.25rem 0 1.1875rem;border-left:1px solid #cacaca}blockquote,blockquote p{line-height:1.6;color:#8a8a8a}cite{display:block;font-size:.8125rem;color:#8a8a8a}cite:before{content:'\2014 \0020'}abbr{color:#222;cursor:help;border-bottom:1px dotted #0a0a0a}code{border:1px solid #cacaca;padding:.125rem .3125rem .0625rem}kbd{padding:.125rem .25rem 0;margin:0}.subheader{margin-top:.2rem;margin-bottom:.5rem;line-height:1.4;color:#8a8a8a}.lead{font-size:125%;line-height:1.6}.stat{font-size:2.5rem;line-height:1}p+.stat{margin-top:-1rem}.no-bullet{margin-left:0;list-style:none}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}@media screen and (min-width:40em){.medium-text-left{text-align:left}.medium-text-right{text-align:right}.medium-text-center{text-align:center}.medium-text-justify{text-align:justify}}@media screen and (min-width:64em){.large-text-left{text-align:left}.large-text-right{text-align:right}.large-text-center{text-align:center}.large-text-justify{text-align:justify}}.show-for-print{display:none!important}@media print{blockquote,img,pre,tr{page-break-inside:avoid}*{background:0 0!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}.show-for-print{display:block!important}.hide-for-print{display:none!important}table.show-for-print{display:table!important}thead.show-for-print{display:table-header-group!important}tbody.show-for-print{display:table-row-group!important}tr.show-for-print{display:table-row!important}td.show-for-print,th.show-for-print{display:table-cell!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}.ir a:after,a[href^='javascript:']:after,a[href^='#']:after{content:''}abbr[title]:after{content:" (" attr(title) ")"}blockquote,pre{border:1px solid #999}thead{display:table-header-group}img{max-width:100%!important}@page{margin:.5cm}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}}[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=month],[type=week],[type=email],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=color],textarea{display:block;box-sizing:border-box;width:100%;height:2.4375rem;padding:.5rem;border:1px solid #cacaca;margin:0 0 1rem;font-family:inherit;font-size:1rem;color:#0a0a0a;background-color:#fefefe;box-shadow:inset 0 1px 2px rgba(10,10,10,.1);border-radius:3px;transition:box-shadow .5s,border-color .25s ease-in-out;-webkit-appearance:none;-moz-appearance:none}[type=text]:focus,[type=password]:focus,[type=date]:focus,[type=datetime]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=week]:focus,[type=email]:focus,[type=number]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=url]:focus,[type=color]:focus,textarea:focus{border:1px solid #8a8a8a;background:#fefefe;outline:0;box-shadow:0 0 5px #cacaca;transition:box-shadow .5s,border-color .25s ease-in-out}textarea{min-height:50px;max-width:100%}input:disabled,input[readonly],textarea:disabled,textarea[readonly]{background-color:#e6e6e6;cursor:default}[type=submit],[type=button]{border-radius:3px;-webkit-appearance:none;-moz-appearance:none}input[type=search]{box-sizing:border-box}[type=file],[type=checkbox],[type=radio]{margin:0 0 1rem}[type=checkbox]+label,[type=radio]+label{display:inline-block;margin-left:.5rem;margin-right:1rem;margin-bottom:0;vertical-align:baseline}label>[type=checkbox],label>[type=label]{margin-right:.5rem}[type=file]{width:100%}label{display:block;margin:0;font-size:.875rem;line-height:1.8;color:#0a0a0a}label.middle{margin:0 0 1rem;padding:.5625rem 0}.help-text{margin-top:-.5rem;font-size:.8125rem;font-style:italic;color:#333}.input-group{display:table;width:100%;margin-bottom:1rem}.input-group-button,.input-group-label{height:100%;text-align:center;width:1%}.input-group-button a,.input-group-button button,.input-group-button input,fieldset{margin:0}.input-group-button,.input-group-field,.input-group-label{display:table-cell;margin:0;vertical-align:middle}.input-group-label{padding:0 1rem;background:#e6e6e6;color:#0a0a0a;border:1px solid #cacaca}.input-group-label:first-child{border-right:0}.input-group-label:last-child{border-left:0}.fieldset,select{border:1px solid #cacaca}.input-group-button{padding-top:0;padding-bottom:0}fieldset{border:0;padding:0}legend{margin-bottom:.5rem}.fieldset{padding:1.25rem;margin:1.125rem 0}.fieldset legend{background:#fefefe;padding:0 .1875rem;margin:0 0 0 -.1875rem}select{height:2.4375rem;padding:.5rem;margin:0 0 1rem;font-size:1rem;font-family:inherit;line-height:normal;color:#0a0a0a;background-color:#fafafa;border-radius:3px;background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="32" height="24" viewBox="0 0 32 24"><polygon points="0,0 32,0 16,24" style="fill: rgb(51, 51, 51)"></polygon></svg>');background-size:9px 6px;background-position:right .5rem center;background-repeat:no-repeat}.form-error,.is-invalid-label{color:#c60f13}@media screen and (min-width:0\0){select{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAYCAYAAACbU/80AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIpJREFUeNrEkckNgDAMBBfRkEt0ObRBBdsGXUDgmQfK4XhH2m8czQAAy27R3tsw4Qfe2x8uOO6oYLb6GlOor3GF+swURAOmUJ+RwtEJs9WvTGEYxBXqI1MQAZhCfUQKRzDMVj+TwrAIV6jvSUEkYAr1LSkcyTBb/V+KYfX7xAeusq3sLDtGH3kEGACPWIflNZfhRQAAAABJRU5ErkJggg==)}}select:disabled{background-color:#e6e6e6;cursor:default}select::-ms-expand{display:none}select[multiple]{height:auto}.is-invalid-input:not(:focus){background-color:rgba(198,15,19,.1);border-color:#c60f13}.form-error{display:none;margin-top:-.5rem;margin-bottom:1rem;font-size:.75rem;font-weight:700}.float-center,.form-error.is-visible{display:block}.float-left{float:left!important}.float-right{float:right!important}.float-center{margin-left:auto;margin-right:auto}.clearfix::after,.clearfix::before{content:' ';display:table}
\ No newline at end of file
diff --git a/assets/stylesheets/ouibounce.css b/assets/stylesheets/ouibounce.css
new file mode 100644 (file)
index 0000000..8101c29
--- /dev/null
@@ -0,0 +1,216 @@
+#ouibounce-modal {
+  font-family: 'Open Sans', sans-serif;
+  display: none;
+  position: fixed;
+  top: 0;
+  left: 0;
+  width: 100%;
+  height: 100%;
+  z-index: 99999999;
+}
+#ouibounce-modal .underlay {
+  width: 100%;
+  height: 100%;
+  position: absolute;
+  top: 0;
+  left: 0;
+  background-color: rgba(0,0,0,0.5);
+  cursor: pointer;
+  -webkit-animation: fadein 0.5s;
+  animation: fadein 0.5s;
+}
+#ouibounce-modal .modal {
+  width: 600px;
+  height: 300px;
+  background-color: #f0f1f2;
+  z-index: 500;
+  position: absolute;
+  margin: auto;
+  top: 0;
+  right: 0;
+  bottom: 0;
+  left: 0;
+  border-radius: 4px;
+  -webkit-animation: popin 0.3s;
+  animation: popin 0.3s;
+}
+@media only screen and (max-width: 569px) and (orientation: portrait) {
+       #ouibounce-modal .modal {
+               width: 300px;
+               height:450px;
+       }  
+}
+
+
+#ouibounce-modal .modal-title {
+
+
+}
+
+#ouibounce-modal .modal-title {
+  font-size: 18px;
+  background-color: #252525;
+  color: #fff;
+  padding: 10px;
+  margin: 0;
+  border-radius: 4px 4px 0 0;
+  text-align: center;
+}
+#ouibounce-modal h3 {
+  color: #fff;
+  font-size: 1em;
+  margin: 0.2em;
+  text-transform: uppercase;
+  font-weight: 500;
+}
+#ouibounce-modal .modal-body {
+  padding: 20px 35px;
+  font-size: 0.9em;
+}
+#ouibounce-modal p {
+  color: #344a5f;
+}
+#ouibounce-modal form {
+  text-align: left;
+  margin-top: 35px;
+}
+#ouibounce-modal form input[type=text] {
+  
+}
+#ouibounce-modal .gform_wrapper .gform_footer {
+  clear:none !important;
+  margin:16px 0 0 -12px;
+  position:relative;
+}
+#ouibounce-modal form p {
+  text-align: left;
+  margin-left: 0;
+  opacity: 0.8;
+  margin-top: 1px;
+  padding-top: 1px;
+  font-size: 0.9em;
+}
+#ouibounce-modal .modal-footer {
+  position: absolute;
+  bottom: 20px;
+  text-align: center;
+  width: 100%;
+}
+#ouibounce-modal .modal-footer p {
+  text-transform: capitalize;
+  cursor: pointer;
+  display: inline;
+  border-bottom: 1px solid #344a5f;
+}
+
+.modal-body .gform_body{
+       float:left;
+       position:relative;
+       width:80%;
+}
+
+.modal-body .gform_footer{
+       float:left;
+       position:relative;
+       width:20%;
+       clear:none;
+       margin:30px 0 0 -10px;
+       padding:0;
+}
+
+.modal-body .gform_footer input[type=submit]{
+       height:39px;
+
+}
+#ouibounce-modal input{
+       border-radius:0 !important;
+}
+
+
+@-webkit-keyframes fadein {
+  0% {
+    opacity: 0;
+  }
+
+  100% {
+    opacity: 1;
+  }
+}
+@-ms-keyframes fadein {
+  0% {
+    opacity: 0;
+  }
+
+  100% {
+    opacity: 1;
+  }
+}
+@keyframes fadein {
+  0% {
+    opacity: 0;
+  }
+
+  100% {
+    opacity: 1;
+  }
+}
+@-webkit-keyframes popin {
+  0% {
+    -webkit-transform: scale(0);
+    transform: scale(0);
+    opacity: 0;
+  }
+
+  85% {
+    -webkit-transform: scale(1.05);
+    transform: scale(1.05);
+    opacity: 1;
+  }
+
+  100% {
+    -webkit-transform: scale(1);
+    transform: scale(1);
+    opacity: 1;
+  }
+}
+@-ms-keyframes popin {
+  0% {
+    -ms-transform: scale(0);
+    transform: scale(0);
+    opacity: 0;
+  }
+
+  85% {
+    -ms-transform: scale(1.05);
+    transform: scale(1.05);
+    opacity: 1;
+  }
+
+  100% {
+    -ms-transform: scale(1);
+    transform: scale(1);
+    opacity: 1;
+  }
+}
+@keyframes popin {
+  0% {
+    -webkit-transform: scale(0);
+    -ms-transform: scale(0);
+    transform: scale(0);
+    opacity: 0;
+  }
+
+  85% {
+    -webkit-transform: scale(1.05);
+    -ms-transform: scale(1.05);
+    transform: scale(1.05);
+    opacity: 1;
+  }
+
+  100% {
+    -webkit-transform: scale(1);
+    -ms-transform: scale(1);
+    transform: scale(1);
+    opacity: 1;
+  }
+}
diff --git a/assets/stylesheets/royalSlider-homepage.css b/assets/stylesheets/royalSlider-homepage.css
new file mode 100644 (file)
index 0000000..22206f1
--- /dev/null
@@ -0,0 +1,509 @@
+/******************************
+*
+*  RoyalSlider Universal Skin
+*
+*    1. Arrows 
+*    2. Bullets
+*    3. Thumbnails
+*    4. Tabs
+*    5. Fullscreen button
+*    6. Play/close video button
+*    7. Preloader
+*    8. Caption
+*    
+*  Sprite: '../img/rs-universal.png'
+*  Feel free to edit anything
+*  If you don't some part - just delete it
+* 
+******************************/
+
+
+/* Background */
+.customRShome,
+.customRShome .rsOverflow,
+.customRShome .rsSlide,
+.customRShome .rsVideoFrameHolder,
+.customRShome .rsThumbs {
+       background: transparent;
+       color: #333;
+}
+
+
+.customRShome .rsContent .rsImg{
+       position:relative;
+       z-index:1;
+}
+
+.customRShome .g.g-8,
+.customRShome .g.g-9{
+       position:relative;
+       z-index: 10;
+       float:left;
+       padding:0;
+       width:100%;
+       margin:0 auto;
+}
+.customRShome .g.g-8:first-child,
+.customRShome .g.g-9:first-child{
+       padding:25px 0 0;
+}
+
+.customRShome .g.g-8 .g-col,
+.customRShome .g.g-9 .g-col{
+       clear:both;
+       float:none !important;
+       text-align: center;
+       width:100%;
+}
+
+.customRShome .g.g-8 .g-col img,
+.customRShome .g.g-9 .g-col img{
+       margin-bottom: 25px;
+}
+
+
+/***************
+*
+*  1. Arrows
+*
+****************/
+
+.customRShome .rsArrow {
+       height: 100%;
+       width: 60px;
+       position: absolute;
+       display: block;
+       cursor: pointer;
+       z-index: 21;
+}
+.customRShome.rsVer .rsArrow {
+       width: 100%;
+       height: 60px;
+       
+}
+.customRShome.rsVer .rsArrowLeft { top: 0; left: 0; }
+.customRShome.rsVer .rsArrowRight { bottom: 0;  left: 0; }
+
+.customRShome.rsHor .rsArrowLeft { left: 0; top: -120px; }
+.customRShome.rsHor .rsArrowRight { right: 0; top: -120px; }
+
+.customRShome .rsArrowIcn {
+       width: 32px;
+       height: 32px;
+       top: 50%;
+       left: 50%;
+       margin-top:-16px;       
+       margin-left: -16px;
+
+       position: absolute;     
+       cursor: pointer;        
+       background: url('../img/rs-universal.png');
+       opacity: 0.5;
+       border-radius: 2px;
+}
+.customRShome .rsArrow:hover .rsArrowIcn {
+       opacity: 1;
+}
+
+.customRShome.rsHor .rsArrowLeft .rsArrowIcn { background-position: -64px -32px; }
+.customRShome.rsHor .rsArrowRight .rsArrowIcn { background-position: -64px -64px; }
+
+.customRShome.rsVer .rsArrowLeft .rsArrowIcn { background-position: -96px -32px; }
+.customRShome.rsVer .rsArrowRight .rsArrowIcn { background-position: -96px -64px; }
+
+.customRShome .rsArrowDisabled .rsArrowIcn { opacity: .1 !important; filter: alpha(opacity=20);  *display: none; }
+
+
+/***************
+*
+*  2. Bullets
+*
+****************/
+
+.customRShome .rsBullets {
+       position: relative;
+       z-index: 35;
+       padding-top: 4px;
+       width: 100%;
+       height: auto;
+       margin: 0 auto; 
+
+       text-align: center;
+       line-height: 5px;
+       overflow: hidden;
+}
+.customRShome .rsBullet {
+       width: 8px;
+       height: 8px;
+       display: inline-block;
+       *display:inline; 
+       *zoom:1;
+       padding: 5px;
+}
+.customRShome .rsBullet span {
+       display: block;
+       width: 8px;
+       height: 8px;
+       border-radius: 50%;
+       background: #BBB;
+}
+.customRShome .rsBullet.rsNavSelected span {
+       background-color: #383838;
+}
+
+
+
+
+
+/***************
+*
+*  3. Thumbnails
+*
+****************/
+
+.customRShome .rsThumbsHor {
+       width: 50%;
+       height: 135px;
+       position: absolute;
+       right: 0;
+       bottom: 260px;
+}
+.customRShome .rsThumbsVer {
+       width: 135px;
+       height: 100%;
+       position: absolute;
+       top: 0;
+       right: 0;
+}
+.customRShome.rsWithThumbsHor .rsThumbsContainer {
+       position: relative;
+       height: 100%;
+}
+.customRShome.rsWithThumbsVer .rsThumbsContainer {
+       position: relative;
+       width: 100%;
+}
+.customRShome .rsThumb {
+       float: left;
+       overflow: hidden;
+       width: 135px;
+       height: 135px;
+}
+.customRShome .rsThumb img {
+       width: 100%;
+       height: 100%;
+}
+.customRShome .rsThumb.rsNavSelected {
+       background: #333;
+}
+.customRShome .rsThumb.rsNavSelected img {
+       opacity: 0.7;
+       filter: alpha(opacity=30);
+}
+.customRShome .rsThumb.rsNavSelected .thumbIco {
+       position: absolute;
+       top: 0;
+       bottom: 0;
+       left: 0;
+       right: 0;
+       border: 0 none;
+       -webkit-backface-visibility: hidden;
+} 
+
+.customRShome .rsTmb {
+       display: block;
+}
+
+/* Thumbnails with text */
+.customRShome .rsTmb h5 {
+       font-size: 16px;
+       margin: 0;
+       padding: 0;
+       line-height: 20px;
+       color: #FFF;
+}
+.customRShome .rsTmb span {
+       color: #DDD;
+       margin: 0;
+       padding: 0;
+       font-size: 13px;
+       line-height: 18px;
+}
+
+
+
+/* Thumbnails arrow icons */
+.customRShome .rsThumbsArrow {
+       height: 100%;
+       width: 20px;
+       position: absolute;
+       display: block;
+       cursor: pointer;        
+       z-index: 21;    
+}
+.customRShome .rsThumbsArrow:hover {
+
+}
+.customRShome.rsWithThumbsVer .rsThumbsArrow {
+       width: 100%;
+       height: 20px;
+}
+.customRShome.rsWithThumbsVer .rsThumbsArrowLeft { top: 0; left: 0; }
+.customRShome.rsWithThumbsVer .rsThumbsArrowRight { bottom: 0;  left: 0; }
+
+.customRShome.rsWithThumbsHor .rsThumbsArrowLeft { left: 0; top: 0; }
+.customRShome.rsWithThumbsHor .rsThumbsArrowRight { right: 0; top:0; }
+
+.customRShome .rsThumbsArrowIcn {
+       width: 16px;
+       height: 16px;
+       top: 50%;
+       left: 50%;
+       margin-top:-8px;        
+       margin-left: -8px;
+       position: absolute;     
+       cursor: pointer;        
+       background: url('../img/rs-universal.png') transparent;
+}
+
+.customRShome.rsWithThumbsHor .rsThumbsArrowLeft .rsThumbsArrowIcn { background-position: -128px -32px; }
+.customRShome.rsWithThumbsHor .rsThumbsArrowRight .rsThumbsArrowIcn { background-position: -128px -48px; }
+
+.customRShome.rsWithThumbsVer .rsThumbsArrowLeft .rsThumbsArrowIcn { background-position: -144px -32px; }
+.customRShome.rsWithThumbsVer .rsThumbsArrowRight .rsThumbsArrowIcn { background-position: -144px -48px; }
+
+.customRShome .rsThumbsArrowDisabled { display: none !important; }
+
+/* Thumbnails resizing on smaller screens */
+@media screen and (min-width: 0px) and (max-width: 800px) {
+       .customRShome .rsThumbsHor {
+               width: 100%;
+               height: 135px;
+               position: absolute;
+               right: 0;
+               left:5px;
+               bottom: -30px;
+       }
+
+       .customRShome .rsThumb {
+               width: 59px;
+               height: 44px;
+       }
+       .customRShome .rsThumbsHor {
+               height: 44px;
+       }
+       .customRShome .rsThumbsVer {
+               width: 59px;
+       }
+}
+
+
+
+
+/***************
+*
+*  4. Tabs
+*
+****************/
+
+.customRShome .rsTabs {
+       width: 100%;
+       height: auto;
+       margin: 0 auto;
+       text-align:center;
+       overflow: hidden; padding-top: 12px; position: relative;
+}
+.customRShome .rsTab {
+       display: inline-block;
+       cursor: pointer;
+       text-align: center;
+       height: auto;
+       width: auto;
+       color: #333;
+       padding: 5px 13px 6px;
+       min-width: 72px;
+       border: 1px solid #D9D9DD;
+       text-decoration: none;
+
+       background: #FFF;
+       border-right: none;
+       *display:inline; 
+       *zoom:1;
+       *border-right: 1px solid #d9d9d9;
+       
+}
+.customRShome .rsTab:first-child {
+       border-top-left-radius: 16px;
+       border-bottom-left-radius: 16px;
+}
+.customRShome .rsTab:last-child {
+       border-top-right-radius: 16px;
+       border-bottom-right-radius: 16px;
+       border-right: 1px solid #D9D9DD;
+}
+.customRShome .rsTab:active {
+       background-color: #f4f4f4;
+}
+.customRShome .rsTab.rsNavSelected {
+       color: #FFF;
+       background: #383838;
+       border-color: #383838;
+}
+
+
+
+
+
+/***************
+*
+*  5. Fullscreen button
+*
+****************/
+
+.customRShome .rsFullscreenBtn {
+       right: 0;
+       top: 0;
+       width: 44px;
+       height: 44px;
+       z-index: 22;
+       display: block;
+       position: absolute;
+       cursor: pointer;
+       
+}
+.customRShome .rsFullscreenIcn {
+       display: block;
+       margin: 6px;
+       width: 32px;
+       height: 32px;
+
+       background: url('../img/rs-universal.png') 0 0 transparent;
+       opacity: 0.7;
+       border-radius: 2px;
+
+}
+.customRShome .rsFullscreenBtn:hover .rsFullscreenIcn {
+       opacity: 1;
+}
+.customRShome.rsFullscreen .rsFullscreenIcn {
+       background-position: -32px 0;
+}
+
+
+
+
+
+/***************
+*
+*  6. Play/close video button
+*
+****************/
+
+.customRShome .rsPlayBtn {
+       -webkit-tap-highlight-color:rgba(0,0,0,0.3);
+       width:64px;
+       height:64px;
+       margin-left:-32px;
+       margin-top:-32px;
+       cursor: pointer;
+}
+.customRShome .rsPlayBtnIcon {
+       width:64px;
+       display:block;
+       height:64px;
+       -webkit-border-radius: 4px;
+       border-radius: 4px;
+       
+       -webkit-transition: .3s;
+       -moz-transition: .3s;
+       transition: .3s;
+
+       background:url(../img/rs-universal.png) no-repeat 0 -32px;
+       background-color: #383838;
+       background-color: rgba(0,0,0,0.75);
+       *background-color: #383838;
+}
+.customRShome .rsPlayBtn:hover .rsPlayBtnIcon {
+       background-color: rgba(0,0,0,0.9);
+}
+.customRShome .rsBtnCenterer {
+       position:absolute;
+       left:50%;
+       top:50%;
+       width: 20px;
+       height: 20px;
+}
+.customRShome .rsCloseVideoBtn {
+       right: 0;
+       top: 0;
+       width: 44px;
+       height: 44px;
+       z-index: 500;
+       position: absolute;
+       cursor: pointer;
+       -webkit-backface-visibility: hidden;
+       -webkit-transform: translateZ(0);
+       
+}
+.customRShome .rsCloseVideoBtn.rsiOSBtn {
+       top: -38px;
+       right: -6px;
+}
+
+.customRShome .rsCloseVideoIcn {
+       margin: 6px;
+       width: 32px;
+       height: 32px;
+       background: url('../img/rs-universal.png') -64px 0;
+       background-color: #383838;
+       background-color: rgba(0,0,0,0.75);
+       *background-color: #383838;
+}
+.customRShome .rsCloseVideoIcn:hover {
+       background-color: rgba(0,0,0,0.9);
+}
+
+
+
+/***************
+*
+*  7. Preloader
+*
+****************/
+
+.customRShome .rsPreloader {
+       width:20px;
+       height:20px;
+       background-image:url(../img/preloader-white.gif);
+
+       left:50%;
+       top:50%;
+       margin-left:-10px;
+       margin-top:-10px;       
+}
+
+
+
+
+/***************
+*
+*  8. Global caption
+*
+****************/
+.customRShome .rsGCaption {
+       display:none;
+
+    position: absolute;
+       float: none;
+       bottom: 6px;
+       left: 6px;
+       text-align: left;
+
+       background: #222;
+
+       color: #FFF;
+       padding: 2px 8px;
+       width: auto;
+       font-size: 12px;
+       border-radius: 2px;
+}
\ No newline at end of file
diff --git a/assets/stylesheets/royalSlider-sidebar-posts.css b/assets/stylesheets/royalSlider-sidebar-posts.css
new file mode 100644 (file)
index 0000000..66803e4
--- /dev/null
@@ -0,0 +1,491 @@
+/******************************
+*
+*  RoyalSlider Universal Skin
+*
+*    1. Arrows
+*    2. Bullets
+*    3. Thumbnails
+*    4. Tabs
+*    5. Fullscreen button
+*    6. Play/close video button
+*    7. Preloader
+*    8. Caption
+*
+*  Sprite: '../img/rs-universal.png'
+*  Feel free to edit anything
+*  If you don't some part - just delete it
+*
+******************************/
+
+
+/* Content Links */
+
+
+/* Background */
+.customRS,
+.customRS .rsOverflow,
+.customRS .rsSlide,
+.customRS .rsVideoFrameHolder,
+.customRS .rsThumbs {
+    background: #fff;
+
+}
+
+
+.customRS a.rsLink {
+    left: 0;
+    top: 0;
+    position: relative;
+    width: auto;
+    height: auto;
+    display: inline;
+    z-index: 20;
+    background: none;
+    -webkit-backface-visibility: auto;
+    outline: none;
+    padding: 0;
+    margin: 0;
+    text-indent: 0;
+    white-space: normal;
+    color:#156c96;
+}
+
+.customRS p{
+    margin-bottom:6px;
+}
+
+    /***************
+    *
+    *  1. Arrows
+    *
+    ****************/
+
+.customRS .rsArrow {
+    height: 100%;
+    width: 60px;
+    position: absolute;
+    display: block;
+    cursor: pointer;
+    z-index: 21;
+}
+.customRS.rsVer .rsArrow {
+    width: 100%;
+    height: 60px;
+
+}
+.customRS.rsVer .rsArrowLeft { top: 0; left: 0; }
+.customRS.rsVer .rsArrowRight { bottom: 0;  left: 0; }
+
+.customRS.rsHor .rsArrowLeft { left: 0; top: 0; }
+.customRS.rsHor .rsArrowRight { right: 0; top:0; }
+
+.customRS .rsArrowIcn {
+    width: 32px;
+    height: 32px;
+    top: 50%;
+    left: 50%;
+    margin-top:-16px;
+    margin-left: -16px;
+
+    position: absolute;
+    cursor: pointer;
+    background: url('../img/rs-universal.png');
+    opacity: 0.5;
+    border-radius: 2px;
+}
+.customRS .rsArrow:hover .rsArrowIcn {
+    opacity: 1;
+}
+
+.customRS.rsHor .rsArrowLeft .rsArrowIcn { background-position: -64px -32px; }
+.customRS.rsHor .rsArrowRight .rsArrowIcn { background-position: -64px -64px; }
+
+.customRS.rsVer .rsArrowLeft .rsArrowIcn { background-position: -96px -32px; }
+.customRS.rsVer .rsArrowRight .rsArrowIcn { background-position: -96px -64px; }
+
+.customRS .rsArrowDisabled .rsArrowIcn { opacity: .1 !important; filter: alpha(opacity=20);  *display: none; }
+
+
+/***************
+*
+*  2. Bullets
+*
+****************/
+
+.customRS .rsBullets {
+    position: relative;
+    z-index: 35;
+    padding-top: 0;
+    width: 100%;
+    height: auto;
+    margin: 0;
+    top:5px;
+
+    text-align: left;
+    line-height: 1;
+}
+.customRS .rsBullet {
+    width: 10px;
+    height: 10px;
+    display: inline-block;
+    *display:inline;
+    *zoom:1;
+    padding: 4px;
+    margin:0 1px;
+    cursor: pointer;
+}
+.customRS .rsBullet span {
+    display: block;
+    width: 10px;
+    height: 10px;
+    border-radius: 50%;
+    background-color: #adadad;
+    box-shadow: 0 0 4px 0 rgba(0,0,0, .3)
+}
+.customRS .rsBullet.rsNavSelected span {
+    background-color: #333;
+}
+
+
+
+
+
+/***************
+*
+*  3. Thumbnails
+*
+****************/
+
+.customRS .rsThumbsHor {
+    width: 100%;
+    height: 72px;
+}
+.customRS .rsThumbsVer {
+    width: 96px;
+    height: 100%;
+    position: absolute;
+    top: 0;
+    right: 0;
+}
+.customRS.rsWithThumbsHor .rsThumbsContainer {
+    position: relative;
+    height: 100%;
+}
+.customRS.rsWithThumbsVer .rsThumbsContainer {
+    position: relative;
+    width: 100%;
+}
+.customRS .rsThumb {
+    float: left;
+    overflow: hidden;
+    width: 96px;
+    height: 72px;
+}
+.customRS .rsThumb img {
+    width: 100%;
+    height: 100%;
+}
+.customRS .rsThumb.rsNavSelected {
+    background: #333;
+}
+.customRS .rsThumb.rsNavSelected img {
+    opacity: 0.7;
+    filter: alpha(opacity=30);
+}
+.customRS .rsThumb.rsNavSelected .thumbIco {
+    position: absolute;
+    top: 0;
+    bottom: 0;
+    left: 0;
+    right: 0;
+    border: 2px solid #FFF;
+    border: 2px solid rgba(255,255,255,0.9);
+    -webkit-backface-visibility: hidden;
+}
+
+.customRS .rsTmb {
+    display: block;
+}
+
+/* Thumbnails with text */
+.customRS .rsTmb h5 {
+    font-size: 16px;
+    margin: 0;
+    padding: 0;
+    line-height: 20px;
+    color: #FFF;
+}
+.customRS .rsTmb span {
+    color: #DDD;
+    margin: 0;
+    padding: 0;
+    font-size: 13px;
+    line-height: 18px;
+}
+
+
+
+/* Thumbnails arrow icons */
+.customRS .rsThumbsArrow {
+    height: 100%;
+    width: 20px;
+    position: absolute;
+    display: block;
+    cursor: pointer;
+    z-index: 21;
+}
+.customRS .rsThumbsArrow:hover {
+
+}
+.customRS.rsWithThumbsVer .rsThumbsArrow {
+    width: 100%;
+    height: 20px;
+}
+.customRS.rsWithThumbsVer .rsThumbsArrowLeft { top: 0; left: 0; }
+.customRS.rsWithThumbsVer .rsThumbsArrowRight { bottom: 0;  left: 0; }
+
+.customRS.rsWithThumbsHor .rsThumbsArrowLeft { left: 0; top: 0; }
+.customRS.rsWithThumbsHor .rsThumbsArrowRight { right: 0; top:0; }
+
+.customRS .rsThumbsArrowIcn {
+    width: 16px;
+    height: 16px;
+    top: 50%;
+    left: 50%;
+    margin-top:-8px;
+    margin-left: -8px;
+    position: absolute;
+    cursor: pointer;
+    background: url('../img/rs-universal.png') transparent;
+}
+
+.customRS.rsWithThumbsHor .rsThumbsArrowLeft .rsThumbsArrowIcn { background-position: -128px -32px; }
+.customRS.rsWithThumbsHor .rsThumbsArrowRight .rsThumbsArrowIcn { background-position: -128px -48px; }
+
+.customRS.rsWithThumbsVer .rsThumbsArrowLeft .rsThumbsArrowIcn { background-position: -144px -32px; }
+.customRS.rsWithThumbsVer .rsThumbsArrowRight .rsThumbsArrowIcn { background-position: -144px -48px; }
+
+.customRS .rsThumbsArrowDisabled { display: none !important; }
+
+/* Thumbnails resizing on smaller screens */
+@media screen and (min-width: 0px) and (max-width: 800px) {
+    .customRS .rsThumb {
+        width: 59px;
+        height: 44px;
+    }
+    .customRS .rsThumbsHor {
+        height: 44px;
+    }
+    .customRS .rsThumbsVer {
+        width: 59px;
+    }
+}
+
+
+
+
+/***************
+*
+*  4. Tabs
+*
+****************/
+
+.customRS .rsTabs {
+    width: 100%;
+    height: auto;
+    margin: 0 auto;
+    text-align:center;
+    overflow: hidden; padding-top: 12px; position: relative;
+}
+.customRS .rsTab {
+    display: inline-block;
+    cursor: pointer;
+    text-align: center;
+    height: auto;
+    width: auto;
+    color: #333;
+    padding: 5px 13px 6px;
+    min-width: 72px;
+    border: 1px solid #D9D9DD;
+    text-decoration: none;
+
+    background: #FFF;
+    border-right: none;
+    *display:inline;
+    *zoom:1;
+    *border-right: 1px solid #d9d9d9;
+
+}
+.customRS .rsTab:first-child {
+    border-top-left-radius: 16px;
+    border-bottom-left-radius: 16px;
+}
+.customRS .rsTab:last-child {
+    border-top-right-radius: 16px;
+    border-bottom-right-radius: 16px;
+    border-right: 1px solid #D9D9DD;
+}
+.customRS .rsTab:active {
+    background-color: #f4f4f4;
+}
+.customRS .rsTab.rsNavSelected {
+    color: #FFF;
+    background: #383838;
+    border-color: #383838;
+}
+
+
+
+
+
+/***************
+*
+*  5. Fullscreen button
+*
+****************/
+
+.customRS .rsFullscreenBtn {
+    right: 0;
+    top: 0;
+    width: 44px;
+    height: 44px;
+    z-index: 22;
+    display: block;
+    position: absolute;
+    cursor: pointer;
+
+}
+.customRS .rsFullscreenIcn {
+    display: block;
+    margin: 6px;
+    width: 32px;
+    height: 32px;
+
+    background: url('../img/rs-universal.png') 0 0 transparent;
+    opacity: 0.7;
+    border-radius: 2px;
+
+}
+.customRS .rsFullscreenBtn:hover .rsFullscreenIcn {
+    opacity: 1;
+}
+.customRS.rsFullscreen .rsFullscreenIcn {
+    background-position: -32px 0;
+}
+
+
+
+
+
+/***************
+*
+*  6. Play/close video button
+*
+****************/
+
+.customRS .rsPlayBtn {
+    -webkit-tap-highlight-color:rgba(0,0,0,0.3);
+    width:64px;
+    height:64px;
+    margin-left:-32px;
+    margin-top:-32px;
+    cursor: pointer;
+}
+.customRS .rsPlayBtnIcon {
+    width:64px;
+    display:block;
+    height:64px;
+    -webkit-border-radius: 4px;
+    border-radius: 4px;
+
+    -webkit-transition: .3s;
+    -moz-transition: .3s;
+    transition: .3s;
+
+    background:url(../img/rs-universal.png) no-repeat 0 -32px;
+    background-color: #383838;
+    background-color: rgba(0,0,0,0.75);
+    *background-color: #383838;
+}
+.customRS .rsPlayBtn:hover .rsPlayBtnIcon {
+    background-color: rgba(0,0,0,0.9);
+}
+.customRS .rsBtnCenterer {
+    position:absolute;
+    left:50%;
+    top:50%;
+    width: 20px;
+    height: 20px;
+}
+.customRS .rsCloseVideoBtn {
+    right: 0;
+    top: 0;
+    width: 44px;
+    height: 44px;
+    z-index: 500;
+    position: absolute;
+    cursor: pointer;
+    -webkit-backface-visibility: hidden;
+    -webkit-transform: translateZ(0);
+
+}
+.customRS .rsCloseVideoBtn.rsiOSBtn {
+    top: -38px;
+    right: -6px;
+}
+
+.customRS .rsCloseVideoIcn {
+    margin: 6px;
+    width: 32px;
+    height: 32px;
+    background: url('../img/rs-universal.png') -64px 0;
+    background-color: #383838;
+    background-color: rgba(0,0,0,0.75);
+    *background-color: #383838;
+}
+.customRS .rsCloseVideoIcn:hover {
+    background-color: rgba(0,0,0,0.9);
+}
+
+
+
+/***************
+*
+*  7. Preloader
+*
+****************/
+
+.customRS .rsPreloader {
+    width:20px;
+    height:20px;
+    background-image:url(../img/preloader-white.gif);
+
+    left:50%;
+    top:50%;
+    margin-left:-10px;
+    margin-top:-10px;
+}
+
+
+
+
+/***************
+*
+*  8. Global caption
+*
+****************/
+.customRS .rsGCaption {
+    position: absolute;
+    float: none;
+    bottom: 6px;
+    left: 6px;
+    text-align: left;
+
+    background: #222;
+
+    color: #FFF;
+    padding: 2px 8px;
+    width: auto;
+    font-size: 12px;
+    border-radius: 2px;
+}
\ No newline at end of file
diff --git a/assets/vendor/chosen/chosen-sprite.png b/assets/vendor/chosen/chosen-sprite.png
new file mode 100644 (file)
index 0000000..c57da70
Binary files /dev/null and b/assets/vendor/chosen/chosen-sprite.png differ
diff --git a/assets/vendor/chosen/chosen-sprite@2x.png b/assets/vendor/chosen/chosen-sprite@2x.png
new file mode 100644 (file)
index 0000000..6b50545
Binary files /dev/null and b/assets/vendor/chosen/chosen-sprite@2x.png differ
diff --git a/assets/vendor/chosen/chosen.jquery.min.js b/assets/vendor/chosen/chosen.jquery.min.js
new file mode 100644 (file)
index 0000000..9699d39
--- /dev/null
@@ -0,0 +1,2 @@
+/* Chosen v1.4.2 | (c) 2011-2015 by Harvest | MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md */
+(function(){var a,AbstractChosen,Chosen,SelectParser,b,c={}.hasOwnProperty,d=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a[e]=b[e]);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a};SelectParser=function(){function SelectParser(){this.options_index=0,this.parsed=[]}return SelectParser.prototype.add_node=function(a){return"OPTGROUP"===a.nodeName.toUpperCase()?this.add_group(a):this.add_option(a)},SelectParser.prototype.add_group=function(a){var b,c,d,e,f,g;for(b=this.parsed.length,this.parsed.push({array_index:b,group:!0,label:this.escapeExpression(a.label),title:a.title?a.title:void 0,children:0,disabled:a.disabled,classes:a.className}),f=a.childNodes,g=[],d=0,e=f.length;e>d;d++)c=f[d],g.push(this.add_option(c,b,a.disabled));return g},SelectParser.prototype.add_option=function(a,b,c){return"OPTION"===a.nodeName.toUpperCase()?(""!==a.text?(null!=b&&(this.parsed[b].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:a.value,text:a.text,html:a.innerHTML,title:a.title?a.title:void 0,selected:a.selected,disabled:c===!0?c:a.disabled,group_array_index:b,group_label:null!=b?this.parsed[b].label:null,classes:a.className,style:a.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1):void 0},SelectParser.prototype.escapeExpression=function(a){var b,c;return null==a||a===!1?"":/[\&\<\>\"\'\`]/.test(a)?(b={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},c=/&(?!\w+;)|[\<\>\"\'\`]/g,a.replace(c,function(a){return b[a]||"&amp;"})):a},SelectParser}(),SelectParser.select_to_array=function(a){var b,c,d,e,f;for(c=new SelectParser,f=a.childNodes,d=0,e=f.length;e>d;d++)b=f[d],c.add_node(b);return c.parsed},AbstractChosen=function(){function AbstractChosen(a,b){this.form_field=a,this.options=null!=b?b:{},AbstractChosen.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return AbstractChosen.prototype.set_default_values=function(){var a=this;return this.click_test_action=function(b){return a.test_active_click(b)},this.activate_action=function(b){return a.activate_field(b)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null!=this.options.enable_split_word_search?this.options.enable_split_word_search:!0,this.group_search=null!=this.options.group_search?this.options.group_search:!0,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null!=this.options.single_backstroke_delete?this.options.single_backstroke_delete:!0,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null!=this.options.display_selected_options?this.options.display_selected_options:!0,this.display_disabled_options=null!=this.options.display_disabled_options?this.options.display_disabled_options:!0,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1},AbstractChosen.prototype.set_default_text=function(){return this.default_text=this.form_field.getAttribute("data-placeholder")?this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.options.placeholder_text_multiple||this.options.placeholder_text||AbstractChosen.default_multiple_text:this.options.placeholder_text_single||this.options.placeholder_text||AbstractChosen.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||AbstractChosen.default_no_result_text},AbstractChosen.prototype.choice_label=function(a){return this.include_group_label_in_selected&&null!=a.group_label?"<b class='group-name'>"+a.group_label+"</b>"+a.html:a.html},AbstractChosen.prototype.mouse_enter=function(){return this.mouse_on_container=!0},AbstractChosen.prototype.mouse_leave=function(){return this.mouse_on_container=!1},AbstractChosen.prototype.input_focus=function(){var a=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return a.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},AbstractChosen.prototype.input_blur=function(){var a=this;return this.mouse_on_container?void 0:(this.active_field=!1,setTimeout(function(){return a.blur_test()},100))},AbstractChosen.prototype.results_option_build=function(a){var b,c,d,e,f;for(b="",f=this.results_data,d=0,e=f.length;e>d;d++)c=f[d],b+=c.group?this.result_add_group(c):this.result_add_option(c),(null!=a?a.first:void 0)&&(c.selected&&this.is_multiple?this.choice_build(c):c.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(c)));return b},AbstractChosen.prototype.result_add_option=function(a){var b,c;return a.search_match&&this.include_option_in_results(a)?(b=[],a.disabled||a.selected&&this.is_multiple||b.push("active-result"),!a.disabled||a.selected&&this.is_multiple||b.push("disabled-result"),a.selected&&b.push("result-selected"),null!=a.group_array_index&&b.push("group-option"),""!==a.classes&&b.push(a.classes),c=document.createElement("li"),c.className=b.join(" "),c.style.cssText=a.style,c.setAttribute("data-option-array-index",a.array_index),c.innerHTML=a.search_text,a.title&&(c.title=a.title),this.outerHTML(c)):""},AbstractChosen.prototype.result_add_group=function(a){var b,c;return(a.search_match||a.group_match)&&a.active_options>0?(b=[],b.push("group-result"),a.classes&&b.push(a.classes),c=document.createElement("li"),c.className=b.join(" "),c.innerHTML=a.search_text,a.title&&(c.title=a.title),this.outerHTML(c)):""},AbstractChosen.prototype.results_update_field=function(){return this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing?this.winnow_results():void 0},AbstractChosen.prototype.reset_single_select_options=function(){var a,b,c,d,e;for(d=this.results_data,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.selected?a.selected=!1:void 0);return e},AbstractChosen.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},AbstractChosen.prototype.results_search=function(){return this.results_showing?this.winnow_results():this.results_show()},AbstractChosen.prototype.winnow_results=function(){var a,b,c,d,e,f,g,h,i,j,k,l;for(this.no_results_clear(),d=0,f=this.get_search_text(),a=f.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),i=new RegExp(a,"i"),c=this.get_search_regex(a),l=this.results_data,j=0,k=l.length;k>j;j++)b=l[j],b.search_match=!1,e=null,this.include_option_in_results(b)&&(b.group&&(b.group_match=!1,b.active_options=0),null!=b.group_array_index&&this.results_data[b.group_array_index]&&(e=this.results_data[b.group_array_index],0===e.active_options&&e.search_match&&(d+=1),e.active_options+=1),b.search_text=b.group?b.label:b.html,(!b.group||this.group_search)&&(b.search_match=this.search_string_match(b.search_text,c),b.search_match&&!b.group&&(d+=1),b.search_match?(f.length&&(g=b.search_text.search(i),h=b.search_text.substr(0,g+f.length)+"</em>"+b.search_text.substr(g+f.length),b.search_text=h.substr(0,g)+"<em>"+h.substr(g)),null!=e&&(e.group_match=!0)):null!=b.group_array_index&&this.results_data[b.group_array_index].search_match&&(b.search_match=!0)));return this.result_clear_highlight(),1>d&&f.length?(this.update_results_content(""),this.no_results(f)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},AbstractChosen.prototype.get_search_regex=function(a){var b;return b=this.search_contains?"":"^",new RegExp(b+a,"i")},AbstractChosen.prototype.search_string_match=function(a,b){var c,d,e,f;if(b.test(a))return!0;if(this.enable_split_word_search&&(a.indexOf(" ")>=0||0===a.indexOf("["))&&(d=a.replace(/\[|\]/g,"").split(" "),d.length))for(e=0,f=d.length;f>e;e++)if(c=d[e],b.test(c))return!0},AbstractChosen.prototype.choices_count=function(){var a,b,c,d;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,d=this.form_field.options,b=0,c=d.length;c>b;b++)a=d[b],a.selected&&(this.selected_option_count+=1);return this.selected_option_count},AbstractChosen.prototype.choices_click=function(a){return a.preventDefault(),this.results_showing||this.is_disabled?void 0:this.results_show()},AbstractChosen.prototype.keyup_checker=function(a){var b,c;switch(b=null!=(c=a.which)?c:a.keyCode,this.search_field_scale(),b){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(a.preventDefault(),this.results_showing)return this.result_select(a);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},AbstractChosen.prototype.clipboard_event_checker=function(){var a=this;return setTimeout(function(){return a.results_search()},50)},AbstractChosen.prototype.container_width=function(){return null!=this.options.width?this.options.width:""+this.form_field.offsetWidth+"px"},AbstractChosen.prototype.include_option_in_results=function(a){return this.is_multiple&&!this.display_selected_options&&a.selected?!1:!this.display_disabled_options&&a.disabled?!1:a.empty?!1:!0},AbstractChosen.prototype.search_results_touchstart=function(a){return this.touch_started=!0,this.search_results_mouseover(a)},AbstractChosen.prototype.search_results_touchmove=function(a){return this.touch_started=!1,this.search_results_mouseout(a)},AbstractChosen.prototype.search_results_touchend=function(a){return this.touch_started?this.search_results_mouseup(a):void 0},AbstractChosen.prototype.outerHTML=function(a){var b;return a.outerHTML?a.outerHTML:(b=document.createElement("div"),b.appendChild(a),b.innerHTML)},AbstractChosen.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:/iP(od|hone)/i.test(window.navigator.userAgent)?!1:/Android/i.test(window.navigator.userAgent)&&/Mobile/i.test(window.navigator.userAgent)?!1:!0},AbstractChosen.default_multiple_text="Select Some Options",AbstractChosen.default_single_text="Select an Option",AbstractChosen.default_no_result_text="No results match",AbstractChosen}(),a=jQuery,a.fn.extend({chosen:function(b){return AbstractChosen.browser_is_supported()?this.each(function(){var c,d;c=a(this),d=c.data("chosen"),"destroy"===b&&d instanceof Chosen?d.destroy():d instanceof Chosen||c.data("chosen",new Chosen(this,b))}):this}}),Chosen=function(c){function Chosen(){return b=Chosen.__super__.constructor.apply(this,arguments)}return d(Chosen,c),Chosen.prototype.setup=function(){return this.form_field_jq=a(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},Chosen.prototype.set_up_html=function(){var b,c;return b=["chosen-container"],b.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&b.push(this.form_field.className),this.is_rtl&&b.push("chosen-rtl"),c={"class":b.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(c.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=a("<div />",c),this.container.html(this.is_multiple?'<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>':'<a class="chosen-single chosen-default" tabindex="-1"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},Chosen.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},Chosen.prototype.register_observers=function(){var a=this;return this.container.bind("touchstart.chosen",function(b){return a.container_mousedown(b),b.preventDefault()}),this.container.bind("touchend.chosen",function(b){return a.container_mouseup(b),b.preventDefault()}),this.container.bind("mousedown.chosen",function(b){a.container_mousedown(b)}),this.container.bind("mouseup.chosen",function(b){a.container_mouseup(b)}),this.container.bind("mouseenter.chosen",function(b){a.mouse_enter(b)}),this.container.bind("mouseleave.chosen",function(b){a.mouse_leave(b)}),this.search_results.bind("mouseup.chosen",function(b){a.search_results_mouseup(b)}),this.search_results.bind("mouseover.chosen",function(b){a.search_results_mouseover(b)}),this.search_results.bind("mouseout.chosen",function(b){a.search_results_mouseout(b)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(b){a.search_results_mousewheel(b)}),this.search_results.bind("touchstart.chosen",function(b){a.search_results_touchstart(b)}),this.search_results.bind("touchmove.chosen",function(b){a.search_results_touchmove(b)}),this.search_results.bind("touchend.chosen",function(b){a.search_results_touchend(b)}),this.form_field_jq.bind("chosen:updated.chosen",function(b){a.results_update_field(b)}),this.form_field_jq.bind("chosen:activate.chosen",function(b){a.activate_field(b)}),this.form_field_jq.bind("chosen:open.chosen",function(b){a.container_mousedown(b)}),this.form_field_jq.bind("chosen:close.chosen",function(b){a.input_blur(b)}),this.search_field.bind("blur.chosen",function(b){a.input_blur(b)}),this.search_field.bind("keyup.chosen",function(b){a.keyup_checker(b)}),this.search_field.bind("keydown.chosen",function(b){a.keydown_checker(b)}),this.search_field.bind("focus.chosen",function(b){a.input_focus(b)}),this.search_field.bind("cut.chosen",function(b){a.clipboard_event_checker(b)}),this.search_field.bind("paste.chosen",function(b){a.clipboard_event_checker(b)}),this.is_multiple?this.search_choices.bind("click.chosen",function(b){a.choices_click(b)}):this.container.bind("click.chosen",function(a){a.preventDefault()})},Chosen.prototype.destroy=function(){return a(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},Chosen.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},Chosen.prototype.container_mousedown=function(b){return this.is_disabled||(b&&"mousedown"===b.type&&!this.results_showing&&b.preventDefault(),null!=b&&a(b.target).hasClass("search-choice-close"))?void 0:(this.active_field?this.is_multiple||!b||a(b.target)[0]!==this.selected_item[0]&&!a(b.target).parents("a.chosen-single").length||(b.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),a(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},Chosen.prototype.container_mouseup=function(a){return"ABBR"!==a.target.nodeName||this.is_disabled?void 0:this.results_reset(a)},Chosen.prototype.search_results_mousewheel=function(a){var b;return a.originalEvent&&(b=a.originalEvent.deltaY||-a.originalEvent.wheelDelta||a.originalEvent.detail),null!=b?(a.preventDefault(),"DOMMouseScroll"===a.type&&(b=40*b),this.search_results.scrollTop(b+this.search_results.scrollTop())):void 0},Chosen.prototype.blur_test=function(){return!this.active_field&&this.container.hasClass("chosen-container-active")?this.close_field():void 0},Chosen.prototype.close_field=function(){return a(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},Chosen.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},Chosen.prototype.test_active_click=function(b){var c;return c=a(b.target).closest(".chosen-container"),c.length&&this.container[0]===c[0]?this.active_field=!0:this.close_field()},Chosen.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=SelectParser.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},Chosen.prototype.result_do_highlight=function(a){var b,c,d,e,f;if(a.length){if(this.result_clear_highlight(),this.result_highlight=a,this.result_highlight.addClass("highlighted"),d=parseInt(this.search_results.css("maxHeight"),10),f=this.search_results.scrollTop(),e=d+f,c=this.result_highlight.position().top+this.search_results.scrollTop(),b=c+this.result_highlight.outerHeight(),b>=e)return this.search_results.scrollTop(b-d>0?b-d:0);if(f>c)return this.search_results.scrollTop(c)}},Chosen.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},Chosen.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},Chosen.prototype.update_results_content=function(a){return this.search_results.html(a)},Chosen.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},Chosen.prototype.set_tab_index=function(){var a;return this.form_field.tabIndex?(a=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=a):void 0},Chosen.prototype.set_label_behavior=function(){var b=this;return this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=a("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0?this.form_field_label.bind("click.chosen",function(a){return b.is_multiple?b.container_mousedown(a):b.activate_field()}):void 0},Chosen.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},Chosen.prototype.search_results_mouseup=function(b){var c;return c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first(),c.length?(this.result_highlight=c,this.result_select(b),this.search_field.focus()):void 0},Chosen.prototype.search_results_mouseover=function(b){var c;return c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first(),c?this.result_do_highlight(c):void 0},Chosen.prototype.search_results_mouseout=function(b){return a(b.target).hasClass("active-result")?this.result_clear_highlight():void 0},Chosen.prototype.choice_build=function(b){var c,d,e=this;return c=a("<li />",{"class":"search-choice"}).html("<span>"+this.choice_label(b)+"</span>"),b.disabled?c.addClass("search-choice-disabled"):(d=a("<a />",{"class":"search-choice-close","data-option-array-index":b.array_index}),d.bind("click.chosen",function(a){return e.choice_destroy_link_click(a)}),c.append(d)),this.search_container.before(c)},Chosen.prototype.choice_destroy_link_click=function(b){return b.preventDefault(),b.stopPropagation(),this.is_disabled?void 0:this.choice_destroy(a(b.target))},Chosen.prototype.choice_destroy=function(a){return this.result_deselect(a[0].getAttribute("data-option-array-index"))?(this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),a.parents("li").first().remove(),this.search_field_scale()):void 0},Chosen.prototype.results_reset=function(){return this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field?this.results_hide():void 0},Chosen.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},Chosen.prototype.result_select=function(a){var b,c;return this.result_highlight?(b=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?b.removeClass("active-result"):this.reset_single_select_options(),b.addClass("result-selected"),c=this.results_data[b[0].getAttribute("data-option-array-index")],c.selected=!0,this.form_field.options[c.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(c):this.single_set_selected_text(this.choice_label(c)),(a.metaKey||a.ctrlKey)&&this.is_multiple||this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[c.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,a.preventDefault(),this.search_field_scale())):void 0},Chosen.prototype.single_set_selected_text=function(a){return null==a&&(a=this.default_text),a===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(a)},Chosen.prototype.result_deselect=function(a){var b;return b=this.results_data[a],this.form_field.options[b.options_index].disabled?!1:(b.selected=!1,this.form_field.options[b.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[b.options_index].value}),this.search_field_scale(),!0)},Chosen.prototype.single_deselect_control_build=function(){return this.allow_single_deselect?(this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")):void 0},Chosen.prototype.get_search_text=function(){return a("<div/>").text(a.trim(this.search_field.val())).html()},Chosen.prototype.winnow_results_set_highlight=function(){var a,b;return b=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),a=b.length?b.first():this.search_results.find(".active-result").first(),null!=a?this.result_do_highlight(a):void 0},Chosen.prototype.no_results=function(b){var c;return c=a('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),c.find("span").first().html(b),this.search_results.append(c),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},Chosen.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},Chosen.prototype.keydown_arrow=function(){var a;return this.results_showing&&this.result_highlight?(a=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(a):void 0:this.results_show()},Chosen.prototype.keyup_arrow=function(){var a;return this.results_showing||this.is_multiple?this.result_highlight?(a=this.result_highlight.prevAll("li.active-result"),a.length?this.result_do_highlight(a.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())):void 0:this.results_show()},Chosen.prototype.keydown_backstroke=function(){var a;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(a=this.search_container.siblings("li.search-choice").last(),a.length&&!a.hasClass("search-choice-disabled")?(this.pending_backstroke=a,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0)},Chosen.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},Chosen.prototype.keydown_checker=function(a){var b,c;switch(b=null!=(c=a.which)?c:a.keyCode,this.search_field_scale(),8!==b&&this.pending_backstroke&&this.clear_backstroke(),b){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(a),this.mouse_on_container=!1;break;case 13:this.results_showing&&a.preventDefault();break;case 32:this.disable_search&&a.preventDefault();break;case 38:a.preventDefault(),this.keyup_arrow();break;case 40:a.preventDefault(),this.keydown_arrow()}},Chosen.prototype.search_field_scale=function(){var b,c,d,e,f,g,h,i,j;if(this.is_multiple){for(d=0,h=0,f="position:absolute; left: -1000px; top: -1000px; display:none;",g=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"],i=0,j=g.length;j>i;i++)e=g[i],f+=e+":"+this.search_field.css(e)+";";return b=a("<div />",{style:f}),b.text(this.search_field.val()),a("body").append(b),h=b.width()+25,b.remove(),c=this.container.outerWidth(),h>c-10&&(h=c-10),this.search_field.css({width:h+"px"})}},Chosen}(AbstractChosen)}).call(this);
\ No newline at end of file
diff --git a/assets/vendor/chosen/chosen.min.css b/assets/vendor/chosen/chosen.min.css
new file mode 100644 (file)
index 0000000..5ca6159
--- /dev/null
@@ -0,0 +1,3 @@
+/* Chosen v1.4.2 | (c) 2011-2015 by Harvest | MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md */
+
+.chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;zoom:1;*display:inline;-webkit-user-select:none;-moz-user-select:none;user-select:none}.chosen-container *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.chosen-container .chosen-drop{position:absolute;top:100%;left:-9999px;z-index:1010;width:100%;border:1px solid #aaa;border-top:0;background:#fff;box-shadow:0 4px 5px rgba(0,0,0,.15)}.chosen-container.chosen-with-drop .chosen-drop{left:0}.chosen-container a{cursor:pointer}.chosen-container .search-choice .group-name,.chosen-container .chosen-single .group-name{margin-right:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:400;color:#999}.chosen-container .search-choice .group-name:after,.chosen-container .chosen-single .group-name:after{content:":";padding-left:2px;vertical-align:top}.chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:25px;border:1px solid #aaa;border-radius:5px;background-color:#fff;background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#fff),color-stop(50%,#f6f6f6),color-stop(52%,#eee),color-stop(100%,#f4f4f4));background:-webkit-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background:-moz-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background:-o-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background:linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-clip:padding-box;box-shadow:0 0 3px #fff inset,0 1px 1px rgba(0,0,0,.1);color:#444;text-decoration:none;white-space:nowrap;line-height:24px}.chosen-container-single .chosen-default{color:#999}.chosen-container-single .chosen-single span{display:block;overflow:hidden;margin-right:26px;text-overflow:ellipsis;white-space:nowrap}.chosen-container-single .chosen-single-with-deselect span{margin-right:38px}.chosen-container-single .chosen-single abbr{position:absolute;top:6px;right:26px;display:block;width:12px;height:12px;background:url(chosen-sprite.png) -42px 1px no-repeat;font-size:1px}.chosen-container-single .chosen-single abbr:hover{background-position:-42px -10px}.chosen-container-single.chosen-disabled .chosen-single abbr:hover{background-position:-42px -10px}.chosen-container-single .chosen-single div{position:absolute;top:0;right:0;display:block;width:18px;height:100%}.chosen-container-single .chosen-single div b{display:block;width:100%;height:100%;background:url(chosen-sprite.png) no-repeat 0 2px}.chosen-container-single .chosen-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.chosen-container-single .chosen-search input[type=text]{margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #aaa;background:#fff url(chosen-sprite.png) no-repeat 100% -20px;background:url(chosen-sprite.png) no-repeat 100% -20px;font-size:1em;font-family:sans-serif;line-height:normal;border-radius:0}.chosen-container-single .chosen-drop{margin-top:-1px;border-radius:0 0 4px 4px;background-clip:padding-box}.chosen-container-single.chosen-container-single-nosearch .chosen-search{position:absolute;left:-9999px}.chosen-container .chosen-results{color:#444;position:relative;overflow-x:hidden;overflow-y:auto;margin:0 4px 4px 0;padding:0 0 0 4px;max-height:240px;-webkit-overflow-scrolling:touch}.chosen-container .chosen-results li{display:none;margin:0;padding:5px 6px;list-style:none;line-height:15px;word-wrap:break-word;-webkit-touch-callout:none}.chosen-container .chosen-results li.active-result{display:list-item;cursor:pointer}.chosen-container .chosen-results li.disabled-result{display:list-item;color:#ccc;cursor:default}.chosen-container .chosen-results li.highlighted{background-color:#3875d7;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#3875d7),color-stop(90%,#2a62bc));background-image:-webkit-linear-gradient(#3875d7 20%,#2a62bc 90%);background-image:-moz-linear-gradient(#3875d7 20%,#2a62bc 90%);background-image:-o-linear-gradient(#3875d7 20%,#2a62bc 90%);background-image:linear-gradient(#3875d7 20%,#2a62bc 90%);color:#fff}.chosen-container .chosen-results li.no-results{color:#777;display:list-item;background:#f4f4f4}.chosen-container .chosen-results li.group-result{display:list-item;font-weight:700;cursor:default}.chosen-container .chosen-results li.group-option{padding-left:15px}.chosen-container .chosen-results li em{font-style:normal;text-decoration:underline}.chosen-container-multi .chosen-choices{position:relative;overflow:hidden;margin:0;padding:0 5px;width:100%;height:auto!important;height:1%;border:1px solid #aaa;background-color:#fff;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(1%,#eee),color-stop(15%,#fff));background-image:-webkit-linear-gradient(#eee 1%,#fff 15%);background-image:-moz-linear-gradient(#eee 1%,#fff 15%);background-image:-o-linear-gradient(#eee 1%,#fff 15%);background-image:linear-gradient(#eee 1%,#fff 15%);cursor:text}.chosen-container-multi .chosen-choices li{float:left;list-style:none}.chosen-container-multi .chosen-choices li.search-field{margin:0;padding:0;white-space:nowrap}.chosen-container-multi .chosen-choices li.search-field input[type=text]{margin:1px 0;padding:0;height:25px;outline:0;border:0!important;background:transparent!important;box-shadow:none;color:#999;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0}.chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 5px 3px 0;padding:3px 20px 3px 5px;border:1px solid #aaa;max-width:100%;border-radius:3px;background-color:#eee;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#f4f4f4),color-stop(50%,#f0f0f0),color-stop(52%,#e8e8e8),color-stop(100%,#eee));background-image:-webkit-linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-moz-linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-o-linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-size:100% 19px;background-repeat:repeat-x;background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);color:#333;line-height:13px;cursor:default}.chosen-container-multi .chosen-choices li.search-choice span{word-wrap:break-word}.chosen-container-multi .chosen-choices li.search-choice .search-choice-close{position:absolute;top:4px;right:3px;display:block;width:12px;height:12px;background:url(chosen-sprite.png) -42px 1px no-repeat;font-size:1px}.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover{background-position:-42px -10px}.chosen-container-multi .chosen-choices li.search-choice-disabled{padding-right:5px;border:1px solid #ccc;background-color:#e4e4e4;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#f4f4f4),color-stop(50%,#f0f0f0),color-stop(52%,#e8e8e8),color-stop(100%,#eee));background-image:-webkit-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-moz-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-o-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);color:#666}.chosen-container-multi .chosen-choices li.search-choice-focus{background:#d4d4d4}.chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close{background-position:-42px -10px}.chosen-container-multi .chosen-results{margin:0;padding:0}.chosen-container-multi .chosen-drop .result-selected{display:list-item;color:#ccc;cursor:default}.chosen-container-active .chosen-single{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #aaa;-moz-border-radius-bottomright:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#eee),color-stop(80%,#fff));background-image:-webkit-linear-gradient(#eee 20%,#fff 80%);background-image:-moz-linear-gradient(#eee 20%,#fff 80%);background-image:-o-linear-gradient(#eee 20%,#fff 80%);background-image:linear-gradient(#eee 20%,#fff 80%);box-shadow:0 1px 0 #fff inset}.chosen-container-active.chosen-with-drop .chosen-single div{border-left:0;background:transparent}.chosen-container-active.chosen-with-drop .chosen-single div b{background-position:-18px 2px}.chosen-container-active .chosen-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active .chosen-choices li.search-field input[type=text]{color:#222!important}.chosen-disabled{opacity:.5!important;cursor:default}.chosen-disabled .chosen-single{cursor:default}.chosen-disabled .chosen-choices .search-choice .search-choice-close{cursor:default}.chosen-rtl{text-align:right}.chosen-rtl .chosen-single{overflow:visible;padding:0 8px 0 0}.chosen-rtl .chosen-single span{margin-right:0;margin-left:26px;direction:rtl}.chosen-rtl .chosen-single-with-deselect span{margin-left:38px}.chosen-rtl .chosen-single div{right:auto;left:3px}.chosen-rtl .chosen-single abbr{right:auto;left:26px}.chosen-rtl .chosen-choices li{float:right}.chosen-rtl .chosen-choices li.search-field input[type=text]{direction:rtl}.chosen-rtl .chosen-choices li.search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.chosen-rtl .chosen-choices li.search-choice .search-choice-close{right:auto;left:4px}.chosen-rtl.chosen-container-single-nosearch .chosen-search,.chosen-rtl .chosen-drop{left:9999px}.chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.chosen-rtl .chosen-results li.group-option{padding-right:15px;padding-left:0}.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:0}.chosen-rtl .chosen-search input[type=text]{padding:4px 5px 4px 20px;background:#fff url(chosen-sprite.png) no-repeat -30px -20px;background:url(chosen-sprite.png) no-repeat -30px -20px;direction:rtl}.chosen-rtl.chosen-container-single .chosen-single div b{background-position:6px 2px}.chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b{background-position:-12px 2px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min-resolution:144dpi),only screen and (min-resolution:1.5dppx){.chosen-rtl .chosen-search input[type=text],.chosen-container-single .chosen-single abbr,.chosen-container-single .chosen-single div b,.chosen-container-single .chosen-search input[type=text],.chosen-container-multi .chosen-choices .search-choice .search-choice-close,.chosen-container .chosen-results-scroll-down span,.chosen-container .chosen-results-scroll-up span{background-image:url(chosen-sprite@2x.png)!important;background-size:52px 37px!important;background-repeat:no-repeat!important}}
\ No newline at end of file
diff --git a/author.php b/author.php
new file mode 100644 (file)
index 0000000..fe1abeb
--- /dev/null
@@ -0,0 +1,97 @@
+<?php
+/**
+ * The template for displaying author pages.
+ *
+ * @link https://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package wmta
+ */
+
+get_header(); ?>
+
+<?php
+if(isset($_GET['author_name'])) :
+    $curauth = get_user_by( 'login', $author_name );
+else :
+    $curauth = get_userdata(intval($author));
+endif;
+?>
+
+    <div class="row">
+
+        <?php
+        // Custom header define in User Profile settings
+        $author_id = $curauth->ID;
+        if(get_field('custom_header_image', 'user_'.$author_id.'') && is_author($author_id))
+        {
+
+            $custom_header_image = get_field('custom_header_image', 'user_'.$author_id.'');
+            echo '<div class="hero-header" style="background-image: url('.$custom_header_image.');" ></div>';
+        }
+
+        else
+        {
+        //echo '<div class="hero-header" style="background-image: url('.esc_url(get_template_directory_uri()).'/img/hero-default.jpg);" ></div>';
+        ?>
+
+            <?php //array of page ids with hero images - ids are randomized below
+            $hero = Array(22,30845,30863,30865,30867,30869,30863,30865,30867,30869,30871,30873,30875,30877,30879,30881,30883,30885,30887,30889,30892,30894,30896,30898,30901,30904,30906,30908,30911,24,30832,30901,30834,30836,30838,30840,30842,26,30817,30820,30824,30826,30830,28,30800,30802,30804);
+            ?>
+
+             <div class="hero-header"<?php $random = $hero[array_rand($hero)];
+                if (has_post_thumbnail( $random ) ) {
+                    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $random ), 'single-post-thumbnail' );
+                    echo ' style="background-image: url('.$image[0].')"' ;
+                } ?>>
+
+                </div>
+
+        <?php } ?>
+
+
+
+    </div>
+
+
+       <div class="body-content row column">
+
+               <div class="medium-8 large-9 columns">
+
+                       <div id="primary" class="content-area">
+
+                               <main id="main" class="site-main" role="main">
+
+                    <div class="post-page-title"><h1><?php echo $curauth->nickname; ?></h1></div>
+
+                    <div class="news-wrapper">
+
+
+                        <?php display_memberfindme_directory() ?>
+
+
+
+                    </div>
+
+                               </main><!-- #main -->
+
+                       </div><!-- #primary -->
+
+               </div><!-- .large-9.columns -->
+
+               <div class="medium-4 large-3 columns page-sidebar">
+                       <?php get_sidebar('member');?>
+               </div><!-- .large-3.columns -->
+
+       </div><!-- .row -->
+
+
+    <script id="new-royalslider-init-code" type="text/javascript">
+        jQuery(document).ready(function(jQuery) {
+            jQuery('.new-royalslider-2').royalSlider({template:'default',image_generation:{imageWidth:'',imageHeight:'',thumbImageWidth:'',thumbImageHeight:''},thumbs:{thumbWidth:96,thumbHeight:72},autoPlay:{enabled:!0,delay:5000,stopAtAction:!1},video:{forceMaxVideoCoverResolution:'standard'},width:'100%',height:'200px',autoHeight:!0,slidesSpacing:0,arrowsNav:!1,arrowsNavAutoHide:!1,arrowsNavHideOnTouch:!0,loop:!0,navigateByClick:!1});
+        });
+    </script>
+
+<?php
+
+get_footer();
diff --git a/comments.php b/comments.php
new file mode 100644 (file)
index 0000000..2f91a48
--- /dev/null
@@ -0,0 +1,85 @@
+<?php
+/**
+ * The template for displaying comments.
+ *
+ * This is the template that displays the area of the page that contains both the current comments
+ * and the comment form.
+ *
+ * @link https://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package wmta
+ */
+
+/*
+ * If the current post is protected by a password and
+ * the visitor has not yet entered the password we will
+ * return early without loading the comments.
+ */
+if ( post_password_required() ) {
+       return;
+}
+?>
+
+<div id="comments" class="comments-area">
+
+       <?php
+       // You can start editing here -- including this comment!
+       if ( have_comments() ) : ?>
+               <h2 class="comments-title">
+                       <?php
+                               printf( // WPCS: XSS OK.
+                                       esc_html( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'wmta' ) ),
+                                       number_format_i18n( get_comments_number() ),
+                                       '<span>' . get_the_title() . '</span>'
+                               );
+                       ?>
+               </h2>
+
+               <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
+               <nav id="comment-nav-above" class="navigation comment-navigation" role="navigation">
+                       <h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'wmta' ); ?></h2>
+                       <div class="nav-links">
+
+                               <div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', 'wmta' ) ); ?></div>
+                               <div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'wmta' ) ); ?></div>
+
+                       </div><!-- .nav-links -->
+               </nav><!-- #comment-nav-above -->
+               <?php endif; // Check for comment navigation. ?>
+
+               <ol class="comment-list">
+                       <?php
+                               wp_list_comments( array(
+                                       'style'      => 'ol',
+                                       'short_ping' => true,
+                               ) );
+                       ?>
+               </ol><!-- .comment-list -->
+
+               <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
+               <nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
+                       <h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'wmta' ); ?></h2>
+                       <div class="nav-links">
+
+                               <div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', 'wmta' ) ); ?></div>
+                               <div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'wmta' ) ); ?></div>
+
+                       </div><!-- .nav-links -->
+               </nav><!-- #comment-nav-below -->
+               <?php
+               endif; // Check for comment navigation.
+
+       endif; // Check for have_comments().
+
+
+       // If comments are closed and there are comments, let's leave a little note, shall we?
+       if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
+
+               <p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'wmta' ); ?></p>
+       <?php
+       endif;
+
+       comment_form();
+       ?>
+
+</div><!-- #comments -->
diff --git a/custom-search.js b/custom-search.js
new file mode 100644 (file)
index 0000000..cf50fa8
--- /dev/null
@@ -0,0 +1,3 @@
+/**
+ * Created by jordanpeee on 12/11/15.
+ */
diff --git a/footer.php b/footer.php
new file mode 100644 (file)
index 0000000..6c22214
--- /dev/null
@@ -0,0 +1,168 @@
+<?php
+/**
+ * The template for displaying the footer.
+ *
+ * Contains the closing of the #content div and all content after.
+ *
+ * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
+ *
+ * @package wmta
+ */
+
+?>
+
+       </div><!-- #content -->
+
+       <div class="footer row">
+               <footer id="colophon" class="site-footer" role="contentinfo">
+
+                       <div class="row">
+
+                               <div class="footer-menu-left medium-6 large-3 columns">
+
+                                       <?php wp_nav_menu( array( 'theme_location' => 'footer-left', 'menu_id' => 'footer-left' ) ); ?>
+
+                               </div>
+
+                               <div class="footer-menu-right medium-6 large-3 columns">
+
+                                       <?php wp_nav_menu( array( 'theme_location' => 'footer-right', 'menu_id' => 'footer-right' ) ); ?>
+
+                               </div>
+
+                               <div class="large-1 columns">&nbsp;</div>
+
+                               <div class="footer-signup large-5 columns">
+
+                                       <?php if (! dynamic_sidebar('footer-signup')):endif; ?>
+
+                                       <div class="footer-advert-container">
+                                               <div class="footer-advert">
+
+                                                       <?php // Footer Ad. Global Ads are a widget. Members only Ads are a custom field.
+                                                       if ( is_user_logged_in () && is_page(array(31778,34037,37714,30989))) : ?>
+
+                                                               <?php
+                                                               if(get_field('membersonly_footer_ad')) {
+                                                                       $membersonly_footer_ad = get_field('membersonly_footer_ad');
+                                                                       echo adrotate_group($membersonly_footer_ad);
+                                                               }
+                                                               else {
+                                                                       if (! dynamic_sidebar('footer-ad')):endif;
+                                                               }
+                                                               ?>
+
+                                                       <?php else : ?>
+
+                                                               <?php if (! dynamic_sidebar('footer-ad')):endif; ?>
+
+                                                       <?php endif; ?>
+
+                                               </div>
+                                       </div>
+
+                               </div>
+
+                       </div>
+
+                       <div class="site-info row column">
+
+                               <?php if (! dynamic_sidebar('footer-widget')):endif; ?>
+
+                       </div><!-- .site-info -->
+               </footer><!-- #colophon -->
+       </div>
+
+</div><!-- #page -->
+
+<?php // Search Overlay
+get_template_part('template-parts/search','overlay');
+?>
+
+
+
+<!-- OuiBounce Modal -->
+<div id="ouibounce-modal">
+       <div class="underlay"></div>
+       <div class="modal">
+
+               <div class="modal-body">
+
+                       <?php if (! dynamic_sidebar('signup-popup')):endif; ?>
+
+               </div>
+
+               <div class="modal-footer">
+                       <p>Close</p>
+               </div>
+       </div>
+</div>
+
+
+<?php wp_footer(); ?>
+
+<script>
+
+       jQuery(function($) {
+
+               // Clear Search field on focus
+               $('#tag').focus(function () {
+                       this.value = "";
+               });
+               // Initialize Chosen
+               $('.chosen-select').chosen();
+
+               // Change profile page website link text and open in a new tab/window
+               $(window).bind("load", function () {
+                       $("a.SFbizctcweb[href^='http://']").attr("target","_blank").html('Website');
+               });
+
+
+
+               <?php if (is_front_page()) { ?>
+               // if you want to use the 'fire' or 'disable' fn,
+               // you need to save OuiBounce to an object
+               var _ouibounce = ouibounce(document.getElementById('ouibounce-modal'), {
+                       aggressive: false,
+                       cookieExpire: 30,
+                       cookieDomain:'.wmta.org',
+                       timer: 0,
+                       //callback: function() { console.log('ouibounce fired!'); }
+               });
+
+               <?php } ?>
+
+               $('body').on('click', function() {
+                       $('#ouibounce-modal').hide();
+               });
+
+               $('#ouibounce-modal .modal-footer').on('click', function() {
+                       $('#ouibounce-modal').hide();
+               });
+
+               $('#ouibounce-modal .modal').on('click', function(e) {
+                       e.stopPropagation();
+               });
+
+               $(window).scroll(function() {
+                       if ($(window).scrollTop() > 168) {
+                               $('#scroller').addClass('stuck');
+                               $('.nav_logo').addClass('logo-adjust');
+                       } else {
+                               $('#scroller').removeClass('stuck');
+                               $('.nav_logo').removeClass('logo-adjust');
+                       }
+
+               });
+
+
+
+       });
+
+
+</script>
+
+
+
+</body>
+</html>
diff --git a/front-page.php b/front-page.php
new file mode 100644 (file)
index 0000000..34ceaf4
--- /dev/null
@@ -0,0 +1,73 @@
+<?php
+/* Template Name: Front Page */
+
+get_header(); ?>
+
+
+    <div class="row slider-header-wrap">
+
+        <div class="slider-header column">
+            <?php
+            // Choose random slide number, excluding specific slide ID's
+            //$slideNumber = randWithout();
+            // echo get_new_royalslider($slideNumber);
+
+            //echo get_new_royalslider(1);
+
+            echo adrotate_group(8);
+            ?>
+        </div>
+
+    </div>
+
+    <div class="row home-row">
+
+        <div class="body-content">
+
+            <div id="primary" class="content-area">
+                <main id="main" role="main">
+
+                    <div class="row front-main">
+
+                        <div class="columns">
+
+                        <div class="medium-12 large-6 column front-main-left">
+
+                            <?php the_field('home_section_left'); ?>
+
+                        </div>
+
+                        <div class="medium-12 large-6 column front-main-right">
+
+                            <?php the_field('home_section_right'); ?>
+
+                        </div>
+
+                        </div>
+
+                    </div>
+
+                    <div class="row front-bottom" style="background-image: url(<?php the_field('home_section_bottom_img'); ?>);">
+
+                        <a href="<?php echo get_permalink(30987); ?>" class="front-bottom-img-link"></a>
+
+                        <div class="front-bottom-container">
+
+                            <?php the_field('home_section_bottom'); ?>
+
+                        </div>
+
+
+                    </div>
+
+                </main><!-- #main -->
+            </div><!-- #primary -->
+
+        </div><!-- .body-content -->
+
+    </div>
+
+
+<?php
+
+get_footer();
diff --git a/functions.php b/functions.php
new file mode 100644 (file)
index 0000000..df1682b
--- /dev/null
@@ -0,0 +1,318 @@
+<?php
+/**
+ * wmta functions and definitions.
+ *
+ * @link https://developer.wordpress.org/themes/basics/theme-functions/
+ *
+ * @package wmta
+ */
+
+if ( ! function_exists( 'wmta_setup' ) ) :
+/**
+ * Sets up theme defaults and registers support for various WordPress features.
+ *
+ * Note that this function is hooked into the after_setup_theme hook, which
+ * runs before the init hook. The init hook is too late for some features, such
+ * as indicating support for post thumbnails.
+ */
+function wmta_setup() {
+       /*
+        * Make theme available for translation.
+        * Translations can be filed in the /languages/ directory.
+        * If you're building a theme based on wmta, use a find and replace
+        * to change 'wmta' to the name of your theme in all the template files.
+        */
+       load_theme_textdomain( 'wmta', get_template_directory() . '/languages' );
+
+       // Add default posts and comments RSS feed links to head.
+       add_theme_support( 'automatic-feed-links' );
+
+       /*
+        * Let WordPress manage the document title.
+        * By adding theme support, we declare that this theme does not use a
+        * hard-coded <title> tag in the document head, and expect WordPress to
+        * provide it for us.
+        */
+       add_theme_support( 'title-tag' );
+
+       /*
+        * Enable support for Post Thumbnails on posts and pages.
+        *
+        * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
+        */
+       add_theme_support( 'post-thumbnails' );
+
+       // This theme uses wp_nav_menu() in one location.
+       register_nav_menus( array(
+               'primary' => esc_html__( 'Primary Navigation', 'wmta' ),
+               'top' => esc_html__( 'Top Navigation', 'wmta' ),
+               'footer-left' => esc_html__( 'Footer Left', 'wmta' ),
+               'footer-right' => esc_html__( 'Footer Right', 'wmta' ),
+       ) );
+
+       /*
+        * Switch default core markup for search form, comment form, and comments
+        * to output valid HTML5.
+        */
+       add_theme_support( 'html5', array(
+               'search-form',
+               'comment-form',
+               'comment-list',
+               'gallery',
+               'caption',
+       ) );
+
+       /*
+        * Enable support for Post Formats.
+        * See https://developer.wordpress.org/themes/functionality/post-formats/
+        */
+       /*
+       add_theme_support( 'post-formats', array(
+               'aside',
+               'image',
+               'video',
+               'quote',
+               'link',
+       ) );
+       */
+
+       // Set up the WordPress core custom background feature.
+       /*
+       add_theme_support( 'custom-background', apply_filters( 'wmta_custom_background_args', array(
+               'default-color' => 'ffffff',
+               'default-image' => '',
+       ) ) );
+       */
+}
+endif; // wmta_setup
+add_action( 'after_setup_theme', 'wmta_setup' );
+
+/**
+ * Set the content width in pixels, based on the theme's design and stylesheet.
+ *
+ * Priority 0 to make it available to lower priority callbacks.
+ *
+ * @global int $content_width
+ */
+function wmta_content_width() {
+       $GLOBALS['content_width'] = apply_filters( 'wmta_content_width', 640 );
+}
+add_action( 'after_setup_theme', 'wmta_content_width', 0 );
+
+/**
+ * Register widget area.
+ *
+ * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
+ */
+function wmta_widgets_init() {
+       register_sidebar( array(
+               'name'          => esc_html__( 'Sidebar', 'wmta' ),
+               'id'            => 'sidebar-1',
+               'description'   => '',
+               'before_widget' => '<section id="%1$s" class="widget %2$s">',
+               'after_widget'  => '</section>',
+               'before_title'  => '<h2 class="widget-title">',
+               'after_title'   => '</h2>',
+       ) );
+       register_sidebar( array(
+               'name'          => esc_html__( 'Sidebar Page', 'wmta' ),
+               'id'            => 'sidebar-2',
+               'description'   => '',
+               'before_widget' => '<section id="%1$s" class="widget %2$s">',
+               'after_widget'  => '</section>',
+               'before_title'  => '<h2 class="widget-title">',
+               'after_title'   => '</h2>',
+       ) );
+
+       register_sidebar( array(
+                       'name'          => esc_html__( 'Sidebar Event', 'wmta' ),
+                       'id'            => 'sidebar-3',
+                       'description'   => '',
+                       'before_widget' => '<section id="%1$s" class="widget %2$s event-sidebar">',
+                       'after_widget'  => '</section>',
+                       'before_title'  => '<h2 class="widget-title">',
+                       'after_title'   => '</h2>',
+       ) );
+
+       register_sidebar( array(
+                       'name'          => esc_html__( 'Sidebar Signup', 'wmta' ),
+                       'id'            => 'sidebar-signup',
+                       'description'   => '',
+                       'before_widget' => '<section id="%1$s" class="widget %2$s">',
+                       'after_widget'  => '</section>',
+                       'before_title'  => '<h2 class="widget-title">',
+                       'after_title'   => '</h2>',
+       ) );
+
+       register_sidebar( array(
+                       'name'          => esc_html__( 'Footer Signup', 'wmta' ),
+                       'id'            => 'footer-signup',
+                       'description'   => '',
+                       'before_widget' => '<section id="%1$s" class="widget %2$s">',
+                       'after_widget'  => '</section>',
+                       'before_title'  => '<h2 class="widget-title">',
+                       'after_title'   => '</h2>',
+       ) );
+
+
+       register_sidebar( array(
+                       'name'          => esc_html__( 'Footer Widget', 'wmta' ),
+                       'id'            => 'footer-widget',
+                       'description'   => '',
+                       'before_widget' => '<section id="%1$s" class="widget %2$s">',
+                       'after_widget'  => '</section>',
+                       'before_title'  => '<h2 class="widget-title">',
+                       'after_title'   => '</h2>',
+       ) );
+
+       register_sidebar( array(
+                       'name'          => esc_html__( 'Header Advertising', 'wmta' ),
+                       'id'            => 'header-ad',
+                       'description'   => '',
+                       'before_widget' => '<section id="%1$s" class="widget %2$s">',
+                       'after_widget'  => '</section>',
+                       'before_title'  => '<h2 class="widget-title">',
+                       'after_title'   => '</h2>',
+       ) );
+
+       register_sidebar( array(
+                       'name'          => esc_html__( 'Footer Advertising', 'wmta' ),
+                       'id'            => 'footer-ad',
+                       'description'   => '',
+                       'before_widget' => '<section id="%1$s" class="widget %2$s">',
+                       'after_widget'  => '</section>',
+                       'before_title'  => '<h2 class="widget-title">',
+                       'after_title'   => '</h2>',
+       ) );
+
+       register_sidebar( array(
+                       'name'          => esc_html__( 'Sidebar Top Advertising', 'wmta' ),
+                       'id'            => 'sidebar-top-ad',
+                       'description'   => '',
+                       'before_widget' => '<section id="%1$s" class="widget %2$s advert-wrap">',
+                       'after_widget'  => '</section>',
+                       'before_title'  => '<h2 class="widget-title">',
+                       'after_title'   => '</h2>',
+       ) );
+
+       register_sidebar( array(
+                       'name'          => esc_html__( 'Sidebar Bottom Left Advertising', 'wmta' ),
+                       'id'            => 'sidebar-bottom-ad-left',
+                       'description'   => '',
+                       'before_widget' => '<section id="%1$s" class="widget %2$s">',
+                       'after_widget'  => '</section>',
+                       'before_title'  => '<h2 class="widget-title">',
+                       'after_title'   => '</h2>',
+       ) );
+
+       register_sidebar( array(
+                       'name'          => esc_html__( 'Sidebar Bottom Right Advertising', 'wmta' ),
+                       'id'            => 'sidebar-bottom-ad-right',
+                       'description'   => '',
+                       'before_widget' => '<section id="%1$s" class="widget %2$s">',
+                       'after_widget'  => '</section>',
+                       'before_title'  => '<h2 class="widget-title">',
+                       'after_title'   => '</h2>',
+       ) );
+
+       register_sidebar( array(
+                       'name'          => esc_html__( 'Newsletter Signup Popup', 'wmta' ),
+                       'id'            => 'signup-popup',
+                       'description'   => '',
+                       'before_widget' => '<section id="%1$s" class="widget %2$s">',
+                       'after_widget'  => '</section>',
+                       'before_title'  => '<h2 class="widget-title">',
+                       'after_title'   => '</h2>',
+       ) );
+
+
+}
+add_action( 'widgets_init', 'wmta_widgets_init' );
+
+function foundation_scripts() {
+       wp_enqueue_style( 'foundation-stylesheet', get_stylesheet_directory_uri() . '/assets/stylesheets/foundation.min.css' );
+       wp_enqueue_script( 'foundation-js', get_template_directory_uri() . '/assets/javascript/foundation.min.js', array('jquery'), '6.0', true );
+       wp_enqueue_script( 'modernizr-js', get_template_directory_uri() . '/js/modernizr-custom.js', array('jquery'), '3.2.0', false );
+}
+add_action( 'wp_enqueue_scripts', 'foundation_scripts' );
+
+/**
+ * Enqueue scripts and styles.
+ */
+function wmta_scripts() {
+
+       wp_enqueue_style( 'googlefont-style', 'https://fonts.googleapis.com/css?family=Roboto:400,900italic,900,700italic,700,500italic,500,400italic,300,100italic,100,300italic');
+
+       wp_enqueue_style( 'wmta-style', get_stylesheet_uri() );
+
+       wp_enqueue_style( 'ouibounce-style', get_template_directory_uri() . '/assets/stylesheets/ouibounce.css' );
+       wp_enqueue_script( 'ouibounce-js', get_template_directory_uri() . '/js/ouibounce.js', '', true );
+
+       wp_enqueue_script( 'wmta-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );
+
+       wp_enqueue_script( 'wmta-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
+
+       if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
+               wp_enqueue_script( 'comment-reply' );
+       }
+}
+add_action( 'wp_enqueue_scripts', 'wmta_scripts' );
+
+// add custom fonts to editor
+function custom_jpwebdev_editor_styles() {
+       add_editor_style( 'https://fonts.googleapis.com/css?family=Roboto:400,900italic,900,700italic,700,500italic,500,400italic,300,100italic,100,300italic\')' );
+       add_editor_style( 'assets/stylesheets/custom-editor-style.css' );
+}
+add_action( 'init', 'custom_jpwebdev_editor_styles' );
+
+function overlay_scripts() {
+       wp_enqueue_script( 'classie-js', get_template_directory_uri() . '/js/classie.js', array('jquery'), '1.0', true );
+       wp_enqueue_script( 'overlay-js', get_template_directory_uri() . '/js/overlay.js', array('jquery'), '1.0', true );
+}
+add_action( 'wp_enqueue_scripts', 'overlay_scripts' );
+
+function chosen_scripts() {
+       wp_enqueue_style( 'chosen-css', get_stylesheet_directory_uri() . '/assets/vendor/chosen/chosen.min.css' );
+       wp_enqueue_script( 'chosen-js', get_template_directory_uri() . '/assets/vendor/chosen/chosen.jquery.min.js', array('jquery'), '1.4.2', true );
+}
+add_action( 'wp_enqueue_scripts', 'chosen_scripts' );
+
+function adrotate_custom_slider_settings() {
+       wp_enqueue_script( 'adrotate-js', get_template_directory_uri() . '/assets/javascript/jquery.adrotate.dyngroup-custom.js', array('jquery'), '0.8.1', true );
+}
+add_action( 'wp_enqueue_scripts', 'adrotate_custom_slider_settings' );
+
+/**
+ * Implement the Custom Header feature.
+ */
+require get_template_directory() . '/inc/custom-header.php';
+
+/**
+ * Custom template tags for this theme.
+ */
+require get_template_directory() . '/inc/template-tags.php';
+
+/**
+ * Custom functions that act independently of the theme templates.
+ */
+require get_template_directory() . '/inc/extras.php';
+
+/**
+ * Customizer additions.
+ */
+require get_template_directory() . '/inc/customizer.php';
+
+/**
+ * Load Jetpack compatibility file.
+ */
+require get_template_directory() . '/inc/jetpack.php';
+
+/**
+ * Custom functions for theme. Add custom functions to this file.
+ */
+require get_template_directory() . '/inc/custom.php';
+
+/**
+ * Royal Slider Custom Settings.
+ */
+require get_template_directory() . '/inc/royalslider.php';
\ No newline at end of file
diff --git a/header.php b/header.php
new file mode 100644 (file)
index 0000000..b997bef
--- /dev/null
@@ -0,0 +1,143 @@
+<?php
+/**
+ * The header for our theme.
+ *
+ * This is the template that displays all of the <head> section and everything up until <div id="content">
+ *
+ * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
+ *
+ * @package wmta
+ */
+
+?><!DOCTYPE html>
+<html <?php language_attributes(); ?>>
+<head>
+<meta charset="<?php bloginfo( 'charset' ); ?>">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+
+<?php wp_head(); ?>
+
+       <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
+    <style>
+
+               <?php // Hide View Full Profile button on Author/User page
+               if (is_author()) { echo '
+                       h3.view-full{
+                               display: none;
+                       }
+                       #SFctr nav>a:first-child{
+                               display:none;
+                       }
+                       #SFctr .SF1 nav>a:first-child{
+                       display:none;
+               }
+
+               ';}
+               ?>
+
+               <?php // Hide Header Ad area on home page
+               if (is_front_page()) { echo '
+                       #header-advert {
+                       display: none;
+                       }
+               ';
+               } ?>
+               
+               <?php // Adjust checkboxes spacing
+               if (is_page('16')) { echo '
+                       #field_6_10 .gfield_label,
+                       #field_6_14 .gfield_label{
+                               display:none;
+                       }
+
+                       /*#input_6_18 li{
+                               width:23% !important;
+                               margin-right:15px !important;
+                               height: 40px;
+                               display: inline-block;
+                       }*/
+               ';
+               } ?>
+
+        <?php
+
+            if (is_single() && 'post' == get_post_type() || is_author() ){
+                echo '
+                
+                hero-header {
+                    height: 215px;
+                }
+                
+             
+                
+                @media only screen and (min-width: 64.0625em)
+                {
+                    .hero-header {
+                        height: 415px;
+                        }
+                }';
+
+            }
+
+
+        ?>
+
+        
+
+               
+
+    </style>
+
+
+
+</head>
+
+<body <?php body_class(); ?>>
+<div id="page" class="site">
+
+       <div id="header-advert">
+
+               <?php // Header Ad. Global Ads are a widget. Members only Ads are a custom field.
+               if ( is_user_logged_in () && is_page(array(31778,34037,37714,30989))) : ?>
+
+                       <?php
+                       if(get_field('membersonly_header_ad')) {
+                               $membersonly_header_ad = get_field('membersonly_header_ad');
+                               echo adrotate_group($membersonly_header_ad);
+                       }
+                       else {
+                               if (! dynamic_sidebar('header-ad')):endif;
+                       }
+                       ?>
+
+               <?php else : ?>
+
+                       <?php if (! dynamic_sidebar('header-ad')):endif; ?>
+
+               <?php endif; ?>
+
+       </div>
+
+       <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'wmta' ); ?></a>
+
+       <header id="masthead" class="site-header row" role="banner">
+
+               <div class="header-top row">
+
+                       <?php get_template_part('template-parts/top','nav'); ?>
+
+               </div>
+
+               <div id="scroller">
+
+                       <div class="row column main-nav-wrap">
+
+                               <?php get_template_part('template-parts/main','nav'); ?>
+
+                       </div>
+
+               </div>
+
+       </header><!-- #masthead -->
+
+       <div id="content" class="site-content">
diff --git a/img/cross.png b/img/cross.png
new file mode 100644 (file)
index 0000000..03ffb1f
Binary files /dev/null and b/img/cross.png differ
diff --git a/img/favicon.ico b/img/favicon.ico
new file mode 100644 (file)
index 0000000..63a7f39
Binary files /dev/null and b/img/favicon.ico differ
diff --git a/img/favicon.png b/img/favicon.png
new file mode 100644 (file)
index 0000000..592135d
Binary files /dev/null and b/img/favicon.png differ
diff --git a/img/favicon512.png b/img/favicon512.png
new file mode 100644 (file)
index 0000000..3433577
Binary files /dev/null and b/img/favicon512.png differ
diff --git a/img/hero-default.jpg b/img/hero-default.jpg
new file mode 100644 (file)
index 0000000..a8ab82a
Binary files /dev/null and b/img/hero-default.jpg differ
diff --git a/img/hero-events.jpg b/img/hero-events.jpg
new file mode 100644 (file)
index 0000000..aa79f25
Binary files /dev/null and b/img/hero-events.jpg differ
diff --git a/img/hero-news.jpg b/img/hero-news.jpg
new file mode 100644 (file)
index 0000000..fa9453a
Binary files /dev/null and b/img/hero-news.jpg differ
diff --git a/inc/custom-header.php b/inc/custom-header.php
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/inc/custom.php b/inc/custom.php
new file mode 100644 (file)
index 0000000..9b6e086
--- /dev/null
@@ -0,0 +1,687 @@
+<?php
+/**
+ * wmta Custom Theme Functions.
+ *
+ * @package wmta
+ */
+
+/**
+ * Add any custom fuctions to this file
+ *
+ */
+
+// Create shortcode for year displayed in footer. Use in Customize->Footer Settings->Edit the footer content e.g. [year]
+function footerYear() {
+       $date = date('Y');
+       return '<span>'.$date.'</span>' ;
+}
+add_shortcode('year', 'footerYear');
+
+
+add_action( 'admin_init', 'hide_editor' );
+function hide_editor() {
+       // Get the Post ID.
+       $post_id = $_GET['post'] ? $_GET['post'] : $_POST['post_ID'] ;
+       if( !isset( $post_id ) ) return;
+       // Hide the editor on the page titled 'Homepage'
+       $homepgname = get_the_title($post_id);
+       if($homepgname == 'Homepage'){
+               remove_post_type_support('page', 'editor');
+       }
+       // Hide the editor on a page with a specific page template
+       // Get the name of the Page Template file.
+       $template_file = get_post_meta($post_id, '_wp_page_template', true);
+       if($template_file == 'front-page.php'){ // the filename of the page template
+               remove_post_type_support('page', 'editor');
+       }
+}
+
+// Choose random slide number, excluding specific slide ID's
+function randWithout() {
+       do {
+               $n = rand(1,3);
+       }
+       while(in_array($n, array(2)));
+       return $n;
+}
+
+
+
+// Clean up the_excerpt()
+
+function excerpt_more() {
+       return ' &hellip; <a href="' . get_permalink() . '">' . __('Read More &#9658;', 'sage') . '</a>';
+}
+add_filter('excerpt_more', __NAMESPACE__ . '\\excerpt_more');
+
+function custom_excerpt_length( $length ) {
+       return 30;
+}
+add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
+
+
+
+// Change admin side menu, Posts --> News
+
+function change_post_menu_label() {
+       global $menu;
+       global $submenu;
+       $menu[5][0] = 'News';
+       $submenu['edit.php'][5][0] = 'News';
+       $submenu['edit.php'][10][0] = 'Add News';
+       $submenu['edit.php'][16][0] = 'News Tags';
+       echo '';
+}
+function change_post_object_label() {
+       global $wp_post_types;
+       $labels = &$wp_post_types['post']->labels;
+       $labels->name = 'News';
+       $labels->singular_name = 'News Item';
+       $labels->add_new = 'Add News Item';
+       $labels->add_new_item = 'Add News Item';
+       $labels->edit_item = 'Edit News';
+       $labels->new_item = 'News';
+       $labels->view_item = 'View News';
+       $labels->search_items = 'Search News';
+       $labels->not_found = 'No News found';
+       $labels->not_found_in_trash = 'No News found in Trash';
+}
+add_action( 'init', 'change_post_object_label' );
+add_action( 'admin_menu', 'change_post_menu_label' );
+
+
+
+
+
+// Filters blank search query so results are not found instead of going to the home page
+function SearchFilter($query) {
+       // If 's' request variable is set but empty
+       if (isset($_GET['s']) && empty($_GET['s']) && $query->is_main_query()){
+               $query->is_search = true;
+               $query->is_home = false;
+       }
+       return $query;
+}
+add_filter('pre_get_posts','SearchFilter');
+
+// Exclude pages from search queries
+function exclude_pages_search_when_logged_in($query) {
+       if ( $query->is_search )
+               $query->set( 'post__not_in', array( 22,24,26,28 ) );
+
+       return $query;
+}
+add_filter( 'pre_get_posts', 'exclude_pages_search_when_logged_in' );
+
+/*
+function change_wp_search_size($query) {
+       if ( $query->is_search ) // Make sure it is a search page
+               $query->query_vars['posts_per_page'] = -1; // Change 10 to the number of posts you would like to show
+
+       return $query; // Return our modified query variables
+}
+add_filter('pre_get_posts', 'change_wp_search_size'); // Hook our custom function onto the request filter
+*/
+
+
+function display_memberfindme_directory() {
+       // Show MemberFindMe shortcode from Directory page
+       $my_postid = 30722;//This is page id or post id
+       $content_post = get_post($my_postid);
+       $content = $content_post->post_content;
+       $content = apply_filters('the_content', $content);
+       $content = str_replace(']]>', ']]&gt;', $content);
+       echo $content;
+}
+
+// Custom User Profile settings - Hide bunch of stuff
+function hide_personal_options(){
+
+       if (!current_user_can('manage_options')) {
+               echo "\n" . '<script type="text/javascript">
+       jQuery(document).ready(function($) {
+               $(\'form#your-profile > h2:nth-of-type(1)\').hide();
+               $(\'form#your-profile > table:nth-of-type(1)\').hide();
+               $(\'form#your-profile > h2:nth-of-type(2)\').hide();
+               $(\'form#your-profile > table:nth-of-type(2)\').hide();
+               $(\'form#your-profile > h2:nth-of-type(3)\').hide();
+               $(\'form#your-profile > table:nth-of-type(3)\').hide();
+               $(\'form#your-profile > h2:nth-of-type(4)\').hide();
+               $(\'form#your-profile > table:nth-of-type(4)\').hide();
+               $(\'form#your-profile > h2:nth-of-type(5)\').hide();
+               $(\'form#your-profile > table:nth-of-type(5)\').hide();
+               $(\'form#your-profile > h2:nth-of-type(6)\').hide();
+               $(\'form#your-profile > table:nth-of-type(6)\').hide();
+               $(\'form#your-profile > h3:nth-of-type(1)\').hide();
+
+               //$(\'form#your-profile > table:nth-of-type(6) tr:nth-of-type(2)\').hide();
+
+               $(\'form#your-profile\').show();
+
+               // hides extra buttons from reports/exports plugin
+               $(\'.actions .button:nth-of-type(2)\').hide();
+               $(\'.actions .button:nth-of-type(3)\').hide();
+               $(\'.actions .button:nth-of-type(4)\').hide();
+       });
+       </script>' . "\n";
+       }
+}
+add_action('admin_head','hide_personal_options');
+
+
+function modify_contact_methods($profile_fields) {
+       // Remove Social Media fields added by Yoast SEO
+       unset($profile_fields['facebook']);
+       unset($profile_fields['twitter']);
+       unset($profile_fields['googleplus']);
+
+       unset($profile_fields['first_name']);
+
+       return $profile_fields;
+}
+add_filter('user_contactmethods', 'modify_contact_methods');
+
+add_action( 'show_user_profile', 'my_show_extra_profile_fields' );
+add_action( 'edit_user_profile', 'my_show_extra_profile_fields' );
+
+
+
+
+function my_show_extra_profile_fields( $user ) {
+
+       ?>
+
+       <table class="form-table">
+
+               <tr>
+                       <th>
+                               <input class="button" type="button" onclick="location.href='<?php echo esc_url( home_url( '/sign-in/' ) ); ?>';" value="Return to Editing Your Profile" />
+                       </th>
+               </tr>
+
+       </table>
+
+       <!-- Additional Add Events button
+       <table class="form-table">
+
+               <tr>
+                       <th>
+                               <h3>Post an Event</h3>
+                               <input class="button" type="button" onclick="location.href='<?php// echo esc_url( home_url( '/events/add-an-event/' ) ); ?>';" value="Post an Event" />
+                       </th>
+               </tr>
+
+       </table>
+       -->
+
+
+
+       <table class="form-table">
+
+               <tr>
+                       <th>
+                               <input class="button" type="button" onclick="location.href='<?php echo esc_url( home_url( '/about-wmta/submit-a-special/' ) ); ?>';" value="Submit Special or Package to WMTA" />
+                       </th>
+               </tr>
+
+       </table>
+
+       <table class="form-table">
+
+               <tr>
+                       <th>
+                               <h4>Your Member URL</h4>
+                               <p><?php global $current_user; get_currentuserinfo();echo get_author_posts_url( $current_user->ID ).'#!biz/id/'.$current_user->user_login; ?></p>
+
+                               <p><input class="button goToURL" type="button" value="View Profile" /></p>
+                       </th>
+               </tr>
+
+       </table>
+
+       <script  type="text/javascript">
+               jQuery(".goToURL").on("click",function(){
+                       window.open('<?php global $current_user; get_currentuserinfo();echo get_author_posts_url( $current_user->ID ).'#!biz/id/'.$current_user->user_login; ?>','_blank');
+               });
+               jQuery(window).bind("load", function() {
+                       jQuery('h1').html('Members, Add Your Events & Header Image Here');
+               });
+       </script>
+
+
+
+
+<?php }
+
+// Exclude categories from categories widget
+function exclude_widget_categories($args){
+       $exclude = "665,1"; // The IDs of the excluding categories
+       $args["exclude"] = $exclude;
+       return $args;
+}
+add_filter("widget_categories_args","exclude_widget_categories");
+
+
+
+/**
+ * add some conditional output conditions for Events Manager
+ * @param string $replacement
+ * @param string $condition
+ * @param string $match
+ * @param object $EM_Event
+ * @return string
+ */
+function filterEventOutputCondition($replacement, $condition, $match, $EM_Event){
+       if (is_object($EM_Event)) {
+
+               switch ($condition) {
+
+                       // #_ATT{Event Cost}
+                       case 'has_att_cost':
+                               if (is_array($EM_Event->event_attributes) && !empty($EM_Event->event_attributes['Event Cost']))
+                                       $replacement = preg_replace('/\{\/?has_att_cost\}/', '', $match);
+                               else
+                                       $replacement = '';
+                               break;
+
+               }
+
+       }
+
+       return $replacement;
+}
+
+add_filter('em_event_output_condition', 'filterEventOutputCondition', 10, 4);
+
+
+// Add custom column to users admin columns
+function new_modify_user_table_displayname( $column ) {
+       $column['display_name'] = 'Display Name';
+       return $column;
+}
+add_filter( 'manage_users_columns', 'new_modify_user_table_displayname' );
+
+function new_modify_user_table_row_displayname( $val, $column_name, $user_id ) {
+       $user = get_userdata( $user_id );
+       switch ($column_name) {
+               case 'display_name' :
+                       return get_the_author_meta( 'display_name', $user_id );
+                       break;
+               default:
+       }
+       return $return;
+}
+add_filter( 'manage_users_custom_column', 'new_modify_user_table_row_displayname', 10, 3 );
+
+
+
+
+//Sets the user's display name (always) to first name last name, when it's avail.
+add_action ('admin_head','make_display_name_f_name_last_name');
+function make_display_name_f_name_last_name(){
+
+//     $users = get_users(array('fields'=>'all'));
+//
+//     foreach($users as $user){
+//             $user = get_userdata($user->ID);
+//
+//             $display_name = $user->nickname;
+//
+//             if($display_name!=' ') wp_update_user( array ('ID' => $user->ID, 'display_name' => $display_name) );
+//             else wp_update_user( array ('ID' => $user->ID, 'display_name' => $user->display_login) );
+//
+//             if($user->display_name == '')
+//                     wp_update_user( array ('ID' => $user->ID, 'display_name' => $user->display_login) );
+//     }
+}
+
+////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+
+// ADDS A COUNT OF ALL POST TYPES TO THE "AT A GLANCE" ADMIN DASHBOARD WIDGET
+
+////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+add_action( 'dashboard_glance_items', 'cpad_at_glance_content_table_end' );
+function cpad_at_glance_content_table_end()
+{
+       $args = array(
+               //'public' => true,
+                       '_builtin' => false
+       );
+       $output = 'object';
+       $operator = 'and';
+
+       $post_types = get_post_types($args, $output, $operator);
+       foreach ($post_types as $post_type) {
+               $num_posts = wp_count_posts($post_type->name);
+               $num = number_format_i18n($num_posts->publish);
+               $text = _n($post_type->labels->singular_name, $post_type->labels->name, intval($num_posts->publish));
+               if (current_user_can('edit_posts')) {
+                       $output = '<a href="edit.php?post_type=' . $post_type->name . '">' . $num . ' ' . $text . '</a>';
+                       echo '<li class="post-count ' . $post_type->name . '-count">' . $output . '</li>';
+               } else {
+                       $output = '<span>' . $num . ' ' . $text . '</span>';
+                       echo '<li class="post-count ' . $post_type->name . '-count">' . $output . '</li>';
+               }
+       }
+}
+
+//Users Can only see their own media library files
+add_filter( 'ajax_query_attachments_args', 'show_current_user_attachments', 10, 1 );
+function show_current_user_attachments( $query = array() ) {
+       $user_id = get_current_user_id();
+       if( $user_id ) {
+               $query['author'] = $user_id;
+       }
+       return $query;
+}
+
+
+//Users Can only see their own event posts
+add_action( 'pre_get_posts', 'filter_cpt_listing' );
+
+function filter_cpt_listing( $wp_query_obj )
+{
+       // Front end, do nothing
+       if( !is_admin() )
+               return;
+
+       global $current_user, $pagenow;
+       get_currentuserinfo();
+
+       // http://php.net/manual/en/function.is-a.php
+       if( !is_a( $current_user, 'WP_User') )
+               return;
+
+       // Not the correct screen, bail out
+       if( 'edit.php' != $pagenow )
+               return;
+
+       // Not the correct post type, bail out
+       if( 'event' != $wp_query_obj->query['post_type'] )
+               return;
+
+
+       // If the user is not administrator, filter the post listing
+       if( !current_user_can( 'delete_plugins' ) )
+               $wp_query_obj->set('author', $current_user->ID );
+}
+
+
+//Users Can only see their own recurring event posts
+add_action( 'pre_get_posts', 'filter_cpt_listing_er' );
+function filter_cpt_listing_er( $wp_query_obj )
+{
+       // Front end, do nothing
+       if( !is_admin() )
+               return;
+
+       global $current_user, $pagenow;
+       get_currentuserinfo();
+
+       // http://php.net/manual/en/function.is-a.php
+       if( !is_a( $current_user, 'WP_User') )
+               return;
+
+       // Not the correct screen, bail out
+       if( 'edit.php' != $pagenow )
+               return;
+
+       // Not the correct post type, bail out
+       if( 'event-recurring' != $wp_query_obj->query['post_type'] )
+               return;
+
+
+       // If the user is not administrator, filter the post listing
+       if( !current_user_can( 'delete_plugins' ) )
+               $wp_query_obj->set('author', $current_user->ID );
+}
+
+
+// Disable support for comments and trackbacks in post types
+function df_disable_comments_post_types_support() {
+       $post_types = get_post_types();
+       foreach ($post_types as $post_type) {
+               if(post_type_supports($post_type, 'comments')) {
+                       remove_post_type_support($post_type, 'comments');
+                       remove_post_type_support($post_type, 'trackbacks');
+               }
+       }
+}
+add_action('admin_init', 'df_disable_comments_post_types_support');
+
+// Close comments on the front-end
+function df_disable_comments_status() {
+       return false;
+}
+add_filter('comments_open', 'df_disable_comments_status', 20, 2);
+add_filter('pings_open', 'df_disable_comments_status', 20, 2);
+
+// Hide existing comments
+function df_disable_comments_hide_existing_comments($comments) {
+       $comments = array();
+       return $comments;
+}
+add_filter('comments_array', 'df_disable_comments_hide_existing_comments', 10, 2);
+
+// Remove comments page in menu
+function df_disable_comments_admin_menu() {
+       remove_menu_page('edit-comments.php');
+}
+add_action('admin_menu', 'df_disable_comments_admin_menu');
+
+// Redirect any user trying to access comments page
+function df_disable_comments_admin_menu_redirect() {
+       global $pagenow;
+       if ($pagenow === 'edit-comments.php') {
+               wp_redirect(admin_url()); exit;
+       }
+}
+add_action('admin_init', 'df_disable_comments_admin_menu_redirect');
+
+// Remove comments metabox from dashboard
+function df_disable_comments_dashboard() {
+       remove_meta_box('dashboard_recent_comments', 'dashboard', 'normal');
+}
+add_action('admin_init', 'df_disable_comments_dashboard');
+
+// Remove comments links from admin bar
+function df_disable_comments_admin_bar() {
+       if (is_admin_bar_showing()) {
+               remove_action('admin_bar_menu', 'wp_admin_bar_comments_menu', 60);
+       }
+}
+add_action('init', 'df_disable_comments_admin_bar');
+
+
+
+/**
+ * Gravity Wiz // Gravity Forms // Map Submitted Field Values to Another Field
+ *
+ * Preview your Gravity forms on the frontend of your website. Adds a "Live Preview" link to the Gravity Forms toolbar.
+ *
+ * Usage
+ *
+ * 1 - Enable "Allow field to be populated dynamically" option on field which should be populated.
+ * 2 - In the "Parameter Name" input, enter the merge tag (or merge tags) of the field whose value whould be populated into this field.
+ *
+ * Basic Fields
+ *
+ * To map a single input field (and most other non-multi-choice fields) enter: {Field Label:1}. It is useful to note that
+ * you do not actually need the field label portion of any merge tag. {:1} would work as well. Change the "1" to the ID of your field.
+ *
+ * Multi-input Fields (i.e. Name, Address, etc)
+ *
+ * To map the first and last name of a Name field to a single field, follow the steps above and enter {First Name:1.3} {Last Name:1.6}.
+ * In this example it is assumed that the name field ID is "1". The input IDs for the first and last name of this field will always be "3" and "6".
+ *
+ * # Uses
+ *
+ *  - use merge tags as post tags
+ *  - aggregate list of checked checkboxes
+ *  - map multiple conditional fields to a single field so you can refer to the single field for the selected value
+ *
+ * @version      1.1
+ * @author    David Smith <david@gravitywiz.com>
+ * @license   GPL-2.0+
+ * @link      http://gravitywiz.com/...
+ * @copyright 2014 Gravity Wiz
+ */
+class GWMapFieldToField {
+       public $lead = null;
+       function __construct( ) {
+               add_filter( 'gform_pre_validation', array( $this, 'map_field_to_field' ), 11 );
+       }
+       function map_field_to_field( $form ) {
+               foreach( $form['fields'] as $field ) {
+                       if( is_array( $field['inputs'] ) ) {
+                               $inputs = $field['inputs'];
+                       } else {
+                               $inputs = array(
+                                               array(
+                                                               'id' => $field['id'],
+                                                               'name' => $field['inputName']
+                                               )
+                               );
+                       }
+                       foreach( $inputs as $input ) {
+                               $value = rgar( $input, 'name' );
+                               if( ! $value )
+                                       continue;
+                               $post_key = 'input_' . str_replace( '.', '_', $input['id'] );
+                               $current_value = rgpost( $post_key );
+                               preg_match_all( '/{[^{]*?:(\d+(\.\d+)?)(:(.*?))?}/mi', $input['name'], $matches, PREG_SET_ORDER );
+                               // if there is no merge tag in inputName - OR - if there is already a value populated for this field, don't overwrite
+                               if( empty( $matches ) )
+                                       continue;
+                               $entry = $this->get_lead( $form );
+                               foreach( $matches as $match ) {
+                                       list( $tag, $field_id, $input_id, $filters, $filter ) = array_pad( $match, 5, 0 );
+                                       $force = $filter === 'force';
+                                       $tag_field = RGFormsModel::get_field( $form, $field_id );
+                                       // only process replacement if there is no value OR if force filter is provided
+                                       $process_replacement = ! $current_value || $force;
+                                       if( $process_replacement && ! RGFormsModel::is_field_hidden( $form, $tag_field, array() ) ) {
+                                               $field_value = GFCommon::replace_variables( $tag, $form, $entry );
+                                               if( is_array( $field_value ) ) {
+                                                       $field_value = implode( ',', array_filter( $field_value ) );
+                                               }
+                                       } else {
+                                               $field_value = '';
+                                       }
+                                       $value = trim( str_replace( $match[0], $field_value, $value ) );
+                               }
+                               if( $value ) {
+                                       $_POST[$post_key] = $value;
+                               }
+                       }
+               }
+               return $form;
+       }
+       function get_lead( $form ) {
+               if( ! $this->lead )
+                       $this->lead = GFFormsModel::create_lead( $form );
+               return $this->lead;
+       }
+}
+new GWMapFieldToField();
+
+// Remove Metaboxes - Excerpt & Yoast SEO
+function remove_events_metaboxes() {
+    remove_meta_box( 'postexcerpt' , 'event' , 'normal' );
+    remove_meta_box( 'wpseo_meta' , 'event' , 'normal' );
+}
+add_action( 'admin_menu' , 'remove_events_metaboxes' );
+
+
+// Filter to change the order of taxonomy terms in GF request form
+function custom_lead_member_cat_order($args) {
+    $args = gf_apply_filters( 'gfcpt_taxonomy_args', array( $field->formId, $field->id ), array(
+        'taxonomy'      => $taxonomy,
+        'orderby'       => 'term_group',
+        'hierarchical'  => 1,
+        'hide_empty'    => 0
+    ), $field );
+
+    return $args;
+}
+add_filter('load_taxonomy_hierarchical', 'custom_lead_member_cat_order');
+
+
+// Make Details field required for public event form (Events Manager plugin)
+function em_validate($result, $EM_Event){
+ if (!is_user_logged_in() && $_REQUEST['content'] == ''){
+  $EM_Event->add_error('Event Details');
+  $result = false;
+ }
+ return $result;
+}
+add_filter('em_event_validate','em_validate', 1, 2);
+
+// Make Search results ordered by post date
+function results_by_date( $query ) {
+       // not an admin page and is the main query
+       if ( !is_admin() && $query->is_main_query() ) {
+               if ( is_search() ) {
+                       $query->set( 'orderby', 'date' );
+               }
+       }
+}
+add_action( 'pre_get_posts', 'results_by_date' );
+
+
+/**
+ * Fix Gravity Form Tabindex Conflicts
+ * http://gravitywiz.com/fix-gravity-form-tabindex-conflicts/
+ */
+add_filter( 'gform_tabindex', 'gform_tabindexer', 10, 2 );
+function gform_tabindexer( $tab_index, $form = false ) {
+       $starting_index = 1000; // if you need a higher tabindex, update this number
+       if( $form )
+               add_filter( 'gform_tabindex_' . $form['id'], 'gform_tabindexer' );
+       return GFCommon::$tab_index >= $starting_index ? GFCommon::$tab_index : $starting_index;
+}
+
+
+////////////////////////////////////////////////////////////////////////////
+// Cities for Custom Search Overlay - Select dropdown
+////////////////////////////////////////////////////////////////////////////
+
+
+function select_dropdown_cities() {
+
+       global $post;
+
+       $args = array(
+
+                       'post_type' => 'search-city',
+                       'posts_per_page' => -1,
+                       'order'    => 'ASC',
+                       'orderby' => 'name'
+       );
+       $loop = new WP_Query( $args );
+       echo '<select id="xlo" class="chosen-select" data-placeholder="Select a location"><option value="">Search All Locations</option>';
+       if ($loop->have_posts())
+       {
+               while ( $loop->have_posts() ) : $loop->the_post();
+
+                       echo '<option value="',the_title(),'">',the_title(),'</option>';
+
+               endwhile;
+       }
+
+       echo '</select>';
+}
+wp_reset_postdata();
+
+
+add_filter('admin_footer_text', remove_admin_footer_text, 1000);
+
+function remove_admin_footer_text($footer_text =''){
+       return '';
+}
+
+add_filter('update_footer', remove_admin_footer_upgrade, 1000);
+
+function remove_admin_footer_upgrade($footer_text =''){
+       return '';
+}
diff --git a/inc/customizer.php b/inc/customizer.php
new file mode 100644 (file)
index 0000000..f1b9a14
--- /dev/null
@@ -0,0 +1,107 @@
+<?php
+/**
+ * wmta Theme Customizer.
+ *
+ * @package wmta
+ */
+
+/**
+ * Add postMessage support for site title and description for the Theme Customizer.
+ *
+ * @param WP_Customize_Manager $wp_customize Theme Customizer object.
+ */
+function wmta_customize_register( $wp_customize ) {
+       $wp_customize->get_setting( 'blogname' )->transport         = 'postMessage';
+       $wp_customize->get_setting( 'blogdescription' )->transport  = 'postMessage';
+       $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
+}
+add_action( 'customize_register', 'wmta_customize_register' );
+
+/**
+ * Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
+ */
+function wmta_customize_preview_js() {
+       wp_enqueue_script( 'wmta_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20130508', true );
+}
+add_action( 'customize_preview_init', 'wmta_customize_preview_js' );
+
+
+
+
+function header_settings( $wp_customize ) {
+
+       // Add Menu item
+       $wp_customize->add_section(
+                       'header_edit_settings',
+                       array(
+                                       'title' => 'Header Settings',
+                                       'description' => 'Add Social Media links',
+                                       'priority' => 400,
+                       )
+       );
+
+
+       // Add Settings
+       $wp_customize->add_setting(
+                       'facebook-url',
+                       array(
+                                       'default' => 'http://facebook.com',
+                       )
+       );
+
+       $wp_customize->add_setting(
+                       'twitter-url',
+                       array(
+                                       'default' => 'http://twitter.com',
+                       )
+       );
+
+       $wp_customize->add_setting(
+                       'pinterest-url',
+                       array(
+                                       'default' => 'http://pinterest.com',
+                       )
+       );
+
+       $wp_customize->add_setting(
+                       'instagram-url',
+                       array(
+                                       'default' => 'http://instagram.com',
+                       )
+       );
+
+       // Add Controls
+       $wp_customize->add_control(
+                       'facebook-url',
+                       array(
+                                       'label' => 'Facebook URL',
+                                       'section' => 'header_edit_settings',
+                                       'type' => 'text',
+                       )
+       );
+       $wp_customize->add_control(
+                       'twitter-url',
+                       array(
+                                       'label' => 'Twitter URL',
+                                       'section' => 'header_edit_settings',
+                                       'type' => 'text',
+                       )
+       );
+       $wp_customize->add_control(
+                       'pinterest-url',
+                       array(
+                                       'label' => 'Pinterest URL',
+                                       'section' => 'header_edit_settings',
+                                       'type' => 'text',
+                       )
+       );
+       $wp_customize->add_control(
+                       'instagram-url',
+                       array(
+                                       'label' => 'Instagram URL',
+                                       'section' => 'header_edit_settings',
+                                       'type' => 'text',
+                       )
+       );
+}
+add_action( 'customize_register', 'header_settings' );
diff --git a/inc/directory-for-search.php b/inc/directory-for-search.php
new file mode 100644 (file)
index 0000000..aa45019
--- /dev/null
@@ -0,0 +1,8 @@
+<?php
+// Show MemberFindMe shortcode from Directory page
+$my_postid = 30722;//This is page id or post id
+$content_post = get_post($my_postid);
+$content = $content_post->post_content;
+$content = apply_filters('the_content', $content);
+$content = str_replace(']]>', ']]&gt;', $content);
+echo $content;
\ No newline at end of file
diff --git a/inc/extras.php b/inc/extras.php
new file mode 100644 (file)
index 0000000..dadfa32
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+/**
+ * Custom functions that act independently of the theme templates.
+ *
+ * Eventually, some of the functionality here could be replaced by core features.
+ *
+ * @package wmta
+ */
+
+/**
+ * Adds custom classes to the array of body classes.
+ *
+ * @param array $classes Classes for the body element.
+ * @return array
+ */
+function wmta_body_classes( $classes ) {
+       // Adds a class of group-blog to blogs with more than 1 published author.
+       if ( is_multi_author() ) {
+               $classes[] = 'group-blog';
+       }
+
+       // Adds a class of hfeed to non-singular pages.
+       if ( ! is_singular() ) {
+               $classes[] = 'hfeed';
+       }
+
+       return $classes;
+}
+add_filter( 'body_class', 'wmta_body_classes' );
diff --git a/inc/hero-header-event.php b/inc/hero-header-event.php
new file mode 100644 (file)
index 0000000..4f4623f
--- /dev/null
@@ -0,0 +1,20 @@
+<div class="row">
+
+       <!-- background-image way
+       <div class="hero-header"<?php
+               /*$image = wp_get_attachment_image_src( get_post_thumbnail_id( '31026' ), 'single-post-thumbnail' );
+               echo ' style="background-image: url('.$image[0].')"' ;
+        */?>>
+
+       </div>
+       -->
+
+       <div class="hero-header">
+               <?php
+               $image = wp_get_attachment_image_src( get_post_thumbnail_id( 31026 ), 'single-post-thumbnail' );
+                       echo '<img src="'.$image[0].'" alt="" >' ;
+                ?>
+
+       </div>
+
+</div>
diff --git a/inc/hero-header-news-single.php b/inc/hero-header-news-single.php
new file mode 100644 (file)
index 0000000..48cc1dd
--- /dev/null
@@ -0,0 +1,29 @@
+<div class="row">
+
+       <!-- background-image way -->
+       <div class="hero-header"<?php
+       if (has_post_thumbnail( $post->ID ) ) {
+               $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
+               echo ' style="background-image: url('.$image[0].');"' ;
+       } else {
+               echo ' style="background-image: url('.get_stylesheet_directory_uri().'/img/hero-news.jpg);margin:0;"';
+
+       } ?>>
+
+       </div>
+
+
+       <!-- img src way
+       <div class="hero-header">
+               <?php /*
+               if (has_post_thumbnail( $post->ID ) ) {
+                       $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
+                       echo '<img src="'.$image[0].'" alt="" >' ;
+               } else {
+                       echo '<img src="'.esc_url(get_template_directory_uri()).'/img/hero-news.jpg)" alt="" >' ;
+               } */?>
+
+       </div>
+       -->
+
+</div>
diff --git a/inc/hero-header-news.php b/inc/hero-header-news.php
new file mode 100644 (file)
index 0000000..51f73f8
--- /dev/null
@@ -0,0 +1,31 @@
+<div class="row">
+
+       <!-- background-image way
+       <div class="hero-header"<?php
+       /*
+               if (has_post_thumbnail( 34 ) ) {
+                       $image = wp_get_attachment_image_src( get_post_thumbnail_id( 34 ), 'single-post-thumbnail' );
+                       echo ' style="background-image: url('.$image[0].')"' ;
+               } else {
+                       echo ' style="background-image: url('.esc_url(get_template_directory_uri()).'/img/hero-default.jpg);"';
+               }*/
+               ?>>
+
+               </div> -->
+
+
+               <!-- img src way-->
+               <div class="hero-header">
+                       <?php
+                       if (has_post_thumbnail(34) ) {
+                               $image = wp_get_attachment_image_src( get_post_thumbnail_id(34), 'single-post-thumbnail' );
+                               echo '<img src="'.$image[0].'" alt="" >' ;
+                       } else {
+                               echo '<img src="'.esc_url(get_template_directory_uri()).'/img/hero-default.jpg)" alt="" >' ;
+                       }
+                        ?>
+
+       </div>
+
+
+</div>
diff --git a/inc/hero-header-search.php b/inc/hero-header-search.php
new file mode 100644 (file)
index 0000000..be150f8
--- /dev/null
@@ -0,0 +1,16 @@
+<div class="row">
+       <?php //array of page ids with hero images - ids are randomized below
+       $hero = Array(22,30845,30863,30865,30867,30869,30863,30865,30867,30869,30871,30873,30875,30877,30879,30881,30883,30885,30887,30889,30892,30894,30896,30898,30901,30904,30906,30908,30911,24,30832,30901,30834,30836,30838,30840,30842,26,30817,30820,30824,30826,30830,28,30800,30802,30804);
+       ?>
+
+       <div class="hero-header">
+               <?php
+               $random = $hero[array_rand($hero)];
+               if (has_post_thumbnail( $random ) ) {
+                       $image = wp_get_attachment_image_src( get_post_thumbnail_id( $random ), 'single-post-thumbnail' );
+                       echo '<img src="'.$image[0].'" alt="" >' ;
+               }
+               ?>
+       </div>
+
+</div>
diff --git a/inc/hero-header.php b/inc/hero-header.php
new file mode 100644 (file)
index 0000000..32a1656
--- /dev/null
@@ -0,0 +1,27 @@
+<div class="row">
+
+       <!--
+       <div class="hero-header"<?php
+       //if (has_post_thumbnail( $post->ID ) ) {
+       //      $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
+       //      echo ' style="background-image: url('.$image[0].')"' ;
+       //} else {
+       //      echo ' style="background-image: url('.esc_url(get_template_directory_uri()).'/img/hero-default.jpg);"';
+       //} ?>>
+
+       </div>
+       -->
+
+
+       <div class="hero-header">
+               <?php
+               if (has_post_thumbnail( $post->ID ) ) {
+                       $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
+                       echo '<img src="'.$image[0].'" alt="" >' ;
+               } else {
+                       echo '<img src="'.esc_url(get_template_directory_uri()).'/img/hero-default.jpg" alt="" >' ;
+               } ?>
+
+       </div>
+
+</div>
diff --git a/inc/jetpack.php b/inc/jetpack.php
new file mode 100644 (file)
index 0000000..0071e68
--- /dev/null
@@ -0,0 +1,41 @@
+<?php
+/**
+ * Jetpack Compatibility File.
+ *
+ * @link https://jetpack.me/
+ *
+ * @package wmta
+ */
+
+/**
+ * Jetpack setup function.
+ *
+ * See: https://jetpack.me/support/infinite-scroll/
+ * See: https://jetpack.me/support/responsive-videos/
+ */
+function wmta_jetpack_setup() {
+       // Add theme support for Infinite Scroll.
+       add_theme_support( 'infinite-scroll', array(
+               'container' => 'main',
+               'render'    => 'wmta_infinite_scroll_render',
+               'footer'    => 'page',
+       ) );
+
+       // Add theme support for Responsive Videos.
+       add_theme_support( 'jetpack-responsive-videos' );
+} // end function wmta_jetpack_setup
+add_action( 'after_setup_theme', 'wmta_jetpack_setup' );
+
+/**
+ * Custom render function for Infinite Scroll.
+ */
+function wmta_infinite_scroll_render() {
+       while ( have_posts() ) {
+               the_post();
+               if ( is_search() ) :
+                   get_template_part( 'template-parts/content', 'search' );
+               else :
+                   get_template_part( 'template-parts/content', get_post_format() );
+               endif;
+       }
+} // end function wmta_infinite_scroll_render
diff --git a/inc/royalslider.php b/inc/royalslider.php
new file mode 100644 (file)
index 0000000..0d389bb
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+/**
+ * Royal Slider customization.
+ *
+ *
+ *
+ * @package wmta
+ */
+
+// add custom royal slider css
+add_filter('new_royalslider_skins', 'new_royalslider_add_custom_skin', 10, 2);
+function new_royalslider_add_custom_skin($skins) {
+       $dirURL = get_stylesheet_directory_uri();
+       $skins['customRS'] = array(
+                       'label' => 'Sidebar Posts Feed',
+                       'path' => $dirURL. '/assets/stylesheets/royalSlider-sidebar-posts.css'  // get_stylesheet_directory_uri returns path to your theme folder
+       );
+    $skins['customRShome'] = array(
+        'label' => 'Homepage Slider',
+        'path' => $dirURL. '/assets/stylesheets/royalSlider-homepage.css'  // get_stylesheet_directory_uri returns path to your theme folder
+    );
+       return $skins;
+}
\ No newline at end of file
diff --git a/inc/slider-header.php b/inc/slider-header.php
new file mode 100644 (file)
index 0000000..0912793
--- /dev/null
@@ -0,0 +1,7 @@
+<div class="row column">
+
+       <div class="slider-header">
+               <?php echo get_new_royalslider(1); ?>
+       </div>
+
+</div>
\ No newline at end of file
diff --git a/inc/template-tags.php b/inc/template-tags.php
new file mode 100644 (file)
index 0000000..753dd40
--- /dev/null
@@ -0,0 +1,122 @@
+<?php
+/**
+ * Custom template tags for this theme.
+ *
+ * Eventually, some of the functionality here could be replaced by core features.
+ *
+ * @package wmta
+ */
+
+if ( ! function_exists( 'wmta_posted_on' ) ) :
+/**
+ * Prints HTML with meta information for the current post-date/time and author.
+ */
+function wmta_posted_on() {
+       $time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
+       if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
+               $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
+       }
+
+       $time_string = sprintf( $time_string,
+               esc_attr( get_the_date( 'c' ) ),
+               esc_html( get_the_date() ),
+               esc_attr( get_the_modified_date( 'c' ) ),
+               esc_html( get_the_modified_date() )
+       );
+
+       $posted_on = sprintf(
+               esc_html_x( 'Posted on %s', 'post date', 'wmta' ),
+               '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
+       );
+
+       $byline = sprintf(
+               esc_html_x( 'by %s', 'post author', 'wmta' ),
+               '<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
+       );
+
+       echo '<span class="posted-on">' . $posted_on . '</span><span class="byline"> ' . $byline . '</span>'; // WPCS: XSS OK.
+
+}
+endif;
+
+
+if ( ! function_exists( 'wmta_entry_footer' ) ) :
+/**
+ * Prints HTML with meta information for the categories, tags and comments.
+ */
+function wmta_entry_footer() {
+       // Hide category and tag text for pages.
+       if ( 'post' === get_post_type() ) {
+               /* translators: used between list items, there is a space after the comma */
+               $categories_list = get_the_category_list( esc_html__( ', ', 'wmta' ) );
+               if ( $categories_list && wmta_categorized_blog() ) {
+                       printf( '<p class="cat-links">' . esc_html__( 'Posted in %1$s', 'wmta' ) . '</p>', $categories_list ); // WPCS: XSS OK.
+               }
+
+               /* translators: used between list items, there is a space after the comma */
+               $tags_list = get_the_tag_list( '', esc_html__( ', ', 'wmta' ) );
+               if ( $tags_list ) {
+                       printf( '<p class="tags-links">' . esc_html__( 'Tagged %1$s', 'wmta' ) . '</p>', $tags_list ); // WPCS: XSS OK.
+               }
+       }
+/*
+       if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
+               echo '<span class="comments-link">';
+               comments_popup_link( esc_html__( 'Leave a comment', 'wmta' ), esc_html__( '1 Comment', 'wmta' ), esc_html__( '% Comments', 'wmta' ) );
+               echo '</span>';
+       }
+*/
+       edit_post_link(
+               sprintf(
+                       /* translators: %s: Name of current post */
+                       esc_html__( 'Edit %s', 'wmta' ),
+                       the_title( '<span class="screen-reader-text">"', '"</span>', false )
+               ),
+               '<span class="edit-link">',
+               '</span>'
+       );
+}
+endif;
+
+/**
+ * Returns true if a blog has more than 1 category.
+ *
+ * @return bool
+ */
+function wmta_categorized_blog() {
+       if ( false === ( $all_the_cool_cats = get_transient( 'wmta_categories' ) ) ) {
+               // Create an array of all the categories that are attached to posts.
+               $all_the_cool_cats = get_categories( array(
+                       'fields'     => 'ids',
+                       'hide_empty' => 1,
+                       // We only need to know if there is more than one category.
+                       'number'     => 2,
+               ) );
+
+               // Count the number of categories that are attached to the posts.
+               $all_the_cool_cats = count( $all_the_cool_cats );
+
+               set_transient( 'wmta_categories', $all_the_cool_cats );
+       }
+
+       if ( $all_the_cool_cats > 1 ) {
+               // This blog has more than 1 category so wmta_categorized_blog should return true.
+               return true;
+       } else {
+               // This blog has only 1 category so wmta_categorized_blog should return false.
+               return false;
+       }
+}
+
+/**
+ * Flush out the transients used in wmta_categorized_blog.
+ */
+function wmta_category_transient_flusher() {
+       if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
+               return;
+       }
+       // Like, beat it. Dig?
+       delete_transient( 'wmta_categories' );
+}
+add_action( 'edit_category', 'wmta_category_transient_flusher' );
+add_action( 'save_post',     'wmta_category_transient_flusher' );
diff --git a/index.php b/index.php
new file mode 100644 (file)
index 0000000..362c08e
--- /dev/null
+++ b/index.php
@@ -0,0 +1,82 @@
+<?php
+/**
+ * The main template file.
+ *
+ * This is the most generic template file in a WordPress theme
+ * and one of the two required files for a theme (the other being style.css).
+ * It is used to display a page when nothing more specific matches a query.
+ * E.g., it puts together the home page when no home.php file exists.
+ *
+ * @link https://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package wmta
+ */
+
+get_header(); ?>
+
+
+<?php get_template_part('inc/hero','header-news'); ?>
+
+       <div class="body-content row column">
+
+               <div class="medium-8 large-9 columns">
+
+            <div id="primary" class="content-area">
+
+                <main id="main" class="site-main" role="main">
+
+                    <div class="post-page-title"><?php echo '<h1><a href="',get_the_permalink('34'),'">',get_the_title('34'),'</a></h1>'; ?></div>
+
+                    <div class="news-wrapper">
+
+
+                        <?php
+                        if ( have_posts() ) :
+
+                            if ( is_home() && ! is_front_page() ) : ?>
+                                <header>
+                                    <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
+                                </header>
+
+                            <?php
+                            endif;
+
+                            global $query_string;
+                            query_posts($query_string . '&cat=-665');
+                            /* Start the Loop */
+                            while ( have_posts() ) : the_post();
+
+                                /*
+                                 * 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( 'template-parts/content', get_post_format() );
+
+                            endwhile;
+
+                            the_posts_navigation();
+
+                        else :
+
+                            get_template_part( 'template-parts/content', 'none' );
+
+                        endif; ?>
+
+                    </div>
+
+                </main><!-- #main -->
+
+            </div><!-- #primary -->
+
+        </div><!-- .large-9.columns -->
+
+        <div class="medium-4 large-3 columns page-sidebar">
+            <?php get_sidebar();?>
+        </div><!-- .large-3.columns -->
+
+    </div><!-- .row -->
+
+
+<?php
+get_footer();
diff --git a/js/classie.js b/js/classie.js
new file mode 100644 (file)
index 0000000..a967554
--- /dev/null
@@ -0,0 +1,80 @@
+/*!
+ * classie - class helper functions
+ * from bonzo https://github.com/ded/bonzo
+ * 
+ * classie.has( elem, 'my-class' ) -> true/false
+ * classie.add( elem, 'my-new-class' )
+ * classie.remove( elem, 'my-unwanted-class' )
+ * classie.toggle( elem, 'my-class' )
+ */
+
+/*jshint browser: true, strict: true, undef: true */
+/*global define: false */
+
+( function( window ) {
+
+'use strict';
+
+// class helper functions from bonzo https://github.com/ded/bonzo
+
+function classReg( className ) {
+  return new RegExp("(^|\\s+)" + className + "(\\s+|$)");
+}
+
+// classList support for class management
+// altho to be fair, the api sucks because it won't accept multiple classes at once
+var hasClass, addClass, removeClass;
+
+if ( 'classList' in document.documentElement ) {
+  hasClass = function( elem, c ) {
+    return elem.classList.contains( c );
+  };
+  addClass = function( elem, c ) {
+    elem.classList.add( c );
+  };
+  removeClass = function( elem, c ) {
+    elem.classList.remove( c );
+  };
+}
+else {
+  hasClass = function( elem, c ) {
+    return classReg( c ).test( elem.className );
+  };
+  addClass = function( elem, c ) {
+    if ( !hasClass( elem, c ) ) {
+      elem.className = elem.className + ' ' + c;
+    }
+  };
+  removeClass = function( elem, c ) {
+    elem.className = elem.className.replace( classReg( c ), ' ' );
+  };
+}
+
+function toggleClass( elem, c ) {
+  var fn = hasClass( elem, c ) ? removeClass : addClass;
+  fn( elem, c );
+}
+
+var classie = {
+  // full names
+  hasClass: hasClass,
+  addClass: addClass,
+  removeClass: removeClass,
+  toggleClass: toggleClass,
+  // short names
+  has: hasClass,
+  add: addClass,
+  remove: removeClass,
+  toggle: toggleClass
+};
+
+// transport
+if ( typeof define === 'function' && define.amd ) {
+  // AMD
+  define( classie );
+} else {
+  // browser global
+  window.classie = classie;
+}
+
+})( window );
diff --git a/js/custom-search.js b/js/custom-search.js
new file mode 100644 (file)
index 0000000..0072819
--- /dev/null
@@ -0,0 +1,8 @@
+var myEl = document.getElementById('overlay_search');
+
+myEl.addEventListener('click', function() {
+
+    window.location = 'http://macbook-air-11-17ghz-core-i7.local:5757/directory/#!directory/map/tag=' + encodeURI(document.getElementById('tag').value);
+    event.preventDefault();
+
+}, false);
diff --git a/js/customizer.js b/js/customizer.js
new file mode 100644 (file)
index 0000000..a97f315
--- /dev/null
@@ -0,0 +1,40 @@
+/**
+ * customizer.js
+ *
+ * Theme Customizer enhancements for a better user experience.
+ *
+ * Contains handlers to make Theme Customizer preview reload changes asynchronously.
+ */
+
+( function( $ ) {
+       // Site title and description.
+       wp.customize( 'blogname', function( value ) {
+               value.bind( function( to ) {
+                       $( '.site-title a' ).text( to );
+               } );
+       } );
+       wp.customize( 'blogdescription', function( value ) {
+               value.bind( function( to ) {
+                       $( '.site-description' ).text( to );
+               } );
+       } );
+       // Header text color.
+       wp.customize( 'header_textcolor', function( value ) {
+               value.bind( function( to ) {
+                       if ( 'blank' === to ) {
+                               $( '.site-title a, .site-description' ).css( {
+                                       'clip': 'rect(1px, 1px, 1px, 1px)',
+                                       'position': 'absolute'
+                               } );
+                       } else {
+                               $( '.site-title a, .site-description' ).css( {
+                                       'clip': 'auto',
+                                       'position': 'relative'
+                               } );
+                               $( '.site-title a, .site-description' ).css( {
+                                       'color': to
+                               } );
+                       }
+               } );
+       } );
+} )( jQuery );
diff --git a/js/min/custom-search-min.js b/js/min/custom-search-min.js
new file mode 100644 (file)
index 0000000..f6ebe50
--- /dev/null
@@ -0,0 +1 @@
+var myEl=document.getElementById("overlay_search");myEl.addEventListener("click",function(){window.location="http://macbook-air-11-17ghz-core-i7.local:5757/directory/#!directory/map/tag="+encodeURI(document.getElementById("tag").value),event.preventDefault()},!1);
\ No newline at end of file
diff --git a/js/min/overlay-min.js b/js/min/overlay-min.js
new file mode 100644 (file)
index 0000000..0285a7a
--- /dev/null
@@ -0,0 +1 @@
+!function(){function n(){if(classie.has(t,"open")){classie.remove(t,"open"),classie.add(t,"close");var n=function(e){if(support.transitions){if("visibility"!==e.propertyName)return;this.removeEventListener(transEndEventName,n)}classie.remove(t,"close")};support.transitions?t.addEventListener(transEndEventName,n):n()}else classie.has(t,"close")||classie.add(t,"open");jQuery("input[type=search]").focus()}var e=document.getElementById("trigger-overlay"),t=document.querySelector("div.overlay"),i=t.querySelector("button.overlay-close");transEndEventNames={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"},transEndEventName=transEndEventNames[Modernizr.prefixed("transition")],support={transitions:Modernizr.csstransitions},jQuery("#overlay_search").click(function(){n()}),e.addEventListener("click",n),i.addEventListener("click",n)}();
\ No newline at end of file
diff --git a/js/modernizr-custom.js b/js/modernizr-custom.js
new file mode 100644 (file)
index 0000000..92a587e
--- /dev/null
@@ -0,0 +1,5 @@
+/*! modernizr 3.2.0 (Custom Build) | MIT *
+ * http://modernizr.com/download/?-adownload-ambientlight-animation-apng-appearance-applicationcache-atobbtoa-audio-audioloop-audiopreload-backdropfilter-backgroundblendmode-backgroundcliptext-backgroundsize-batteryapi-bdi-beacon-bgpositionshorthand-bgpositionxy-bgrepeatspace_bgrepeatround-bgsizecover-blobconstructor-bloburls-blobworkers-borderimage-borderradius-boxshadow-boxsizing-canvas-canvasblending-canvastext-canvaswinding-capture-checked-classlist-contains-contenteditable-contextmenu-cookies-cors-createelementattrs_createelement_attrs-cryptography-cssall-cssanimations-csscalc-csschunit-csscolumns-cssescape-cssexunit-cssfilters-cssgradients-csshairline-csshyphens_softhyphens_softhyphensfind-cssinvalid-cssmask-csspointerevents-csspositionsticky-csspseudoanimations-csspseudotransitions-cssreflections-cssremunit-cssresize-cssscrollbar-csstransforms-csstransforms3d-csstransitions-cssvalid-cssvhunit-cssvmaxunit-cssvminunit-cssvwunit-cubicbezierrange-customevent-customprotocolhandler-dart-datachannel-datalistelem-dataset-datauri-dataview-dataworkers-details-devicemotion_deviceorientation-directory-display_runin-displaytable-documentfragment-ellipsis-emoji-es5-es5array-es5date-es5function-es5object-es5string-es5syntax-es5undefined-es6array-es6collections-es6math-es6number-es6object-es6string-eventlistener-eventsource-exiforientation-fetch-fileinput-filereader-filesystem-flash-flexbox-flexboxlegacy-flexboxtweener-flexwrap-fontface-forcetouch-formattribute-formvalidation-framed-fullscreen-gamepads-generatedcontent-generators-geolocation-getrandomvalues-getusermedia-hashchange-hidden-hiddenscroll-history-hsla-htmlimports-ie8compat-imgcrossorigin-indexeddb-indexeddbblob-inlinesvg-input-inputformaction-inputformenctype-inputformmethod-inputformtarget-inputtypes-intl-jpeg2000-jpegxr-json-lastchild-ligatures-localizednumber-localstorage-lowbandwidth-lowbattery-matchmedia-mathml-mediaqueries-microdata-multiplebgs-mutationobserver-notification-nthchild-objectfit-olreversed-oninput-opacity-outputelem-overflowscrolling-pagevisibility-peerconnection-performance-picture-placeholder-pointerevents-pointerlock-postmessage-preserve3d-progressbar_meter-promises-proximity-queryselector-quotamanagement-regions-requestanimationframe-requestautocomplete-rgba-ruby-sandbox-scriptasync-scriptdefer-scrollsnappoints-seamless-search-serviceworker-sessionstorage-shapes-sharedworkers-siblinggeneral-sizes-smil-speechrecognition-speechsynthesis-srcdoc-srcset-strictmode-stylescoped-subpixelfont-supports-svg-svgasimg-svgclippaths-svgfilters-svgforeignobject-target-template-templatestrings-textalignlast-textareamaxlength-textshadow-texttrackapi_track-time-todataurljpeg_todataurlpng_todataurlwebp-touchevents-transferables-typedarrays-unicode-unicoderange-unknownelements-urlparser-userdata-userselect-vibrate-video-videoautoplay-videoloop-videopreload-vml-webaudio-webgl-webglextensions-webintents-webp-webpalpha-webpanimation-webplossless_webp_lossless-websockets-websocketsbinary-websqldatabase-webworkers-willchange-wrapflow-xdomainrequest-xhr2-xhrresponsetype-xhrresponsetypearraybuffer-xhrresponsetypeblob-xhrresponsetypedocument-xhrresponsetypejson-xhrresponsetypetext-addtest-atrule-domprefixes-hasevent-mq-prefixed-prefixedcss-prefixedcssvalue-prefixes-setclasses-shiv-testallprops-testprop-teststyles !*/
+!function(window,document,undefined){function is(A,e){return typeof A===e}function testRunner(){var A,e,t,n,r,o,i;for(var d in tests)if(tests.hasOwnProperty(d)){if(A=[],e=tests[d],e.name&&(A.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(t=0;t<e.options.aliases.length;t++)A.push(e.options.aliases[t].toLowerCase());for(n=is(e.fn,"function")?e.fn():e.fn,r=0;r<A.length;r++)o=A[r],i=o.split("."),1===i.length?Modernizr[i[0]]=n:(!Modernizr[i[0]]||Modernizr[i[0]]instanceof Boolean||(Modernizr[i[0]]=new Boolean(Modernizr[i[0]])),Modernizr[i[0]][i[1]]=n),classes.push((n?"":"no-")+i.join("-"))}}function setClasses(A){var e=docElement.className,t=Modernizr._config.classPrefix||"";if(isSVG&&(e=e.baseVal),Modernizr._config.enableJSClass){var n=new RegExp("(^|\\s)"+t+"no-js(\\s|$)");e=e.replace(n,"$1"+t+"js$2")}Modernizr._config.enableClasses&&(e+=" "+t+A.join(" "+t),isSVG?docElement.className.baseVal=e:docElement.className=e)}function cssToDOM(A){return A.replace(/([a-z])-([a-z])/g,function(A,e,t){return e+t.toUpperCase()}).replace(/^-/,"")}function createElement(){return"function"!=typeof document.createElement?document.createElement(arguments[0]):isSVG?document.createElementNS.call(document,"http://www.w3.org/2000/svg",arguments[0]):document.createElement.apply(document,arguments)}function getBody(){var A=document.body;return A||(A=createElement(isSVG?"svg":"body"),A.fake=!0),A}function injectElementWithStyles(A,e,t,n){var r,o,i,d,a="modernizr",s=createElement("div"),l=getBody();if(parseInt(t,10))for(;t--;)i=createElement("div"),i.id=n?n[t]:a+(t+1),s.appendChild(i);return r=createElement("style"),r.type="text/css",r.id="s"+a,(l.fake?l:s).appendChild(r),l.appendChild(s),r.styleSheet?r.styleSheet.cssText=A:r.appendChild(document.createTextNode(A)),s.id=a,l.fake&&(l.style.background="",l.style.overflow="hidden",d=docElement.style.overflow,docElement.style.overflow="hidden",docElement.appendChild(l)),o=e(s,A),l.fake?(l.parentNode.removeChild(l),docElement.style.overflow=d,docElement.offsetHeight):s.parentNode.removeChild(s),!!o}function domToCSS(A){return A.replace(/([A-Z])/g,function(A,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function contains(A,e){return!!~(""+A).indexOf(e)}function nativeTestProps(A,e){var t=A.length;if("CSS"in window&&"supports"in window.CSS){for(;t--;)if(window.CSS.supports(domToCSS(A[t]),e))return!0;return!1}if("CSSSupportsRule"in window){for(var n=[];t--;)n.push("("+domToCSS(A[t])+":"+e+")");return n=n.join(" or "),injectElementWithStyles("@supports ("+n+") { #modernizr { position: absolute; } }",function(A){return"absolute"==getComputedStyle(A,null).position})}return undefined}function fnBind(A,e){return function(){return A.apply(e,arguments)}}function testDOMProps(A,e,t){var n;for(var r in A)if(A[r]in e)return t===!1?A[r]:(n=e[A[r]],is(n,"function")?fnBind(n,t||e):n);return!1}function testProps(A,e,t,n){function r(){i&&(delete mStyle.style,delete mStyle.modElem)}if(n=is(n,"undefined")?!1:n,!is(t,"undefined")){var o=nativeTestProps(A,t);if(!is(o,"undefined"))return o}for(var i,d,a,s,l,c=["modernizr","tspan"];!mStyle.style;)i=!0,mStyle.modElem=createElement(c.shift()),mStyle.style=mStyle.modElem.style;for(a=A.length,d=0;a>d;d++)if(s=A[d],l=mStyle.style[s],contains(s,"-")&&(s=cssToDOM(s)),mStyle.style[s]!==undefined){if(n||is(t,"undefined"))return r(),"pfx"==e?s:!0;try{mStyle.style[s]=t}catch(u){}if(mStyle.style[s]!=l)return r(),"pfx"==e?s:!0}return r(),!1}function testPropsAll(A,e,t,n,r){var o=A.charAt(0).toUpperCase()+A.slice(1),i=(A+" "+cssomPrefixes.join(o+" ")+o).split(" ");return is(e,"string")||is(e,"undefined")?testProps(i,e,n,r):(i=(A+" "+domPrefixes.join(o+" ")+o).split(" "),testDOMProps(i,e,t))}function testAllProps(A,e,t){return testPropsAll(A,undefined,undefined,e,t)}function addTest(A,e){if("object"==typeof A)for(var t in A)hasOwnProp(A,t)&&addTest(t,A[t]);else{A=A.toLowerCase();var n=A.split("."),r=Modernizr[n[0]];if(2==n.length&&(r=r[n[1]]),"undefined"!=typeof r)return Modernizr;e="function"==typeof e?e():e,1==n.length?Modernizr[n[0]]=e:(!Modernizr[n[0]]||Modernizr[n[0]]instanceof Boolean||(Modernizr[n[0]]=new Boolean(Modernizr[n[0]])),Modernizr[n[0]][n[1]]=e),setClasses([(e&&0!=e?"":"no-")+n.join("-")]),Modernizr._trigger(A,e)}return Modernizr}function roundedEquals(A,e){return A-1===e||A===e||A+1===e}var classes=[],tests=[],ModernizrProto={_version:"3.2.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(A,e){var t=this;setTimeout(function(){e(t[A])},0)},addTest:function(A,e,t){tests.push({name:A,fn:e,options:t})},addAsyncTest:function(A){tests.push({name:null,fn:A})}},Modernizr=function(){};Modernizr.prototype=ModernizrProto,Modernizr=new Modernizr;var prefixes=ModernizrProto._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):[];ModernizrProto._prefixes=prefixes;var docElement=document.documentElement,isSVG="svg"===docElement.nodeName.toLowerCase(),omPrefixes="Moz O ms Webkit",domPrefixes=ModernizrProto._config.usePrefixes?omPrefixes.toLowerCase().split(" "):[];ModernizrProto._domPrefixes=domPrefixes;var cssomPrefixes=ModernizrProto._config.usePrefixes?omPrefixes.split(" "):[];ModernizrProto._cssomPrefixes=cssomPrefixes;var atRule=function(A){var e,t=prefixes.length,n=window.CSSRule;if("undefined"==typeof n)return undefined;if(!A)return!1;if(A=A.replace(/^@/,""),e=A.replace(/-/g,"_").toUpperCase()+"_RULE",e in n)return"@"+A;for(var r=0;t>r;r++){var o=prefixes[r],i=o.toUpperCase()+"_"+e;if(i in n)return"@-"+o.toLowerCase()+"-"+A}return!1};ModernizrProto.atRule=atRule;var hasEvent=function(){function A(A,t){var n;return A?(t&&"string"!=typeof t||(t=createElement(t||"div")),A="on"+A,n=A in t,!n&&e&&(t.setAttribute||(t=createElement("div")),t.setAttribute(A,""),n="function"==typeof t[A],t[A]!==undefined&&(t[A]=undefined),t.removeAttribute(A)),n):!1}var e=!("onblur"in document.documentElement);return A}();ModernizrProto.hasEvent=hasEvent;var prefixedCSSValue=function(A,e){var t=!1,n=createElement("div"),r=n.style;if(A in r){var o=domPrefixes.length;for(r[A]=e,t=r[A];o--&&!t;)r[A]="-"+domPrefixes[o]+"-"+e,t=r[A]}return""===t&&(t=!1),t};ModernizrProto.prefixedCSSValue=prefixedCSSValue,Modernizr.addTest("ambientlight",hasEvent("devicelight",window));var html5;isSVG||!function(A,e){function t(A,e){var t=A.createElement("p"),n=A.getElementsByTagName("head")[0]||A.documentElement;return t.innerHTML="x<style>"+e+"</style>",n.insertBefore(t.lastChild,n.firstChild)}function n(){var A=h.elements;return"string"==typeof A?A.split(" "):A}function r(A,e){var t=h.elements;"string"!=typeof t&&(t=t.join(" ")),"string"!=typeof A&&(A=A.join(" ")),h.elements=t+" "+A,s(e)}function o(A){var e=E[A[f]];return e||(e={},g++,A[f]=g,E[g]=e),e}function i(A,t,n){if(t||(t=e),c)return t.createElement(A);n||(n=o(t));var r;return r=n.cache[A]?n.cache[A].cloneNode():m.test(A)?(n.cache[A]=n.createElem(A)).cloneNode():n.createElem(A),!r.canHaveChildren||w.test(A)||r.tagUrn?r:n.frag.appendChild(r)}function d(A,t){if(A||(A=e),c)return A.createDocumentFragment();t=t||o(A);for(var r=t.frag.cloneNode(),i=0,d=n(),a=d.length;a>i;i++)r.createElement(d[i]);return r}function a(A,e){e.cache||(e.cache={},e.createElem=A.createElement,e.createFrag=A.createDocumentFragment,e.frag=e.createFrag()),A.createElement=function(t){return h.shivMethods?i(t,A,e):e.createElem(t)},A.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+n().join().replace(/[\w\-:]+/g,function(A){return e.createElem(A),e.frag.createElement(A),'c("'+A+'")'})+");return n}")(h,e.frag)}function s(A){A||(A=e);var n=o(A);return!h.shivCSS||l||n.hasCSS||(n.hasCSS=!!t(A,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),c||a(A,n),A}var l,c,u="3.7.3",p=A.html5||{},w=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,m=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f="_html5shiv",g=0,E={};!function(){try{var A=e.createElement("a");A.innerHTML="<xyz></xyz>",l="hidden"in A,c=1==A.childNodes.length||function(){e.createElement("a");var A=e.createDocumentFragment();return"undefined"==typeof A.cloneNode||"undefined"==typeof A.createDocumentFragment||"undefined"==typeof A.createElement}()}catch(t){l=!0,c=!0}}();var h={elements:p.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:u,shivCSS:p.shivCSS!==!1,supportsUnknownElements:c,shivMethods:p.shivMethods!==!1,type:"default",shivDocument:s,createElement:i,createDocumentFragment:d,addElements:r};A.html5=h,s(e),"object"==typeof module&&module.exports&&(module.exports=h)}("undefined"!=typeof window?window:this,document),Modernizr.addTest("applicationcache","applicationCache"in window),Modernizr.addTest("audio",function(){var A=createElement("audio"),e=!1;try{(e=!!A.canPlayType)&&(e=new Boolean(e),e.ogg=A.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),e.mp3=A.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,""),e.opus=A.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),e.wav=A.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),e.m4a=(A.canPlayType("audio/x-m4a;")||A.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(t){}return e}),Modernizr.addTest("blobconstructor",function(){try{return!!new Blob}catch(A){return!1}},{aliases:["blob-constructor"]});var mq=function(){var A=window.matchMedia||window.msMatchMedia;return A?function(e){var t=A(e);return t&&t.matches||!1}:function(A){var e=!1;return injectElementWithStyles("@media "+A+" { #modernizr { position: absolute; } }",function(A){e="absolute"==(window.getComputedStyle?window.getComputedStyle(A,null):A.currentStyle).position}),e}}();ModernizrProto.mq=mq;var testStyles=ModernizrProto.testStyles=injectElementWithStyles;Modernizr.addTest("canvas",function(){var A=createElement("canvas");return!(!A.getContext||!A.getContext("2d"))}),Modernizr.addTest("canvastext",function(){return Modernizr.canvas===!1?!1:"function"==typeof createElement("canvas").getContext("2d").fillText}),Modernizr.addTest("contenteditable",function(){if("contentEditable"in docElement){var A=createElement("div");return A.contentEditable=!0,"true"===A.contentEditable}}),Modernizr.addTest("contextmenu","contextMenu"in docElement&&"HTMLMenuItemElement"in window),Modernizr.addTest("cookies",function(){try{document.cookie="cookietest=1";var A=-1!=document.cookie.indexOf("cookietest=");return document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",A}catch(e){return!1}}),Modernizr.addTest("cors","XMLHttpRequest"in window&&"withCredentials"in new XMLHttpRequest);var modElem={elem:createElement("modernizr")};Modernizr._q.push(function(){delete modElem.elem});var mStyle={style:modElem.elem.style};Modernizr._q.unshift(function(){delete mStyle.style}),ModernizrProto.testAllProps=testPropsAll;var prefixed=ModernizrProto.prefixed=function(A,e,t){return 0===A.indexOf("@")?atRule(A):(-1!=A.indexOf("-")&&(A=cssToDOM(A)),e?testPropsAll(A,e,t):testPropsAll(A,"pfx"))},prefixedCSS=ModernizrProto.prefixedCSS=function(A){var e=prefixed(A);return e&&domToCSS(e)};Modernizr.addTest("batteryapi",!!prefixed("battery",navigator),{aliases:["battery-api"]}),ModernizrProto.testAllProps=testAllProps,Modernizr.addTest("bgsizecover",testAllProps("backgroundSize","cover"));var testProp=ModernizrProto.testProp=function(A,e,t){return testProps([A],undefined,e,t)},crypto=prefixed("crypto",window);Modernizr.addTest("crypto",!!prefixed("subtle",crypto)),Modernizr.addTest("customprotocolhandler",function(){if(!navigator.registerProtocolHandler)return!1;try{navigator.registerProtocolHandler("thisShouldFail")}catch(A){return A instanceof TypeError}return!1}),Modernizr.addTest("customevent","CustomEvent"in window&&"function"==typeof window.CustomEvent),Modernizr.addTest("dart",!!prefixed("startDart",navigator)),Modernizr.addTest("dataview","undefined"!=typeof DataView&&"getFloat64"in DataView.prototype),Modernizr.addTest("emoji",function(){if(!Modernizr.canvastext)return!1;var A=window.devicePixelRatio||1,e=12*A,t=createElement("canvas"),n=t.getContext("2d");return n.fillStyle="#f00",n.textBaseline="top",n.font="32px Arial",n.fillText("🐨",0,0),0!==n.getImageData(e,e,1,1).data[0]}),Modernizr.addTest("eventlistener","addEventListener"in window),Modernizr.addTest("forcetouch",function(){return hasEvent(prefixed("mouseforcewillbegin",window,!1),window)?MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN&&MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN:!1}),Modernizr.addTest("fullscreen",!(!prefixed("exitFullscreen",document,!1)&&!prefixed("cancelFullScreen",document,!1))),Modernizr.addTest("gamepads",!!prefixed("getGamepads",navigator)),Modernizr.addTest("geolocation","geolocation"in navigator),Modernizr.addTest("hashchange",function(){return hasEvent("hashchange",window)===!1?!1:document.documentMode===undefined||document.documentMode>7}),Modernizr.addTest("hiddenscroll",function(){return testStyles("#modernizr {width:100px;height:100px;overflow:scroll}",function(A){return A.offsetWidth===A.clientWidth})}),Modernizr.addTest("history",function(){var A=navigator.userAgent;return-1===A.indexOf("Android 2.")&&-1===A.indexOf("Android 4.0")||-1===A.indexOf("Mobile Safari")||-1!==A.indexOf("Chrome")||-1!==A.indexOf("Windows Phone")?window.history&&"pushState"in window.history:!1}),Modernizr.addTest("ie8compat",!window.addEventListener&&!!document.documentMode&&7===document.documentMode);var indexeddb=prefixed("indexedDB",window);Modernizr.addTest("indexeddb",!!indexeddb),indexeddb&&Modernizr.addTest("indexeddb.deletedatabase","deleteDatabase"in indexeddb),Modernizr.addTest("inputsearchevent",hasEvent("search")),Modernizr.addTest("intl",!!prefixed("Intl",window)),Modernizr.addTest("json","JSON"in window&&"parse"in JSON&&"stringify"in JSON),Modernizr.addTest("ligatures",testAllProps("fontFeatureSettings",'"liga" 1')),Modernizr.addTest("olreversed","reversed"in createElement("ol")),Modernizr.addTest("mathml",function(){var A;return testStyles("#modernizr{position:absolute;display:inline-block}",function(e){e.innerHTML+="<math><mfrac><mi>xx</mi><mi>yy</mi></mfrac></math>",A=e.offsetHeight>e.offsetWidth}),A}),Modernizr.addTest("notification","Notification"in window&&"permission"in window.Notification&&"requestPermission"in window.Notification),Modernizr.addTest("pagevisibility",!!prefixed("hidden",document,!1)),Modernizr.addTest("performance",!!prefixed("performance",window)),Modernizr.addTest("pointerevents",function(){var A=!1,e=domPrefixes.length;for(A=Modernizr.hasEvent("pointerdown");e--&&!A;)hasEvent(domPrefixes[e]+"pointerdown")&&(A=!0);return A}),Modernizr.addTest("pointerlock",!!prefixed("exitPointerLock",document)),Modernizr.addTest("postmessage","postMessage"in window),Modernizr.addTest("queryselector","querySelector"in document&&"querySelectorAll"in document),Modernizr.addTest("quotamanagement",function(){var A=prefixed("temporaryStorage",navigator),e=prefixed("persistentStorage",navigator);return!(!A||!e)}),Modernizr.addTest("requestanimationframe",!!prefixed("requestAnimationFrame",window),{aliases:["raf"]}),Modernizr.addTest("serviceworker","serviceWorker"in navigator),Modernizr.addTest("svg",!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),Modernizr.addTest("templatestrings",function(){var supports;try{eval("``"),supports=!0}catch(e){}return!!supports}),Modernizr.addTest("touchevents",function(){var A;if("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)A=!0;else{var e=["@media (",prefixes.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");testStyles(e,function(e){A=9===e.offsetTop})}return A}),Modernizr.addTest("typedarrays","ArrayBuffer"in window),Modernizr.addTest("unicode",function(){var A,e=createElement("span"),t=createElement("span");return testStyles("#modernizr{font-family:Arial,sans;font-size:300em;}",function(n){e.innerHTML=isSVG?"妇":"&#5987",t.innerHTML=isSVG?"☆":"&#9734",n.appendChild(e),n.appendChild(t),A="offsetWidth"in e&&e.offsetWidth!==t.offsetWidth}),A}),Modernizr.addTest("userdata",!!createElement("div").addBehavior),Modernizr.addTest("unicoderange",function(){return Modernizr.testStyles('@font-face{font-family:"unicodeRange";src:local("Arial");unicode-range:U+0020,U+002E}#modernizr span{font-size:20px;display:inline-block;font-family:"unicodeRange",monospace}#modernizr .mono{font-family:monospace}',function(A){for(var e=[".",".","m","m"],t=0;t<e.length;t++){var n=createElement("span");n.innerHTML=e[t],n.className=t%2?"mono":"",A.appendChild(n),e[t]=n.clientWidth}return e[0]!==e[1]&&e[2]===e[3]})}),Modernizr.addTest("vibrate",!!prefixed("vibrate",navigator)),Modernizr.addTest("video",function(){var A=createElement("video"),e=!1;try{(e=!!A.canPlayType)&&(e=new Boolean(e),e.ogg=A.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),e.h264=A.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),e.webm=A.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),e.vp9=A.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),e.hls=A.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(t){}return e}),Modernizr.addTest("vml",function(){var A,e=createElement("div"),t=!1;return isSVG||(e.innerHTML='<v:shape id="vml_flag1" adj="1" />',A=e.firstChild,A.style.behavior="url(#default#VML)",t=A?"object"==typeof A.adj:!0),t}),Modernizr.addTest("webintents",!!prefixed("startActivity",navigator)),Modernizr.addTest("webanimations","animate"in createElement("div")),Modernizr.addTest("webgl",function(){var A=createElement("canvas"),e="probablySupportsContext"in A?"probablySupportsContext":"supportsContext";return e in A?A[e]("webgl")||A[e]("experimental-webgl"):"WebGLRenderingContext"in window}),Modernizr.addTest("websockets","WebSocket"in window&&2===window.WebSocket.CLOSING),Modernizr.addTest("xdomainrequest","XDomainRequest"in window),Modernizr.addTest("adownload",!window.externalHost&&"download"in createElement("a")),Modernizr.addTest("audioloop","loop"in createElement("audio")),Modernizr.addTest("webaudio",function(){var A="webkitAudioContext"in window,e="AudioContext"in window;return Modernizr._config.usePrefixes?A||e:e}),Modernizr.addTest("lowbattery",function(){var A=.2,e=prefixed("battery",navigator);return!!(e&&!e.charging&&e.level<=A)}),Modernizr.addTest("canvasblending",function(){if(Modernizr.canvas===!1)return!1;var A=createElement("canvas").getContext("2d");try{A.globalCompositeOperation="screen"}catch(e){}return"screen"===A.globalCompositeOperation});var canvas=createElement("canvas");Modernizr.addTest("todataurljpeg",function(){return!!Modernizr.canvas&&0===canvas.toDataURL("image/jpeg").indexOf("data:image/jpeg")}),Modernizr.addTest("todataurlpng",function(){return!!Modernizr.canvas&&0===canvas.toDataURL("image/png").indexOf("data:image/png")}),Modernizr.addTest("todataurlwebp",function(){var A=!1;try{A=!!Modernizr.canvas&&0===canvas.toDataURL("image/webp").indexOf("data:image/webp")}catch(e){}return A}),Modernizr.addTest("canvaswinding",function(){if(Modernizr.canvas===!1)return!1;var A=createElement("canvas").getContext("2d");return A.rect(0,0,10,10),A.rect(2,2,6,6),A.isPointInPath(5,5,"evenodd")===!1});var crypto=prefixed("crypto",window),supportsGetRandomValues;if(crypto&&"getRandomValues"in crypto&&"Uint32Array"in window){var array=new Uint32Array(10),values=crypto.getRandomValues(array);supportsGetRandomValues=values&&is(values[0],"number")}Modernizr.addTest("getrandomvalues",!!supportsGetRandomValues),Modernizr.addTest("cssall","all"in docElement.style),Modernizr.addTest("cssanimations",testAllProps("animationName","a",!0)),Modernizr.addTest("appearance",testAllProps("appearance")),Modernizr.addTest("backdropfilter",testAllProps("backdropFilter")),Modernizr.addTest("backgroundblendmode",prefixed("backgroundBlendMode","text")),Modernizr.addTest("backgroundcliptext",function(){return testAllProps("backgroundClip","text")}),Modernizr.addTest("bgpositionxy",function(){return testAllProps("backgroundPositionX","3px",!0)&&testAllProps("backgroundPositionY","5px",!0)}),Modernizr.addTest("bgpositionshorthand",function(){var A=createElement("a"),e=A.style,t="right 10px bottom 10px";return e.cssText="background-position: "+t+";",e.backgroundPosition===t}),Modernizr.addTest("bgrepeatround",testAllProps("backgroundRepeat","round")),Modernizr.addTest("bgrepeatspace",testAllProps("backgroundRepeat","space")),Modernizr.addTest("backgroundsize",testAllProps("backgroundSize","100%",!0)),Modernizr.addTest("borderimage",testAllProps("borderImage","url() 1",!0)),Modernizr.addTest("borderradius",testAllProps("borderRadius","0px",!0)),Modernizr.addTest("boxshadow",testAllProps("boxShadow","1px 1px",!0)),Modernizr.addTest("boxsizing",testAllProps("boxSizing","border-box",!0)&&(document.documentMode===undefined||document.documentMode>7)),Modernizr.addTest("checked",function(){return testStyles("#modernizr {position:absolute} #modernizr input {margin-left:10px} #modernizr :checked {margin-left:20px;display:block}",function(A){var e=createElement("input");return e.setAttribute("type","checkbox"),e.setAttribute("checked","checked"),A.appendChild(e),20===e.offsetLeft})}),Modernizr.addTest("csscalc",function(){var A="width:",e="calc(10px);",t=createElement("a");return t.style.cssText=A+prefixes.join(e+A),!!t.style.length}),Modernizr.addTest("csschunit",function(){var A,e=modElem.elem.style;try{e.fontSize="3ch",A=-1!==e.fontSize.indexOf("ch")}catch(t){A=!1}return A}),function(){Modernizr.addTest("csscolumns",function(){var A=!1,e=testAllProps("columnCount");try{(A=!!e)&&(A=new Boolean(A))}catch(t){}return A});for(var A,e,t=["Width","Span","Fill","Gap","Rule","RuleColor","RuleStyle","RuleWidth","BreakBefore","BreakAfter","BreakInside"],n=0;n<t.length;n++)A=t[n].toLowerCase(),e=testAllProps("column"+t[n]),("breakbefore"===A||"breakafter"===A||"breakinside"==A)&&(e=e||testAllProps(t[n])),Modernizr.addTest("csscolumns."+A,e)}(),Modernizr.addTest("cubicbezierrange",function(){var A=createElement("a");return A.style.cssText=prefixes.join("transition-timing-function:cubic-bezier(1,0,0,1.1); "),!!A.style.length}),Modernizr.addTest("displayrunin",testAllProps("display","run-in"),{aliases:["display-runin"]}),testStyles("#modernizr{display: table; direction: ltr}#modernizr div{display: table-cell; padding: 10px}",function(A){var e,t=A.childNodes;e=t[0].offsetLeft<t[1].offsetLeft,Modernizr.addTest("displaytable",e,{aliases:["display-table"]})},2),Modernizr.addTest("ellipsis",testAllProps("textOverflow","ellipsis"));var CSS=window.CSS;Modernizr.addTest("cssescape",CSS?"function"==typeof CSS.escape:!1),Modernizr.addTest("cssexunit",function(){var A,e=modElem.elem.style;try{e.fontSize="3ex",A=-1!==e.fontSize.indexOf("ex")}catch(t){A=!1}return A}),Modernizr.addTest("flexbox",testAllProps("flexBasis","1px",!0)),Modernizr.addTest("flexwrap",testAllProps("flexWrap","wrap",!0)),Modernizr.addTest("flexboxlegacy",testAllProps("boxDirection","reverse",!0)),Modernizr.addTest("flexboxtweener",testAllProps("flexAlign","end",!0));var blacklist=function(){var A=navigator.userAgent,e=A.match(/applewebkit\/([0-9]+)/gi)&&parseFloat(RegExp.$1),t=A.match(/w(eb)?osbrowser/gi),n=A.match(/windows phone/gi)&&A.match(/iemobile\/([0-9])+/gi)&&parseFloat(RegExp.$1)>=9,r=533>e&&A.match(/android/gi);return t||r||n}();blacklist?Modernizr.addTest("fontface",!1):testStyles('@font-face {font-family:"font";src:url("https://")}',function(A,e){var t=document.getElementById("smodernizr"),n=t.sheet||t.styleSheet,r=n?n.cssRules&&n.cssRules[0]?n.cssRules[0].cssText:n.cssText||"":"",o=/src/i.test(r)&&0===r.indexOf(e.split(" ")[0]);Modernizr.addTest("fontface",o)}),testStyles('#modernizr{font:0/0 a}#modernizr:after{content:":)";visibility:hidden;font:7px/1 a}',function(A){Modernizr.addTest("generatedcontent",A.offsetHeight>=7)}),Modernizr.addTest("cssgradients",function(){for(var A,e="background-image:",t="gradient(linear,left top,right bottom,from(#9f9),to(white));",n="",r=0,o=prefixes.length-1;o>r;r++)A=0===r?"to ":"",n+=e+prefixes[r]+"linear-gradient("+A+"left top, #9f9, white);";Modernizr._config.usePrefixes&&(n+=e+"-webkit-"+t);var i=createElement("a"),d=i.style;return d.cssText=n,(""+d.backgroundImage).indexOf("gradient")>-1}),Modernizr.addTest("hairline",function(){return testStyles("#modernizr {border:.5px solid transparent}",function(A){return 1===A.offsetHeight})}),Modernizr.addTest("cssinvalid",function(){return testStyles("#modernizr input{height:0;border:0;padding:0;margin:0;width:10px} #modernizr input:invalid{width:50px}",function(A){var e=createElement("input");return e.required=!0,A.appendChild(e),e.clientWidth>10})}),Modernizr.addTest("hsla",function(){var A=createElement("a").style;return A.cssText="background-color:hsla(120,40%,100%,.5)",contains(A.backgroundColor,"rgba")||contains(A.backgroundColor,"hsla")}),testStyles("#modernizr div {width:100px} #modernizr :last-child{width:200px;display:block}",function(A){Modernizr.addTest("lastchild",A.lastChild.offsetWidth>A.firstChild.offsetWidth)},2),Modernizr.addTest("cssmask",testAllProps("maskRepeat","repeat-x",!0)),Modernizr.addTest("mediaqueries",mq("only all")),Modernizr.addTest("multiplebgs",function(){var A=createElement("a").style;return A.cssText="background:url(https://),url(https://),red url(https://)",/(url\s*\(.*?){3}/.test(A.background)}),Modernizr.addTest("objectfit",!!prefixed("objectFit"),{aliases:["object-fit"]}),testStyles("#modernizr div {width:1px} #modernizr div:nth-child(2n) {width:2px;}",function(A){for(var e=A.getElementsByTagName("div"),t=!0,n=0;5>n;n++)t=t&&e[n].offsetWidth===n%2+1;Modernizr.addTest("nthchild",t)},5),Modernizr.addTest("overflowscrolling",testAllProps("overflowScrolling","touch",!0)),Modernizr.addTest("opacity",function(){var A=createElement("a").style;return A.cssText=prefixes.join("opacity:.55;"),/^0.55$/.test(A.opacity)}),Modernizr.addTest("csspointerevents",function(){var A=createElement("a").style;return A.cssText="pointer-events:auto","auto"===A.pointerEvents}),Modernizr.addTest("csspositionsticky",function(){var A="position:",e="sticky",t=createElement("a"),n=t.style;return n.cssText=A+prefixes.join(e+";"+A).slice(0,-A.length),-1!==n.position.indexOf(e)}),Modernizr.addTest("csspseudoanimations",function(){var A=!1;if(!Modernizr.cssanimations||!window.getComputedStyle)return A;var e=["@",Modernizr._prefixes.join("keyframes csspseudoanimations { from { font-size: 10px; } }@").replace(/\@$/,""),'#modernizr:before { content:" "; font-size:5px;',Modernizr._prefixes.join("animation:csspseudoanimations 1ms infinite;"),"}"].join("");return Modernizr.testStyles(e,function(e){A="10px"===window.getComputedStyle(e,":before").getPropertyValue("font-size")}),A}),Modernizr.addTest("cssreflections",testAllProps("boxReflect","above",!0)),Modernizr.addTest("regions",function(){if(isSVG)return!1;var A=Modernizr.prefixed("flowFrom"),e=Modernizr.prefixed("flowInto"),t=!1;if(!A||!e)return t;var n=createElement("iframe"),r=createElement("div"),o=createElement("div"),i=createElement("div"),d="modernizr_flow_for_regions_check";o.innerText="M",r.style.cssText="top: 150px; left: 150px; padding: 0px;",i.style.cssText="width: 50px; height: 50px; padding: 42px;",i.style[A]=d,r.appendChild(o),r.appendChild(i),docElement.appendChild(r);var a,s,l=o.getBoundingClientRect();return o.style[e]=d,a=o.getBoundingClientRect(),s=parseInt(a.left-l.left,10),docElement.removeChild(r),42==s?t=!0:(docElement.appendChild(n),l=n.getBoundingClientRect(),n.style[e]=d,a=n.getBoundingClientRect(),l.height>0&&l.height!==a.height&&0===a.height&&(t=!0)),o=i=r=n=undefined,t}),Modernizr.addTest("cssremunit",function(){var A=createElement("a").style;try{A.fontSize="3rem"}catch(e){}return/rem/.test(A.fontSize)}),Modernizr.addTest("cssresize",testAllProps("resize","both",!0)),testStyles("#modernizr{overflow: scroll; width: 40px; height: 40px; }#"+prefixes.join("scrollbar{width:0px} #modernizr::").split("#").slice(1).join("#")+"scrollbar{width:0px}",function(A){Modernizr.addTest("cssscrollbar",40==A.scrollWidth)}),Modernizr.addTest("rgba",function(){var A=createElement("a").style;return A.cssText="background-color:rgba(150,255,150,.5)",(""+A.backgroundColor).indexOf("rgba")>-1}),Modernizr.addTest("scrollsnappoints",testAllProps("scrollSnapType")),Modernizr.addTest("shapes",testAllProps("shapeOutside","content-box",!0)),Modernizr.addTest("siblinggeneral",function(){return testStyles("#modernizr div {width:100px} #modernizr div ~ div {width:200px;display:block}",function(A){return 200==A.lastChild.offsetWidth},2)}),testStyles("#modernizr{position: absolute; top: -10em; visibility:hidden; font: normal 10px arial;}#subpixel{float: left; font-size: 33.3333%;}",function(A){var e=A.firstChild;e.innerHTML="This is a text written in Arial",Modernizr.addTest("subpixelfont",window.getComputedStyle?"44px"!==window.getComputedStyle(e,null).getPropertyValue("width"):!1)},1,["subpixel"]);var newSyntax="CSS"in window&&"supports"in window.CSS,oldSyntax="supportsCSS"in window;Modernizr.addTest("supports",newSyntax||oldSyntax),Modernizr.addTest("cssfilters",function(){if(Modernizr.supports)return testAllProps("filter","blur(2px)");var A=createElement("a");return A.style.cssText=prefixes.join("filter:blur(2px); "),!!A.style.length&&(document.documentMode===undefined||document.documentMode>9)}),Modernizr.addTest("target",function(){var A=window.document;if(!("querySelectorAll"in A))return!1;try{return A.querySelectorAll(":target"),!0}catch(e){return!1}}),Modernizr.addTest("textalignlast",testAllProps("textAlignLast")),Modernizr.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&testAllProps("transform","scale(1)",!0)}),Modernizr.addTest("textshadow",testProp("textShadow","1px 1px")),Modernizr.addTest("csstransforms3d",function(){var A=!!testAllProps("perspective","1px",!0),e=Modernizr._config.usePrefixes;if(A&&(!e||"webkitPerspective"in docElement.style)){var t,n="#modernizr{width:0;height:0}";Modernizr.supports?t="@supports (perspective: 1px)":(t="@media (transform-3d)",e&&(t+=",(-webkit-transform-3d)")),t+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",testStyles(n+t,function(e){A=7===e.offsetWidth&&18===e.offsetHeight})}return A}),Modernizr.addTest("preserve3d",testAllProps("transformStyle","preserve-3d")),Modernizr.addTest("csstransitions",testAllProps("transition","all",!0)),Modernizr.addTest("csspseudotransitions",function(){var A=!1;if(!Modernizr.csstransitions||!window.getComputedStyle)return A;var e='#modernizr:before { content:" "; font-size:5px;'+Modernizr._prefixes.join("transition:0s 100s;")+"}#modernizr.trigger:before { font-size:10px; }";return Modernizr.testStyles(e,function(e){window.getComputedStyle(e,":before").getPropertyValue("font-size"),e.className+="trigger",A="5px"===window.getComputedStyle(e,":before").getPropertyValue("font-size")}),A}),Modernizr.addTest("userselect",testAllProps("userSelect","none",!0)),Modernizr.addTest("cssvalid",function(){return testStyles("#modernizr input{height:0;border:0;padding:0;margin:0;width:10px} #modernizr input:valid{width:50px}",function(A){var e=createElement("input");return A.appendChild(e),e.clientWidth>10})}),testStyles("#modernizr { height: 50vh; }",function(A){var e=parseInt(window.innerHeight/2,10),t=parseInt((window.getComputedStyle?getComputedStyle(A,null):A.currentStyle).height,10);Modernizr.addTest("cssvhunit",t==e)}),testStyles("#modernizr { width: 50vw; }",function(A){var e=parseInt(window.innerWidth/2,10),t=parseInt((window.getComputedStyle?getComputedStyle(A,null):A.currentStyle).width,10);Modernizr.addTest("cssvwunit",t==e);
+}),Modernizr.addTest("createelementattrs",function(){try{return"test"==createElement('<input name="test" />').getAttribute("name")}catch(A){return!1}},{aliases:["createelement-attrs"]}),Modernizr.addTest("willchange","willChange"in docElement.style),Modernizr.addTest("wrapflow",function(){var A=prefixed("wrapFlow");if(!A||isSVG)return!1;var e=A.replace(/([A-Z])/g,function(A,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-"),t=createElement("div"),n=createElement("div"),r=createElement("span");n.style.cssText="position: absolute; left: 50px; width: 100px; height: 20px;"+e+":end;",r.innerText="X",t.appendChild(n),t.appendChild(r),docElement.appendChild(t);var o=r.offsetLeft;return docElement.removeChild(t),n=r=t=undefined,150==o}),Modernizr.addTest("classlist","classList"in docElement),Modernizr.addTest("dataset",function(){var A=createElement("div");return A.setAttribute("data-a-b","c"),!(!A.dataset||"c"!==A.dataset.aB)}),Modernizr.addTest("documentfragment",function(){return"createDocumentFragment"in document&&"appendChild"in docElement}),Modernizr.addTest("mutationobserver",!!window.MutationObserver||!!window.WebKitMutationObserver),Modernizr.addTest("hidden","hidden"in createElement("a")),Modernizr.addTest("microdata","getItems"in document),Modernizr.addTest("bdi",function(){var A=createElement("div"),e=createElement("bdi");e.innerHTML="&#1573;",A.appendChild(e),docElement.appendChild(A);var t="rtl"===(window.getComputedStyle?getComputedStyle(e,null):e.currentStyle).direction;return docElement.removeChild(A),t}),Modernizr.addTest("details",function(){var A,e=createElement("details");return"open"in e?(testStyles("#modernizr details{display:block}",function(t){t.appendChild(e),e.innerHTML="<summary>a</summary>b",A=e.offsetHeight,e.open=!0,A=A!=e.offsetHeight}),A):!1}),Modernizr.addTest("outputelem","value"in createElement("output")),Modernizr.addTest("picture","HTMLPictureElement"in window),Modernizr.addTest("progressbar",createElement("progress").max!==undefined),Modernizr.addTest("meter",createElement("meter").max!==undefined),Modernizr.addTest("ruby",function(){function A(A,e){var t;return window.getComputedStyle?t=document.defaultView.getComputedStyle(A,null).getPropertyValue(e):A.currentStyle&&(t=A.currentStyle[e]),t}function e(){docElement.removeChild(t),t=null,n=null,r=null}var t=createElement("ruby"),n=createElement("rt"),r=createElement("rp"),o="display",i="fontSize";return t.appendChild(r),t.appendChild(n),docElement.appendChild(t),"none"==A(r,o)||"ruby"==A(t,o)&&"ruby-text"==A(n,o)||"6pt"==A(r,i)&&"6pt"==A(n,i)?(e(),!0):(e(),!1)}),Modernizr.addTest("template","content"in createElement("template")),Modernizr.addTest("time","valueAsDate"in createElement("time")),Modernizr.addTest("texttrackapi","function"==typeof createElement("video").addTextTrack),Modernizr.addTest("track","kind"in createElement("track")),Modernizr.addTest("unknownelements",function(){var A=createElement("a");return A.innerHTML="<xyz></xyz>",1===A.childNodes.length}),Modernizr.addTest("es5array",function(){return!!(Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray)}),Modernizr.addTest("es5date",function(){var A="2013-04-12T06:06:37.307Z",e=!1;try{e=!!Date.parse(A)}catch(t){}return!!(Date.now&&Date.prototype&&Date.prototype.toISOString&&Date.prototype.toJSON&&e)}),Modernizr.addTest("es5object",function(){return!!(Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions)}),Modernizr.addTest("es5function",function(){return!(!Function.prototype||!Function.prototype.bind)}),Modernizr.addTest("strictmode",function(){"use strict";return!this}()),Modernizr.addTest("es5string",function(){return!(!String.prototype||!String.prototype.trim)}),Modernizr.addTest("es5syntax",function(){var value,obj,stringAccess,getter,setter,reservedWords,zeroWidthChars;try{return stringAccess=eval('"foobar"[3] === "b"'),getter=eval("({ get x(){ return 1 } }).x === 1"),eval("({ set x(v){ value = v; } }).x = 1"),setter=1===value,eval("obj = ({ if: 1 })"),reservedWords=1===obj["if"],zeroWidthChars=eval("_‌‍ = true"),stringAccess&&getter&&setter&&reservedWords&&zeroWidthChars}catch(ignore){return!1}}),Modernizr.addTest("es6array",!!(Array.prototype&&Array.prototype.copyWithin&&Array.prototype.fill&&Array.prototype.find&&Array.prototype.findIndex&&Array.prototype.keys&&Array.prototype.entries&&Array.prototype.values&&Array.from&&Array.of)),Modernizr.addTest("es5undefined",function(){var A,e;try{e=window.undefined,window.undefined=12345,A="undefined"==typeof window.undefined,window.undefined=e}catch(t){return!1}return A}),Modernizr.addTest("es5",function(){return!!(Modernizr.es5array&&Modernizr.es5date&&Modernizr.es5function&&Modernizr.es5object&&Modernizr.strictmode&&Modernizr.es5string&&Modernizr.json&&Modernizr.es5syntax&&Modernizr.es5undefined)}),Modernizr.addTest("es6collections",!!(window.Map&&window.Set&&window.WeakMap&&window.WeakSet)),Modernizr.addTest("contains",is(String.prototype.contains,"function")),Modernizr.addTest("es6math",!!(Math&&Math.clz32&&Math.cbrt&&Math.imul&&Math.sign&&Math.log10&&Math.log2&&Math.log1p&&Math.expm1&&Math.cosh&&Math.sinh&&Math.tanh&&Math.acosh&&Math.asinh&&Math.atanh&&Math.hypot&&Math.trunc&&Math.fround)),Modernizr.addTest("generators",function(){try{new Function("function* test() {}")()}catch(A){return!1}return!0}),Modernizr.addTest("es6object",!!(Object.assign&&Object.is&&Object.setPrototypeOf)),Modernizr.addTest("es6number",!!(Number.isFinite&&Number.isInteger&&Number.isSafeInteger&&Number.isNaN&&Number.parseInt&&Number.parseFloat&&Number.isInteger(Number.MAX_SAFE_INTEGER)&&Number.isInteger(Number.MIN_SAFE_INTEGER)&&Number.isFinite(Number.EPSILON))),Modernizr.addTest("promises",function(){return"Promise"in window&&"resolve"in window.Promise&&"reject"in window.Promise&&"all"in window.Promise&&"race"in window.Promise&&function(){var A;return new window.Promise(function(e){A=e}),"function"==typeof A}()}),Modernizr.addTest("es6string",!!(String.fromCodePoint&&String.raw&&String.prototype.codePointAt&&String.prototype.repeat&&String.prototype.startsWith&&String.prototype.endsWith&&String.prototype.contains)),Modernizr.addTest("devicemotion","DeviceMotionEvent"in window),Modernizr.addTest("deviceorientation","DeviceOrientationEvent"in window),Modernizr.addTest("oninput",function(){var A,e=createElement("input");if(e.setAttribute("oninput","return"),hasEvent("oninput",docElement)||"function"==typeof e.oninput)return!0;try{var t=document.createEvent("KeyboardEvent");A=!1;var n=function(e){A=!0,e.preventDefault(),e.stopPropagation()};t.initKeyEvent("keypress",!0,!0,window,!1,!1,!1,!1,0,"e".charCodeAt(0)),docElement.appendChild(e),e.addEventListener("input",n,!1),e.focus(),e.dispatchEvent(t),e.removeEventListener("input",n,!1),docElement.removeChild(e)}catch(r){A=!1}return A}),Modernizr.addTest("filereader",!!(window.File&&window.FileList&&window.FileReader)),Modernizr.addTest("capture","capture"in createElement("input")),Modernizr.addTest("filesystem",!!prefixed("requestFileSystem",window)),Modernizr.addTest("fileinput",function(){if(navigator.userAgent.match(/(Android (1.0|1.1|1.5|1.6|2.0|2.1))|(Windows Phone (OS 7|8.0))|(XBLWP)|(ZuneWP)|(w(eb)?OSBrowser)|(webOS)|(Kindle\/(1.0|2.0|2.5|3.0))/))return!1;var A=createElement("input");return A.type="file",!A.disabled}),Modernizr.addTest("fileinputdirectory",function(){var A=createElement("input"),e="directory";if(A.type="file",e in A)return!0;for(var t=0,n=domPrefixes.length;n>t;t++)if(domPrefixes[t]+e in A)return!0;return!1}),Modernizr.addTest("formattribute",function(){var A,e=createElement("form"),t=createElement("input"),n=createElement("div"),r="formtest"+(new Date).getTime(),o=!1;e.id=r;try{t.setAttribute("form",r)}catch(i){document.createAttribute&&(A=document.createAttribute("form"),A.nodeValue=r,t.setAttributeNode(A))}return n.appendChild(e),n.appendChild(t),docElement.appendChild(n),o=e.elements&&1===e.elements.length&&t.form==e,n.parentNode.removeChild(n),o}),Modernizr.addTest("placeholder","placeholder"in createElement("input")&&"placeholder"in createElement("textarea")),Modernizr.addTest("requestautocomplete",!!prefixed("requestAutocomplete",createElement("form"))),Modernizr.addTest("formvalidation",function(){var A=createElement("form");if(!("checkValidity"in A&&"addEventListener"in A))return!1;if("reportValidity"in A)return!0;var e,t=!1;return Modernizr.formvalidationapi=!0,A.addEventListener("submit",function(A){(!window.opera||window.operamini)&&A.preventDefault(),A.stopPropagation()},!1),A.innerHTML='<input name="modTest" required><button></button>',testStyles("#modernizr form{position:absolute;top:-99999em}",function(n){n.appendChild(A),e=A.getElementsByTagName("input")[0],e.addEventListener("invalid",function(A){t=!0,A.preventDefault(),A.stopPropagation()},!1),Modernizr.formvalidationmessage=!!e.validationMessage,A.getElementsByTagName("button")[0].click()}),t}),Modernizr.addTest("sandbox","sandbox"in createElement("iframe")),Modernizr.addTest("seamless","seamless"in createElement("iframe")),Modernizr.addTest("srcdoc","srcdoc"in createElement("iframe")),Modernizr.addTest("imgcrossorigin","crossOrigin"in createElement("img")),Modernizr.addTest("srcset","srcset"in createElement("img")),Modernizr.addTest("inputformaction",!!("formAction"in createElement("input")),{aliases:["input-formaction"]}),Modernizr.addTest("inputformenctype",!!("formEnctype"in createElement("input")),{aliases:["input-formenctype"]}),Modernizr.addTest("inputformmethod",!!("formMethod"in createElement("input"))),Modernizr.addTest("inputformtarget",!!("formtarget"in createElement("input")),{aliases:["input-formtarget"]}),Modernizr.addTest("beacon","sendBeacon"in navigator),Modernizr.addTest("eventsource","EventSource"in window),Modernizr.addTest("lowbandwidth",function(){var A=navigator.connection||{type:0};return 3==A.type||4==A.type||/^[23]g$/.test(A.type)}),Modernizr.addTest("fetch","fetch"in window),Modernizr.addTest("xhrresponsetype",function(){if("undefined"==typeof XMLHttpRequest)return!1;var A=new XMLHttpRequest;return A.open("get","/",!0),"response"in A}()),Modernizr.addTest("xhr2","XMLHttpRequest"in window&&"withCredentials"in new XMLHttpRequest),Modernizr.addTest("scriptasync","async"in createElement("script")),Modernizr.addTest("scriptdefer","defer"in createElement("script")),Modernizr.addTest("localstorage",function(){var A="modernizr";try{return localStorage.setItem(A,A),localStorage.removeItem(A),!0}catch(e){return!1}}),Modernizr.addTest("speechrecognition",!!prefixed("SpeechRecognition",window)),Modernizr.addTest("speechsynthesis","SpeechSynthesisUtterance"in window),Modernizr.addTest("sessionstorage",function(){var A="modernizr";try{return sessionStorage.setItem(A,A),sessionStorage.removeItem(A),!0}catch(e){return!1}}),Modernizr.addTest("websqldatabase","openDatabase"in window),Modernizr.addTest("stylescoped","scoped"in createElement("style")),Modernizr.addTest("svgfilters",function(){var A=!1;try{A="SVGFEColorMatrixElement"in window&&2==SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE}catch(e){}return A}),Modernizr.addTest("inlinesvg",function(){var A=createElement("div");return A.innerHTML="<svg/>","http://www.w3.org/2000/svg"==("undefined"!=typeof SVGRect&&A.firstChild&&A.firstChild.namespaceURI)}),Modernizr.addTest("textareamaxlength",!!("maxLength"in createElement("textarea")));var url=prefixed("URL",window,!1);url=url&&window[url],Modernizr.addTest("bloburls",url&&"revokeObjectURL"in url&&"createObjectURL"in url),Modernizr.addTest("urlparser",function(){var A;try{return A=new URL("http://modernizr.com/"),"http://modernizr.com/"===A.href}catch(e){return!1}}),Modernizr.addTest("videoloop","loop"in createElement("video")),Modernizr.addTest("videopreload","preload"in createElement("video")),Modernizr.addAsyncTest(function(){if(Modernizr.webglextensions=new Boolean(!1),Modernizr.webgl){var A,e,t;try{A=createElement("canvas"),e=A.getContext("webgl")||A.getContext("experimental-webgl"),t=e.getSupportedExtensions()}catch(n){return}e!==undefined&&(Modernizr.webglextensions=new Boolean(!0));for(var r=-1,o=t.length;++r<o;)Modernizr.webglextensions[t[r]]=!0;A=undefined}}),Modernizr.addTest("peerconnection",!!prefixed("RTCPeerConnection",window)),Modernizr.addTest("datachannel",function(){if(!Modernizr.peerconnection)return!1;for(var A=0,e=domPrefixes.length;e>A;A++){var t=window[domPrefixes[A]+"RTCPeerConnection"];if(t){var n=new t({iceServers:[{url:"stun:0"}]});return"createDataChannel"in n}}return!1}),Modernizr.addTest("getusermedia",!!prefixed("getUserMedia",navigator)),Modernizr.addTest("websocketsbinary",function(){var A,e="https:"==location.protocol?"wss":"ws";if("WebSocket"in window){if(A="binaryType"in WebSocket.prototype)return A;try{return!!new WebSocket(e+"://.").binaryType}catch(t){}}return!1}),Modernizr.addTest("atobbtoa","atob"in window&&"btoa"in window,{aliases:["atob-btoa"]}),Modernizr.addTest("framed",window.location!=top.location),Modernizr.addTest("matchmedia",!!prefixed("matchMedia",window)),Modernizr.addTest("sharedworkers","SharedWorker"in window),Modernizr.addTest("webworkers","Worker"in window);var hasOwnProp;!function(){var A={}.hasOwnProperty;hasOwnProp=is(A,"undefined")||is(A.call,"undefined")?function(A,e){return e in A&&is(A.constructor.prototype[e],"undefined")}:function(e,t){return A.call(e,t)}}(),ModernizrProto._l={},ModernizrProto.on=function(A,e){this._l[A]||(this._l[A]=[]),this._l[A].push(e),Modernizr.hasOwnProperty(A)&&setTimeout(function(){Modernizr._trigger(A,Modernizr[A])},0)},ModernizrProto._trigger=function(A,e){if(this._l[A]){var t=this._l[A];setTimeout(function(){var A,n;for(A=0;A<t.length;A++)(n=t[A])(e)},0),delete this._l[A]}},Modernizr._q.push(function(){ModernizrProto.addTest=addTest}),Modernizr.addAsyncTest(function(){var A=new Image;A.onerror=function(){addTest("exiforientation",!1,{aliases:["exif-orientation"]})},A.onload=function(){addTest("exiforientation",2!==A.width,{aliases:["exif-orientation"]})},A.src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QAiRXhpZgAASUkqAAgAAAABABIBAwABAAAABgASAAAAAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCAABAAIDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD+/iiiigD/2Q=="}),Modernizr.addAsyncTest(function(){var A,e,t=function(A){docElement.contains(A)||docElement.appendChild(A)},n=function(A){A.fake&&A.parentNode&&A.parentNode.removeChild(A)},r=function(A,e){var t=!!A;if(t&&(t=new Boolean(t),t.blocked="blocked"===A),addTest("flash",function(){return t}),e&&s.contains(e)){for(;e.parentNode!==s;)e=e.parentNode;s.removeChild(e)}};try{e="ActiveXObject"in window&&"Pan"in new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(o){}if(A=!("plugins"in navigator&&"Shockwave Flash"in navigator.plugins||e),A||isSVG)r(!1);else{var i,d,a=createElement("embed"),s=getBody();if(a.type="application/x-shockwave-flash",s.appendChild(a),!("Pan"in a||e))return t(s),r("blocked",a),void n(s);i=function(){return t(s),docElement.contains(s)?(docElement.contains(a)?(d=a.style.cssText,""!==d?r("blocked",a):r(!0,a)):r("blocked"),void n(s)):(s=document.body||s,a=createElement("embed"),a.type="application/x-shockwave-flash",s.appendChild(a),setTimeout(i,1e3))},setTimeout(i,10)}}),addTest("htmlimports","import"in createElement("link")),Modernizr.addAsyncTest(function(){var A,e,t=prefixed("indexedDB",window),n="detect-blob-support",r=!1;if(!Modernizr.indexeddb||!Modernizr.indexeddb.deleteDatabase)return!1;try{t.deleteDatabase(n).onsuccess=function(){A=t.open(n,1),A.onupgradeneeded=function(){A.result.createObjectStore("store")},A.onsuccess=function(){e=A.result;try{e.transaction("store","readwrite").objectStore("store").put(new Blob,"key"),r=!0}catch(o){r=!1}finally{addTest("indexeddbblob",r),e.close(),t.deleteDatabase(n)}}}}catch(o){addTest("indexeddbblob",!1)}}),Modernizr.addAsyncTest(function(){function A(){clearTimeout(e),window.removeEventListener("deviceproximity",A),addTest("proximity",!0)}var e,t=300;"ondeviceproximity"in window&&"onuserproximity"in window?(window.addEventListener("deviceproximity",A),e=setTimeout(function(){window.removeEventListener("deviceproximity",A),addTest("proximity",!1)},t)):addTest("proximity",!1)}),Modernizr.addAsyncTest(function(){function A(t){clearTimeout(e);var r=t!==undefined&&"loadeddata"===t.type?!0:!1;n.removeEventListener("loadeddata",A,!1),addTest("audiopreload",r),n.parentNode.removeChild(n)}var e,t=300,n=createElement("audio"),r=n.style;if(!(Modernizr.audio&&"preload"in n))return void addTest("audiopreload",!1);r.position="absolute",r.height=0,r.width=0;try{if(Modernizr.audio.mp3)n.src="data:audio/mpeg;base64,//MUxAAB6AXgAAAAAPP+c6nf//yi/6f3//MUxAMAAAIAAAjEcH//0fTX6C9Lf//0//MUxA4BeAIAAAAAAKX2/6zv//+IlR4f//MUxBMCMAH8AAAAABYWalVMQU1FMy45//MUxBUB0AH0AAAAADkuM1VVVVVVVVVV//MUxBgBUATowAAAAFVVVVVVVVVVVVVV";else if(Modernizr.audio.m4a)n.src="data:audio/x-m4a;base64,AAAAGGZ0eXBNNEEgAAACAGlzb21pc28yAAAACGZyZWUAAAAfbWRhdN4EAABsaWJmYWFjIDEuMjgAAAFoAQBHAAACiG1vb3YAAABsbXZoZAAAAAB8JbCAfCWwgAAAA+gAAAAYAAEAAAEAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAG0dHJhawAAAFx0a2hkAAAAD3wlsIB8JbCAAAAAAQAAAAAAAAAYAAAAAAAAAAAAAAAAAQAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAABUG1kaWEAAAAgbWRoZAAAAAB8JbCAfCWwgAAArEQAAAQAVcQAAAAAAC1oZGxyAAAAAAAAAABzb3VuAAAAAAAAAAAAAAAAU291bmRIYW5kbGVyAAAAAPttaW5mAAAAEHNtaGQAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAL9zdGJsAAAAW3N0c2QAAAAAAAAAAQAAAEttcDRhAAAAAAAAAAEAAAAAAAAAAAACABAAAAAArEQAAAAAACdlc2RzAAAAAAMZAAEABBFAFQAAAAABftAAAAAABQISCAYBAgAAABhzdHRzAAAAAAAAAAEAAAABAAAEAAAAABxzdHNjAAAAAAAAAAEAAAABAAAAAQAAAAEAAAAUc3RzegAAAAAAAAAXAAAAAQAAABRzdGNvAAAAAAAAAAEAAAAoAAAAYHVkdGEAAABYbWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAraWxzdAAAACOpdG9vAAAAG2RhdGEAAAABAAAAAExhdmY1Mi42NC4y";else if(Modernizr.audio.ogg)n.src="data:audio/ogg;base64,T2dnUwACAAAAAAAAAAD/QwAAAAAAAM2LVKsBHgF2b3JiaXMAAAAAAUSsAAAAAAAAgLsAAAAAAAC4AU9nZ1MAAAAAAAAAAAAA/0MAAAEAAADmvOe6Dy3/////////////////MgN2b3JiaXMdAAAAWGlwaC5PcmcgbGliVm9yYmlzIEkgMjAwNzA2MjIAAAAAAQV2b3JiaXMfQkNWAQAAAQAYY1QpRplS0kqJGXOUMUaZYpJKiaWEFkJInXMUU6k515xrrLm1IIQQGlNQKQWZUo5SaRljkCkFmVIQS0kldBI6J51jEFtJwdaYa4tBthyEDZpSTCnElFKKQggZU4wpxZRSSkIHJXQOOuYcU45KKEG4nHOrtZaWY4updJJK5yRkTEJIKYWSSgelU05CSDWW1lIpHXNSUmpB6CCEEEK2IIQNgtCQVQAAAQDAQBAasgoAUAAAEIqhGIoChIasAgAyAAAEoCiO4iiOIzmSY0kWEBqyCgAAAgAQAADAcBRJkRTJsSRL0ixL00RRVX3VNlVV9nVd13Vd13UgNGQVAAABAEBIp5mlGiDCDGQYCA1ZBQAgAAAARijCEANCQ1YBAAABAABiKDmIJrTmfHOOg2Y5aCrF5nRwItXmSW4q5uacc845J5tzxjjnnHOKcmYxaCa05pxzEoNmKWgmtOacc57E5kFrqrTmnHPGOaeDcUYY55xzmrTmQWo21uaccxa0pjlqLsXmnHMi5eZJbS7V5pxzzjnnnHPOOeecc6oXp3NwTjjnnHOi9uZabkIX55xzPhmne3NCOOecc84555xzzjnnnHOC0JBVAAAQAABBGDaGcacgSJ+jgRhFiGnIpAfdo8MkaAxyCqlHo6ORUuoglFTGSSmdIDRkFQAACAAAIYQUUkghhRRSSCGFFFKIIYYYYsgpp5yCCiqppKKKMsoss8wyyyyzzDLrsLPOOuwwxBBDDK20EktNtdVYY62555xrDtJaaa211koppZRSSikIDVkFAIAAABAIGWSQQUYhhRRSiCGmnHLKKaigAkJDVgEAgAAAAgAAADzJc0RHdERHdERHdERHdETHczxHlERJlERJtEzL1ExPFVXVlV1b1mXd9m1hF3bd93Xf93Xj14VhWZZlWZZlWZZlWZZlWZZlWYLQkFUAAAgAAIAQQgghhRRSSCGlGGPMMeegk1BCIDRkFQAACAAgAAAAwFEcxXEkR3IkyZIsSZM0S7M8zdM8TfREURRN01RFV3RF3bRF2ZRN13RN2XRVWbVdWbZt2dZtX5Zt3/d93/d93/d93/d93/d1HQgNWQUASAAA6EiOpEiKpEiO4ziSJAGhIasAABkAAAEAKIqjOI7jSJIkSZakSZ7lWaJmaqZneqqoAqEhqwAAQAAAAQAAAAAAKJriKabiKaLiOaIjSqJlWqKmaq4om7Lruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7rui4QGrIKAJAAANCRHMmRHEmRFEmRHMkBQkNWAQAyAAACAHAMx5AUybEsS9M8zdM8TfRET/RMTxVd0QVCQ1YBAIAAAAIAAAAAADAkw1IsR3M0SZRUS7VUTbVUSxVVT1VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVTVN0zRNIDRkJQAABADAYo3B5SAhJSXl3hDCEJOeMSYhtV4hBJGS3jEGFYOeMqIMct5C4xCDHggNWREARAEAAMYgxxBzyDlHqZMSOeeodJQa5xyljlJnKcWYYs0oldhSrI1zjlJHraOUYiwtdpRSjanGAgAAAhwAAAIshEJDVgQAUQAAhDFIKaQUYow5p5xDjCnnmHOGMeYcc44556B0UirnnHROSsQYc445p5xzUjonlXNOSiehAACAAAcAgAALodCQFQFAnACAQZI8T/I0UZQ0TxRFU3RdUTRd1/I81fRMU1U90VRVU1Vt2VRVWZY8zzQ901RVzzRV1VRVWTZVVZZFVdVt03V123RV3ZZt2/ddWxZ2UVVt3VRd2zdV1/Zd2fZ9WdZ1Y/I8VfVM03U903Rl1XVtW3VdXfdMU5ZN15Vl03Vt25VlXXdl2fc103Rd01Vl2XRd2XZlV7ddWfZ903WF35VlX1dlWRh2XfeFW9eV5XRd3VdlVzdWWfZ9W9eF4dZ1YZk8T1U903RdzzRdV3VdX1dd19Y105Rl03Vt2VRdWXZl2fddV9Z1zzRl2XRd2zZdV5ZdWfZ9V5Z13XRdX1dlWfhVV/Z1WdeV4dZt4Tdd1/dVWfaFV5Z14dZ1Ybl1XRg+VfV9U3aF4XRl39eF31luXTiW0XV9YZVt4VhlWTl+4ViW3feVZXRdX1ht2RhWWRaGX/id5fZ943h1XRlu3efMuu8Mx++k+8rT1W1jmX3dWWZfd47hGDq/8OOpqq+brisMpywLv+3rxrP7vrKMruv7qiwLvyrbwrHrvvP8vrAso+z6wmrLwrDatjHcvm4sv3Acy2vryjHrvlG2dXxfeArD83R1XXlmXcf2dXTjRzh+ygAAgAEHAIAAE8pAoSErAoA4AQCPJImiZFmiKFmWKIqm6LqiaLqupGmmqWmeaVqaZ5qmaaqyKZquLGmaaVqeZpqap5mmaJqua5qmrIqmKcumasqyaZqy7LqybbuubNuiacqyaZqybJqmLLuyq9uu7Oq6pFmmqXmeaWqeZ5qmasqyaZquq3meanqeaKqeKKqqaqqqraqqLFueZ5qa6KmmJ4qqaqqmrZqqKsumqtqyaaq2bKqqbbuq7Pqybeu6aaqybaqmLZuqatuu7OqyLNu6L2maaWqeZ5qa55mmaZqybJqqK1uep5qeKKqq5ommaqqqLJumqsqW55mqJ4qq6omea5qqKsumatqqaZq2bKqqLZumKsuubfu+68qybqqqbJuqauumasqybMu+78qq7oqmKcumqtqyaaqyLduy78uyrPuiacqyaaqybaqqLsuybRuzbPu6aJqybaqmLZuqKtuyLfu6LNu678qub6uqrOuyLfu67vqucOu6MLyybPuqrPq6K9u6b+sy2/Z9RNOUZVM1bdtUVVl2Zdn2Zdv2fdE0bVtVVVs2TdW2ZVn2fVm2bWE0Tdk2VVXWTdW0bVmWbWG2ZeF2Zdm3ZVv2ddeVdV/XfePXZd3murLty7Kt+6qr+rbu+8Jw667wCgAAGHAAAAgwoQwUGrISAIgCAACMYYwxCI1SzjkHoVHKOecgZM5BCCGVzDkIIZSSOQehlJQy5yCUklIIoZSUWgshlJRSawUAABQ4AAAE2KApsThAoSErAYBUAACD41iW55miatqyY0meJ4qqqaq27UiW54miaaqqbVueJ4qmqaqu6+ua54miaaqq6+q6aJqmqaqu67q6Lpqiqaqq67qyrpumqqquK7uy7Oumqqqq68quLPvCqrquK8uybevCsKqu68qybNu2b9y6ruu+7/vCka3rui78wjEMRwEA4AkOAEAFNqyOcFI0FlhoyEoAIAMAgDAGIYMQQgYhhJBSSiGllBIAADDgAAAQYEIZKDRkRQAQJwAAGEMppJRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkgppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkqppJRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoplVJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSCgCQinAAkHowoQwUGrISAEgFAACMUUopxpyDEDHmGGPQSSgpYsw5xhyUklLlHIQQUmktt8o5CCGk1FJtmXNSWosx5hgz56SkFFvNOYdSUoux5ppr7qS0VmuuNedaWqs115xzzbm0FmuuOdecc8sx15xzzjnnGHPOOeecc84FAOA0OACAHtiwOsJJ0VhgoSErAYBUAAACGaUYc8456BBSjDnnHIQQIoUYc845CCFUjDnnHHQQQqgYc8w5CCGEkDnnHIQQQgghcw466CCEEEIHHYQQQgihlM5BCCGEEEooIYQQQgghhBA6CCGEEEIIIYQQQgghhFJKCCGEEEIJoZRQAABggQMAQIANqyOcFI0FFhqyEgAAAgCAHJagUs6EQY5Bjw1BylEzDUJMOdGZYk5qMxVTkDkQnXQSGWpB2V4yCwAAgCAAIMAEEBggKPhCCIgxAABBiMwQCYVVsMCgDBoc5gHAA0SERACQmKBIu7iALgNc0MVdB0IIQhCCWBxAAQk4OOGGJ97whBucoFNU6iAAAAAAAAwA4AEA4KAAIiKaq7C4wMjQ2ODo8AgAAAAAABYA+AAAOD6AiIjmKiwuMDI0Njg6PAIAAAAAAAAAAICAgAAAAAAAQAAAAICAT2dnUwAE7AwAAAAAAAD/QwAAAgAAADuydfsFAQEBAQEACg4ODg==";else{if(!Modernizr.audio.wav)return void addTest("audiopreload",!1);n.src="data:audio/wav;base64,UklGRvwZAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YdgZAAAAAAEA/v8CAP//AAABAP////8DAPz/BAD9/wEAAAAAAAAAAAABAP7/AgD//wAAAQD//wAAAQD//wAAAQD+/wIA//8AAAAAAAD//wIA/v8BAAAA//8BAAAA//8BAP//AQAAAP//AQD//wEAAAD//wEA//8BAP//AQD//wEA//8BAP//AQD+/wMA/f8DAP3/AgD+/wIA/////wMA/f8CAP7/AgD+/wMA/f8CAP7/AgD//wAAAAAAAAAAAQD+/wIA/v8CAP7/AwD9/wIA/v8BAAEA/v8CAP7/AQAAAAAAAAD//wEAAAD//wIA/f8DAP7/AQD//wEAAAD//wEA//8CAP7/AQD//wIA/v8CAP7/AQAAAAAAAAD//wEAAAAAAAAA//8BAP//AgD9/wQA+/8FAPz/AgAAAP//AgD+/wEAAAD//wIA/v8CAP3/BAD8/wQA/P8DAP7/AwD8/wQA/P8DAP7/AQAAAAAA//8BAP//AgD+/wEAAAD//wIA/v8BAP//AQD//wEAAAD//wEA//8BAAAAAAAAAP//AgD+/wEAAAAAAAAAAAD//wEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//AgD+/wIA/v8BAP//AQABAP7/AQD//wIA/v8CAP3/AwD/////AgD9/wMA/v8BAP//AQAAAP//AQD//wEA//8BAP//AAABAP//AAABAP//AQD//wAAAAACAP3/AwD9/wIA//8BAP//AQD//wEA//8BAP//AgD9/wMA/v8AAAIA/f8CAAAA/v8EAPv/BAD9/wIAAAD+/wQA+v8HAPr/BAD+/wEAAAD//wIA/f8EAPz/BAD7/wUA/P8EAPz/AwD+/wEAAAD//wEAAAAAAP//AgD8/wUA+/8FAPz/AwD9/wIA//8AAAEA/v8CAP//AQD//wAAAAABAP//AgD9/wMA/f8EAPz/AwD+/wAAAwD7/wUA/P8DAP7/AQAAAP//AgD+/wEAAQD+/wIA/v8BAAEA/v8CAP7/AQAAAP//AgD9/wMA/f8DAP7/AgD+/wEAAAAAAAEA//8AAAEA/v8DAP3/AgD//wEA//8BAP7/AwD9/wMA/v8BAP//AQAAAP//AgD9/wMA/v8BAP//AQAAAP//AgD+/wEAAQD+/wIA/////wIA//8AAAEA/f8DAP//AAABAP////8DAP3/AwD+/wEA//8BAP//AQAAAAAA//8BAP//AQD//wEA//8BAP//AAAAAAEA//8BAP7/AgD//wEA//8AAAAAAAAAAAAAAAD//wIA/v8BAAAA//8BAAEA/v8BAAAA//8DAPz/AwD+/wIA/v8CAP3/AwD+/wEAAAD//wEA//8BAAAA//8BAAAA/v8EAPv/BAD+/wAAAAABAP7/AgD//wAAAAABAP7/AgD//wAAAAAAAAAAAAABAP3/BAD8/wQA/f8BAAAAAAABAP7/AgD+/wIA/v8CAP7/AgD+/wIA/v8BAAAAAAD//wIA/f8DAP7/AAABAP//AAACAPz/BAD9/wIA//8AAP//AwD9/wMA/P8EAP3/AwD9/wIA//8BAP//AQD+/wMA/f8DAP7/AAABAP//AQAAAP//AQD//wIA/f8DAP7/AQAAAP//AQAAAAAA//8CAP7/AQABAP7/AgD+/wEAAQD+/wIA/v8CAP////8CAP7/AgD//wAAAAABAP7/AwD9/wIAAAD+/wMA/f8CAP//AQD+/wMA/f8CAP//AAACAPz/BQD6/wUA/v///wIA/v8CAP3/BAD7/wYA+v8FAPz/AwD/////AgD+/wEAAAD//wEAAAD//wIA/f8DAP7/AQAAAP//AgD//wAA//8BAAAAAAAAAP//AQD//wEA//8AAAIA/f8DAP3/AgAAAP//AQD//wEA//8AAAEA//8BAP////8CAP//AAABAP3/BAD9/wIA/v8BAAEA//8BAP7/AgD//wEA//8AAAEA//8BAP//AAAAAAEA//8BAP7/AgD//wEA//8AAAAAAQD+/wIA/v8BAAAAAAD//wIA/v8BAAAAAAAAAAAAAQD+/wMA/f8CAP//AQD//wIA/f8DAP7/AQD//wEA//8CAP7/AAABAP7/AwD9/wMA/v8AAAEA//8BAAAAAAD//wIA/v8BAAAA//8CAP7/AgD+/wEA//8CAP7/AgD//wAAAAAAAAAAAQD//wEA/v8DAPz/BQD8/wIA//8AAAEAAAD//wEA//8BAP//AQAAAAAA//8BAP//AgD+/wEAAAAAAP//AQD+/wMA/////wEA/v8CAP//AQD//wEA//8AAAEA//8BAAAA/v8EAPz/AwD+/wEAAAAAAAAA//8CAP7/AQD//wEA//8BAP//AAABAP7/AwD9/wIA//8BAP//AQD//wEA//8AAAEA/v8EAPv/BAD9/wIA//8BAP7/AwD9/wIA//8AAAEA//8BAP//AQD//wAAAQD//wEAAAD+/wMA/v8AAAIA/f8DAP7/AQD//wAAAQD+/wMA/f8CAP//AAABAP7/AgD+/wMA/f8CAP7/AQABAP7/AgD+/wIA/v8CAP7/AwD8/wMA//8AAAEA//8AAAAAAAABAP//AQD//wAAAQD//wIA/f8DAP3/AwD+/wAAAgD9/wIA//8AAAEAAAD+/wMA/P8FAPv/BAD9/wIA//8AAP//AgD+/wIA/v8BAAAAAAD//wEAAAAAAP//AQD//wEA//8BAP//AAABAP7/AwD9/wIA//8BAP//AAABAP//AQD//wAAAQD//wEA//8BAP//AAABAAAA//8BAP7/AwD9/wMA/f8DAP3/AgD//wEA//8BAP7/AgD//wAAAgD8/wQA/f8CAP//AQD+/wMA/f8CAP7/AgD//wAAAAAAAAAAAAABAP7/AwD9/wIA/v8DAP3/AwD9/wIA/v8DAPz/BQD7/wQA/f8CAP7/AwD9/wMA/f8CAP//AQAAAP7/AwD+/wEA//8AAAEAAAAAAP//AAABAP//AQAAAP7/AwD9/wMA/f8CAP//AQD//wEA//8AAAIA/f8CAAAA//8BAAAA//8BAAAA/v8EAPv/BAD9/wIA//8AAAEA/v8CAP//AAABAP//AAABAP//AAABAP7/AwD8/wQA/f8CAAAA/v8DAP3/AwD9/wMA/v8BAAAA//8BAAAA//8CAP7/AQAAAAAAAAAAAAAA//8CAP7/AgD+/wIA/v8CAP7/AgD//wAAAQD//wAAAQD//wAAAQD//wAAAQD+/wIA//8AAAAAAQD+/wMA/f8CAP//AQD//wEA//8AAAEA/v8DAP3/AgD//wAAAAABAP7/AwD9/wIA//8AAAEA/v8DAP3/AgD//wAAAAABAP7/AwD8/wMA/v8CAP//AAD//wIA/v8CAP7/AQABAP7/AQAAAP//AgD/////AQD//wEAAAD//wEA/v8EAPv/BAD9/wMA/v8BAAAA//8BAAEA/P8GAPr/BQD8/wMA/v8BAAAA//8CAP7/AQABAP3/BAD7/wYA+/8EAPz/AwD//wEA//8BAP7/BAD8/wMA/v8AAAIA/v8BAAAA//8BAAAA//8BAAAA//8CAP3/AwD+/wAAAgD8/wUA/P8DAP7/AAABAAAAAAD//wEAAAD//wIA/f8DAP7/AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA/f8EAPz/AwD/////AgD+/wIA/f8DAP7/AgD+/wEA//8CAP7/AQD//wEAAAAAAP//AQAAAP//AgD9/wMA/v8BAAAA//8BAP//AQAAAP//AAACAP3/BAD7/wQA/v8BAAAA//8BAP//AQAAAP//AQAAAP7/BAD7/wUA+/8EAP3/AgD//wAAAQD+/wIA//8AAAEA/v8CAP//AQD+/wEAAAAAAAAAAAD//wEA//8CAP3/AwD9/wIA//8AAAAAAAAAAAAA//8BAP//AgD+/wEA//8CAP7/AQAAAP//AgD/////AgD/////AgD+/wIA//8AAP//AQABAP7/AgD9/wMA/v8CAP////8BAAAAAAAAAAAA//8CAP////8DAPz/AwD+/wEAAAAAAP//AQD//wEAAAD//wEAAAD+/wQA+/8FAPz/AgAAAP//AgD9/wMA/v8BAAAAAAD//wEAAAD//wIA/v8BAAAAAAD//wIA/v8BAAAA//8BAAAA//8CAP7/AQD//wEA//8BAAAA//8BAP//AAABAP//AQAAAP7/AgD//wEA//8AAAAAAQD+/wMA/P8EAP7///8DAPz/BQD8/wEAAQD+/wMA/v8AAAEA//8BAP//AQD//wEA/v8CAP//AQD//wAAAAABAAAA//8BAP//AQAAAAAA//8BAP//AgD+/wAAAQD//wIA/f8CAP//AQAAAP7/AwD9/wMA/v8BAP//AAABAP//AgD9/wIA//8BAAAA//8BAAAA//8CAP3/AwD+/wEAAAD+/wQA/P8DAP7/AAACAP7/AQAAAP//AQAAAP//AQAAAP//AgD9/wIAAAD//wIA/f8DAP7/AQD//wEA//8CAP7/AQD//wAAAQD//wEA//8AAAAAAQD//wEAAAD9/wUA+/8FAPz/AgD//wAAAQD//wAAAQD+/wMA/f8BAAEA/v8CAP7/AgD+/wIA/v8BAAAAAAAAAAAAAAD//wIA/v8CAP////8CAP7/AgD+/wIA/v8CAP7/AQAAAP//AQAAAP//AQD//wAAAQD//wAAAQD+/wMA/f8CAAAA/v8DAP3/AgAAAP//AQAAAP7/AwD9/wMA/v8BAP//AQD//wEAAAD+/wMA/f8CAAAA/v8CAP//AAAAAAEA//8AAAEA/v8DAP3/AwD9/wIA//8BAP//AgD8/wQA/v8BAAAA/v8CAP//AQD//wAAAAAAAAEA/f8EAPz/BAD9/wIA//8AAAAAAAABAP//AAAAAAAAAAABAP3/BAD9/wIA/v8BAAEA//8AAAAA//8CAP7/AgD9/wQA+/8FAPv/BQD8/wMA/f8DAP3/AwD+/wAAAgD9/wMA/f8CAAAA/v8EAPv/BQD7/wUA/P8DAP///v8DAP3/BAD8/wMA/f8DAP7/AQD//wEAAAD//wEA/v8CAAAA/v8CAP7/AgD//wAAAAAAAAAAAQD+/wIA//8AAAEA/v8DAPz/BAD9/wIA//8AAP//AgD//wEA/v8BAAAAAQD//wAAAAAAAAEA//8AAAEA//8BAP//AAABAP//AQD+/wIA/v8DAPz/BAD8/wQA/f8BAAAAAQD+/wMA/P8DAP//AAAAAAAAAAD//wMA+/8FAP3/AQABAP3/BAD8/wMA/v8BAAAA//8CAP3/AwD+/wEAAQD9/wMA/f8EAPz/BAD7/wQA/v8BAAEA/f8DAP7/AQAAAP//AgD+/wEAAAD//wIA/v8CAP7/AgD+/wEAAQD//wEA/v8CAP7/BAD7/wQA/f8CAAAA//8AAAAAAAABAP//AQD+/wEAAQD+/wMA/f8BAAEA/v8DAPz/AwD/////AwD8/wQA/P8DAP7/AgD//wAA//8BAAAAAAAAAP//AgD+/wEAAAD//wIA/v8BAAAA//8CAP3/AgD//wAAAQD+/wIA/v8BAAAA//8CAP7/AgD+/wEA//8CAP3/BAD7/wQA/v8BAAAA//8AAAEAAAD//wIA/f8DAP7/AgD+/wIA/v8CAP7/AgD+/wEAAAAAAP//AgD9/wMA/v8BAP//AgD9/wMA/v8AAAEA//8BAP//AQD//wEA//8AAAEA/v8EAPz/AgD//wAAAQAAAP//AAABAP//AQD//wEAAAD//wEA//8BAAEA/f8DAP7/AQABAP3/AwD+/wIA/////wEAAAAAAAAAAAD//wIA/v8CAP////8CAP7/AgD//wAA//8CAP3/BAD9/wAAAgD9/wMA/v8BAP//AQAAAP//AQAAAP//AgD9/wMA/f8EAPz/AwD+/wEAAAAAAAAAAAD//wIA/f8EAP3/AAABAAAA//8CAP7/AQAAAP//AQAAAAAA//8BAP//AQAAAP//AQAAAP//AQAAAP//AgD9/wMA/v8BAP//AQAAAP//AQD//wIA/v8CAP3/BAD9/wEAAAD//wEAAQD9/wMA/f8CAAAA/v8DAP3/AgD//wAAAQD+/wIA/v8CAP7/AQAAAP//AgD+/wEAAAAAAP//AwD7/wUA/f8BAAEA/v8BAAEA/v8DAP3/AgD//wEA//8BAP//AQD//wEA//8CAP3/BAD7/wQA/////wIA/v8AAAIA/v8CAP3/BAD7/wUA/P8DAP3/AwD9/wMA/v8AAAIA/v8CAP7/AgD+/wIA//8AAAEA/v8CAP7/AgD//wAAAAD//wEAAAAAAAAA//8BAP7/BAD7/wUA/P8CAAAA//8BAP//AQAAAP//AgD9/wMA/v8BAAAA//8BAAAA//8CAP3/AwD+/wEA//8CAP3/AwD+/wAAAwD8/wIAAAD//wIA/////wIA/v8CAP7/AgD+/wEAAAAAAAAAAAAAAP//AgD+/wIA//8AAAAA//8CAP7/AgD+/wEA//8CAP3/AwD9/wMA/v8BAP7/AwD9/wMA/f8CAP//AQD+/wIA//8BAP//AQD+/wMA/v8BAAAA//8BAAAA//8CAP7/AQAAAP//AgD+/wIA/v8CAP//AAAAAAEA//8BAP//AAABAAAA//8BAP//AQD//wEA//8BAP//AQAAAP//AQD//wEAAAD//wIA/f8CAAAA//8BAAAA//8BAP//AAABAP//AQD//wAAAAAAAAEA/v8CAP//AQD//wAAAAABAP7/AwD9/wIAAAD+/wIA//8BAP//AgD9/wMA/f8DAP7/AgD+/wEAAAAAAAEA/v8CAP7/AgD//wAAAAAAAAAAAAAAAP//AgD/////AgD9/wQA/f8BAAAAAAAAAAEA/f8DAP////8DAP3/AQABAP7/AgD//wAAAQD+/wMA/f8CAP7/AQABAP7/AwD7/wYA+v8FAP3/AQABAP7/AgD+/wMA/f8CAP7/AwD+/wEA//8BAP//AQAAAP7/BQD5/wcA+v8FAPz/AwD+/wIA/v8BAAAA//8DAPv/BQD8/wMA/////wEAAAAAAAAAAAD//wIA/f8DAP7/AQAAAP//AQAAAP//AgD+/wIA/v8BAAEA/f8EAPz/AwD+/wEA//8CAP7/AQD//wEA//8CAP7/AQAAAP//AgD+/wEAAAAAAAAAAAAAAAAAAAD//wIA/f8EAPz/AwD+/wEA//8CAP7/AgD+/wEAAQD+/wEAAQD+/wIA/////wIA//8AAAAAAAAAAAAAAAD//wEAAAAAAP//AgD9/wMA/v8BAP//AQAAAP//AQD//wEA//8BAP//AQD//wEA//8BAP//AQAAAP7/AwD9/wMA/v8BAP7/AwD9/wMA/v8BAP//AAABAP//AQD//wAAAAABAP//AAAAAAAAAQD//wEA/v8CAAAA/v8EAPv/BAD9/wIAAAD+/wMA/P8DAP//AAAAAP//AQD//wIA/f8DAP3/AwD9/wMA/v8BAAAA//8BAAAA//8CAP3/AwD9/wQA+/8FAPv/BQD8/wMA/v8BAAAA//8BAP//AgD+/wEAAAD//wIA/v8BAAEA/f8DAP3/AgAAAP//AQD//wAAAQD//wEA//8BAP//AQD//wEA/v8DAP3/AgAAAP7/AwD9/wIAAAD//wEAAAD//wIA/f8DAP7/AgD9/wQA+/8FAPz/AgAAAP//AgD9/wIA//8BAP//AQD//wEA//8BAP//AQD//wIA/f8DAP3/AgD//wAAAQD+/wIA/v8BAAEA/v8CAP7/AgD+/wMA/P8DAP//AAABAP7/AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA/v8CAP3/BAD8/wMA/v8BAAAAAAD//wEAAAAAAAAAAAD//wEAAAAAAAAA//8BAP//AgD+/wEA//8CAP3/AwD9/wMA/f8EAPv/BAD+/wAAAQD//wEA//8BAP//AAABAP//AQD//wEAAAD//wEA//8BAP//AgD9/wMA/v8AAAIA/f8DAP7/AAACAP3/AwD+/wEA//8BAP//AQAAAP//AQAAAP7/AwD9/wMA/v8AAAEA//8BAP//AAAAAAEA//8AAAEA/v8CAP//AAAAAAEA/v8DAPz/BAD9/wEAAQD+/wEAAQD9/wQA/P8DAP7/AQAAAAAAAAAAAAAAAAAAAAAAAQD+/wIA/////wIA/v8BAAAA//8BAP//AQD//wEA//8BAAAA/v8EAPz/AwD///7/BAD8/wMA/////wIA/v8CAP////8CAP7/AgD+/wIA/v8CAP////8CAP7/AwD9/wIA/v8CAP//AAABAP7/AwD9/wEAAQD+/wMA/f8CAP//AAAAAAEA/v8DAPz/BAD9/wIA/v8CAP7/AgD//wAAAAD//wIA/v8CAP7/AQAAAAAA//8CAP7/AgD+/wIA/v8CAP7/AwD8/wUA+v8GAPv/AwD//wAAAAAAAAAA//8DAPv/BQD9/wAAAgD9/wMA/v8BAP//AQAAAP//AgD9/wMA/v8BAAAA//8BAAAAAAAAAP//AQAAAAAAAAD//wEA//8CAP3/AwD+/wAAAgD+/wEAAAD//wIA/v8CAP7/AgD/////AwD8/wUA/P8CAP//AQD//wIA/f8DAP3/AwD+/wAAAQD+/wMA/f8DAP3/AgD//wAAAQD//wEA//8BAP7/AwD+/wEA//8AAAEA//8CAPz/BAD9/wIA//8AAAEA/v8DAPz/BAD9/wIA//8AAAEA/v8CAP7/AgD//wEA/f8EAPz/BAD+////AgD//wAAAQD//wAAAQD//wEA//8BAP7/AwD+/wEA";
+}}catch(o){return void addTest("audiopreload",!1)}n.setAttribute("preload","auto"),n.style.cssText="display:none",docElement.appendChild(n),setTimeout(function(){n.addEventListener("loadeddata",A,!1),e=setTimeout(A,t)},0)}),Modernizr.addAsyncTest(function(){function A(){function t(){try{var A=createElement("div"),e=createElement("span"),t=A.style,n=0,r=0,o=!1,i=document.body.firstElementChild||document.body.firstChild;return A.appendChild(e),e.innerHTML="Bacon ipsum dolor sit amet jerky velit in culpa hamburger et. Laborum dolor proident, enim dolore duis commodo et strip steak. Salami anim et, veniam consectetur dolore qui tenderloin jowl velit sirloin. Et ad culpa, fatback cillum jowl ball tip ham hock nulla short ribs pariatur aute. Pig pancetta ham bresaola, ut boudin nostrud commodo flank esse cow tongue culpa. Pork belly bresaola enim pig, ea consectetur nisi. Fugiat officia turkey, ea cow jowl pariatur ullamco proident do laborum velit sausage. Magna biltong sint tri-tip commodo sed bacon, esse proident aliquip. Ullamco ham sint fugiat, velit in enim sed mollit nulla cow ut adipisicing nostrud consectetur. Proident dolore beef ribs, laborum nostrud meatball ea laboris rump cupidatat labore culpa. Shankle minim beef, velit sint cupidatat fugiat tenderloin pig et ball tip. Ut cow fatback salami, bacon ball tip et in shank strip steak bresaola. In ut pork belly sed mollit tri-tip magna culpa veniam, short ribs qui in andouille ham consequat. Dolore bacon t-bone, velit short ribs enim strip steak nulla. Voluptate labore ut, biltong swine irure jerky. Cupidatat excepteur aliquip salami dolore. Ball tip strip steak in pork dolor. Ad in esse biltong. Dolore tenderloin exercitation ad pork loin t-bone, dolore in chicken ball tip qui pig. Ut culpa tongue, sint ribeye dolore ex shank voluptate hamburger. Jowl et tempor, boudin pork chop labore ham hock drumstick consectetur tri-tip elit swine meatball chicken ground round. Proident shankle mollit dolore. Shoulder ut duis t-bone quis reprehenderit. Meatloaf dolore minim strip steak, laboris ea aute bacon beef ribs elit shank in veniam drumstick qui. Ex laboris meatball cow tongue pork belly. Ea ball tip reprehenderit pig, sed fatback boudin dolore flank aliquip laboris eu quis. Beef ribs duis beef, cow corned beef adipisicing commodo nisi deserunt exercitation. Cillum dolor t-bone spare ribs, ham hock est sirloin. Brisket irure meatloaf in, boudin pork belly sirloin ball tip. Sirloin sint irure nisi nostrud aliqua. Nostrud nulla aute, enim officia culpa ham hock. Aliqua reprehenderit dolore sunt nostrud sausage, ea boudin pork loin ut t-bone ham tempor. Tri-tip et pancetta drumstick laborum. Ham hock magna do nostrud in proident. Ex ground round fatback, venison non ribeye in.",document.body.insertBefore(A,i),t.cssText="position:absolute;top:0;left:0;width:5em;text-align:justify;text-justification:newspaper;",n=e.offsetHeight,r=e.offsetWidth,t.cssText="position:absolute;top:0;left:0;width:5em;text-align:justify;text-justification:newspaper;"+prefixes.join("hyphens:auto; "),o=e.offsetHeight!=n||e.offsetWidth!=r,document.body.removeChild(A),A.removeChild(e),o}catch(d){return!1}}function n(A,e){try{var t=createElement("div"),n=createElement("span"),r=t.style,o=0,i=!1,d=!1,a=!1,s=document.body.firstElementChild||document.body.firstChild;return r.cssText="position:absolute;top:0;left:0;overflow:visible;width:1.25em;",t.appendChild(n),document.body.insertBefore(t,s),n.innerHTML="mm",o=n.offsetHeight,n.innerHTML="m"+A+"m",d=n.offsetHeight>o,e?(n.innerHTML="m<br />m",o=n.offsetWidth,n.innerHTML="m"+A+"m",a=n.offsetWidth>o):a=!0,d===!0&&a===!0&&(i=!0),document.body.removeChild(t),t.removeChild(n),i}catch(l){return!1}}function r(A){try{var e,t=createElement("input"),n=createElement("div"),r="lebowski",o=!1,i=document.body.firstElementChild||document.body.firstChild;n.innerHTML=r+A+r,document.body.insertBefore(n,i),document.body.insertBefore(t,n),t.setSelectionRange?(t.focus(),t.setSelectionRange(0,0)):t.createTextRange&&(e=t.createTextRange(),e.collapse(!0),e.moveEnd("character",0),e.moveStart("character",0),e.select());try{window.find?o=window.find(r+r):(e=window.self.document.body.createTextRange(),o=e.findText(r+r))}catch(d){o=!1}return document.body.removeChild(n),document.body.removeChild(t),o}catch(d){return!1}}return document.body||document.getElementsByTagName("body")[0]?(addTest("csshyphens",function(){if(!testAllProps("hyphens","auto",!0))return!1;try{return t()}catch(A){return!1}}),addTest("softhyphens",function(){try{return n("&#173;",!0)&&n("&#8203;",!1)}catch(A){return!1}}),void addTest("softhyphensfind",function(){try{return r("&#173;")&&r("&#8203;")}catch(A){return!1}})):void setTimeout(A,e)}var e=300;setTimeout(A,e)}),Modernizr.addAsyncTest(function(){if(!Modernizr.canvas)return!1;var A=new Image,e=createElement("canvas"),t=e.getContext("2d");A.onload=function(){addTest("apng",function(){return"undefined"==typeof e.getContext?!1:(t.drawImage(A,0,0),0===t.getImageData(0,0,1,1).data[3])})},A.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACGFjVEwAAAABAAAAAcMq2TYAAAANSURBVAiZY2BgYPgPAAEEAQB9ssjfAAAAGmZjVEwAAAAAAAAAAQAAAAEAAAAAAAAAAAD6A+gBAbNU+2sAAAARZmRBVAAAAAEImWNgYGBgAAAABQAB6MzFdgAAAABJRU5ErkJggg=="}),Modernizr.addAsyncTest(function(){var A=new Image;A.onload=A.onerror=function(){addTest("jpeg2000",1==A.width)},A.src="data:image/jp2;base64,/0//UQAyAAAAAAABAAAAAgAAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAEBwEBBwEBBwEBBwEB/1IADAAAAAEAAAQEAAH/XAAEQED/ZAAlAAFDcmVhdGVkIGJ5IE9wZW5KUEVHIHZlcnNpb24gMi4wLjD/kAAKAAAAAABYAAH/UwAJAQAABAQAAf9dAAUBQED/UwAJAgAABAQAAf9dAAUCQED/UwAJAwAABAQAAf9dAAUDQED/k8+kEAGvz6QQAa/PpBABr994EAk//9k="}),Modernizr.addAsyncTest(function(){var A=new Image;A.onload=A.onerror=function(){addTest("jpegxr",1==A.width,{aliases:["jpeg-xr"]})},A.src="data:image/vnd.ms-photo;base64,SUm8AQgAAAAFAAG8AQAQAAAASgAAAIC8BAABAAAAAQAAAIG8BAABAAAAAQAAAMC8BAABAAAAWgAAAMG8BAABAAAAHwAAAAAAAAAkw91vA07+S7GFPXd2jckNV01QSE9UTwAZAYBxAAAAABP/gAAEb/8AAQAAAQAAAA=="}),Modernizr.addAsyncTest(function(){var A,e,t,n=createElement("img"),r="sizes"in n;!r&&"srcset"in n?(e="data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==",A="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",t=function(){addTest("sizes",2==n.width)},n.onload=t,n.onerror=t,n.setAttribute("sizes","9px"),n.srcset=A+" 1w,"+e+" 8w",n.src=A):addTest("sizes",r)}),Modernizr.addAsyncTest(function(){var A=new Image;A.onerror=function(){addTest("webpalpha",!1,{aliases:["webp-alpha"]})},A.onload=function(){addTest("webpalpha",1==A.width,{aliases:["webp-alpha"]})},A.src="data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA=="}),Modernizr.addAsyncTest(function(){var A=new Image;A.onerror=function(){addTest("webpanimation",!1,{aliases:["webp-animation"]})},A.onload=function(){addTest("webpanimation",1==A.width,{aliases:["webp-animation"]})},A.src="data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"}),Modernizr.addAsyncTest(function(){var A=new Image;A.onerror=function(){addTest("webplossless",!1,{aliases:["webp-lossless"]})},A.onload=function(){addTest("webplossless",1==A.width,{aliases:["webp-lossless"]})},A.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}),Modernizr.addAsyncTest(function(){function A(A,e,t){function n(e){var n=e&&"load"===e.type?1==r.width:!1,o="webp"===A;addTest(A,o?new Boolean(n):n),t&&t(e)}var r=new Image;r.onerror=n,r.onload=n,r.src=e}var e=[{uri:"data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA=",name:"webp"},{uri:"data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==",name:"webp.alpha"},{uri:"data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA",name:"webp.animation"},{uri:"data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=",name:"webp.lossless"}],t=e.shift();A(t.name,t.uri,function(t){if(t&&"load"===t.type)for(var n=0;n<e.length;n++)A(e[n].name,e[n].uri)})}),Modernizr.addTest("svgasimg",document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")),Modernizr.addAsyncTest(function(){function A(){var A=new Image;A.onerror=function(){addTest("datauri",!0),Modernizr.datauri=new Boolean(!0),Modernizr.datauri.over32kb=!1},A.onload=function(){addTest("datauri",!0),Modernizr.datauri=new Boolean(!0),Modernizr.datauri.over32kb=1==A.width&&1==A.height};for(var e="R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";e.length<33e3;)e="\r\n"+e;A.src="data:image/gif;base64,"+e}-1!==navigator.userAgent.indexOf("MSIE 7.")&&setTimeout(function(){addTest("datauri",!1)},10);var e=new Image;e.onerror=function(){addTest("datauri",!1)},e.onload=function(){1==e.width&&1==e.height?A():addTest("datauri",!1)},e.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="}),Modernizr.addAsyncTest(function(){function A(t){clearTimeout(e),n.removeEventListener("playing",A,!1),addTest("videoautoplay",t&&"playing"===t.type||0!==n.currentTime),n.parentNode.removeChild(n)}var e,t=300,n=createElement("video"),r=n.style;if(!(Modernizr.video&&"autoplay"in n))return void addTest("videoautoplay",!1);r.position="absolute",r.height=0,r.width=0;try{if(Modernizr.video.ogg)n.src="data:video/ogg;base64,T2dnUwACAAAAAAAAAABmnCATAAAAAHDEixYBKoB0aGVvcmEDAgEAAQABAAAQAAAQAAAAAAAFAAAAAQAAAAAAAAAAAGIAYE9nZ1MAAAAAAAAAAAAAZpwgEwEAAAACrA7TDlj///////////////+QgXRoZW9yYSsAAABYaXBoLk9yZyBsaWJ0aGVvcmEgMS4xIDIwMDkwODIyIChUaHVzbmVsZGEpAQAAABoAAABFTkNPREVSPWZmbXBlZzJ0aGVvcmEtMC4yOYJ0aGVvcmG+zSj3uc1rGLWpSUoQc5zmMYxSlKQhCDGMYhCEIQhAAAAAAAAAAAAAEW2uU2eSyPxWEvx4OVts5ir1aKtUKBMpJFoQ/nk5m41mUwl4slUpk4kkghkIfDwdjgajQYC8VioUCQRiIQh8PBwMhgLBQIg4FRba5TZ5LI/FYS/Hg5W2zmKvVoq1QoEykkWhD+eTmbjWZTCXiyVSmTiSSCGQh8PB2OBqNBgLxWKhQJBGIhCHw8HAyGAsFAiDgUCw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDAwPEhQUFQ0NDhESFRUUDg4PEhQVFRUOEBETFBUVFRARFBUVFRUVEhMUFRUVFRUUFRUVFRUVFRUVFRUVFRUVEAwLEBQZGxwNDQ4SFRwcGw4NEBQZHBwcDhATFhsdHRwRExkcHB4eHRQYGxwdHh4dGxwdHR4eHh4dHR0dHh4eHRALChAYKDM9DAwOExo6PDcODRAYKDlFOA4RFh0zV1A+EhYlOkRtZ00YIzdAUWhxXDFATldneXhlSFxfYnBkZ2MTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEhIVGRoaGhoSFBYaGhoaGhUWGRoaGhoaGRoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhESFh8kJCQkEhQYIiQkJCQWGCEkJCQkJB8iJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQREhgvY2NjYxIVGkJjY2NjGBo4Y2NjY2MvQmNjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRISEhUXGBkbEhIVFxgZGxwSFRcYGRscHRUXGBkbHB0dFxgZGxwdHR0YGRscHR0dHhkbHB0dHR4eGxwdHR0eHh4REREUFxocIBERFBcaHCAiERQXGhwgIiUUFxocICIlJRcaHCAiJSUlGhwgIiUlJSkcICIlJSUpKiAiJSUlKSoqEBAQFBgcICgQEBQYHCAoMBAUGBwgKDBAFBgcICgwQEAYHCAoMEBAQBwgKDBAQEBgICgwQEBAYIAoMEBAQGCAgAfF5cdH1e3Ow/L66wGmYnfIUbwdUTe3LMRbqON8B+5RJEvcGxkvrVUjTMrsXYhAnIwe0dTJfOYbWrDYyqUrz7dw/JO4hpmV2LsQQvkUeGq1BsZLx+cu5iV0e0eScJ91VIQYrmqfdVSK7GgjOU0oPaPOu5IcDK1mNvnD+K8LwS87f8Jx2mHtHnUkTGAurWZlNQa74ZLSFH9oF6FPGxzLsjQO5Qe0edcpttd7BXBSqMCL4k/4tFrHIPuEQ7m1/uIWkbDMWVoDdOSuRQ9286kvVUlQjzOE6VrNguN4oRXYGkgcnih7t13/9kxvLYKQezwLTrO44sVmMPgMqORo1E0sm1/9SludkcWHwfJwTSybR4LeAz6ugWVgRaY8mV/9SluQmtHrzsBtRF/wPY+X0JuYTs+ltgrXAmlk10xQHmTu9VSIAk1+vcvU4ml2oNzrNhEtQ3CysNP8UeR35wqpKUBdGdZMSjX4WVi8nJpdpHnbhzEIdx7mwf6W1FKAiucMXrWUWVjyRf23chNtR9mIzDoT/6ZLYailAjhFlZuvPtSeZ+2oREubDoWmT3TguY+JHPdRVSLKxfKH3vgNqJ/9emeEYikGXDFNzaLjvTeGAL61mogOoeG3y6oU4rW55ydoj0lUTSR/mmRhPmF86uwIfzp3FtiufQCmppaHDlGE0r2iTzXIw3zBq5hvaTldjG4CPb9wdxAme0SyedVKczJ9AtYbgPOzYKJvZZImsN7ecrxWZg5dR6ZLj/j4qpWsIA+vYwE+Tca9ounMIsrXMB4Stiib2SPQtZv+FVIpfEbzv8ncZoLBXc3YBqTG1HsskTTotZOYTG+oVUjLk6zhP8bg4RhMUNtfZdO7FdpBuXzhJ5Fh8IKlJG7wtD9ik8rWOJxy6iQ3NwzBpQ219mlyv+FLicYs2iJGSE0u2txzed++D61ZWCiHD/cZdQVCqkO2gJpdpNaObhnDfAPrT89RxdWFZ5hO3MseBSIlANppdZNIV/Rwe5eLTDvkfWKzFnH+QJ7m9QWV1KdwnuIwTNtZdJMoXBf74OhRnh2t+OTGL+AVUnIkyYY+QG7g9itHXyF3OIygG2s2kud679ZWKqSFa9n3IHD6MeLv1lZ0XyduRhiDRtrNnKoyiFVLcBm0ba5Yy3fQkDh4XsFE34isVpOzpa9nR8iCpS4HoxG2rJpnRhf3YboVa1PcRouh5LIJv/uQcPNd095ickTaiGBnWLKVWRc0OnYTSyex/n2FofEPnDG8y3PztHrzOLK1xo6RAml2k9owKajOC0Wr4D5x+3nA0UEhK2m198wuBHF3zlWWVKWLN1CHzLClUfuoYBcx4b1llpeBKmbayaR58njtE9onD66lUcsg0Spm2snsb+8HaJRn4dYcLbCuBuYwziB8/5U1C1DOOz2gZjSZtrLJk6vrLF3hwY4Io9xuT/ruUFRSBkNtUzTOWhjh26irLEPx4jPZL3Fo3QrReoGTTM21xYTT9oFdhTUIvjqTkfkvt0bzgVUjq/hOYY8j60IaO/0AzRBtqkTS6R5ellZd5uKdzzhb8BFlDdAcrwkE0rbXTOPB+7Y0FlZO96qFL4Ykg21StJs8qIW7h16H5hGiv8V2Cflau7QVDepTAHa6Lgt6feiEvJDM21StJsmOH/hynURrKxvUpQ8BH0JF7BiyG2qZpnL/7AOU66gt+reLEXY8pVOCQvSsBtqZTNM8bk9ohRcwD18o/WVkbvrceVKRb9I59IEKysjBeTMmmbA21xu/6iHadLRxuIzkLpi8wZYmmbbWi32RVAUjruxWlJ//iFxE38FI9hNKOoCdhwf5fDe4xZ81lgREhK2m1j78vW1CqkuMu/AjBNK210kzRUX/B+69cMMUG5bYrIeZxVSEZISmkzbXOi9yxwIfPgdsov7R71xuJ7rFcACjG/9PzApqFq7wEgzNJm2suWESPuwrQvejj7cbnQxMkxpm21lUYJL0fKmogPPqywn7e3FvB/FCNxPJ85iVUkCE9/tLKx31G4CgNtWTTPFhMvlu8G4/TrgaZttTChljfNJGgOT2X6EqpETy2tYd9cCBI4lIXJ1/3uVUllZEJz4baqGF64yxaZ+zPLYwde8Uqn1oKANtUrSaTOPHkhvuQP3bBlEJ/LFe4pqQOHUI8T8q7AXx3fLVBgSCVpMba55YxN3rv8U1Dv51bAPSOLlZWebkL8vSMGI21lJmmeVxPRwFlZF1CpqCN8uLwymaZyjbXHCRytogPN3o/n74CNykfT+qqRv5AQlHcRxYrC5KvGmbbUwmZY/29BvF6C1/93x4WVglXDLFpmbapmF89HKTogRwqqSlGbu+oiAkcWFbklC6Zhf+NtTLFpn8oWz+HsNRVSgIxZWON+yVyJlE5tq/+GWLTMutYX9ekTySEQPLVNQQ3OfycwJBM0zNtZcse7CvcKI0V/zh16Dr9OSA21MpmmcrHC+6pTAPHPwoit3LHHqs7jhFNRD6W8+EBGoSEoaZttTCZljfduH/fFisn+dRBGAZYtMzbVMwvul/T/crK1NQh8gN0SRRa9cOux6clC0/mDLFpmbarmF8/e6CopeOLCNW6S/IUUg3jJIYiAcDoMcGeRbOvuTPjXR/tyo79LK3kqqkbxkkMRAOB0GODPItnX3Jnxro/25Ud+llbyVVSN4ySGIgHA6DHBnkWzr7kz410f7cqO/Syt5KqpFVJwn6gBEvBM0zNtZcpGOEPiysW8vvRd2R0f7gtjhqUvXL+gWVwHm4XJDBiMpmmZtrLfPwd/IugP5+fKVSysH1EXreFAcEhelGmbbUmZY4Xdo1vQWVnK19P4RuEnbf0gQnR+lDCZlivNM22t1ESmopPIgfT0duOfQrsjgG4tPxli0zJmF5trdL1JDUIUT1ZXSqQDeR4B8mX3TrRro/2McGeUvLtwo6jIEKMkCUXWsLyZROd9P/rFYNtXPBli0z398iVUlVKAjFlY437JXImUTm2r/4ZYtMy61hf16RPJIU9nZ1MABAwAAAAAAAAAZpwgEwIAAABhp658BScAAAAAAADnUFBQXIDGXLhwtttNHDhw5OcpQRMETBEwRPduylKVB0HRdF0A";else{if(!Modernizr.video.h264)return void addTest("videoautoplay",!1);n.src="data:video/mp4;base64,AAAAHGZ0eXBtcDQyAAAAAG1wNDJpc29tYXZjMQAAAz5tb292AAAAbG12aGQAAAAAzaNacc2jWnEAAV+QAAFfkAABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAGGlvZHMAAAAAEICAgAcAT////3//AAACQ3RyYWsAAABcdGtoZAAAAAHNo1pxzaNacQAAAAEAAAAAAAFfkAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAEAAAABAAAAAAAd9tZGlhAAAAIG1kaGQAAAAAzaNacc2jWnEAAV+QAAFfkFXEAAAAAAAhaGRscgAAAAAAAAAAdmlkZQAAAAAAAAAAAAAAAAAAAAGWbWluZgAAABR2bWhkAAAAAQAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAABVnN0YmwAAACpc3RzZAAAAAAAAAABAAAAmWF2YzEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAEAAQAEgAAABIAAAAAAAAAAEOSlZUL0FWQyBDb2RpbmcAAAAAAAAAAAAAAAAAAAAAAAAY//8AAAAxYXZjQwH0AAr/4QAZZ/QACq609NQYBBkAAAMAAQAAAwAKjxImoAEABWjOAa8gAAAAEmNvbHJuY2xjAAYAAQAGAAAAGHN0dHMAAAAAAAAAAQAAAAUAAEZQAAAAKHN0c3oAAAAAAAAAAAAAAAUAAAIqAAAACAAAAAgAAAAIAAAACAAAAChzdHNjAAAAAAAAAAIAAAABAAAABAAAAAEAAAACAAAAAQAAAAEAAAAYc3RjbwAAAAAAAAACAAADYgAABaQAAAAUc3RzcwAAAAAAAAABAAAAAQAAABFzZHRwAAAAAAREREREAAAAb3VkdGEAAABnbWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcgAAAAAAAAAAAAAAAAAAAAA6aWxzdAAAADKpdG9vAAAAKmRhdGEAAAABAAAAAEhhbmRCcmFrZSAwLjkuOCAyMDEyMDcxODAwAAACUm1kYXQAAAHkBgX/4NxF6b3m2Ui3lizYINkj7u94MjY0IC0gY29yZSAxMjAgLSBILjI2NC9NUEVHLTQgQVZDIGNvZGVjIC0gQ29weWxlZnQgMjAwMy0yMDExIC0gaHR0cDovL3d3dy52aWRlb2xhbi5vcmcveDI2NC5odG1sIC0gb3B0aW9uczogY2FiYWM9MCByZWY9MSBkZWJsb2NrPTE6MDowIGFuYWx5c2U9MHgxOjAgbWU9ZXNhIHN1Ym1lPTkgcHN5PTAgbWl4ZWRfcmVmPTAgbWVfcmFuZ2U9NCBjaHJvbWFfbWU9MSB0cmVsbGlzPTAgOHg4ZGN0PTAgY3FtPTAgZGVhZHpvbmU9MjEsMTEgZmFzdF9wc2tpcD0wIGNocm9tYV9xcF9vZmZzZXQ9MCB0aHJlYWRzPTYgc2xpY2VkX3RocmVhZHM9MCBucj0wIGRlY2ltYXRlPTEgaW50ZXJsYWNlZD0wIGJsdXJheV9jb21wYXQ9MCBjb25zdHJhaW5lZF9pbnRyYT0wIGJmcmFtZXM9MCB3ZWlnaHRwPTAga2V5aW50PTUwIGtleWludF9taW49NSBzY2VuZWN1dD00MCBpbnRyYV9yZWZyZXNoPTAgcmM9Y3FwIG1idHJlZT0wIHFwPTAAgAAAAD5liISscR8A+E4ACAACFoAAITAAAgsAAPgYCoKgoC+L4vi+KAvi+L4YfAEAACMzgABF9AAEUGUgABDJiXnf4AAAAARBmiKUAAAABEGaQpQAAAAEQZpilAAAAARBmoKU"}}catch(o){return void addTest("videoautoplay",!1)}n.setAttribute("autoplay",""),n.style.cssText="display:none",docElement.appendChild(n),setTimeout(function(){n.addEventListener("playing",A,!1),e=setTimeout(A,t)},0)}),Modernizr.addAsyncTest(function(){function A(){addTest("blobworkers",!1),e()}function e(){d&&n.revokeObjectURL(d),i&&i.terminate(),a&&clearTimeout(a)}try{var t=window.BlobBuilder,n=window.URL;Modernizr._config.usePrefix&&(t=t||window.MozBlobBuilder||window.WebKitBlobBuilder||window.MSBlobBuilder||window.OBlobBuilder,n=n||window.MozURL||window.webkitURL||window.MSURL||window.OURL);var r,o,i,d,a,s="Modernizr",l="this.onmessage=function(e){postMessage(e.data)}";try{r=new Blob([l],{type:"text/javascript"})}catch(c){}r||(o=new t,o.append(l),r=o.getBlob()),d=n.createObjectURL(r),i=new Worker(d),i.onmessage=function(A){addTest("blobworkers",s===A.data),e()},i.onerror=A,a=setTimeout(A,200),i.postMessage(s)}catch(c){A()}}),Modernizr.addAsyncTest(function(){try{var A="Modernizr",e=new Worker("data:text/javascript;base64,dGhpcy5vbm1lc3NhZ2U9ZnVuY3Rpb24oZSl7cG9zdE1lc3NhZ2UoZS5kYXRhKX0=");e.onmessage=function(t){e.terminate(),addTest("dataworkers",A===t.data),e=null},e.onerror=function(){addTest("dataworkers",!1),e=null},setTimeout(function(){addTest("dataworkers",!1)},200),e.postMessage(A)}catch(t){setTimeout(function(){addTest("dataworkers",!1)},0)}}),Modernizr.addAsyncTest(function(){function A(){addTest("transferables",!1),e()}function e(){d&&URL.revokeObjectURL(d),a&&a.terminate(),r&&clearTimeout(r)}var t=!!(Modernizr.blobconstructor&&Modernizr.bloburls&&Modernizr.webworkers&&Modernizr.typedarrays);if(!t)return addTest("transferables",!1);try{var n,r,o='var hello = "world"',i=new Blob([o],{type:"text/javascript"}),d=URL.createObjectURL(i),a=new Worker(d);a.onerror=A,r=setTimeout(A,200),n=new ArrayBuffer(1),a.postMessage(n,[n]),addTest("transferables",0===n.byteLength),e()}catch(s){A()}});var inputElem=createElement("input"),inputattrs="autocomplete autofocus list placeholder max min multiple pattern required step".split(" "),attrs={};Modernizr.input=function(A){for(var e=0,t=A.length;t>e;e++)attrs[A[e]]=!!(A[e]in inputElem);return attrs.list&&(attrs.list=!(!createElement("datalist")||!window.HTMLDataListElement)),attrs}(inputattrs),Modernizr.addTest("datalistelem",Modernizr.input.list);var inputtypes="search tel url email datetime date month week time datetime-local number range color".split(" "),inputs={};Modernizr.inputtypes=function(A){for(var e,t,n,r=A.length,o="1)",i=0;r>i;i++)inputElem.setAttribute("type",e=A[i]),n="text"!==inputElem.type&&"style"in inputElem,n&&(inputElem.value=o,inputElem.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(e)&&inputElem.style.WebkitAppearance!==undefined?(docElement.appendChild(inputElem),t=document.defaultView,n=t.getComputedStyle&&"textfield"!==t.getComputedStyle(inputElem,null).WebkitAppearance&&0!==inputElem.offsetHeight,docElement.removeChild(inputElem)):/^(search|tel)$/.test(e)||(n=/^(url|email)$/.test(e)?inputElem.checkValidity&&inputElem.checkValidity()===!1:inputElem.value!=o)),inputs[A[i]]=!!n;return inputs}(inputtypes),Modernizr.addTest("localizednumber",function(){if(!Modernizr.inputtypes.number)return!1;if(!Modernizr.formvalidation)return!1;var A,e=createElement("div"),t=getBody(),n=function(){return docElement.insertBefore(t,docElement.firstElementChild||docElement.firstChild)}();e.innerHTML='<input type="number" value="1.0" step="0.1"/>';var r=e.childNodes[0];n.appendChild(e),r.focus();try{document.execCommand("InsertText",!1,"1,1")}catch(o){}return A="number"===r.type&&1.1===r.valueAsNumber&&r.checkValidity(),n.removeChild(e),t.fake&&n.parentNode.removeChild(n),A}),testStyles("#modernizr1{width: 50vmax}#modernizr2{width:50px;height:50px;overflow:scroll}#modernizr3{position:fixed;top:0;left:0;bottom:0;right:0}",function(A){var e=A.childNodes[2],t=A.childNodes[1],n=A.childNodes[0],r=parseInt((t.offsetWidth-t.clientWidth)/2,10),o=n.clientWidth/100,i=n.clientHeight/100,d=parseInt(50*Math.max(o,i),10),a=parseInt((window.getComputedStyle?getComputedStyle(e,null):e.currentStyle).width,10);Modernizr.addTest("cssvmaxunit",roundedEquals(d,a)||roundedEquals(d,a-r))},3),testStyles("#modernizr1{width: 50vm;width:50vmin}#modernizr2{width:50px;height:50px;overflow:scroll}#modernizr3{position:fixed;top:0;left:0;bottom:0;right:0}",function(A){var e=A.childNodes[2],t=A.childNodes[1],n=A.childNodes[0],r=parseInt((t.offsetWidth-t.clientWidth)/2,10),o=n.clientWidth/100,i=n.clientHeight/100,d=parseInt(50*Math.min(o,i),10),a=parseInt((window.getComputedStyle?getComputedStyle(e,null):e.currentStyle).width,10);Modernizr.addTest("cssvminunit",roundedEquals(d,a)||roundedEquals(d,a-r))},3);var testXhrType=function(A){if("undefined"==typeof XMLHttpRequest)return!1;var e=new XMLHttpRequest;e.open("get","/",!0);try{e.responseType=A}catch(t){return!1}return"response"in e&&e.responseType==A};Modernizr.addTest("xhrresponsetypearraybuffer",testXhrType("arraybuffer")),Modernizr.addTest("xhrresponsetypeblob",testXhrType("blob")),Modernizr.addTest("xhrresponsetypedocument",testXhrType("document")),Modernizr.addTest("xhrresponsetypejson",testXhrType("json")),Modernizr.addTest("xhrresponsetypetext",testXhrType("text"));var toStringFn={}.toString;Modernizr.addTest("svgclippaths",function(){return!!document.createElementNS&&/SVGClipPath/.test(toStringFn.call(document.createElementNS("http://www.w3.org/2000/svg","clipPath")))}),Modernizr.addTest("svgforeignobject",function(){return!!document.createElementNS&&/SVGForeignObject/.test(toStringFn.call(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")))}),Modernizr.addTest("smil",function(){return!!document.createElementNS&&/SVGAnimate/.test(toStringFn.call(document.createElementNS("http://www.w3.org/2000/svg","animate")))}),testRunner(),setClasses(classes),delete ModernizrProto.addTest,delete ModernizrProto.addAsyncTest;for(var i=0;i<Modernizr._q.length;i++)Modernizr._q[i]();window.Modernizr=Modernizr}(window,document);
\ No newline at end of file
diff --git a/js/navigation.js b/js/navigation.js
new file mode 100644 (file)
index 0000000..24c83e8
--- /dev/null
@@ -0,0 +1,81 @@
+/**
+ * navigation.js
+ *
+ * Handles toggling the navigation menu for small screens and enables tab
+ * support for dropdown menus.
+ */
+( function() {
+       var container, button, menu, links, subMenus;
+
+       container = document.getElementById( 'site-navigation' );
+       if ( ! container ) {
+               return;
+       }
+
+       button = container.getElementsByTagName( 'button' )[0];
+       if ( 'undefined' === typeof button ) {
+               return;
+       }
+
+       menu = container.getElementsByTagName( 'ul' )[0];
+
+       // Hide menu toggle button if menu is empty and return early.
+       if ( 'undefined' === typeof menu ) {
+               button.style.display = 'none';
+               return;
+       }
+
+       menu.setAttribute( 'aria-expanded', 'false' );
+       if ( -1 === menu.className.indexOf( 'nav-menu' ) ) {
+               menu.className += ' nav-menu';
+       }
+
+       button.onclick = function() {
+               if ( -1 !== container.className.indexOf( 'toggled' ) ) {
+                       container.className = container.className.replace( ' toggled', '' );
+                       button.setAttribute( 'aria-expanded', 'false' );
+                       menu.setAttribute( 'aria-expanded', 'false' );
+               } else {
+                       container.className += ' toggled';
+                       button.setAttribute( 'aria-expanded', 'true' );
+                       menu.setAttribute( 'aria-expanded', 'true' );
+               }
+       };
+
+       // Get all the link elements within the menu.
+       links    = menu.getElementsByTagName( 'a' );
+       subMenus = menu.getElementsByTagName( 'ul' );
+
+       // Set menu items with submenus to aria-haspopup="true".
+       for ( var i = 0, len = subMenus.length; i < len; i++ ) {
+               subMenus[i].parentNode.setAttribute( 'aria-haspopup', 'true' );
+       }
+
+       // Each time a menu link is focused or blurred, toggle focus.
+       for ( i = 0, len = links.length; i < len; i++ ) {
+               links[i].addEventListener( 'focus', toggleFocus, true );
+               links[i].addEventListener( 'blur', toggleFocus, true );
+       }
+
+       /**
+        * Sets or removes .focus class on an element.
+        */
+       function toggleFocus() {
+               var self = this;
+
+               // Move up through the ancestors of the current link until we hit .nav-menu.
+               while ( -1 === self.className.indexOf( 'nav-menu' ) ) {
+
+                       // On li elements toggle the class .focus.
+                       if ( 'li' === self.tagName.toLowerCase() ) {
+                               if ( -1 !== self.className.indexOf( 'focus' ) ) {
+                                       self.className = self.className.replace( ' focus', '' );
+                               } else {
+                                       self.className += ' focus';
+                               }
+                       }
+
+                       self = self.parentElement;
+               }
+       }
+} )();
diff --git a/js/ouibounce.js b/js/ouibounce.js
new file mode 100644 (file)
index 0000000..1bb73dd
--- /dev/null
@@ -0,0 +1,133 @@
+function ouibounce(el, custom_config) {
+  "use strict";
+
+  var config     = custom_config || {},
+    aggressive   = config.aggressive || false,
+    sensitivity  = setDefault(config.sensitivity, 20),
+    timer        = setDefault(config.timer, 1000),
+    delay        = setDefault(config.delay, 0),
+    callback     = config.callback || function() {},
+    cookieExpire = setDefaultCookieExpire(config.cookieExpire) || '',
+    cookieDomain = config.cookieDomain ? ';domain=' + config.cookieDomain : '',
+    cookieName   = config.cookieName ? config.cookieName : 'viewedOuibounceModal',
+    sitewide     = config.sitewide === true ? ';path=/' : '',
+    _delayTimer  = null,
+    _html        = document.documentElement;
+
+  function setDefault(_property, _default) {
+    return typeof _property === 'undefined' ? _default : _property;
+  }
+
+  function setDefaultCookieExpire(days) {
+    // transform days to milliseconds
+    var ms = days*24*60*60*1000;
+
+    var date = new Date();
+    date.setTime(date.getTime() + ms);
+
+    return "; expires=" + date.toUTCString();
+  }
+
+  setTimeout(attachOuiBounce, timer);
+  function attachOuiBounce() {
+    if (isDisabled()) { return; }
+
+    _html.addEventListener('mouseleave', handleMouseleave);
+    _html.addEventListener('mouseenter', handleMouseenter);
+    _html.addEventListener('keydown', handleKeydown);
+  }
+
+  function handleMouseleave(e) {
+    if (e.clientY > sensitivity) { return; }
+
+    _delayTimer = setTimeout(fire, delay);
+  }
+
+  function handleMouseenter() {
+    if (_delayTimer) {
+      clearTimeout(_delayTimer);
+      _delayTimer = null;
+    }
+  }
+
+  var disableKeydown = false;
+  function handleKeydown(e) {
+    if (disableKeydown) { return; }
+    else if(!e.metaKey || e.keyCode !== 76) { return; }
+
+    disableKeydown = true;
+    _delayTimer = setTimeout(fire, delay);
+  }
+
+  function checkCookieValue(cookieName, value) {
+    return parseCookies()[cookieName] === value;
+  }
+
+  function parseCookies() {
+    // cookies are separated by '; '
+    var cookies = document.cookie.split('; ');
+
+    var ret = {};
+    for (var i = cookies.length - 1; i >= 0; i--) {
+      var el = cookies[i].split('=');
+      ret[el[0]] = el[1];
+    }
+    return ret;
+  }
+
+  function isDisabled() {
+    return checkCookieValue(cookieName, 'true') && !aggressive;
+  }
+
+  // You can use ouibounce without passing an element
+  // https://github.com/carlsednaoui/ouibounce/issues/30
+  function fire() {
+    if (isDisabled()) { return; }
+
+    if (el) { el.style.display = 'block'; }
+
+    callback();
+    disable();
+  }
+
+  function disable(custom_options) {
+    var options = custom_options || {};
+
+    // you can pass a specific cookie expiration when using the OuiBounce API
+    // ex: _ouiBounce.disable({ cookieExpire: 5 });
+    if (typeof options.cookieExpire !== 'undefined') {
+      cookieExpire = setDefaultCookieExpire(options.cookieExpire);
+    }
+
+    // you can pass use sitewide cookies too
+    // ex: _ouiBounce.disable({ cookieExpire: 5, sitewide: true });
+    if (options.sitewide === true) {
+      sitewide = ';path=/';
+    }
+
+    // you can pass a domain string when the cookie should be read subdomain-wise
+    // ex: _ouiBounce.disable({ cookieDomain: '.example.com' });
+    if (typeof options.cookieDomain !== 'undefined') {
+      cookieDomain = ';domain=' + options.cookieDomain;
+    }
+
+    if (typeof options.cookieName !== 'undefined') {
+      cookieName = options.cookieName;
+    }
+
+    document.cookie = cookieName + '=true' + cookieExpire + cookieDomain + sitewide;
+
+    // remove listeners
+    _html.removeEventListener('mouseleave', handleMouseleave);
+    _html.removeEventListener('mouseenter', handleMouseenter);
+    _html.removeEventListener('keydown', handleKeydown);
+  }
+
+  return {
+    fire: fire,
+    disable: disable,
+    isDisabled: isDisabled
+  };
+}
+
+/*exported ouibounce */
diff --git a/js/overlay.js b/js/overlay.js
new file mode 100644 (file)
index 0000000..960a239
--- /dev/null
@@ -0,0 +1,49 @@
+(function() {
+       var triggerBttn = document.getElementById( 'trigger-overlay' ),
+               overlay = document.querySelector( 'div.overlay' ),
+               closeBttn = overlay.querySelector( 'button.overlay-close' );
+               transEndEventNames = {
+                       'WebkitTransition': 'webkitTransitionEnd',
+                       'MozTransition': 'transitionend',
+                       'OTransition': 'oTransitionEnd',
+                       'msTransition': 'MSTransitionEnd',
+                       'transition': 'transitionend'
+               },
+               transEndEventName = transEndEventNames[ Modernizr.prefixed( 'transition' ) ],
+               support = { transitions : Modernizr.csstransitions };
+
+       function toggleOverlay() {
+               if( classie.has( overlay, 'open' ) ) {
+                       classie.remove( overlay, 'open' );
+                       classie.add( overlay, 'close' );
+                       var onEndTransitionFn = function( ev ) {
+                               if( support.transitions ) {
+                                       if( ev.propertyName !== 'visibility' ) return;
+                                       this.removeEventListener( transEndEventName, onEndTransitionFn );
+                               }
+                               classie.remove( overlay, 'close' );
+                       };
+                       if( support.transitions ) {
+                               overlay.addEventListener( transEndEventName, onEndTransitionFn );
+                       }
+                       else {
+                               onEndTransitionFn();
+                       }
+               }
+               else if( !classie.has( overlay, 'close' ) ) {
+                       classie.add( overlay, 'open' );
+               }
+               jQuery("input[type=search]").focus();
+
+       }
+
+    jQuery('#overlay_search').click(function(){
+        toggleOverlay();
+    })
+
+
+    triggerBttn.addEventListener( 'click', toggleOverlay );
+       closeBttn.addEventListener( 'click', toggleOverlay );
+})();
+
+
diff --git a/js/skip-link-focus-fix.js b/js/skip-link-focus-fix.js
new file mode 100644 (file)
index 0000000..44df0c4
--- /dev/null
@@ -0,0 +1,33 @@
+/**
+ * skip-link-focus-fix.js
+ *
+ * Helps with accessibility for keyboard only users.
+ *
+ * Learn more: https://git.io/vWdr2
+ */
+( function() {
+       var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1,
+           is_opera  = navigator.userAgent.toLowerCase().indexOf( 'opera' )  > -1,
+           is_ie     = navigator.userAgent.toLowerCase().indexOf( 'msie' )   > -1;
+
+       if ( ( is_webkit || is_opera || is_ie ) && document.getElementById && window.addEventListener ) {
+               window.addEventListener( 'hashchange', function() {
+                       var id = location.hash.substring( 1 ),
+                               element;
+
+                       if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) {
+                               return;
+                       }
+
+                       element = document.getElementById( id );
+
+                       if ( element ) {
+                               if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) {
+                                       element.tabIndex = -1;
+                               }
+
+                               element.focus();
+                       }
+               }, false );
+       }
+})();
diff --git a/languages/readme.txt b/languages/readme.txt
new file mode 100644 (file)
index 0000000..4b1570f
--- /dev/null
@@ -0,0 +1,7 @@
+Place your theme language files in this directory.
+
+Please visit the following links to learn more about translating WordPress themes:
+
+https://make.wordpress.org/polyglots/teams/
+https://developer.wordpress.org/themes/functionality/localization/
+https://developer.wordpress.org/reference/functions/load_theme_textdomain/
diff --git a/languages/wmta.pot b/languages/wmta.pot
new file mode 100644 (file)
index 0000000..b98be77
--- /dev/null
@@ -0,0 +1,225 @@
+# Copyright (C) 2015 Automattic
+# This file is distributed under the GNU General Public License v2 or later.
+msgid ""
+msgstr ""
+"Project-Id-Version: _s 1.0.0\n"
+"Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n"
+"POT-Creation-Date: 2015-09-16 19:02:07+00:00\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+
+#: 404.php:17
+#@ _s
+msgid "Oops! That page can&rsquo;t be found."
+msgstr ""
+
+#: 404.php:21
+#@ _s
+msgid "It looks like nothing was found at this location. Maybe try one of the links below or a search?"
+msgstr ""
+
+#: 404.php:29
+#@ _s
+msgid "Most Used Categories"
+msgstr ""
+
+#. translators: %1$s: smiley
+#: 404.php:46
+#, php-format
+#@ _s
+msgid "Try looking in the monthly archives. %1$s"
+msgstr ""
+
+#: comments.php:31
+#, php-format
+#@ _s
+msgctxt "comments title"
+msgid "One thought on &ldquo;%2$s&rdquo;"
+msgid_plural "%1$s thoughts on &ldquo;%2$s&rdquo;"
+msgstr[0] ""
+msgstr[1] ""
+
+#: comments.php:40
+#: comments.php:61
+#@ _s
+msgid "Comment navigation"
+msgstr ""
+
+#: comments.php:43
+#: comments.php:64
+#@ _s
+msgid "Older Comments"
+msgstr ""
+
+#: comments.php:44
+#: comments.php:65
+#@ _s
+msgid "Newer Comments"
+msgstr ""
+
+#: comments.php:77
+#@ _s
+msgid "Comments are closed."
+msgstr ""
+
+#: footer.php:18
+#@ _s
+msgid "https://wordpress.org/"
+msgstr ""
+
+#: footer.php:18
+#, php-format
+#@ _s
+msgid "Proudly powered by %s"
+msgstr ""
+
+#: footer.php:20
+#, php-format
+#@ _s
+msgid "Theme: %1$s by %2$s."
+msgstr ""
+
+#: functions.php:47
+#@ _s
+msgid "Primary"
+msgstr ""
+
+#: functions.php:102
+#@ _s
+msgid "Sidebar"
+msgstr ""
+
+#: header.php:25
+#@ _s
+msgid "Skip to content"
+msgstr ""
+
+#: header.php:38
+#@ _s
+msgid "Primary Menu"
+msgstr ""
+
+#: inc/template-tags.php:28
+#, php-format
+#@ _s
+msgctxt "post date"
+msgid "Posted on %s"
+msgstr ""
+
+#: inc/template-tags.php:33
+#, php-format
+#@ _s
+msgctxt "post author"
+msgid "by %s"
+msgstr ""
+
+#. translators: used between list items, there is a space after the comma
+#: inc/template-tags.php:50
+#: inc/template-tags.php:56
+#@ _s
+msgid ", "
+msgstr ""
+
+#: inc/template-tags.php:52
+#, php-format
+#@ _s
+msgid "Posted in %1$s"
+msgstr ""
+
+#: inc/template-tags.php:58
+#, php-format
+#@ _s
+msgid "Tagged %1$s"
+msgstr ""
+
+#: inc/template-tags.php:64
+#@ _s
+msgid "Leave a comment"
+msgstr ""
+
+#: inc/template-tags.php:64
+#@ _s
+msgid "1 Comment"
+msgstr ""
+
+#: inc/template-tags.php:64
+#, php-format
+#@ _s
+msgid "% Comments"
+msgstr ""
+
+#. translators: %s: Name of current post
+#: inc/template-tags.php:71
+#: template-parts/content-page.php:32
+#, php-format
+#@ _s
+msgid "Edit %s"
+msgstr ""
+
+#: search.php:18
+#, php-format
+#@ _s
+msgid "Search Results for: %s"
+msgstr ""
+
+#: template-parts/content-none.php:14
+#@ _s
+msgid "Nothing Found"
+msgstr ""
+
+#: template-parts/content-none.php:20
+#, php-format
+#@ _s
+msgid "Ready to publish your first post? <a href=\"%1$s\">Get started here</a>."
+msgstr ""
+
+#: template-parts/content-none.php:24
+#@ _s
+msgid "Sorry, but nothing matched your search terms. Please try again with some different keywords."
+msgstr ""
+
+#: template-parts/content-none.php:29
+#@ _s
+msgid "It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help."
+msgstr ""
+
+#: template-parts/content-page.php:21
+#: template-parts/content-single.php:25
+#: template-parts/content.php:34
+#@ _s
+msgid "Pages:"
+msgstr ""
+
+#. translators: %s: Name of current post.
+#: template-parts/content.php:27
+#, php-format
+#@ _s
+msgid "Continue reading %s <span class=\"meta-nav\">&rarr;</span>"
+msgstr ""
+#. Theme Name of the plugin/theme
+msgid "_s"
+msgstr ""
+
+#. Theme URI of the plugin/theme
+#@ _s
+msgid "http://underscores.me/"
+msgstr ""
+
+#. Description of the plugin/theme
+#@ _s
+msgid "Hi. I'm a starter theme called <code>_s</code>, or <em>underscores</em>, if you like. I'm a theme meant for hacking so don't use me as a <em>Parent Theme</em>. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for."
+msgstr ""
+
+#. Author of the plugin/theme
+#@ _s
+msgid "Automattic"
+msgstr ""
+
+#. Author URI of the plugin/theme
+#@ _s
+msgid "http://automattic.com/"
+msgstr ""
diff --git a/layouts/content-sidebar.css b/layouts/content-sidebar.css
new file mode 100644 (file)
index 0000000..c7bcd59
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Theme Name: wmta
+ *
+ * Layout: Content-Sidebar
+ *
+ * Learn more: https://developer.wordpress.org/themes/basics/template-files/
+*/
+
+.content-area {
+       float: left;
+       margin: 0 -25% 0 0;
+       width: 100%;
+}
+.site-main {
+       margin: 0 25% 0 0;
+}
+.site-content .widget-area {
+       float: right;
+       overflow: hidden;
+       width: 25%;
+}
+.site-footer {
+       clear: both;
+       width: 100%;
+}
\ No newline at end of file
diff --git a/layouts/sidebar-content.css b/layouts/sidebar-content.css
new file mode 100644 (file)
index 0000000..32147e3
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Theme Name: wmta
+ *
+ * Layout: Sidebar-Content
+ *
+ * Learn more: https://developer.wordpress.org/themes/basics/template-files/
+*/
+
+.content-area {
+       float: right;
+       margin: 0 0 0 -25%;
+       width: 100%;
+}
+.site-main {
+       margin: 0 0 0 25%;
+}
+.site-content .widget-area {
+       float: left;
+       overflow: hidden;
+       width: 25%;
+}
+.site-footer {
+       clear: both;
+       width: 100%;
+}
\ No newline at end of file
diff --git a/main.css b/main.css
new file mode 100644 (file)
index 0000000..9e976ae
--- /dev/null
+++ b/main.css
@@ -0,0 +1,690 @@
+/*!
+Theme Name: wmta
+Theme URI: http://underscores.me/
+Author: Underscores.me
+Author URI: http://underscores.me/
+Description: Description
+Version: 1.0.0
+License: GNU General Public License v2 or later
+License URI: http://www.gnu.org/licenses/gpl-2.0.html
+Text Domain: wmta
+Tags:
+
+This theme, like WordPress, is licensed under the GPL.
+Use it to make something cool, have fun, and share what you've learned with others.
+
+wmta is based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc.
+Underscores is distributed under the terms of the GNU GPL v2 or later.
+
+Normalizing styles have been helped along thanks to the fine work of
+Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
+*/
+/*--------------------------------------------------------------
+>>> TABLE OF CONTENTS:
+----------------------------------------------------------------
+# Normalize
+# Typography
+# Elements
+# Forms
+# Navigation
+       ## Links
+       ## Menus
+# Accessibility
+# Alignments
+# Clearings
+# Widgets
+# Content
+    ## Posts and pages
+       ## Asides
+       ## Comments
+# Infinite scroll
+# Media
+       ## Captions
+       ## Galleries
+--------------------------------------------------------------*/
+/*--------------------------------------------------------------
+# Normalize
+--------------------------------------------------------------*/
+html {
+  font-family: sans-serif;
+  -webkit-text-size-adjust: 100%;
+  -ms-text-size-adjust: 100%; }
+
+body {
+  margin: 0; }
+
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+main,
+menu,
+nav,
+section,
+summary {
+  display: block; }
+
+audio,
+canvas,
+progress,
+video {
+  display: inline-block;
+  vertical-align: baseline; }
+
+audio:not([controls]) {
+  display: none;
+  height: 0; }
+
+[hidden],
+template {
+  display: none; }
+
+a {
+  background-color: transparent; }
+
+a:active,
+a:hover {
+  outline: 0; }
+
+abbr[title] {
+  border-bottom: 1px dotted; }
+
+b,
+strong {
+  font-weight: bold; }
+
+dfn {
+  font-style: italic; }
+
+h1 {
+  font-size: 2em;
+  margin: 0.67em 0; }
+
+mark {
+  background: #ff0;
+  color: #000; }
+
+small {
+  font-size: 80%; }
+
+sub,
+sup {
+  font-size: 75%;
+  line-height: 0;
+  position: relative;
+  vertical-align: baseline; }
+
+sup {
+  top: -0.5em; }
+
+sub {
+  bottom: -0.25em; }
+
+img {
+  border: 0; }
+
+svg:not(:root) {
+  overflow: hidden; }
+
+figure {
+  margin: 1em 40px; }
+
+hr {
+  box-sizing: content-box;
+  height: 0; }
+
+pre {
+  overflow: auto; }
+
+code,
+kbd,
+pre,
+samp {
+  font-family: monospace, monospace;
+  font-size: 1em; }
+
+button,
+input,
+optgroup,
+select,
+textarea {
+  color: inherit;
+  font: inherit;
+  margin: 0; }
+
+button {
+  overflow: visible; }
+
+button,
+select {
+  text-transform: none; }
+
+button,
+html input[type="button"],
+input[type="reset"],
+input[type="submit"] {
+  -webkit-appearance: button;
+  cursor: pointer; }
+
+button[disabled],
+html input[disabled] {
+  cursor: default; }
+
+button::-moz-focus-inner,
+input::-moz-focus-inner {
+  border: 0;
+  padding: 0; }
+
+input {
+  line-height: normal; }
+
+input[type="checkbox"],
+input[type="radio"] {
+  box-sizing: border-box;
+  padding: 0; }
+
+input[type="number"]::-webkit-inner-spin-button,
+input[type="number"]::-webkit-outer-spin-button {
+  height: auto; }
+
+input[type="search"] {
+  -webkit-appearance: textfield;
+  box-sizing: content-box; }
+
+input[type="search"]::-webkit-search-cancel-button,
+input[type="search"]::-webkit-search-decoration {
+  -webkit-appearance: none; }
+
+fieldset {
+  border: 1px solid #c0c0c0;
+  margin: 0 2px;
+  padding: 0.35em 0.625em 0.75em; }
+
+legend {
+  border: 0;
+  padding: 0; }
+
+textarea {
+  overflow: auto; }
+
+optgroup {
+  font-weight: bold; }
+
+table {
+  border-collapse: collapse;
+  border-spacing: 0; }
+
+td,
+th {
+  padding: 0; }
+
+/*--------------------------------------------------------------
+# Typography
+--------------------------------------------------------------*/
+body,
+button,
+input,
+select,
+textarea {
+  color: #404040;
+  font-family: sans-serif;
+  font-size: 16px;
+  font-size: 1rem;
+  line-height: 1.5; }
+
+h1, h2, h3, h4, h5, h6 {
+  clear: both; }
+
+p {
+  margin-bottom: 1.5em; }
+
+dfn, cite, em, i {
+  font-style: italic; }
+
+blockquote {
+  margin: 0 1.5em; }
+
+address {
+  margin: 0 0 1.5em; }
+
+pre {
+  background: #eee;
+  font-family: "Courier 10 Pitch", Courier, monospace;
+  font-size: 15px;
+  font-size: 0.9375rem;
+  line-height: 1.6;
+  margin-bottom: 1.6em;
+  max-width: 100%;
+  overflow: auto;
+  padding: 1.6em; }
+
+code, kbd, tt, var {
+  font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
+  font-size: 15px;
+  font-size: 0.9375rem; }
+
+abbr, acronym {
+  border-bottom: 1px dotted #666;
+  cursor: help; }
+
+mark, ins {
+  background: #fff9c0;
+  text-decoration: none; }
+
+big {
+  font-size: 125%; }
+
+/*--------------------------------------------------------------
+# Elements
+--------------------------------------------------------------*/
+html {
+  box-sizing: border-box; }
+
+*,
+*:before,
+*:after {
+  /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
+  box-sizing: inherit; }
+
+body {
+  background: #fff;
+  /* Fallback for when there is no custom background color defined. */ }
+
+blockquote, q {
+  quotes: "" ""; }
+  blockquote:before, blockquote:after, q:before, q:after {
+    content: ""; }
+
+hr {
+  background-color: #ccc;
+  border: 0;
+  height: 1px;
+  margin-bottom: 1.5em; }
+
+ul, ol {
+  margin: 0 0 1.5em 3em; }
+
+ul {
+  list-style: disc; }
+
+ol {
+  list-style: decimal; }
+
+li > ul,
+li > ol {
+  margin-bottom: 0;
+  margin-left: 1.5em; }
+
+dt {
+  font-weight: bold; }
+
+dd {
+  margin: 0 1.5em 1.5em; }
+
+img {
+  height: auto;
+  /* Make sure images are scaled correctly. */
+  max-width: 100%;
+  /* Adhere to container width. */ }
+
+table {
+  margin: 0 0 1.5em;
+  width: 100%; }
+
+/*--------------------------------------------------------------
+# Forms
+--------------------------------------------------------------*/
+button,
+input[type="button"],
+input[type="reset"],
+input[type="submit"] {
+  border: 1px solid;
+  border-color: #ccc #ccc #bbb;
+  border-radius: 3px;
+  background: #e6e6e6;
+  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 15px 17px rgba(255, 255, 255, 0.5), inset 0 -5px 12px rgba(0, 0, 0, 0.05);
+  color: rgba(0, 0, 0, 0.8);
+  font-size: 12px;
+  font-size: 0.75rem;
+  line-height: 1;
+  padding: .6em 1em .4em;
+  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); }
+  button:hover,
+  input[type="button"]:hover,
+  input[type="reset"]:hover,
+  input[type="submit"]:hover {
+    border-color: #ccc #bbb #aaa;
+    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 15px 17px rgba(255, 255, 255, 0.8), inset 0 -5px 12px rgba(0, 0, 0, 0.02); }
+  button:active, button:focus,
+  input[type="button"]:active,
+  input[type="button"]:focus,
+  input[type="reset"]:active,
+  input[type="reset"]:focus,
+  input[type="submit"]:active,
+  input[type="submit"]:focus {
+    border-color: #aaa #bbb #bbb;
+    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.15); }
+
+input[type="text"],
+input[type="email"],
+input[type="url"],
+input[type="password"],
+input[type="search"],
+textarea {
+  color: #666;
+  border: 1px solid #ccc;
+  border-radius: 3px; }
+  input[type="text"]:focus,
+  input[type="email"]:focus,
+  input[type="url"]:focus,
+  input[type="password"]:focus,
+  input[type="search"]:focus,
+  textarea:focus {
+    color: #111; }
+
+input[type="text"],
+input[type="email"],
+input[type="url"],
+input[type="password"],
+input[type="search"] {
+  padding: 3px; }
+
+textarea {
+  padding-left: 3px;
+  width: 100%; }
+
+/*--------------------------------------------------------------
+# Navigation
+--------------------------------------------------------------*/
+/*--------------------------------------------------------------
+## Links
+--------------------------------------------------------------*/
+a {
+  color: royalblue; }
+  a:visited {
+    color: purple; }
+  a:hover, a:focus, a:active {
+    color: midnightblue; }
+  a:focus {
+    outline: thin dotted; }
+  a:hover, a:active {
+    outline: 0; }
+
+/*--------------------------------------------------------------
+## Menus
+--------------------------------------------------------------*/
+.main-navigation {
+  clear: both;
+  display: block;
+  float: left;
+  width: 100%; }
+  .main-navigation ul {
+    display: none;
+    list-style: none;
+    margin: 0;
+    padding-left: 0; }
+    .main-navigation ul ul {
+      box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
+      float: left;
+      position: absolute;
+      top: 1.5em;
+      left: -999em;
+      z-index: 99999; }
+      .main-navigation ul ul ul {
+        left: -999em;
+        top: 0; }
+      .main-navigation ul ul li:hover > ul, .main-navigation ul ul li.focus > ul {
+        left: 100%; }
+      .main-navigation ul ul a {
+        width: 200px; }
+    .main-navigation ul li:hover > ul,
+    .main-navigation ul li.focus > ul {
+      left: auto; }
+  .main-navigation li {
+    float: left;
+    position: relative; }
+  .main-navigation a {
+    display: block;
+    text-decoration: none; }
+
+/* Small menu. */
+.menu-toggle,
+.main-navigation.toggled ul {
+  display: block; }
+
+@media screen and (min-width: 37.5em) {
+  .menu-toggle {
+    display: none; }
+
+  .main-navigation ul {
+    display: block; } }
+.site-main .comment-navigation, .site-main
+.posts-navigation, .site-main
+.post-navigation {
+  margin: 0 0 1.5em;
+  overflow: hidden; }
+.comment-navigation .nav-previous,
+.posts-navigation .nav-previous,
+.post-navigation .nav-previous {
+  float: left;
+  width: 50%; }
+.comment-navigation .nav-next,
+.posts-navigation .nav-next,
+.post-navigation .nav-next {
+  float: right;
+  text-align: right;
+  width: 50%; }
+
+/*--------------------------------------------------------------
+# Accessibility
+--------------------------------------------------------------*/
+/* Text meant only for screen readers. */
+.screen-reader-text {
+  clip: rect(1px, 1px, 1px, 1px);
+  position: absolute !important;
+  height: 1px;
+  width: 1px;
+  overflow: hidden; }
+  .screen-reader-text:focus {
+    background-color: #f1f1f1;
+    border-radius: 3px;
+    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
+    clip: auto !important;
+    color: #21759b;
+    display: block;
+    font-size: 14px;
+    font-size: 0.875rem;
+    font-weight: bold;
+    height: auto;
+    left: 5px;
+    line-height: normal;
+    padding: 15px 23px 14px;
+    text-decoration: none;
+    top: 5px;
+    width: auto;
+    z-index: 100000;
+    /* Above WP toolbar. */ }
+
+/* Do not show the outline on the skip link target. */
+#content[tabindex="-1"]:focus {
+  outline: 0; }
+
+/*--------------------------------------------------------------
+# Alignments
+--------------------------------------------------------------*/
+.alignleft {
+  display: inline;
+  float: left;
+  margin-right: 1.5em; }
+
+.alignright {
+  display: inline;
+  float: right;
+  margin-left: 1.5em; }
+
+.aligncenter {
+  clear: both;
+  display: block;
+  margin-left: auto;
+  margin-right: auto; }
+
+/*--------------------------------------------------------------
+# Clearings
+--------------------------------------------------------------*/
+.clear:before,
+.clear:after,
+.entry-content:before,
+.entry-content:after,
+.comment-content:before,
+.comment-content:after,
+.site-header:before,
+.site-header:after,
+.site-content:before,
+.site-content:after,
+.site-footer:before,
+.site-footer:after {
+  content: "";
+  display: table;
+  table-layout: fixed; }
+
+.clear:after,
+.entry-content:after,
+.comment-content:after,
+.site-header:after,
+.site-content:after,
+.site-footer:after {
+  clear: both; }
+
+/*--------------------------------------------------------------
+# Widgets
+--------------------------------------------------------------*/
+.widget {
+  margin: 0 0 1.5em;
+  /* Make sure select elements fit in widgets. */ }
+  .widget select {
+    max-width: 100%; }
+
+/*--------------------------------------------------------------
+# Content
+--------------------------------------------------------------*/
+/*--------------------------------------------------------------
+## Posts and pages
+--------------------------------------------------------------*/
+.sticky {
+  display: block; }
+
+.hentry {
+  margin: 0 0 1.5em; }
+
+.byline,
+.updated:not(.published) {
+  display: none; }
+
+.single .byline,
+.group-blog .byline {
+  display: inline; }
+
+.page-content,
+.entry-content,
+.entry-summary {
+  margin: 1.5em 0 0; }
+
+.page-links {
+  clear: both;
+  margin: 0 0 1.5em; }
+
+/*--------------------------------------------------------------
+## Asides
+--------------------------------------------------------------*/
+.blog .format-aside .entry-title,
+.archive .format-aside .entry-title {
+  display: none; }
+
+/*--------------------------------------------------------------
+## Comments
+--------------------------------------------------------------*/
+.comment-content a {
+  word-wrap: break-word; }
+
+.bypostauthor {
+  display: block; }
+
+/*--------------------------------------------------------------
+# Infinite scroll
+--------------------------------------------------------------*/
+/* Globally hidden elements when Infinite Scroll is supported and in use. */
+.infinite-scroll .posts-navigation,
+.infinite-scroll.neverending .site-footer {
+  /* Theme Footer (when set to scrolling) */
+  display: none; }
+
+/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
+.infinity-end.neverending .site-footer {
+  display: block; }
+
+/*--------------------------------------------------------------
+# Media
+--------------------------------------------------------------*/
+.page-content .wp-smiley,
+.entry-content .wp-smiley,
+.comment-content .wp-smiley {
+  border: none;
+  margin-bottom: 0;
+  margin-top: 0;
+  padding: 0; }
+
+/* Make sure embeds and iframes fit their containers. */
+embed,
+iframe,
+object {
+  max-width: 100%; }
+
+/*--------------------------------------------------------------
+## Captions
+--------------------------------------------------------------*/
+.wp-caption {
+  margin-bottom: 1.5em;
+  max-width: 100%; }
+  .wp-caption img[class*="wp-image-"] {
+    display: block;
+    margin-left: auto;
+    margin-right: auto; }
+  .wp-caption .wp-caption-text {
+    margin: 0.8075em 0; }
+
+.wp-caption-text {
+  text-align: center; }
+
+/*--------------------------------------------------------------
+## Galleries
+--------------------------------------------------------------*/
+.gallery {
+  margin-bottom: 1.5em; }
+
+.gallery-item {
+  display: inline-block;
+  text-align: center;
+  vertical-align: top;
+  width: 100%; }
+  .gallery-columns-2 .gallery-item {
+    max-width: 50%; }
+  .gallery-columns-3 .gallery-item {
+    max-width: 33.33%; }
+  .gallery-columns-4 .gallery-item {
+    max-width: 25%; }
+  .gallery-columns-5 .gallery-item {
+    max-width: 20%; }
+  .gallery-columns-6 .gallery-item {
+    max-width: 16.66%; }
+  .gallery-columns-7 .gallery-item {
+    max-width: 14.28%; }
+  .gallery-columns-8 .gallery-item {
+    max-width: 12.5%; }
+  .gallery-columns-9 .gallery-item {
+    max-width: 11.11%; }
+
+.gallery-caption {
+  display: block; }
diff --git a/page-templates/page-fullwidth.php b/page-templates/page-fullwidth.php
new file mode 100644 (file)
index 0000000..c274777
--- /dev/null
@@ -0,0 +1,35 @@
+<?php
+/* Template Name: Full Width Page */
+
+get_header(); ?>
+
+
+<?php get_template_part('inc/hero','header'); ?>
+
+       <div class="body-content row column">
+
+                       <div id="primary" class="content-area">
+                               <main id="main" class="site-main" role="main">
+
+                                       <?php
+                                       while ( have_posts() ) : the_post();
+
+                                               get_template_part( 'template-parts/content', 'page' );
+
+                                               // If comments are open or we have at least one comment, load up the comment template.
+                                               if ( comments_open() || get_comments_number() ) :
+                                                       comments_template();
+                                               endif;
+
+                                       endwhile; // End of the loop.
+                                       ?>
+
+                               </main><!-- #main -->
+                       </div><!-- #primary -->
+
+       </div><!-- .row -->
+
+
+<?php
+
+get_footer();
diff --git a/page-templates/page-memberprofile.php b/page-templates/page-memberprofile.php
new file mode 100644 (file)
index 0000000..918db85
--- /dev/null
@@ -0,0 +1,36 @@
+<?php
+/* Template Name: Member Profile */
+
+get_header(); ?>
+
+
+<?php get_template_part('inc/hero','header'); ?>
+
+       <div class="body-content row column">
+               <div class="medium-8 large-9 columns">
+                       <div id="primary" class="content-area">
+                               <main id="main" class="site-main" role="main" style="overflow: visible;">
+
+                                       <?php
+                                       while ( have_posts() ) : the_post();
+
+                                               get_template_part( 'template-parts/content', 'page' );
+
+                                               // If comments are open or we have at least one comment, load up the comment template.
+                                               if ( comments_open() || get_comments_number() ) :
+                                                       comments_template();
+                                               endif;
+
+                                       endwhile; // End of the loop.
+                                       ?>
+
+                               </main><!-- #main -->
+                       </div><!-- #primary -->
+               </div><!-- .large-9.columns -->
+               <div class="medium-4 large-3 columns member-sidebar">
+                       <?php get_sidebar('page');?>
+               </div><!-- .large-3.columns -->
+       </div><!-- .row -->
+<?php
+
+get_footer();
diff --git a/page.php b/page.php
new file mode 100644 (file)
index 0000000..a36b8d7
--- /dev/null
+++ b/page.php
@@ -0,0 +1,74 @@
+<?php
+/**
+ * The template for displaying all pages.
+ *
+ * This is the template that displays all pages by default.
+ * Please note that this is the WordPress construct of pages
+ * and that other 'pages' on your WordPress site may use a
+ * different template.
+ *
+ * @link https://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package wmta
+ */
+
+get_header(); ?>
+
+<?php get_template_part('inc/hero','header'); ?>
+
+<div class="body-content row column">
+       <div class="medium-8 large-9 columns">
+               <div id="primary" class="content-area">
+                       <main id="main" class="site-main" role="main">
+
+                               <?php
+                               while ( have_posts() ) : the_post();
+
+                                       get_template_part( 'template-parts/content', 'page' );
+
+                                       // If comments are open or we have at least one comment, load up the comment template.
+                                       if ( comments_open() || get_comments_number() ) :
+                                               comments_template();
+                                       endif;
+
+                               endwhile; // End of the loop.
+                               ?>
+
+                               <?php
+
+                               // Child pages loop
+                               if (is_page(array(22,24,26,28))) {
+                                       get_template_part( 'template-parts/child', 'pages' );
+                               }
+
+                               // Press/News category loop
+                               if (is_page(20)) {
+                                       get_template_part( 'template-parts/press', 'loop' );
+                               }
+
+                               // Press/News members only loop
+                               if (is_page('members-only') && is_user_logged_in() ) {
+                                       get_template_part( 'template-parts/membersonly', 'loop' );
+                               }
+                               elseif (is_page('members-only') && !is_user_logged_in() )
+                               {
+                                       echo 'You must be a WMTA Member to view this page.';
+                               }
+
+                               // Deals custom post type loop
+                               if (is_page(30)) {
+                                       get_template_part( 'template-parts/deals', 'loop' );
+                               }
+
+                               ?>
+
+                       </main><!-- #main -->
+               </div><!-- #primary -->
+       </div><!-- .large-9.columns -->
+       <div class="medium-4 large-3 columns page-sidebar">
+               <?php get_sidebar('page');?>
+       </div><!-- .large-3.columns -->
+</div><!-- .body-content.row.column -->
+<?php
+
+get_footer();
diff --git a/plugins/events-manager/forms/event-editor.php b/plugins/events-manager/forms/event-editor.php
new file mode 100644 (file)
index 0000000..e311335
--- /dev/null
@@ -0,0 +1,120 @@
+<?php
+/* WARNING! This file may change in the near future as we intend to add features to the event editor. If at all possible, try making customizations using CSS, jQuery, or using our hooks and filters. - 2012-02-14 */
+/* 
+ * To ensure compatability, it is recommended you maintain class, id and form name attributes, unless you now what you're doing. 
+ * You also must keep the _wpnonce hidden field in this form too.
+ */
+global $EM_Event, $EM_Notices, $bp;
+
+//check that user can access this page
+if( is_object($EM_Event) && !$EM_Event->can_manage('edit_events','edit_others_events') ){
+       ?>
+       <div class="wrap"><h2><?php esc_html_e('Unauthorized Access','events-manager'); ?></h2><p><?php echo sprintf(__('You do not have the rights to manage this %s.','events-manager'),__('Event','events-manager')); ?></p></div>
+       <?php
+       return false;
+}elseif( !is_object($EM_Event) ){
+       $EM_Event = new EM_Event();
+}
+$required = apply_filters('em_required_html','<i>*Required</i>');
+
+echo $EM_Notices;
+//Success notice
+if( !empty($_REQUEST['success']) ){
+       if(!get_option('dbem_events_form_reshow')) return false;
+}
+?>     
+<form enctype='multipart/form-data' id="event-form" method="post" action="<?php echo esc_url(add_query_arg(array('success'=>null))); ?>">
+       <div class="wrap">
+               <?php do_action('em_front_event_form_header'); ?>
+               <?php if(get_option('dbem_events_anonymous_submissions') && !is_user_logged_in()): ?>
+                       <h3 class="event-form-submitter"><?php esc_html_e( 'Your Details', 'events-manager'); ?></h3>
+                       <div class="inside event-form-submitter">
+                               <p>
+                                       <label><?php esc_html_e('Name', 'events-manager'); ?></label>
+                                       <input type="text" name="event_owner_name" id="event-owner-name" value="<?php echo esc_attr($EM_Event->event_owner_name); ?>" /><?php echo $required; ?>
+                               </p>
+                               <p>
+                                       <label><?php esc_html_e('Email', 'events-manager'); ?></label>
+                                       <input type="text" name="event_owner_email" id="event-owner-email" value="<?php echo esc_attr($EM_Event->event_owner_email); ?>" /><?php echo $required; ?>
+                               </p>
+                               <?php do_action('em_front_event_form_guest'); ?>
+                               <?php do_action('em_font_event_form_guest'); //deprecated ?>
+                       </div>
+               <?php endif; ?>
+               <h3 class="event-form-name"><?php esc_html_e( 'Event Name', 'events-manager'); ?></h3>
+               <div class="inside event-form-name">
+                       <input type="text" name="event_name" id="event-name" value="<?php echo esc_attr($EM_Event->event_name,ENT_QUOTES); ?>" /><?php echo $required; ?>
+                       <br />
+                       <?php esc_html_e('The event name. Example: Birthday party', 'events-manager'); ?>
+                       <?php em_locate_template('forms/event/group.php',true); ?>
+               </div>
+                                       
+               <h3 class="event-form-when"><?php esc_html_e( 'When', 'events-manager'); ?></h3>
+               <div class="inside event-form-when">
+               <?php 
+                       if( empty($EM_Event->event_id) && $EM_Event->can_manage('edit_recurring_events','edit_others_recurring_events') && get_option('dbem_recurrence_enabled') ){
+                               em_locate_template('forms/event/when-with-recurring.php',true);
+                       }elseif( $EM_Event->is_recurring()  ){
+                               em_locate_template('forms/event/recurring-when.php',true);
+                       }else{
+                               em_locate_template('forms/event/when.php',true);
+                       }
+               ?>
+               </div>
+
+               <?php if( get_option('dbem_locations_enabled') ): ?>
+               <h3 class="event-form-where"><?php esc_html_e( 'Where', 'events-manager'); ?></h3>
+               <div class="inside event-form-where">
+               <?php em_locate_template('forms/event/location.php',true); ?>
+               </div>
+               <?php endif; ?>
+               
+               <h3 class="event-form-details"><?php esc_html_e( 'Event Details', 'events-manager'); ?></h3>
+               <div class="inside event-form-details">
+                       <div class="event-editor">
+                               <?php if( get_option('dbem_events_form_editor') && function_exists('wp_editor') ): ?>
+                                       <?php wp_editor($EM_Event->post_content, 'em-editor-content', array('textarea_name'=>'content') ); ?> <?php echo $required; ?>
+                               <?php else: ?>
+                                       <textarea name="content" rows="10" style="width:100%"><?php echo $EM_Event->post_content ?></textarea><?php echo $required; ?>
+                                       <br />
+                                       <?php esc_html_e( 'Details about the event.', 'events-manager')?> 
+                               <?php endif; ?>
+                       </div>
+                       <div class="event-extra-details">
+                               <?php if(get_option('dbem_attributes_enabled')) { em_locate_template('forms/event/attributes-public.php',true); }  ?>
+                               <div style="display:none;"><?php if(get_option('dbem_categories_enabled')) { em_locate_template('forms/event/categories-public.php',true); }  ?></div>
+                       </div>
+               </div>
+               
+               <?php if( $EM_Event->can_manage('upload_event_images','upload_event_images') ): ?>
+               <h3><?php esc_html_e( 'Event Image', 'events-manager'); ?></h3>
+               <div class="inside event-form-image">
+                       <?php em_locate_template('forms/event/featured-image-public.php',true); ?>
+               </div>
+               <?php endif; ?>
+               
+               <?php if( get_option('dbem_rsvp_enabled') && $EM_Event->can_manage('manage_bookings','manage_others_bookings') ) : ?>
+               <!-- START Bookings -->
+               <h3><?php esc_html_e('Bookings/Registration','events-manager'); ?></h3>
+               <div class="inside event-form-bookings">                                
+                       <?php em_locate_template('forms/event/bookings.php',true); ?>
+               </div>
+               <!-- END Bookings -->
+               <?php endif; ?>
+               
+               <?php do_action('em_front_event_form_footer'); ?>
+       </div>
+       <p class="submit">
+           <?php if( empty($EM_Event->event_id) ): ?>
+           <input type='submit' class='button-primary' value='<?php echo esc_attr(sprintf( __('Submit %s','events-manager'), __('Event','events-manager') )); ?>' />
+           <?php else: ?>
+           <input type='submit' class='button-primary' value='<?php echo esc_attr(sprintf( __('Update %s','events-manager'), __('Event','events-manager') )); ?>' />
+           <?php endif; ?>
+       </p>
+       <input type="hidden" name="event_id" value="<?php echo $EM_Event->event_id; ?>" />
+       <input type="hidden" name="_wpnonce" value="<?php echo wp_create_nonce('wpnonce_event_save'); ?>" />
+       <input type="hidden" name="action" value="event_save" />
+       <?php if( !empty($_REQUEST['redirect_to']) ): ?>
+       <input type="hidden" name="redirect_to" value="<?php echo esc_attr($_REQUEST['redirect_to']); ?>" />
+       <?php endif; ?>
+</form>
\ No newline at end of file
diff --git a/plugins/events-manager/forms/event/attributes-public.php b/plugins/events-manager/forms/event/attributes-public.php
new file mode 100644 (file)
index 0000000..765121e
--- /dev/null
@@ -0,0 +1,31 @@
+<?php
+/*
+ * This file is called by templates/forms/event-editor.php to display attribute fields on your event form on your website.
+* You can override this file by copying it to /wp-content/themes/yourtheme/plugins/events-manager/forms/event/ and editing it there.
+*/
+global $EM_Event;
+/* @var $EM_Event EM_Event */
+$attributes = em_get_attributes();
+$has_deprecated = false;
+?>
+<?php if( count( $attributes['names'] ) > 0 ) : ?>
+       <?php foreach( $attributes['names'] as $name) : ?>
+       <div class="event-attributes">
+               <label for="em_attributes[<?php echo $name ?>]"><?php echo $name ?></label>
+               <?php if( count($attributes['values'][$name]) > 1 ): ?>
+               <select name="em_attributes[<?php echo $name ?>]">
+                       <?php foreach($attributes['values'][$name] as $attribute_val): ?>
+                               <?php if( is_array($EM_Event->event_attributes) && array_key_exists($name, $EM_Event->event_attributes) && $EM_Event->event_attributes[$name]==$attribute_val ): ?>
+                                       <option selected="selected"><?php echo $attribute_val; ?></option>
+                               <?php else: ?>
+                                       <option><?php echo $attribute_val; ?></option>
+                               <?php endif; ?>
+                       <?php endforeach; ?>
+               </select>
+               <?php else: ?>
+               <?php $default_value = (!empty($attributes['values'][$name][0])) ? $attributes['values'][$name][0]:''; ?>
+               <input type="text" name="em_attributes[<?php echo $name ?>]" value="<?php echo array_key_exists($name, $EM_Event->event_attributes) ? esc_attr($EM_Event->event_attributes[$name], ENT_QUOTES):''; ?>" value="<?php echo $default_value; ?>" />
+               <?php endif; ?>
+       </div>
+       <?php endforeach; ?>
+<?php endif; ?>
\ No newline at end of file
diff --git a/plugins/events-manager/templates/event-single.php b/plugins/events-manager/templates/event-single.php
new file mode 100644 (file)
index 0000000..03fa667
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+/* 
+ * Remember that this file is only used if you have chosen to override event pages with formats in your event settings!
+ * You can also override the single event page completely in any case (e.g. at a level where you can control sidebars etc.), as described here - http://codex.wordpress.org/Post_Types#Template_Files
+ * Your file would be named single-event.php
+ */
+/*
+ * This page displays a single event, called during the the_content filter if this is an event page.
+ * You can override the default display settings pages by copying this file to yourthemefolder/plugins/events-manager/templates/ and modifying it however you need.
+ * You can display events however you wish, there are a few variables made available to you:
+ * 
+ * $args - the args passed onto EM_Events::output() 
+ */
+
+?>
\ No newline at end of file
diff --git a/readme.txt b/readme.txt
new file mode 100644 (file)
index 0000000..30e0513
--- /dev/null
@@ -0,0 +1,38 @@
+=== wmta ===
+
+Contributors: automattic
+Tags: translation-ready, custom-background, theme-options, custom-menu, post-formats, threaded-comments
+
+Requires at least: 4.0
+Tested up to: 4.3.1
+Stable tag: 1.0.0
+License: GPLv2 or later
+License URI: http://www.gnu.org/licenses/gpl-2.0.html
+
+A starter theme called wmta, or underscores.
+
+== Description ==
+
+Hi. I'm a starter theme called wmta, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
+
+== Installation ==
+       
+1. In your admin panel, go to Appearance > Themes and click the Add New button.
+2. Click Upload and Choose File, then select the theme's .zip file. Click Install Now.
+3. Click Activate to use your new theme right away.
+
+== Frequently Asked Questions ==
+
+= Does this theme support any plugins? =
+
+wmta includes support for Infinite Scroll in Jetpack.
+
+== Changelog ==
+
+= 1.0 - May 12 2015 =
+* Initial release
+
+== Credits ==
+
+* Based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc., [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html)
+* normalize.css http://necolas.github.io/normalize.css/, (C) 2012-2015 Nicolas Gallagher and Jonathan Neal, [MIT](http://opensource.org/licenses/MIT)
diff --git a/rtl.css b/rtl.css
new file mode 100644 (file)
index 0000000..5ea3860
--- /dev/null
+++ b/rtl.css
@@ -0,0 +1,17 @@
+/*
+Theme Name: wmta
+
+Adding support for language written in a Right To Left (RTL) direction is easy -
+it's just a matter of overwriting all the horizontal positioning attributes
+of your CSS stylesheet in a separate stylesheet file named rtl.css.
+
+https://codex.wordpress.org/Right_to_Left_Language_Support
+
+*/
+
+/*
+body {
+       direction: rtl;
+       unicode-bidi: embed;
+}
+*/
\ No newline at end of file
diff --git a/sass/_normalize.scss b/sass/_normalize.scss
new file mode 100644 (file)
index 0000000..1822e8e
--- /dev/null
@@ -0,0 +1,215 @@
+html {
+       font-family: sans-serif;
+       -webkit-text-size-adjust: 100%;
+       -ms-text-size-adjust:     100%;
+}
+
+body {
+       margin: 0;
+}
+
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+main,
+menu,
+nav,
+section,
+summary {
+       display: block;
+}
+
+audio,
+canvas,
+progress,
+video {
+       display: inline-block;
+       vertical-align: baseline;
+}
+
+audio:not([controls]) {
+       display: none;
+       height: 0;
+}
+
+[hidden],
+template {
+       display: none;
+}
+
+a {
+       background-color: transparent;
+}
+
+a:active,
+a:hover {
+       outline: 0;
+}
+
+abbr[title] {
+       border-bottom: 1px dotted;
+}
+
+b,
+strong {
+       font-weight: bold;
+}
+
+dfn {
+       font-style: italic;
+}
+
+h1 {
+       font-size: 2em;
+       margin: 0.67em 0;
+}
+
+mark {
+       background: #ff0;
+       color: #000;
+}
+
+small {
+       font-size: 80%;
+}
+
+sub,
+sup {
+       font-size: 75%;
+       line-height: 0;
+       position: relative;
+       vertical-align: baseline;
+}
+
+sup {
+       top: -0.5em;
+}
+
+sub {
+       bottom: -0.25em;
+}
+
+img {
+       border: 0;
+}
+
+svg:not(:root) {
+       overflow: hidden;
+}
+
+figure {
+       margin: 1em 40px;
+}
+
+hr {
+       box-sizing: content-box;
+       height: 0;
+}
+
+pre {
+       overflow: auto;
+}
+
+code,
+kbd,
+pre,
+samp {
+       font-family: monospace, monospace;
+       font-size: 1em;
+}
+
+button,
+input,
+optgroup,
+select,
+textarea {
+       color: inherit;
+       font: inherit;
+       margin: 0;
+}
+
+button {
+       overflow: visible;
+}
+
+button,
+select {
+       text-transform: none;
+}
+
+button,
+html input[type="button"],
+input[type="reset"],
+input[type="submit"] {
+       -webkit-appearance: button;
+       cursor: pointer;
+}
+
+button[disabled],
+html input[disabled] {
+       cursor: default;
+}
+
+button::-moz-focus-inner,
+input::-moz-focus-inner {
+       border: 0;
+       padding: 0;
+}
+
+input {
+       line-height: normal;
+}
+
+input[type="checkbox"],
+input[type="radio"] {
+       box-sizing: border-box;
+       padding: 0;
+}
+
+input[type="number"]::-webkit-inner-spin-button,
+input[type="number"]::-webkit-outer-spin-button {
+       height: auto;
+}
+
+input[type="search"] {
+       -webkit-appearance: textfield;
+       box-sizing: content-box;
+}
+
+input[type="search"]::-webkit-search-cancel-button,
+input[type="search"]::-webkit-search-decoration {
+       -webkit-appearance: none;
+}
+
+fieldset {
+       border: 1px solid #c0c0c0;
+       margin: 0 2px;
+       padding: 0.35em 0.625em 0.75em;
+}
+
+legend {
+       border: 0;
+       padding: 0;
+}
+
+textarea {
+       overflow: auto;
+}
+
+optgroup {
+       font-weight: bold;
+}
+
+table {
+       border-collapse: collapse;
+       border-spacing: 0;
+}
+
+td,
+th {
+       padding: 0;
+}
diff --git a/sass/elements/_elements.scss b/sass/elements/_elements.scss
new file mode 100644 (file)
index 0000000..4a84466
--- /dev/null
@@ -0,0 +1,45 @@
+html {
+       box-sizing: border-box;
+}
+
+*,
+*:before,
+*:after { /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
+       box-sizing: inherit;
+}
+
+body {
+       background: $color__background-body; /* Fallback for when there is no custom background color defined. */
+}
+
+blockquote, q {
+       quotes: "" "";
+
+       &:before,
+       &:after {
+               content: "";
+       }
+}
+
+hr {
+       background-color: $color__background-hr;
+       border: 0;
+       height: 1px;
+       margin-bottom: 1.5em;
+       max-width: 75.25rem !important;
+}
+
+.row {
+       max-width: 75.25rem !important;
+}
+
+
+
+@import "lists";
+
+img {
+       height: auto; /* Make sure images are scaled correctly. */
+       max-width: 100%; /* Adhere to container width. */
+}
+
+@import "tables";
\ No newline at end of file
diff --git a/sass/elements/_lists.scss b/sass/elements/_lists.scss
new file mode 100644 (file)
index 0000000..38f6fb7
--- /dev/null
@@ -0,0 +1,25 @@
+ul, ol {
+       margin: 0 0 1.5em 1.5em;
+}
+
+ul {
+       list-style: disc;
+}
+
+ol {
+       list-style: decimal;
+}
+
+li > ul,
+li > ol {
+       margin-bottom: 0;
+       margin-left: 1.5em;
+}
+
+dt {
+       font-weight: bold;
+}
+
+dd {
+       margin: 0 1.5em 1.5em;
+}
\ No newline at end of file
diff --git a/sass/elements/_tables.scss b/sass/elements/_tables.scss
new file mode 100644 (file)
index 0000000..14af567
--- /dev/null
@@ -0,0 +1,4 @@
+table {
+       margin: 0 0 1.5em;
+       width: 100%;
+}
\ No newline at end of file
diff --git a/sass/forms/_buttons.scss b/sass/forms/_buttons.scss
new file mode 100644 (file)
index 0000000..26a03c3
--- /dev/null
@@ -0,0 +1,44 @@
+button,
+input[type="button"],
+input[type="reset"],
+input[type="submit"] {
+       border: 1px solid;
+       border-color: $color__border-button;
+       border-radius: 3px;
+       background: $color__background-button;
+       box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 15px 17px rgba(255, 255, 255, 0.5), inset 0 -5px 12px rgba(0, 0, 0, 0.05);
+       color: rgba(0, 0, 0, .8);
+       @include font-size(0.75);
+       line-height: 1;
+       padding: .6em 1em .4em;
+       text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
+
+       &:hover {
+               border-color: $color__border-button-hover;
+               box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 15px 17px rgba(255, 255, 255, 0.8), inset 0 -5px 12px rgba(0, 0, 0, 0.02);
+       }
+
+       &:active,
+       &:focus {
+               border-color: $color__border-button-focus;
+               box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.15);
+       }
+}
+
+[type=text],
+[type=password],
+[type=date],
+[type=datetime],
+[type=datetime-local],
+[type=month],
+[type=week],
+[type=email],
+[type=number],
+[type=search],
+[type=tel],
+[type=time],
+[type=url],
+[type=color],
+textarea {
+       width: auto;
+}
\ No newline at end of file
diff --git a/sass/forms/_fields.scss b/sass/forms/_fields.scss
new file mode 100644 (file)
index 0000000..508d941
--- /dev/null
@@ -0,0 +1,27 @@
+input[type="text"],
+input[type="email"],
+input[type="url"],
+input[type="password"],
+input[type="search"],
+textarea {
+       color: $color__text-input;
+       border: 1px solid $color__border-input;
+       border-radius: 3px;
+
+       &:focus {
+               color: $color__text-input-focus;
+       }
+}
+
+input[type="text"],
+input[type="email"],
+input[type="url"],
+input[type="password"],
+input[type="search"] {
+       padding: 3px;
+}
+
+textarea {
+       padding-left: 3px;
+       width: 100%;
+}
\ No newline at end of file
diff --git a/sass/forms/_forms.scss b/sass/forms/_forms.scss
new file mode 100644 (file)
index 0000000..0d2b030
--- /dev/null
@@ -0,0 +1,5 @@
+@import "buttons";
+
+@import "fields";
+
+@import "gravityforms";
\ No newline at end of file
diff --git a/sass/forms/_gravityforms.scss b/sass/forms/_gravityforms.scss
new file mode 100644 (file)
index 0000000..2363bca
--- /dev/null
@@ -0,0 +1,12 @@
+
+.gform_wrapper .gfield_checkbox li input, .gform_wrapper .gfield_checkbox li input[type=checkbox] {
+       margin-top: 4px !important;
+}
+
+// Request Info Form styles
+#label_6_18_1,
+#label_6_18_5,
+#label_6_18_14,
+#label_6_18_22 {
+       font-weight: bold;
+}
\ No newline at end of file
diff --git a/sass/layout/_content-deals.scss b/sass/layout/_content-deals.scss
new file mode 100644 (file)
index 0000000..ca73bf7
--- /dev/null
@@ -0,0 +1,82 @@
+// Deals CPT styles
+
+.deals-list {
+
+  .deal-wrap{
+    float:left;
+    position:relative;
+    width:100%;
+    margin:0;
+  }
+
+  .deal.hentry{
+    padding:15px;
+    border:$lightgray 1px solid;
+    background: $white;
+    min-height: 100%;
+    max-height: 100%;
+
+    img{
+      margin:0 0 10px 0;
+      width: 100%;
+      height: auto;
+    }
+    p{
+      font-size: 13px;
+    }
+    h2{
+      color: $lightblue;
+    }
+    .entry-meta{
+      font-size: 12px;
+    }
+
+  }
+
+}
+
+.deal.hentry{
+  padding:15px;
+  border:$lightgray 1px solid;
+  background: $white;
+
+  img{
+    margin:0 0 10px 0;
+    max-width: 100%;
+    height: auto;
+  }
+  h1{
+    color: $lightblue;
+  }
+  .entry-meta{
+    font-size: 12px;
+  }
+
+}
+
+
+@media #{$large-up} {
+
+  .deals-list {
+
+    .deal-wrap{
+      float:left;
+      position:relative;
+      width:47%;
+      margin:0 3% 0 0;
+    }
+
+    .deal.hentry{
+      padding:15px;
+      border:$lightgray 1px solid;
+      background: $white;
+      min-height: 530px;
+      max-height: 530px;
+
+    }
+
+  }
+
+
+
+}
\ No newline at end of file
diff --git a/sass/layout/_content-directory.scss b/sass/layout/_content-directory.scss
new file mode 100644 (file)
index 0000000..fa848ac
--- /dev/null
@@ -0,0 +1,114 @@
+/* Directory list styles */
+
+.directory-list {
+
+  list-style: none;
+  margin:30px 0 0;
+  padding: 0;
+  width:100%;
+
+  li {
+    width: 100%;
+    float: none;
+    position: relative;
+    margin: 0 0 30px;
+
+    div, a.img-link {
+      height: 190px;
+      width: 1%;
+      margin: 0;
+      overflow: hidden;
+      display: table-cell;
+      vertical-align: top;
+      text-align: left;
+      background-repeat: no-repeat;
+      background-position: center center;
+      background-size: cover;
+    }
+    span.list-title-link{
+      text-transform:  uppercase;
+      color:$white;
+      font-size:28px;
+      line-height: 1;
+      text-shadow: 0 0 3px rgba(0,0,0,1);
+      display: block;
+      padding:20px;
+      font-weight: 700;
+      width:100%;
+      height:190px;
+      background:rgba(255,255,255,0);
+    }
+    a.img-link:hover span.list-title-link{
+      text-shadow: 0 0 3px rgba(0,0,0,.6);
+      background:rgba(255,255,255,.3);
+    }
+  }
+  li:nth-child(odd) {
+    width:100%;
+    clear:none;
+    float:none;
+    padding:0;
+    margin: 0 0 30px 0;
+  }
+
+  li:nth-child(even){
+    width:100%;
+    margin: 0 0 30px 0;
+    float:none;
+  }
+}
+
+
+#SFpne .gm-style{
+  pointer-events: none;
+}
+
+/*
+.SFbizbox:nth-of-type(6){
+  margin:0 !important;
+  pointer-events: none;
+  position: relative;
+}
+
+.overlay-map {
+  background:transparent;
+  position:absolute;
+  max-width:100%;
+  width:750px;
+  background:transparent;
+  height:200px;
+  top:200px;
+  margin:-200px 0 0;
+  padding:0;
+  z-index: 999999999;
+  display:block;
+  pointer-events: none;
+  cursor: ponter;
+}
+.overlay-map:hover{
+  pointer-events: none;
+}
+*/
+
+@media #{$medium-up} {
+
+  #SFpne .gm-style{
+    pointer-events: auto;
+  }
+
+
+  .directory-list li:nth-child(odd) {
+    width:47%;
+    clear:left;
+    float:left;
+    padding:0;
+    margin: 0 1.5% 30px 0;
+  }
+
+  .directory-list li:nth-child(even){
+    width:48%;
+    margin: 0 0 30px 1.5%;
+    float:left;
+  }
+
+}
\ No newline at end of file
diff --git a/sass/layout/_content-events.scss b/sass/layout/_content-events.scss
new file mode 100644 (file)
index 0000000..1d7e170
--- /dev/null
@@ -0,0 +1,170 @@
+// Custom Events plugin styles
+
+.page-sidebar {
+
+  // Custom Events plugin styles
+  .event-list-wrap{
+
+    padding:0;
+    margin:0 0 10px 0;
+    position: relative;
+
+    h3 {
+      font-size: 20px;
+    }
+
+  }
+
+  .events-row{
+    padding:0;
+  }
+}
+
+.ui-widget-header {
+  border: 1px solid #fff !important;
+  background:$lightblue !important;
+}
+
+#ui-datepicker-div{
+  z-index: 101 !important;
+}
+
+
+
+.em-search-wrapper {
+
+  p {
+    display: inline !important;
+    line-height: 1;
+  }
+
+
+}
+
+input.em-events-search-text.em-search-text,
+input.em-search-geo,
+input.em-date-input-loc.em-date-start.hasDatepicker,
+input.em-date-input-loc.em-date-end.hasDatepicker{
+  display: inline-block !important;
+}
+button.em-search-submit{
+  display: inline-block !important;
+}
+
+div.css-search div.em-search-main .em-search-submit{
+  background:$lightblue;
+  display: inline-block !important;
+}
+div.css-search div.em-search-main .em-search-submit:hover{
+  background:$darkblue;
+}
+
+.em-search-town select{
+  padding-right: 30px !important;
+}
+
+
+.events-row{
+  padding: 15px 0;
+  text-align: left;
+  vertical-align: top;
+  font-size: 14px;
+  p {
+    img {
+      float:left;
+      position:relative;
+      width:300px;
+      height: auto;
+      margin:0 15px 15px 0;
+      display: inline-block;
+    }
+  }
+
+
+
+
+}
+
+.event-img{
+  max-width:40%;
+}
+
+.event-map {
+  position: relative;
+  padding-bottom: 75%; // This is the aspect ratio
+  height: 0;
+  overflow: hidden;
+}
+.event-map iframe {
+  position: absolute;
+  top: 0;
+  left: 0;
+  width: 100% !important;
+  height: 100% !important;
+}
+
+
+
+
+.event-cost {
+  display: inline-block;
+  padding: 5px;
+  position: absolute;
+  top:15px;
+  right:15px;
+  color:$white;
+  background: $lightblue;
+  max-width: 23%;
+}
+
+
+.event-list-wrap{
+
+  padding:15px;
+  border:$color__background-content 1px solid;
+  background: $white;
+  margin:0 0 20px 0;
+  position: relative;
+
+  h3 {
+    width: 66%;
+  }
+
+
+}
+
+.css-events-list p{
+  clear: both;
+}
+
+.em-pagination .page-numbers{
+  display: inline-block;
+  padding:8px;
+  background:$blue;
+  color:$white;
+}
+.em-pagination .page-numbers:hover,
+.em-pagination .page-numbers.current{
+  background: $darkblue;
+}
+
+img.size-medium{
+  max-width: 100%;
+  width:100%;
+  margin-bottom: 25px;
+}
+
+@media #{$medium-up} {
+
+  .event-map {
+    position: relative;
+    padding-bottom: 40%; // This is the aspect ratio
+    height: 0;
+    overflow: hidden;
+  }
+
+  img.size-medium{
+    width:50%;
+  }
+
+}
diff --git a/sass/layout/_content-homepage.scss b/sass/layout/_content-homepage.scss
new file mode 100644 (file)
index 0000000..24af67d
--- /dev/null
@@ -0,0 +1,331 @@
+.home-row.row.column{
+  margin:0;
+  width:auto !important;
+}
+
+.front-main.column,
+.front-main.columns
+{
+  width: auto;
+  padding-left: 0;
+  padding-right: 0;
+}
+
+.front-main {
+  padding:0 ;
+  margin-top:0 !important;
+  margin-bottom:30px;
+
+  img {
+    width:100%;
+    height: auto;
+    margin-bottom: 10px;
+  }
+
+
+  .front-main-left {
+    background: $color__background-content;
+    margin-bottom:30px;
+    //padding-left:0;
+    //margin:0;
+  }
+
+  .front-main-right {
+    background: $color__background-content;
+    //padding-right:0;
+  }
+
+  h2 {
+    color:$blue;
+    font-weight: 100;
+    font-size: 28px;
+  }
+
+  p {
+    margin-bottom: 0;
+  }
+}
+
+
+
+.row.front-bottom{
+  padding:0;
+  margin:0;
+}
+
+.front-bottom {
+  padding:0;
+  margin:0;
+  height: 325px;
+  background-repeat: no-repeat;
+  background-position: center center;
+  background-size: contain;
+  overflow: hidden;
+  position: relative;
+
+  .front-bottom-img-link{
+    display:block;
+    position:absolute;
+    z-index: 2;
+    width:100%;
+    height:350px;
+  }
+
+  .front-bottom-container {
+    display:table-cell;
+    width: 100%;
+    vertical-align: bottom;
+    padding-left:0;
+    height:325px;
+  }
+
+  h5{
+    display: inline-block;
+    padding: 15px;
+    background:#156c96;
+    color: #fff;
+    font-weight: 300;
+    text-transform: uppercase;
+    position: relative;
+    z-index:  1001;
+    float:left;
+    margin:0;
+    line-height: 1;
+
+    a {
+      color: $white;
+    }
+  }
+
+  p{
+    display: inline-block;
+    float:left;
+    position: relative;
+    z-index:  1001;
+    padding: 18px 16px 17px 16px;
+    background: #fff;
+    margin:0;
+    line-height: 1;
+    font-size: 14px;
+
+    a {
+      color: $lightgray;
+    }
+  }
+
+}
+
+// Custom RoyalSlider Homepage styles
+
+.royalSlider > .rsContent {
+  visibility: hidden;
+}
+
+.slider-header-wrap.row.column{
+  margin:0 auto;
+  width:auto !important;
+}
+
+.slider-header {
+  margin:0 0 0px 0;
+  padding:0;
+  //overflow:hidden;
+  background: #f6f6f6;
+  height: auto;
+}
+
+.front-block {
+  background:transparent;
+  padding: 0;
+  position:relative;
+  z-index:1000;
+  width: 100%;
+  top:-20px;
+
+  h3{
+    display: inline-block;
+    padding: 10px 20px;
+    background:#156c96;
+    color: #fff;
+    font-weight: 100;
+    text-transform: uppercase;
+    position: relative;
+    z-index:  1001;
+    //top:10px !important;
+    left:0 !important;
+    margin-bottom:0px;
+    overflow: hidden;
+    font-size: 20px;
+  }
+  p{
+    display:none;
+  }
+}
+/*
+.customRShome img.rsImg {
+  max-height:570px;
+}
+
+.customRShome .rsNavItem.rsThumb:nth-child(3){
+  display:none;
+}
+
+.customRShome .rsNavSelected:nth-of-type(3){
+  display:none;
+}
+
+
+.rsNavSelected .rsTmb.rsThumb p{
+  display:block;
+  padding:0;
+  background:rgba(21,108,150, .8);
+  position:relative;
+  z-index:2000;
+  top: -135px;
+  line-height: 135px;
+  width:100%;
+  height:100%;
+  text-align: center;
+  color: #fff;
+}
+
+.rsTmb.rsThumb p{
+  display:none;
+  padding:0;
+  background:rgba(21,108,150, .8);
+  position:relative;
+  z-index:2000;
+  top: -135px;
+  line-height: 135px;
+  width:100%;
+  height:100%;
+  text-align: center;
+  color: #fff;
+}
+
+*/
+.slider-header .royalSlider{
+  min-height: 350px !important;
+}
+
+
+.rsNav.rsThumbs.rsThumbsHor{
+  visibility: hidden;
+}
+
+
+
+.customRShome .rsOverflow,
+.customRShome .rsSlide {
+  overflow: hidden;
+  height:100% !important;
+}
+
+@media #{$medium-up} {
+
+  .slider-header {
+    margin:0;
+    padding:0 0 0 0;
+    //overflow:hidden;
+    background: #f6f6f6;
+    height: auto;
+  }
+
+
+  .customRShome .rsOverflow,
+  .customRShome .rsSlide {
+    overflow: hidden;
+    height:795px !important;
+  }
+
+  .front-main {
+    //margin-top:-200px !important;
+    padding:65px 30px 45px 30px;
+
+
+    .front-main-left.columns {
+      margin-bottom: 0;
+    }
+
+  }
+
+  .front-block {
+    background:#fff;
+    padding: 25px;
+    position:relative;
+    z-index:1000;
+    width: 95%;
+    display: block;
+
+    h3{
+      display: inline-block;
+      padding: 25px;
+      background:#156c96;
+      color: #fff;
+      font-weight: 100;
+      text-transform: uppercase;
+      position: relative;
+      z-index:  1001;
+      top:-100px !important;
+      margin-bottom: -80px;
+      overflow: hidden;
+      font-size: 35px;
+    }
+    p{
+      display:block;
+    }
+  }
+
+
+
+
+
+
+}
+
+
+@media #{$large-up} {
+
+  .rsNav.rsThumbs.rsThumbsHor{
+    visibility: visible;
+  }
+
+  .slider-header-wrap.row.column{
+    margin:0 auto;
+    padding:0 .9375rem;
+  }
+
+  .home-row.row.column{
+    margin:0 auto;
+    padding:0 .9375rem;
+  }
+
+  .front-block {
+    background:#fff;
+    padding: 25px;
+    position:relative;
+    //z-index:1000;
+    width: auto;
+    display: block;
+    top:0;
+
+  }
+
+
+
+  .front-bottom {
+    padding:0 .9375rem;
+    margin:0;
+    background-size: cover;
+
+    .front-bottom-container {
+      display:table-cell;
+      width: 1%;
+      vertical-align: bottom;
+      padding-left: 50px;
+
+    }
+
+  }
+
+}
\ No newline at end of file
diff --git a/sass/layout/_content-member_sidebar.scss b/sass/layout/_content-member_sidebar.scss
new file mode 100644 (file)
index 0000000..b38506a
--- /dev/null
@@ -0,0 +1,105 @@
+.member-sidebar.columns{
+  padding-right: 0;
+  padding-left: 0;
+}
+
+
+.member-sidebar {
+
+  padding: 400px 30px 20px 0;
+
+  .widget-area {
+
+    font-size: 14px;
+
+    p {
+       line-height: 1.5;
+       margin-bottom: 10px;
+    }
+
+    input[type=text],
+    input[type=email]{
+      width:90%;
+      @include textfields();
+      border-color: #ececec;
+    }
+
+    input[type=submit]{
+      position:relative;
+      @include submitbutton()
+    }
+
+    .widget-container{
+      padding:0 20px 10px 20px;
+
+
+
+
+    }
+
+    .widget-title{
+      display: inline-block;
+      padding: 10px 15px;
+      background:$darkgray;
+      color: $white;
+      font-size:15px;
+      font-weight: 300;
+      margin:0 0 0 20px;
+      position: relative;
+      z-index: 100;
+      top:-20px;
+      width: 185px;
+      max-width: 185px;
+    }
+
+    .news-feed-title:before {
+      position: absolute;
+      font-family: 'FontAwesome';
+      top: 7px;
+      right: 15px;
+      content: "\f09e";
+      font-size:20px;
+    }
+    section{
+      background: $white;
+      margin-bottom: 60px;
+    }
+  }
+
+  .simple-section-nav {
+    .widget-title{
+      display: inline-block;
+      padding: 10px 15px;
+      background:$darkgray;
+      color: $white;
+      font-size:15px;
+      font-weight: 300;
+      margin:0 0 0 20px;
+      position: relative;
+      z-index: 100;
+      top:-20px;
+      width: 185px;
+      max-width: 185px;
+    }
+    ul {
+      list-style: none;
+      padding-bottom: 20px;
+        a{
+          color: $lightgray;
+        }
+    }
+
+  }
+
+
+
+
+}
+
+.advert-wrap{
+  position:relative;
+  display:block;
+  margin-top:-30px;
+  height:auto;
+  background:$white;
+}
diff --git a/sass/layout/_content-news.scss b/sass/layout/_content-news.scss
new file mode 100644 (file)
index 0000000..ac2697e
--- /dev/null
@@ -0,0 +1,56 @@
+.post-page-title {
+
+  background: $color__heading-h1;
+  position:relative;
+  display:inline-block;
+  z-index: 100;
+  top:0;
+  padding: 5px 32px;
+  height:auto;
+  top: -80px;
+  margin-bottom:35px;
+
+  h1{
+    color: $white;
+    font-size: 2.4rem;
+    font-weight: 100;
+    text-transform: uppercase;
+    line-height:1;
+
+    a {
+      color: $white;
+    }
+  }
+
+  p{
+    color: $white;
+    font-size: 2.4rem;
+    font-weight: 100;
+    text-transform: uppercase;
+    line-height:1 !important;
+    margin: 0.67em 0 !important;
+  }
+}
+
+.news-wrapper {
+  position: relative;
+  margin-top: -80px;
+}
+
+
+article.post {
+  margin-top: 0;
+  margin-bottom: 50px;
+  padding-bottom: 30px;
+  border-bottom: $color__text-main 1px solid;
+}
+
+.tags-links,
+.cat-links,
+.posted-on,
+.byline,
+.author.vcard{
+  font-size: 12px;
+  display: inline-block;
+  margin-right: 8px;
+}
\ No newline at end of file
diff --git a/sass/layout/_content-page.scss b/sass/layout/_content-page.scss
new file mode 100644 (file)
index 0000000..4ff0105
--- /dev/null
@@ -0,0 +1,237 @@
+body {
+  top: 0;
+}
+
+.site-header.row.column{
+  margin:0 auto;
+  padding:0;
+}
+
+.widget_adrotate_widgets{
+  overflow: hidden !important;
+}
+
+.body-content.row.column{
+  padding-left: 0;
+  padding-right: 0;
+  margin:0 auto;
+  background: $color__background-content;
+}
+
+.body-content {
+  background: $color__background-content;
+}
+
+.page {
+
+  .entry-header {
+    background: $color__heading-h1;
+    position:relative;
+    display:inline-block;
+    z-index: 100;
+    top:30px;
+    padding: 5px 20px;
+    height:auto;
+    margin-bottom:15px;
+  }
+  .entry-title {
+    color: $white;
+    font-size: 1.4rem;
+    font-weight: 100;
+    text-transform: uppercase;
+    line-height:1;
+  }
+}
+
+.post-page-title {
+
+  background: $color__heading-h1;
+  position:relative;
+  display:inline-block;
+  z-index: 100;
+  top:30px;
+  padding: 5px 20px;
+  height:auto;
+  margin-bottom:15px;
+
+  h1{
+    color: $white;
+    font-size: 1  .4rem;
+    font-weight: 100;
+    text-transform: uppercase;
+    line-height:1;
+  }
+
+  p{
+    color: $white;
+    font-size: 2.4rem;
+    font-weight: 100;
+    text-transform: uppercase;
+    line-height:1 !important;
+    margin: 0.67em 0 !important;
+  }
+}
+
+.news-wrapper {
+  position: relative;
+  margin-top: -80px;
+}
+
+
+.content-area {
+  margin: 0;
+  width: $size__site-main;
+
+  padding: 0;
+}
+
+.site-main {
+  margin:0;
+  padding: 0;
+
+  article.page {
+    margin-top: -130px;
+  }
+
+  article.post {
+    margin-top: 0;
+    margin-bottom: 50px;
+    padding-bottom: 30px;
+    border-bottom: $color__text-main 1px solid;
+  }
+
+  p{
+    line-height: 1.33;
+  }
+
+  #breadcrumbs{
+    font-size:12px;
+    margin-top: 24px;
+  }
+}
+
+.site-search {
+  padding:50px 20px;
+}
+
+.site-content .widget-area {
+  float: none;
+  width: auto;
+}
+
+.site-footer {
+       clear: both;
+       width: $size__site-main;
+}
+
+.page-sidebar {
+  margin-top: 39px;
+
+}
+
+
+
+
+
+
+@media #{$medium-up} {
+
+  #header-advert {
+    padding:20px 0 ;
+    width: 728px;
+    min-height: 130px;
+    max-height: 130px;
+    img{
+      width:728px;
+      min-height: 90px;
+      max-height: 90px;
+      margin: 0 auto;
+    }
+  }
+
+
+
+  .page {
+
+    .entry-header {
+      background: $color__heading-h1;
+      position:relative;
+      display:inline-block;
+      z-index: 100;
+      top:0;
+      padding: 5px 32px;
+      height:auto;
+      margin-bottom:15px;
+    }
+    .entry-title {
+      color: $white;
+      font-size: 2.4rem;
+      font-weight: 100;
+      text-transform: uppercase;
+      line-height:1;
+    }
+  }
+
+  .site-main {
+    article.page {
+      margin-top: -80px;
+    }
+  }
+
+  .post-page-title {
+
+    background: $color__heading-h1;
+    position:relative;
+    display:inline-block;
+    z-index: 100;
+    top:0;
+    padding: 5px 32px;
+    height:auto;
+    top: -100px;
+    margin-bottom:35px;
+
+    h1{
+      color: $white;
+      font-size: 2.4rem;
+      font-weight: 100;
+      text-transform: uppercase;
+      line-height:1;
+    }
+
+    p{
+      color: $white;
+      font-size: 2.4rem;
+      font-weight: 100;
+      text-transform: uppercase;
+      line-height:1 !important;
+      margin: 0.67em 0 !important;
+    }
+  }
+
+
+}
+
+@media #{$large-up} {
+
+  .site-header.row.column{
+    margin:0 auto;
+    padding:0 .9375rem;
+  }
+
+
+  .site-main {
+    padding:0 20px 20px 70px;
+  }
+
+  #breadcrumbs{
+    margin-top: 0;
+  }
+
+  .post-page-title {
+
+    top: -80px;
+
+  }
+
+
+}
\ No newline at end of file
diff --git a/sass/layout/_content-sidebar.scss b/sass/layout/_content-sidebar.scss
new file mode 100644 (file)
index 0000000..6215e51
--- /dev/null
@@ -0,0 +1,257 @@
+.page-sidebar.columns{
+  padding-right: 0;
+  padding-left: 0;
+}
+
+
+.page-sidebar {
+
+  padding: 30px 20px 0;
+
+  .textwidget {
+    padding: 0 20px 10px;
+  }
+
+  /* .textwidget:nth-of-type(1) {
+    padding: 0;
+  }
+  */
+
+  .event-list-wrap {
+    border:0 none;
+    h3 {
+      width:60%;
+    }
+  }
+
+  .event-cost {
+    display: inline-block;
+    padding: 5px;
+    position: absolute;
+    top:0;
+    right:0;
+    color:$white;
+    background: $lightblue;
+    max-width: 33%;
+    height: auto;
+  }
+
+  .widget-area {
+
+    font-size: 14px;
+
+    p {
+       line-height: 1.5;
+       margin-bottom: 10px;
+    }
+
+
+
+    ul {
+      list-style: none;
+      padding-bottom: 20px;
+      a{
+        color: $lightgray;
+      }
+
+      li.event-item {
+        padding: 5px 0;
+      }
+
+      a.event-link {
+        color: $blue;
+      }
+
+    }
+
+    .explore-posts {
+      ul{
+        font-size: 16px;
+        margin:0;
+      }
+      a {
+        color: $blue;
+      }
+    }
+
+    .popular-tags {
+      ul{
+        font-size: 12px;
+        margin:0;
+        li {
+          float:left;
+          display: inline-block;
+          position:relative;
+          padding:2px 4px;
+          background: $lightgray;
+          margin:0 5px 5px 0;
+
+          a{
+            color: $white;
+          }
+
+        }
+        li:hover{
+          background: $darkgray;
+        }
+      }
+
+    }
+
+
+    // Custom Gravity Forms styles
+    ul.gform_fields{
+      padding-bottom: 0;
+    }
+
+    .gform_footer.top_label{
+      padding:0;
+      margin:0;
+    }
+
+    .gfield_required,
+    .gform_wrapper .top_label .gfield_label{
+      display: none;
+    }
+    // End Custom Gravity Forms styles
+
+    input[type=text],
+    input[type=email]{
+      width:90%;
+      @include textfields();
+      border-color: #ececec;
+    }
+
+    input[type=submit]{
+      position:relative;
+      @include submitbutton()
+    }
+
+    .widget-container{
+      padding:0 20px 10px 20px;
+    }
+
+    .widget-title{
+      display: inline-block;
+      padding: 10px 15px;
+      background:$darkgray;
+      color: $white;
+      font-size:15px;
+      font-weight: 300;
+      margin:0 0 0 20px;
+      position: relative;
+      z-index: 100;
+      top:-20px;
+      width: 185px;
+      max-width: 185px;
+    }
+
+    .news-feed-title:before {
+      position: absolute;
+      font-family: 'FontAwesome';
+      top: 7px;
+      right: 15px;
+      content: "\f09e";
+      font-size:20px;
+    }
+    section,
+    section.widget_black_studio_tinymce.event-sidebar{
+      background: $white;
+      margin-bottom: 60px;
+    }
+    section.event-sidebar{
+      background: $white;
+      margin-bottom: 15px;
+
+    }
+
+    #black-studio-tinymce-10 ul{
+      margin-left:0;
+    }
+
+  }
+
+  .simple-section-nav {
+    .widget-title{
+      display: inline-block;
+      padding: 10px 15px;
+      background:$darkgray;
+      color: $white;
+      font-size:15px;
+      font-weight: 300;
+      margin:0 0 0 20px;
+      position: relative;
+      z-index: 100;
+      top:-20px;
+      width: 185px;
+      max-width: 185px;
+    }
+
+  }
+
+  .custom_menu {
+    h3{
+      display: inline-block;
+      padding: 10px 15px;
+      background:$darkgray;
+      color: $white;
+      font-size:15px;
+      font-weight: 300;
+      margin:0 0 0 20px;
+      position: relative;
+      z-index: 100;
+      top:-20px;
+      width: 185px;
+      max-width: 185px;
+    }
+  }
+}
+
+.advert-wrap{
+  position:relative;
+  display:block;
+  margin-top:-30px;
+  height:auto;
+  background:$white;
+  width:250px;
+  min-height: 250px;
+  max-height: 250px;
+  img {
+    width:100%;
+    height: auto;
+    margin:0 auto;
+    text-align: center;
+  }
+}
+
+.sidebar-bottom-ads {
+  div{
+    display:table-cell;
+    width:1%;
+    position: relative;
+
+    img {
+      width:125px;
+      height:125px;
+    }
+  }
+  div:first-child{
+    text-align: left;
+  }
+  div:last-child{
+    text-align: right;
+  }
+}
+
+#adrotate_widgets-4{
+  .g-3 {
+    width:100%;
+    text-align: center;
+    img {
+      margin:0 auto;
+      text-align: center;
+    }
+  }
+}
+
+
diff --git a/sass/layout/_footer-content.scss b/sass/layout/_footer-content.scss
new file mode 100644 (file)
index 0000000..c72ff8d
--- /dev/null
@@ -0,0 +1,183 @@
+.footer.row.column{
+  margin:0 auto;
+  padding:0;
+}
+
+.site-footer {
+  background: $color__background-footer;
+  padding: 40px 15px 25px 15px;
+
+  #footer-left,
+  #footer-right {
+    list-style: none;
+    margin-left: 0;
+    font-size: 12px;
+
+    a {
+      color: $lightgray;
+    }
+    a:hover {
+      color: $white;
+    }
+  }
+
+  .footer-signup {
+    position: relative;
+    p,
+    h6{
+      color: $lightgray;
+      font-size: 12px;
+      margin-bottom:5px;
+    }
+    input[type=text],
+    input[type=email]{
+      width:100%;
+      @include textfields();
+    }
+
+    // Custom Gravity Forms styles
+    .gform_wrapper .top_label input.large{
+      width: 100%;
+    }
+    .gform_wrapper .gform_footer input.button,
+    .gform_wrapper .gform_footer input[type=submit],
+    input[type=submit]{
+      @include submitbutton()
+    }
+
+    .gform_wrapper{
+      margin:0;
+    }
+    .gform_body {
+      float:left;
+      position:relative;
+      width:86%;
+      margin:0;
+      padding:0;
+    }
+    ul.gform_fields{
+      padding-bottom: 0;
+    }
+    .gform_wrapper .gform_footer {
+      clear:none;
+    }
+    .gform_footer.top_label{
+      padding:0;
+      margin:6px 0 0;
+      float:left;
+      position:relative;
+      width:auto;
+    }
+
+    .gfield_required,
+    .gform_wrapper .top_label .gfield_label{
+      display: none;
+    }
+    // End Custom Gravity Forms styles
+    .footer-advert-container {
+      /* fixed position a zero-height full width container */
+      position: fixed;
+      bottom: -25px;
+      left: auto;
+      right: auto;
+      height: auto;
+      /* center all inline content */
+      text-align: center;
+    }
+
+
+    .footer-advert {
+      clear:both;
+      padding:0;
+      margin:20px auto 15px auto;
+      min-height: 41px;
+      max-height: 60px;
+      height: 60px;
+      display: inline-block;
+      max-width: 290px;
+      text-align: center;
+      overflow: hidden;
+      p{
+        width:100%;
+        display: inline-block;
+        text-align: center;
+      }
+      img {
+        width: 100%;
+        max-width: 100%;
+        min-height: 41px;
+        max-height: 41px;
+        height: 41px;
+        margin: 0 auto;
+        display: inline-block;
+        text-align: center;
+      }
+
+    }
+  }
+
+  .site-info p{
+    color: $lightgray;
+    padding:20px 0;
+    font-size: 12px;
+      a{
+        color: $white;
+        text-decoration: none;
+      }
+  }
+}
+
+@media #{$medium-up} {
+
+  .site-footer {
+    .footer-signup {
+      .footer-advert-container {
+        position: relative;
+        bottom: auto;
+        left: auto;
+        right: auto;
+        height: auto;
+        text-align: left;
+      }
+      .footer-advert {
+        width:468px;
+        min-height: 100%;
+        max-height: 100%;
+        max-width: 468px;
+        height: 100%;
+        margin:0;
+        padding:0;
+        position:relative;
+        img {
+          width:468px;
+          max-width: 468px;
+          min-height: 60px;
+          max-height: 60px;
+          height: 60px;
+          float:left;
+          position: relative;
+        }
+      }
+    }
+  }
+
+}
+@media #{$large-up} {
+
+  .footer.row.column{
+    margin:0 auto;
+    padding:0 .9375rem;
+  }
+
+  .site-footer {
+    padding: 40px 50px 25px 50px;
+    .footer-signup {
+      input[type=submit] {
+        padding: 6px 9px;
+      }
+
+
+    }
+  }
+
+}
\ No newline at end of file
diff --git a/sass/layout/_header-content.scss b/sass/layout/_header-content.scss
new file mode 100644 (file)
index 0000000..57421fc
--- /dev/null
@@ -0,0 +1,32 @@
+#header-advert {
+  padding:10px 0 0 ;
+  text-align: center;
+  width: auto;
+  margin:0 auto;
+  min-height: 70px;
+  max-height: 70px;
+  height: 70px;
+  position: relative;
+  overflow: hidden;
+  img{
+    width:auto;
+    min-height: 50px;
+    max-height: 50px;
+    margin:0 auto;
+  }
+}
+
+@media #{$medium-up} {
+
+  #header-advert {
+    min-height: 100px;
+    max-height: 100px;
+    height: 100px;
+    img {
+      width: 650px;
+      min-height: 100px;
+      max-height: 100px;
+      height: 100px;
+    }
+  }
+}
diff --git a/sass/layout/_heading-img.scss b/sass/layout/_heading-img.scss
new file mode 100644 (file)
index 0000000..dc47be7
--- /dev/null
@@ -0,0 +1,3 @@
+.header-img {
+  height: 415px;
+}
\ No newline at end of file
diff --git a/sass/layout/_hero-header.scss b/sass/layout/_hero-header.scss
new file mode 100644 (file)
index 0000000..c123741
--- /dev/null
@@ -0,0 +1,36 @@
+.hero-header {
+  height: 215px;
+  //background-repeat: no-repeat;
+  //background-position: center center;
+  //background-size: none;
+
+}
+
+/*
+@media #{$medium-up} {
+
+  .hero-header {
+    height: 415px;
+    background-repeat: no-repeat;
+    background-position: center center;
+    background-size: none;
+  }
+
+}
+*/
+
+@media #{$medium-up} {
+
+  .hero-header {
+    height: 315px;
+  }
+
+}
+
+@media #{$large-up} {
+
+  .hero-header {
+    height: 415px;
+  }
+
+}
\ No newline at end of file
diff --git a/sass/layout/_sidebar-content.scss b/sass/layout/_sidebar-content.scss
new file mode 100644 (file)
index 0000000..f101e3e
--- /dev/null
@@ -0,0 +1,20 @@
+.content-area {
+       float: right;
+       margin: 0 0 0 (-$size__site-sidebar);
+       width: $size__site-main;
+}
+
+.site-main {
+       margin: 0 0 0 $size__site-sidebar;
+}
+
+.site-content .widget-area {
+       float: left;
+       overflow: hidden;
+       width: $size__site-sidebar;
+}
+
+.site-footer {
+       clear: both;
+       width: $size__site-main;
+}
\ No newline at end of file
diff --git a/sass/media/_captions.scss b/sass/media/_captions.scss
new file mode 100644 (file)
index 0000000..c299bfe
--- /dev/null
@@ -0,0 +1,16 @@
+.wp-caption {
+       margin-bottom: 1.5em;
+       max-width: 100%;
+
+       img[class*="wp-image-"] {
+               @include center-block;
+       }
+
+       .wp-caption-text {
+               margin: 0.8075em 0;
+       }
+}
+
+.wp-caption-text {
+       text-align: center;
+}
diff --git a/sass/media/_galleries.scss b/sass/media/_galleries.scss
new file mode 100644 (file)
index 0000000..1458347
--- /dev/null
@@ -0,0 +1,46 @@
+.gallery {
+       margin-bottom: 1.5em;
+}
+
+.gallery-item {
+       display: inline-block;
+       text-align: center;
+       vertical-align: top;
+       width: 100%;
+
+       .gallery-columns-2 & {
+               max-width: 50%;
+       }
+
+       .gallery-columns-3 & {
+               max-width: 33.33%;
+       }
+
+       .gallery-columns-4 & {
+               max-width: 25%;
+       }
+
+       .gallery-columns-5 & {
+               max-width: 20%;
+       }
+
+       .gallery-columns-6 & {
+               max-width: 16.66%;
+       }
+
+       .gallery-columns-7 & {
+               max-width: 14.28%;
+       }
+
+       .gallery-columns-8 & {
+               max-width: 12.5%;
+       }
+
+       .gallery-columns-9 & {
+               max-width: 11.11%;
+       }
+}
+
+.gallery-caption {
+       display: block;
+}
\ No newline at end of file
diff --git a/sass/media/_media.scss b/sass/media/_media.scss
new file mode 100644 (file)
index 0000000..198535d
--- /dev/null
@@ -0,0 +1,25 @@
+.page-content .wp-smiley,
+.entry-content .wp-smiley,
+.comment-content .wp-smiley {
+       border: none;
+       margin-bottom: 0;
+       margin-top: 0;
+       padding: 0;
+}
+
+/* Make sure embeds and iframes fit their containers. */
+embed,
+iframe,
+object {
+       max-width: 100%;
+}
+
+/*--------------------------------------------------------------
+## Captions
+--------------------------------------------------------------*/
+@import "captions";
+
+/*--------------------------------------------------------------
+## Galleries
+--------------------------------------------------------------*/
+@import "galleries";
\ No newline at end of file
diff --git a/sass/mixins/_functions.scss b/sass/mixins/_functions.scss
new file mode 100644 (file)
index 0000000..a63b920
--- /dev/null
@@ -0,0 +1,156 @@
+// Foundation by ZURB
+// foundation.zurb.com
+// Licensed under MIT Open Source
+
+// This is the default html and body font-size for the base rem value.
+$rem-base: 16px !default;
+
+// IMPORT ONCE
+// We use this to prevent styles from being loaded multiple times for components that rely on other components.
+$modules: () !default;
+
+@mixin exports($name) {
+  // Import from global scope
+  $modules: $modules !global;
+  // Check if a module is already on the list
+  $module_index: index($modules, $name);
+  @if (($module_index == null) or ($module_index == false)) {
+    $modules: append($modules, $name) !global;
+    @content;
+  }
+}
+
+//
+// @functions
+//
+
+
+// RANGES
+// We use these functions to define ranges for various things, like media queries.
+@function lower-bound($range) {
+  @if length($range) <= 0 {
+    @return 0;
+  }
+  @return nth($range, 1);
+}
+
+@function upper-bound($range) {
+  @if length($range) < 2 {
+    @return 999999999999;
+  }
+  @return nth($range, 2);
+}
+
+// STRIP UNIT
+// It strips the unit of measure and returns it
+@function strip-unit($num) {
+  @return $num / ($num * 0 + 1);
+}
+
+// TEXT INPUT TYPES
+
+@function text-inputs( $types: all, $selector: input ) {
+
+  $return: ();
+
+  $all-text-input-types:
+    text
+    password
+    date
+    datetime
+    datetime-local
+    month
+    week
+    email
+    number
+    search
+    tel
+    time
+    url
+    color
+    textarea;
+
+  @if $types == all { $types: $all-text-input-types; }
+
+  @each $type in $types {
+    @if $type == textarea {
+      @if $selector == input {
+        $return: append($return, unquote('#{$type}'), comma)
+      } @else {
+        $return: append($return, unquote('#{$type}#{$selector}'), comma)
+      }
+    } @else {
+      $return: append($return, unquote('#{$selector}[type="#{$type}"]'), comma)
+    }
+  }
+
+    @return $return;
+
+}
+
+// CONVERT TO REM
+@function convert-to-rem($value, $base-value: $rem-base) {
+  $value: strip-unit($value) / strip-unit($base-value) * 1rem;
+  @if ($value == 0rem) { $value: 0; } // Turn 0rem into 0
+  @return $value;
+}
+
+@function data($attr) {
+  @if $namespace {
+    @return '[data-' + $namespace + '-' + $attr + ']';
+  }
+
+  @return '[data-' + $attr + ']';
+}
+
+// REM CALC
+
+// New Syntax, allows to optionally calculate on a different base value to counter compounding effect of rem's.
+// Call with 1, 2, 3 or 4 parameters, 'px' is not required but supported:
+//
+//   rem-calc(10 20 30px 40);
+//
+// Space delimited, if you want to delimit using comma's, wrap it in another pair of brackets
+//
+//   rem-calc((10, 20, 30, 40px));
+//
+// Optionally call with a different base (eg: 8px) to calculate rem.
+//
+//   rem-calc(16px 32px 48px, 8px);
+//
+// If you require to comma separate your list
+//
+//   rem-calc((16px, 32px, 48), 8px);
+
+@function rem-calc($values, $base-value: $rem-base) {
+  $max: length($values);
+
+  @if $max == 1 { @return convert-to-rem(nth($values, 1), $base-value); }
+
+  $remValues: ();
+  @for $i from 1 through $max {
+    $remValues: append($remValues, convert-to-rem(nth($values, $i), $base-value));
+  }
+  @return $remValues;
+}
+
+
+@function em-calc($values) {
+  $remValues: rem-calc($values);
+
+  $max: length($remValues);
+
+  @if $max == 1 { @return strip-unit(nth($remValues, 1)) * 1em; }
+
+  $emValues: ();
+  @for $i from 1 through $max {
+    $emValues: append($emValues, strip-unit(nth($remValues, $i)) * 1em);
+  }
+  @return $emValues;
+}
+
+
+// Deprecated: OLD EM CALC
+@function emCalc($values) {
+  @return em-calc($values);
+}
diff --git a/sass/mixins/_mixins-master.scss b/sass/mixins/_mixins-master.scss
new file mode 100644 (file)
index 0000000..b8295bd
--- /dev/null
@@ -0,0 +1,44 @@
+// Rem output with px fallback
+@mixin font-size($sizeValue: 1) {
+       font-size: ($sizeValue * 16) * 1px;
+       font-size: $sizeValue * 1rem;
+}
+
+// Center block
+@mixin center-block {
+       display: block;
+       margin-left: auto;
+       margin-right: auto;
+}
+
+// Clearfix
+@mixin clearfix() {
+       content: "";
+       display: table;
+       table-layout: fixed;
+}
+
+// Clear after (not all clearfix need this also)
+@mixin clearfix-after() {
+       clear: both;
+}
+
+@mixin textfields() {
+       border:#939393 1px solid;
+       border-radius: 0;
+       padding:6px 9px;
+       font-size: 12px;
+       height: 25px;
+}
+
+@mixin submitbutton() {
+       border:$blue 1px solid;
+       border-radius: 0;
+       padding:6px;
+       font-size: 12px;
+       height:25px;
+       background: $blue;
+       color: $white;
+       box-shadow: none;
+       text-shadow:none;
+}
diff --git a/sass/modules/_accessibility.scss b/sass/modules/_accessibility.scss
new file mode 100644 (file)
index 0000000..45981b0
--- /dev/null
@@ -0,0 +1,32 @@
+/* Text meant only for screen readers. */
+.screen-reader-text {
+       clip: rect(1px, 1px, 1px, 1px);
+       position: absolute !important;
+       height: 1px;
+       width: 1px;
+       overflow: hidden;
+
+       &:focus {
+               background-color: $color__background-screen;
+               border-radius: 3px;
+               box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
+               clip: auto !important;
+               color: $color__text-screen;
+               display: block;
+               @include font-size(0.875);
+               font-weight: bold;
+               height: auto;
+               left: 5px;
+               line-height: normal;
+               padding: 15px 23px 14px;
+               text-decoration: none;
+               top: 5px;
+               width: auto;
+               z-index: 100000; /* Above WP toolbar. */
+       }
+}
+
+/* Do not show the outline on the skip link target. */
+#content[tabindex="-1"]:focus {
+       outline: 0;
+}
diff --git a/sass/modules/_alignments.scss b/sass/modules/_alignments.scss
new file mode 100644 (file)
index 0000000..5db6ab4
--- /dev/null
@@ -0,0 +1,16 @@
+.alignleft {
+       display: inline;
+       float: left;
+       margin-right: 1.5em;
+}
+
+.alignright {
+       display: inline;
+       float: right;
+       margin-left: 1.5em;
+}
+
+.aligncenter {
+       clear: both;
+       @include center-block;
+}
diff --git a/sass/modules/_clearings.scss b/sass/modules/_clearings.scss
new file mode 100644 (file)
index 0000000..96c3245
--- /dev/null
@@ -0,0 +1,23 @@
+.clear:before,
+.clear:after,
+.entry-content:before,
+.entry-content:after,
+.comment-content:before,
+.comment-content:after,
+.site-header:before,
+.site-header:after,
+.site-content:before,
+.site-content:after,
+.site-footer:before,
+.site-footer:after {
+       @include clearfix;
+}
+
+.clear:after,
+.entry-content:after,
+.comment-content:after,
+.site-header:after,
+.site-content:after,
+.site-footer:after {
+       @include clearfix-after;
+}
\ No newline at end of file
diff --git a/sass/modules/_infinite-scroll.scss b/sass/modules/_infinite-scroll.scss
new file mode 100644 (file)
index 0000000..be51db2
--- /dev/null
@@ -0,0 +1,10 @@
+/* Globally hidden elements when Infinite Scroll is supported and in use. */
+.infinite-scroll .posts-navigation, /* Older / Newer Posts Navigation (always hidden) */
+.infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */
+       display: none;
+}
+
+/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
+.infinity-end.neverending .site-footer {
+       display: block;
+}
\ No newline at end of file
diff --git a/sass/modules/_overlay.scss b/sass/modules/_overlay.scss
new file mode 100644 (file)
index 0000000..c9a4b44
--- /dev/null
@@ -0,0 +1,372 @@
+/* Overlay style */
+.overlay {
+       position: fixed;
+       width: 100%;
+       height: 100%;
+       top: 0;
+       left: 0;
+       background: rgba(255,255,255,0.9);
+       z-index: 999998;
+       padding: 20px;
+     overflow: scroll;
+}
+
+/* Overlay closing cross */
+.overlay .overlay-close {
+       width: 40px;
+       height: 40px;
+       position: absolute;
+       right: 20px;
+       top: 20px;
+       border: none;
+       background: #156c96;
+       color: $white;
+       outline: none;
+       z-index: 9999;
+       box-shadow: none;
+       border-radius: 0;
+    font-size:40px;
+}
+
+.overlay .overlay-close:before{
+  content: "X";
+  color:$white;
+  font-size:30px;
+  position: absolute;
+  right:30px;
+  top:5px;
+  z-index: 10000;
+}
+
+.overlay .overlay-close-btn {
+
+}
+
+/* Menu style */
+.overlay nav {
+       text-align: center;
+       position: relative;
+       top: 50%;
+       height: 60%;
+       -webkit-transform: translateY(-50%);
+       transform: translateY(-50%);
+}
+
+.overlay ul {
+       list-style: none;
+       padding: 0;
+       margin: 0 auto;
+       display: inline-block;
+       height: 100%;
+       position: relative;
+}
+
+.overlay ul li {
+       display: block;
+       height: 20%;
+       height: calc(100% / 5);
+       min-height: 54px;
+       -webkit-backface-visibility: hidden;
+       backface-visibility: hidden;
+}
+
+.overlay ul li a {
+       font-size: 54px;
+       font-weight: 300;
+       display: block;
+       color: $blue;
+       -webkit-transition: color 0.2s;
+       transition: color 0.2s;
+}
+
+.overlay ul li a:hover,
+.overlay ul li a:focus {
+       color: $darkblue;
+}
+
+/* Effects */
+.overlay-scale {
+       visibility: hidden;
+       opacity: 0;
+       -webkit-transform: scale(0.9);
+       transform: scale(0.9);
+       -webkit-transition: -webkit-transform 0.2s, opacity 0.2s, visibility 0s 0.2s;
+       transition: transform 0.2s, opacity 0.2s, visibility 0s 0.2s;
+}
+
+.overlay-scale.open {
+       visibility: visible;
+       opacity: 1;
+       -webkit-transform: scale(1);
+       transform: scale(1);
+       -webkit-transition: -webkit-transform 0.4s, opacity 0.4s;
+       transition: transform 0.4s, opacity 0.4s;
+}
+
+@media screen and (max-height: 30.5em) {
+       .overlay nav {
+               height: 70%;
+               font-size: 34px;
+       }
+       .overlay ul li {
+               min-height: 34px;
+       }
+}
+
+
+// Inside Overlay Form styles
+
+#search-overlay {
+  padding-top: 80px;
+  .select-wrap{
+    width: auto;
+    margin-bottom: 20px;
+
+  }
+
+    .search-all{
+               padding:15px;
+               border:0 none;
+               border-left: $blue 2px solid;
+               font-size:18px;
+               font-weight: 300;
+               line-height: 1;
+               color: $darkgray;
+               text-transform: uppercase;
+               border-radius: 0;
+               width:90%;
+        -webkit-appearance: none;
+       }
+
+  .select-arrow {
+    width:auto;
+    margin:0 0 20px 0;
+    float:none;
+    position:relative;
+  }
+    /*
+    select {
+
+      background: #ddd;
+      color:$darkgray;
+      border-radius: 0;
+      border:0 none;
+    }
+    select:last-child{
+      margin-right: 0;
+    }
+
+    .select-arrow:after {
+      content: "\25BC";
+      color:$black;
+      position:absolute;
+      right:10px;
+      top:14px;
+      font-size: 15px;
+    }
+*/
+  button.submit-close,
+  input[type=submit]{
+    clear:left;
+    display:block;
+    padding:20px 0;
+    border:0 none;
+    border-left: $blue 2px solid;
+    font-size:35px;
+    font-weight: 100;
+    line-height: 1;
+    background:$blue;
+    color: $white;
+    text-transform: uppercase;
+    border-radius: 0;
+    width:80%;
+    box-shadow: none;
+    text-shadow: none;
+  }
+
+  .columns.overlay-news-feed {
+    padding-left:0;
+    ul {
+      li {
+        a{
+          font-size: 16px;
+          color:$blue;
+        }
+      }
+    }
+  }
+  .columns.overlay-pop-search {
+    padding-right:0;
+  }
+
+  h2 {
+    text-transform: uppercase;
+    color:$blue;
+    font-size:30px;
+    font-weight:100;
+  }
+  h4 {
+    font-size:16px;
+    a{
+      color:$blue;
+      font-size:16px;
+    }
+  }
+
+  .chosen-container-single .chosen-single {
+    position: relative;
+    display: block;
+    overflow: hidden;
+    padding: 0 0 0 8px;
+    height: 40px;
+    background: #ddd;
+    color:$darkgray;
+    border-radius: 0;
+    border:0 none;
+    background-clip: padding-box;
+    box-shadow:none;
+    text-decoration: none;
+    white-space: nowrap;
+    line-height: 39px;
+  }
+
+  .chosen-container .chosen-results {
+    width:100%;
+  }
+
+  .chosen-results li.active-result {
+    display: block;
+    height:auto;
+    min-height: auto;
+  }
+
+  .chosen-container-single .chosen-single div b {
+    margin-top:6px;
+  }
+
+  .search-results-list {
+
+    dl {
+      counter-reset: search-results-counter;
+    }
+
+    dt:before {
+      content: counter(search-results-counter);
+      counter-increment: search-results-counter;
+      padding:0;
+      font-size: 60px;
+      font-weight: bold;
+      color:$lightblue;
+      margin:0 0 0 0;
+      line-height: 40px;
+      height:50px;
+    }
+
+    dt{
+      background: $blue;
+      padding:0 20px;
+      margin:0 0 15px 0;
+      line-height: 1;
+      height:40px;
+      overflow: hidden;
+
+      a{
+        display: inline-block;
+        color: $white;
+        font-size: 20px;
+        font-weight: 300;
+        line-height: auto;
+        margin:0 0 -15px 0;
+        top:-13px;
+        padding:0 0 0 15px;
+        position: relative;
+      }
+
+    }
+
+    dt:hover{
+      background: $darkblue;
+    }
+
+
+
+  }
+
+}
+
+.feed_results {
+  display: none;
+}
+
+@media #{$medium-up} {
+
+  /* Overlay style */
+  .overlay {
+    padding: 50px;
+  }
+
+  #search-overlay {
+    padding-top:100px;
+    .select-wrap {
+      width: 75%;
+      margin-bottom: 8%;
+    }
+
+    .search-all {
+      padding: 30px 15px;
+      border: 0 none;
+      border-left: $blue 2px solid;
+      font-size: 55px;
+      font-weight: 300;
+      line-height: 1;
+      color: $darkgray;
+      text-transform: uppercase;
+      border-radius: 0;
+      width: 100%;
+    }
+
+    .select-arrow {
+      width: 25.3%;
+      margin: 0 2% 20px 0;
+      float: left;
+      position: relative;
+    }
+
+  }
+
+
+  /* Overlay closing cross */
+  .overlay .overlay-close {
+    width: 70px;
+    height: 70px;
+    position: absolute;
+    right: 20px;
+    top: 20px;
+    border: none;
+    background: #156c96;
+    color: $white;
+    outline: none;
+    z-index: 9999;
+    box-shadow: none;
+    border-radius: 0;
+    font-size:40px;
+  }
+
+  .overlay .overlay-close:before{
+    content: "X";
+    color:$white;
+    font-size:40px;
+    position: absolute;
+    right:25px;
+    top:15px;
+    z-index: 10000;
+  }
+
+  .feed_results {
+    display:block;
+  }
+
+
+}
+
+
diff --git a/sass/navigation/_links.scss b/sass/navigation/_links.scss
new file mode 100644 (file)
index 0000000..eade43f
--- /dev/null
@@ -0,0 +1,19 @@
+a {
+       color: $color__link;
+
+       &:visited {
+               color: $color__link-visited;
+       }
+       &:hover,
+       &:focus,
+       &:active {
+               color: $color__link-hover;
+       }
+       &:focus {
+               outline: thin dotted;
+       }
+       &:hover,
+       &:active {
+               outline: 0;
+       }
+}
\ No newline at end of file
diff --git a/sass/navigation/_menus.scss b/sass/navigation/_menus.scss
new file mode 100644 (file)
index 0000000..943c4d7
--- /dev/null
@@ -0,0 +1,381 @@
+.header-top {
+       background: $color__background-header-top;
+}
+
+.header-top.row{
+  margin:0;
+}
+
+
+
+.main-navigation.row.column{
+  padding-left: 0;
+  padding-right: 0;
+  margin:0;
+}
+
+#scroller{
+  background:$white;
+  width:100%;
+}
+
+.stuck{
+  position:fixed;
+  z-index:9999999;
+  width:100%;
+  top:0;
+  padding:0;
+  margin:0;
+  left: 50%;
+  margin-left: -50%;
+  background:$white;
+}
+
+.logo-adjust{
+  left:0px;
+}
+
+
+#top-navigation #mega_main_menu > .menu_holder > .menu_inner > .mega_main_menu_ul{
+  position: absolute;
+  width: 100%;
+  background:$color__background-header-top;
+
+}
+
+#site-navigation #mega_main_menu > .menu_holder > .menu_inner > .mega_main_menu_ul{
+  position: absolute;
+  width: 100%;
+  background: $white;
+}
+
+// Primary Navigation spacing between links
+#site-navigation #mega_main_menu > .menu_holder > .menu_inner > ul > li > .item_link {
+  padding: 0px 8px;
+}
+
+
+#site-navigation #mega_main_menu > .menu_holder > .menu_inner > ul > li > .item_link:after{
+  display: none;
+  content:'';
+}
+
+
+.main-navigation {
+  position: relative;
+  padding-left: 0;
+
+  .mega_main_menu_ul .item-link a{
+
+  }
+
+    .link_text {
+      text-transform: uppercase;
+    }
+
+}
+
+#mega_main_menu.responsive-enable > .menu_holder > .menu_inner > ul {
+  box-shadow: 0 0 6px 0, rgba(0, 0, 0, .6);
+}
+
+
+
+#mega_main_menu .nav_logo .logo_link {
+  padding-left: 0;
+  padding-bottom: 0;
+}
+
+.comment-navigation,
+.posts-navigation,
+.post-navigation {
+
+       .site-main & {
+               margin: 0 0 1.5em;
+               overflow: hidden;
+       }
+
+       .nav-previous {
+               float: left;
+               width: 50%;
+       }
+
+       .nav-next {
+               float: right;
+               text-align: right;
+               width: 50%;
+       }
+}
+
+
+/* Top Navigation Menu */
+
+// Top Navigation spacing between links
+#top-navigation #mega_main_menu > .menu_holder > .menu_inner > ul > li > .item_link {
+  padding: 0px 10px;
+}
+
+#top-navigation #mega_main_menu > .menu_holder > .menu_inner > ul > li > .item_link:after {
+
+   right: 2px;
+   margin-top: -2px;
+   display: none;
+ }
+
+
+
+#top-navigation #menu-item-43.menu-item {
+  margin:0;
+  padding:0;
+  border-left: 0 none;
+}
+
+.top-navigation.row.column{
+  padding-left: 0;
+  padding-right: 0;
+  margin:0;
+}
+
+.top-navigation {
+       // Social Media buttons
+    .top-menu-right {
+      float:right;
+      width:100%;
+      position:relative;
+      background: #156c96;
+      padding: 0;
+      height:28px;
+
+      ul {
+        list-style: none; margin: 0;
+        line-height: 1;
+
+        li {
+          float: right;
+          i {
+            display:inline-block;
+            padding:5px 6px 4px 6px;
+          }
+          a {
+            color: #74a8c1;
+            outline: none;
+            border: 0 none;
+          }
+          a:hover {
+            color: $white;
+          }
+        }
+      }
+
+       }
+
+       .top-menu-left{
+               float:right;
+               width: 100%;
+               position:relative;
+        z-index: 9999;
+       }
+}
+
+// Search Icon
+
+// wrapper keeps button relative to menubar
+.main-nav-wrap.row.column{
+  position:relative;
+}
+
+.search-button {
+  display: block;
+  width:14px;
+  position:absolute;
+  right:0;
+  top:15px;
+  z-index: 5000;
+  color:#999 !important;
+}
+.search-button:before {
+  position: absolute;
+  font-family: 'FontAwesome';
+  top: 4px;
+  left: 8px;
+  content: "\f002";
+  font-size:15px;
+
+}
+
+// Mega styles
+
+#mega_main_menu li.tabs_dropdown > .mega_dropdown,
+#mega_main_menu li.multicolumn_dropdown > .mega_dropdown,
+#mega_main_menu li.widgets_dropdown > .mega_dropdown,
+#mega_main_menu li.post_type_dropdown > .mega_dropdown,
+#mega_main_menu li.grid_dropdown > .mega_dropdown,
+#mega_main_menu li .mega_dropdown > li .post_details{
+  width: auto;
+  min-width:415px;
+}
+#mega_main_menu li#menu-item-42.tabs_dropdown > .mega_dropdown,
+#mega_main_menu li#menu-item-42.multicolumn_dropdown > .mega_dropdown,
+#mega_main_menu li#menu-item-42.widgets_dropdown > .mega_dropdown,
+#mega_main_menu li#menu-item-42.post_type_dropdown > .mega_dropdown,
+#mega_main_menu li#menu-item-42.grid_dropdown > .mega_dropdown,
+#mega_main_menu li#menu-item-42.mega_dropdown > li .post_details {
+  width: 640px;
+}
+.mega-left {
+  display:block;
+  width:auto;
+  padding-right:0;
+  vertical-align:top;
+}
+.mega-right {
+  display:block;
+  width:auto;
+  vertical-align:top;
+  text-align:left;
+}
+
+li#menu-item-42 .mega-right {
+  padding:0 10px;
+}
+
+.mega-right p{
+  padding:6px 0;
+  margin:0;
+  font-size:14px;
+}
+.mega-thumb{
+  display:table-cell;
+  width:200px;
+  height:115px;
+  background-repeat: no-repeat;
+  background-position: center center;
+  background-size:cover;
+  font-size:14px;
+  color:#fff;
+  padding:15px 15px 5px 15px;
+  vertical-align:bottom;
+  text-shadow:0 0 1px #000;
+}
+
+
+.mega1-th1,
+.mega1-th2,
+.mega2-th1,
+.mega2-th2,
+.mega3-th1,
+.mega3-th2,
+.mega4-th1,
+.mega4-th2{
+  display:none;
+}
+
+
+@media only screen and (min-width: 1025px) and (max-width: 1206px) {
+
+  .stuck{
+    position:fixed;
+    z-index:9999999;
+    width:100%;
+    top:0;
+    padding:0;
+    margin:0;
+    left: 50%;
+    margin-left: -535px !important;
+    background:$white;
+  }
+
+}
+
+
+@media #{$large-up} {
+
+  #top-navigation #menu-item-43.menu-item {
+    border-left: 10px #fff solid;
+  }
+
+  .top-navigation {
+    .top-menu-right {
+      width:12%;
+    }
+
+    .top-menu-left{
+      width: 88%;
+    }
+  }
+
+  // Search Icon
+  .search-button {
+    display: block;
+    width:25px;
+    position:absolute;
+    right:-15px;
+    left:auto;
+    top:0px;
+    color:#999 !important;
+    height:85px;
+    z-index: 9999999;
+  }
+  .search-button:before {
+    top: 33px;
+    left: 4px;
+
+  }
+
+  .main-navigation {
+    padding-left: 5px;
+  }
+
+  #scroller{
+    background:$white;
+    width:100%;
+  }
+
+  .stuck{
+    position:fixed;
+    z-index:9999999;
+    width:100%;
+    top:0;
+    padding:0 4px;
+    margin:0;
+    left: 48%;
+    margin-left: -592px;
+    background:$white;
+  }
+
+  .logo-adjust{
+    left:30px;
+  }
+
+  #mega_main_menu.responsive-enable > .menu_holder > .menu_inner > ul {
+    box-shadow: none;
+  }
+
+  .mega-left {
+    display:table-cell;
+    width:1%;
+    padding-right:20px;
+    vertical-align:top;
+  }
+  .mega-right {
+    display:table-cell;
+    width:1%;
+    vertical-align:top;
+    text-align:left;
+  }
+
+  .mega1-th1,
+  .mega1-th2,
+  .mega2-th1,
+  .mega2-th2,
+  .mega3-th1,
+  .mega3-th2,
+  .mega4-th1,
+  .mega4-th2{
+    display:block;
+  }
+
+
+
+
+}
diff --git a/sass/navigation/_navigation.scss b/sass/navigation/_navigation.scss
new file mode 100644 (file)
index 0000000..ffa4368
--- /dev/null
@@ -0,0 +1,9 @@
+/*--------------------------------------------------------------
+## Links
+--------------------------------------------------------------*/
+@import "links";
+
+/*--------------------------------------------------------------
+## Menus
+--------------------------------------------------------------*/
+@import "menus";
\ No newline at end of file
diff --git a/sass/site/_site.scss b/sass/site/_site.scss
new file mode 100644 (file)
index 0000000..fbf3e1f
--- /dev/null
@@ -0,0 +1,34 @@
+/*--------------------------------------------------------------
+## Header
+--------------------------------------------------------------*/
+@import "../layout/header-content";
+
+@import "../layout/content-sidebar";
+@import "../layout/content-member_sidebar";
+// @import "../layout/sidebar-content";
+/*--------------------------------------------------------------
+## Posts and pages
+--------------------------------------------------------------*/
+@import "primary/posts-and-pages";
+@import "../layout/hero-header";
+@import "../layout/content-homepage";
+@import "../layout/content-page";
+@import "../layout/content-news";
+@import "../layout/content-deals";
+@import "../layout/content-directory";
+@import "../layout/content-events";
+
+/*--------------------------------------------------------------
+## Asides
+--------------------------------------------------------------*/
+@import "primary/asides";
+
+/*--------------------------------------------------------------
+## Comments
+--------------------------------------------------------------*/
+@import "primary/comments";
+
+/*--------------------------------------------------------------
+## Footer
+--------------------------------------------------------------*/
+@import "../layout/footer-content";
\ No newline at end of file
diff --git a/sass/site/primary/_asides.scss b/sass/site/primary/_asides.scss
new file mode 100644 (file)
index 0000000..fd26fa2
--- /dev/null
@@ -0,0 +1,4 @@
+.blog .format-aside .entry-title,
+.archive .format-aside .entry-title {
+       display: none;
+}
\ No newline at end of file
diff --git a/sass/site/primary/_comments.scss b/sass/site/primary/_comments.scss
new file mode 100644 (file)
index 0000000..13760c5
--- /dev/null
@@ -0,0 +1,6 @@
+.comment-content a {
+       word-wrap: break-word;
+}
+.bypostauthor {
+       display: block;
+}
diff --git a/sass/site/primary/_posts-and-pages.scss b/sass/site/primary/_posts-and-pages.scss
new file mode 100644 (file)
index 0000000..704f7d1
--- /dev/null
@@ -0,0 +1,28 @@
+.sticky {
+       display: block;
+}
+
+.hentry {
+       margin: 0 0 1.5em;
+}
+
+.byline,
+.updated:not(.published){
+       display: none;
+}
+
+.single .byline,
+.group-blog .byline {
+       display: inline;
+}
+
+.page-content,
+.entry-content,
+.entry-summary {
+       margin: 1.5em 0 0;
+}
+
+.page-links {
+       clear: both;
+       margin: 0 0 1.5em;
+}
\ No newline at end of file
diff --git a/sass/site/secondary/_widgets.scss b/sass/site/secondary/_widgets.scss
new file mode 100644 (file)
index 0000000..09b3d74
--- /dev/null
@@ -0,0 +1,8 @@
+.widget {
+       margin: 0 0 1.5em;
+
+       /* Make sure select elements fit in widgets. */
+       select {
+               max-width: 100%;
+       }
+}
diff --git a/sass/style.scss b/sass/style.scss
new file mode 100644 (file)
index 0000000..b9ff025
--- /dev/null
@@ -0,0 +1,113 @@
+/*!
+Theme Name: wmta
+Theme URI: http://underscores.me/
+Author: Underscores.me
+Author URI: http://underscores.me/
+Description: Description
+Version: 1.0.0
+License: GNU General Public License v2 or later
+License URI: http://www.gnu.org/licenses/gpl-2.0.html
+Text Domain: wmta
+Tags:
+
+This theme, like WordPress, is licensed under the GPL.
+Use it to make something cool, have fun, and share what you've learned with others.
+
+wmta is based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc.
+Underscores is distributed under the terms of the GNU GPL v2 or later.
+
+Normalizing styles have been helped along thanks to the fine work of
+Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
+*/
+
+/*--------------------------------------------------------------
+>>> TABLE OF CONTENTS:
+----------------------------------------------------------------
+# Normalize
+# Typography
+# Elements
+# Forms
+# Navigation
+       ## Links
+       ## Menus
+# Accessibility
+# Alignments
+# Clearings
+# Widgets
+# Content
+    ## Posts and pages
+       ## Asides
+       ## Comments
+# Infinite scroll
+# Media
+       ## Captions
+       ## Galleries
+--------------------------------------------------------------*/
+@import "mixins/functions";
+@import "variables-site/variables-site";
+@import "mixins/mixins-master";
+
+/*--------------------------------------------------------------
+# Normalize
+--------------------------------------------------------------*/
+@import "normalize";
+
+/*--------------------------------------------------------------
+# Typography
+--------------------------------------------------------------*/
+@import "typography/typography";
+
+/*--------------------------------------------------------------
+# Elements
+--------------------------------------------------------------*/
+@import "elements/elements";
+
+/*--------------------------------------------------------------
+# Forms
+--------------------------------------------------------------*/
+@import "forms/forms";
+
+/*--------------------------------------------------------------
+# Navigation
+--------------------------------------------------------------*/
+@import "navigation/navigation";
+
+/*--------------------------------------------------------------
+# Accessibility
+--------------------------------------------------------------*/
+@import "modules/accessibility";
+
+/*--------------------------------------------------------------
+# Alignments
+--------------------------------------------------------------*/
+@import "modules/alignments";
+
+/*--------------------------------------------------------------
+# Clearings
+--------------------------------------------------------------*/
+@import "modules/clearings";
+
+/*--------------------------------------------------------------
+# Overlay
+--------------------------------------------------------------*/
+@import "modules/overlay";
+
+/*--------------------------------------------------------------
+# Widgets
+--------------------------------------------------------------*/
+@import "site/secondary/widgets";
+
+/*--------------------------------------------------------------
+# Content
+--------------------------------------------------------------*/
+@import "site/site";
+
+/*--------------------------------------------------------------
+# Infinite scroll
+--------------------------------------------------------------*/
+@import "modules/infinite-scroll";
+
+/*--------------------------------------------------------------
+# Media
+--------------------------------------------------------------*/
+@import "media/media";
diff --git a/sass/typography/_copy.scss b/sass/typography/_copy.scss
new file mode 100644 (file)
index 0000000..5e5bf1f
--- /dev/null
@@ -0,0 +1,47 @@
+p {
+       margin-bottom: 1em;
+       line-height: 1.25;
+}
+
+dfn, cite, em, i {
+       font-style: italic;
+}
+
+blockquote {
+       margin: 0 1.5em;
+}
+
+address {
+       margin: 0 0 1.5em;
+}
+
+pre {
+       background: $color__background-pre;
+       font-family: $font__pre;
+       @include font-size(0.9375);
+       line-height: $font__line-height-pre;
+       margin-bottom: 1.6em;
+       max-width: 100%;
+       overflow: auto;
+       padding: 1.6em;
+}
+
+code, kbd, tt, var {
+       font-family: $font__code;
+       @include font-size(0.9375);
+}
+
+abbr, acronym {
+       border-bottom: 1px dotted $color__border-abbr;
+       cursor: help;
+}
+
+mark, ins {
+       background: $color__background-ins;
+       text-decoration: none;
+}
+
+big {
+       font-size: 125%;
+}
+
diff --git a/sass/typography/_headings.scss b/sass/typography/_headings.scss
new file mode 100644 (file)
index 0000000..fd5984d
--- /dev/null
@@ -0,0 +1,26 @@
+h1, h2, h3, h4, h5, h6 {
+       clear: both;
+    font-family: $font__main;
+    color: $darkgray;
+}
+
+h1 {
+       font-weight: bold;
+}
+
+h2 {
+  font-weight: bold;
+  font-size: 1.5rem;
+}
+
+h3 {
+  font-size: 1.4rem;
+}
+
+h4{
+  font-size: 1.3rem;
+}
+
+h5{
+  font-size: 1.2rem;
+}
\ No newline at end of file
diff --git a/sass/typography/_typography.scss b/sass/typography/_typography.scss
new file mode 100644 (file)
index 0000000..c6d9cea
--- /dev/null
@@ -0,0 +1,14 @@
+body,
+button,
+input,
+select,
+textarea {
+       color: $color__text-main;
+       font-family: $font__main;
+       @include font-size(1);
+       line-height: $font__line-height-body;
+}
+
+@import "headings";
+
+@import "copy";
\ No newline at end of file
diff --git a/sass/variables-site/_colors.scss b/sass/variables-site/_colors.scss
new file mode 100644 (file)
index 0000000..a3aea32
--- /dev/null
@@ -0,0 +1,32 @@
+$color__background-body: #fff;
+$color__background-screen: #f1f1f1;
+$color__background-hr: #ccc;
+$color__background-button: #e6e6e6;
+$color__background-pre: #eee;
+$color__background-ins: #fff9c0;
+$color__background-content: #f6f6f6;
+$color__background-footer: #333;
+$color__background-header-top: #d0e2ea;
+
+$color__text-screen: #21759b;
+$color__text-input: #666;
+$color__text-input-focus: #111;
+$color__link: #156c96;
+$color__link-visited: #156c96;
+$color__link-hover: #333;
+$color__text-main: #878787;
+$color__heading-h1: #156c96;
+
+$color__border-button: #ccc #ccc #bbb;
+$color__border-button-hover: #ccc #bbb #aaa;
+$color__border-button-focus: #aaa #bbb #bbb;
+$color__border-input: #ccc;
+$color__border-abbr: #666;
+
+$white: #fff;
+$black: #000;
+$darkgray: #333;
+$lightgray: #7b7b7b;
+$blue: #156c96;
+$darkblue: #004260;
+$lightblue: #2d7ba1;
diff --git a/sass/variables-site/_media.scss b/sass/variables-site/_media.scss
new file mode 100644 (file)
index 0000000..a9a5164
--- /dev/null
@@ -0,0 +1,45 @@
+// Media Query Ranges
+$small-breakpoint:  em-calc(640)  !default;
+$medium-breakpoint: em-calc(1024) !default;
+$large-breakpoint:  em-calc(1440) !default;
+$xlarge-breakpoint: em-calc(1920) !default;
+
+$small-range:   (0, $small-breakpoint) !default;
+$medium-range:  ($small-breakpoint  + em-calc(1), $medium-breakpoint) !default;
+$large-range:   ($medium-breakpoint + em-calc(1), $large-breakpoint)  !default;
+$xlarge-range:  ($large-breakpoint  + em-calc(1), $xlarge-breakpoint) !default;
+$xxlarge-range: ($xlarge-breakpoint + em-calc(1), em-calc(99999999)) !default;
+
+$screen: "only screen" !default;
+
+$landscape: "#{$screen} and (orientation: landscape)" !default;
+$portrait: "#{$screen} and (orientation: portrait)" !default;
+
+$small-up: $screen !default;
+$small-only: "#{$screen} and (max-width: #{upper-bound($small-range)})" !default;
+
+$medium-up: "#{$screen} and (min-width:#{lower-bound($medium-range)})" !default;
+$medium-only: "#{$screen} and (min-width:#{lower-bound($medium-range)}) and (max-width:#{upper-bound($medium-range)})" !default;
+
+$large-up: "#{$screen} and (min-width:#{lower-bound($large-range)})" !default;
+$large-only: "#{$screen} and (min-width:#{lower-bound($large-range)}) and (max-width:#{upper-bound($large-range)})" !default;
+
+$xlarge-up: "#{$screen} and (min-width:#{lower-bound($xlarge-range)})" !default;
+$xlarge-only: "#{$screen} and (min-width:#{lower-bound($xlarge-range)}) and (max-width:#{upper-bound($xlarge-range)})" !default;
+
+$xxlarge-up: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)})" !default;
+$xxlarge-only: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)}) and (max-width:#{upper-bound($xxlarge-range)})" !default;
+
+$retina: (
+        "#{$screen} and (-webkit-min-device-pixel-ratio: 2)",
+        "#{$screen} and (min--moz-device-pixel-ratio: 2)",
+        "#{$screen} and (-o-min-device-pixel-ratio: 2/1)",
+        "#{$screen} and (min-device-pixel-ratio: 2)",
+        "#{$screen} and (min-resolution: 192dpi)",
+        "#{$screen} and (min-resolution: 2dppx)"
+);
+
+// Legacy
+$small: $medium-up;
+$medium: $medium-up;
+$large: $large-up;
\ No newline at end of file
diff --git a/sass/variables-site/_structure.scss b/sass/variables-site/_structure.scss
new file mode 100644 (file)
index 0000000..d24a84e
--- /dev/null
@@ -0,0 +1,2 @@
+$size__site-main: 100%;
+$size__site-sidebar: 25%;
diff --git a/sass/variables-site/_typography.scss b/sass/variables-site/_typography.scss
new file mode 100644 (file)
index 0000000..f0ecf53
--- /dev/null
@@ -0,0 +1,5 @@
+$font__main: "Roboto", sans-serif;
+$font__code: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
+$font__pre: "Courier 10 Pitch", Courier, monospace;
+$font__line-height-body: 1;
+$font__line-height-pre: 1.6;
\ No newline at end of file
diff --git a/sass/variables-site/_variables-site.scss b/sass/variables-site/_variables-site.scss
new file mode 100644 (file)
index 0000000..26fe8de
--- /dev/null
@@ -0,0 +1,4 @@
+@import "colors";
+@import "typography";
+@import "structure";
+@import "media";
\ No newline at end of file
diff --git a/screenshot.png b/screenshot.png
new file mode 100644 (file)
index 0000000..5bddc87
Binary files /dev/null and b/screenshot.png differ
diff --git a/search.php b/search.php
new file mode 100644 (file)
index 0000000..0b3862e
--- /dev/null
@@ -0,0 +1,72 @@
+<?php
+/**
+ * The template for displaying search results pages.
+ *
+ * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
+ *
+ * @package wmta
+ */
+
+get_header(); ?>
+
+
+<?php get_template_part('inc/hero','header-search'); ?>
+
+    <div class="body-content row column">
+
+        <div class="medium-8 large-9 columns">
+            <section id="primary" class="content-area">
+                <main id="main" class="site-main" role="main">
+
+                    <?php if ( have_posts() && strlen( trim(get_search_query()) ) != 0 ) : ?>
+
+                        <header class="page-header">
+                            <h1 class="page-title">Search results for: <?php printf( esc_html__( '%s', 'wmta' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
+                        </header><!-- .page-heade-->
+
+                        <?php display_memberfindme_directory() ?>
+
+                     <?php endif; ?>
+
+
+                    <?php if ( have_posts() && strlen( trim(get_search_query()) ) != 0 ) : ?>
+
+                    <header class="page-header">
+                        <h1 class="page-title"><?php printf( esc_html__( 'Related search results for: %s', 'wmta' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
+                    </header><!-- .page-header -->
+
+
+                    <?php
+                    /* Start the Loop */
+                    while ( have_posts() ) : the_post();
+
+                        /**
+                         * Run the loop for the search to output the results.
+                         * If you want to overload this in a child theme then include a file
+                         * called content-search.php and that will be used instead.
+                         */
+                        get_template_part( 'template-parts/content', 'search' );
+
+                    endwhile;
+
+                    the_posts_navigation();
+
+                else :
+
+                    get_template_part( 'template-parts/content', 'none' );
+
+                endif; ?>
+
+                </main><!-- #main -->
+            </section><!-- #primary -->
+
+        </div><!-- .large-9.columns -->
+
+        <div class="medium-4 large-3 columns page-sidebar">
+            <?php get_sidebar('page');?>
+        </div><!-- .large-3.columns -->
+
+    </div><!-- .row -->
+<?php
+
+get_footer();
diff --git a/sidebar-event.php b/sidebar-event.php
new file mode 100644 (file)
index 0000000..5bf53f0
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+/**
+ * The sidebar containing the main widget area.
+ *
+ * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
+ *
+ * @package wmta
+ */
+
+if ( ! is_active_sidebar( 'sidebar-2' ) ) {
+       return;
+}
+?>
+
+<aside id="secondary" class="widget-area" role="complementary">
+
+       <?php if (! dynamic_sidebar('sidebar-top-ad')):endif; ?>
+
+       <?php (! dynamic_sidebar('sidebar-3')); ?>
+
+       <section class="widget sidebar">
+               <h2 class="widget-title news-feed-title">What's Happening</h2>
+               <div class="widget-container"><?php echo get_new_royalslider(2); ?></div>
+       </section>
+
+       <?php dynamic_sidebar( 'sidebar-signup' ); ?>
+
+</aside><!-- #secondary -->
diff --git a/sidebar-member.php b/sidebar-member.php
new file mode 100644 (file)
index 0000000..6cb24c0
--- /dev/null
@@ -0,0 +1,152 @@
+<?php
+/**
+ * The sidebar containing the main widget area.
+ *
+ * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
+ *
+ * @package wmta
+ */
+
+// Get current user values
+if(isset($_GET['author_name'])) :
+       $curauth = get_user_by( 'login', '' );
+else :
+       $curauth = get_userdata(intval($author));
+endif;
+
+$author_id = $curauth->ID;
+
+
+if ( ! is_active_sidebar( 'sidebar-2' ) ) {
+       return;
+}
+?>
+
+<aside id="secondary" class="widget-area" role="complementary">
+
+       <?php if (! dynamic_sidebar('sidebar-top-ad')):endif; ?>
+
+                               <?php
+                               //echo $curauth->user_nicename;
+                               //$string .=  $curauth->nickname;
+                               $args = array(
+                                               // combine user nickname and selected tags into query
+
+                                               'tag' => $curauth->user_nicename,
+                                               //'tag' => 'founders-brewing-company',
+                                               'orderby' => 'rand',
+                                               'posts_per_page' => 8,
+                                               'order'    => 'DESC',
+                                               'date_query' => array(
+                                                               array(
+                                                                               'column' => 'post_date_gmt',
+                                                                               'after' => '3 months ago',
+                                                               ),
+
+                                               ),
+                               );
+                               $loop = new WP_Query( $args );?>
+
+                               <?php if ($loop->post_count == 0) { ?>
+
+                               <?php } else { ?>
+
+                               <section class="widget sidebar">
+
+                                       <h2 class="widget-title news-feed-title">What's Happening <?php echo '<br>at '.$curauth->nickname; ?></h2>
+
+                                       <div class="widget-container">
+
+                                               <div id="new-royalslider-2" class="royalSlider new-royalslider-2 customRS rs-default-template" style="width:100%;height:200px;">
+
+                                                       <?php
+                                                       //exclude members only category
+
+                                                       global $query;
+                                                       query_posts($query . '&cat=-665');
+
+                                                       // The loop
+                                                       while ( $loop->have_posts() ) : $loop->the_post();
+                                                               ?>
+
+                                                               <div class="rsContent">
+
+                                                                       <p><a style="" class="rsLink" href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wmta' ), the_title_attribute( 'echo=0' ) ); ?>"><?php the_title(); ?></a></p>
+                                                                       <?php the_excerpt('16'); ?>
+
+                                                               </div>
+
+                                                       <?php endwhile;  ?>
+
+                                               </div>
+
+                                       </div>
+
+                               </section>
+
+                               <?php } wp_reset_postdata(); // End the loop. ?>
+
+
+    <?php
+    if ( EM_Events::count( array('scope'=>'future','limit'=>3, 'owner'=> $author_id) ) == 0  ) echo '';
+
+    else echo '<section class="widget sidebar"><h2 class="widget-title">Events</h2><div class="widget-container">'.EM_Events::output( array('limit'=>3,'orderby'=>'name', 'owner'=> $author_id) ).'</div>
+
+                               </section>';
+    ?>
+
+
+
+
+
+                       <?php
+                       $args = array(
+                               // combine user nickname and selected tags into query
+                               //'tag' => $curauth->nickname . $string,
+                                       'post_type' => 'deal',
+                                       'author' => $author_id,
+                                       'orderby' => 'rand',
+                                       'posts_per_page' => 3,
+                                       'order'    => 'DESC'
+                       );
+                       $loop = new WP_Query( $args );?>
+
+                       <?php if ($loop->post_count == 0) { ?>
+
+                       <?php } else { ?>
+                       <section class="widget sidebar">
+
+                               <h2 class="widget-title">Deals</h2>
+
+                               <?php
+                                               //exclude members only category
+                                               global $query_string;
+                                               query_posts($query_string . '&cat=-665');
+
+                                               // The loop
+                                               while ( $loop->have_posts() ) : $loop->the_post();
+                                                       ?>
+                                                       <div class="widget-container">
+                                                               <h4><a style="" href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h4>
+                                                               <p><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wmta' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php if (has_post_thumbnail( $post->ID ) ): $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'medium' ); echo '<img src="'.$image[0].'" alt="'.get_the_title().'" class="alignnone" />'; endif; ?></a></p>
+                                                               <?php the_content(); ?>
+                                                       </div>
+
+                                               <?php endwhile;?>
+                       </section>
+                       <?php } wp_reset_postdata(); ?>
+
+
+
+
+       <?php dynamic_sidebar( 'sidebar-signup' ); ?>
+
+       <div class="sidebar-bottom-ads">
+
+               <div><?php if (! dynamic_sidebar('sidebar-bottom-ad-left')):endif; ?></div>
+
+               <div><?php if (! dynamic_sidebar('sidebar-bottom-ad-right')):endif; ?></div>
+
+       </div>
+
+</aside><!-- #secondary -->
diff --git a/sidebar-page.php b/sidebar-page.php
new file mode 100644 (file)
index 0000000..007f10f
--- /dev/null
@@ -0,0 +1,60 @@
+<?php
+/**
+ * The sidebar containing the main widget area.
+ *
+ * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
+ *
+ * @package wmta
+ */
+
+if ( ! is_active_sidebar( 'sidebar-2' ) ) {
+       return;
+}
+?>
+
+<aside id="secondary" class="widget-area" role="complementary">
+
+       <?php
+       if(get_field('custom_menu'))
+       {
+               echo '<section class="custom_menu">' . get_field('custom_menu') . '</section>';
+       }
+       ?>
+
+       <?php // Submenu Navigation
+       (! dynamic_sidebar('sidebar-2')); ?>
+
+       <?php // Sidebar Ad. Global Ads are a widget. Members only Ads are a custom field.
+       if ( is_user_logged_in () && is_page(array(31778,34037,37714,30989))) : ?>
+
+               <?php
+               if(get_field('membersonly_sidebar_ad')) {
+                       $membersonly_sidebar_ad = get_field('membersonly_sidebar_ad');
+                       echo adrotate_group($membersonly_sidebar_ad);
+               }
+               else {
+                       if (! dynamic_sidebar('sidebar-top-ad')):endif;
+               }
+               ?>
+
+       <?php else : ?>
+
+               <?php if (! dynamic_sidebar('sidebar-top-ad')):endif; ?>
+
+       <?php endif; ?>
+
+       <?php // Sidebar for Events page only
+       if ( is_page('events') ) : ?>
+
+               <?php if ( !dynamic_sidebar('sidebar-3') ) : ?><?php endif ; ?>
+
+       <?php endif; ?>
+
+       <section class="widget sidebar">
+               <h2 class="widget-title news-feed-title">What's Happening</h2>
+               <div class="widget-container"><?php echo get_new_royalslider(2); ?></div>
+       </section>
+
+       <?php dynamic_sidebar( 'sidebar-signup' ); ?>
+
+</aside><!-- #secondary -->
diff --git a/sidebar.php b/sidebar.php
new file mode 100644 (file)
index 0000000..04c3ec4
--- /dev/null
@@ -0,0 +1,77 @@
+<?php
+/**
+ * The sidebar containing the main widget area.
+ *
+ * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
+ *
+ * @package wmta
+ */
+
+if ( ! is_active_sidebar( 'sidebar-1' ) ) {
+       return;
+}
+?>
+
+<aside id="secondary" class="widget-area" role="complementary">
+       <?php if (! dynamic_sidebar('sidebar-top-ad')):endif; ?>
+
+       <section class="widget sidebar">
+
+               <h2 class="widget-title">Explore Posts</h2>
+
+               <div class="widget-container explore-posts">
+
+                       <ul>
+                               <li><a href="<?php echo get_tag_link(108); ?>">What's Hot This Month</a></li>
+                               <li><a href="<?php echo get_category_link(8); ?>">Things to Do</a></li>
+                               <li><a href="<?php echo get_tag_link(847); ?>">West Michigan Trails</a></li>
+                               <li><a href="<?php echo get_tag_link(25); ?>">West Michigan Kids</a></li>
+                               <li><a href="<?php echo get_tag_link(38); ?>">Free in West Michigan</a></li>
+                               <li><a href="<?php echo get_permalink(34); ?>">All Posts</a></li>
+
+                       </ul>
+
+               </div>
+
+       </section>
+
+       <?php dynamic_sidebar( 'sidebar-1' ); ?>
+
+       <section class="widget sidebar">
+
+               <h2 class="widget-title">Popular Tags</h2>
+
+               <div class="widget-container popular-tags">
+
+                       <ul>
+                               <?php
+                               global $wpdb;
+                               $term_ids = $wpdb->get_col("
+   SELECT DISTINCT term_taxonomy_id FROM $wpdb->term_relationships
+      INNER JOIN $wpdb->posts ON $wpdb->posts.ID = object_id
+      WHERE DATE_SUB(CURDATE(), INTERVAL 30 DAY) <= $wpdb->posts.post_date");
+
+                               if(count($term_ids) > 0){
+
+                                       $tags = get_tags(array(
+                                                       'orderby' => 'random',
+                                                       'order'   => 'DESC',
+                                                       'number'  => 20,
+                                                       'include' => $term_ids,
+                                       ));
+                                       foreach ( (array) $tags as $tag ) {
+                                               echo '<li><a href="' . get_tag_link ($tag->term_id) . '" rel="tag">' . $tag->name . '</a></li>';
+                                       }
+                               }
+                               ?>
+                       </ul>
+
+                       <div style="clear: both;"></div>
+
+               </div>
+
+       </section>
+
+       <?php dynamic_sidebar( 'sidebar-signup' ); ?>
+
+</aside><!-- #secondary -->
diff --git a/single-event.php b/single-event.php
new file mode 100644 (file)
index 0000000..8e90120
--- /dev/null
@@ -0,0 +1,88 @@
+<?php
+/**
+ * The template for displaying all single posts.
+ *
+ * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
+ *
+ * @package wmta
+ */
+
+get_header(); ?>
+
+
+<?php get_template_part('inc/hero','header-event'); ?>
+
+       <div class="body-content row column">
+
+               <div class="medium-8 large-9 columns">
+
+            <div id="primary" class="content-area">
+
+                <main id="main" class="site-main" role="main">
+
+                                       <div class="post-page-title"><?php echo '<h1><a href="',get_the_permalink('31026'),'">',get_the_title('31026'),'</a></h1>'; ?></div>
+
+                                               <div class="news-wrapper">
+
+                                                       <?php if ( function_exists('yoast_breadcrumb') )
+                                                       {yoast_breadcrumb('<p id="breadcrumbs">','</p>');} ?>
+
+                                                       <?php
+                                                       while ( have_posts() ) : the_post();?>
+
+                                                               <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+                                                                       <header class="entry-header">
+                                                                               <?php
+                                                                                       the_title( '<h1 class="entry-title">', '</h1>' );
+
+                                                                               ?>
+
+                                                                               <?php echo '<p>Event posted by: '.get_the_author_link().'</p>';?>
+
+
+                                                                       </header><!-- .entry-header -->
+
+                                                                       <div class="entry-content">
+
+                                                                               <?php
+                                                                               global $EM_Event;
+                                                                               /* @var $EM_Event EM_Event */
+                                                                               echo $EM_Event->output_single();
+
+                                                                               ?>
+
+
+                                                                       </div><!-- .entry-content -->
+
+                                                                       <footer class="entry-footer">
+                                                                               <?php wmta_entry_footer(); ?>
+                                                                       </footer><!-- .entry-footer -->
+                                                               </article><!-- #post-## -->
+
+                                                               <?php
+
+                                                               //the_post_navigation();
+
+                                                               endwhile; // End of the loop.
+
+                                                               wp_reset_query();
+                                                       ?>
+
+                                               </div>
+
+
+                </main><!-- #main -->
+
+            </div><!-- #primary -->
+
+        </div><!-- .large-9.columns -->
+
+        <div class="medium-4 large-3 columns page-sidebar">
+            <?php get_sidebar('event');?>
+        </div><!-- .large-3.columns -->
+
+    </div><!-- .row -->
+
+
+<?php
+get_footer();
\ No newline at end of file
diff --git a/single.php b/single.php
new file mode 100644 (file)
index 0000000..afad4de
--- /dev/null
@@ -0,0 +1,105 @@
+<?php
+/**
+ * The template for displaying all single posts.
+ *
+ * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
+ *
+ * @package wmta
+ */
+
+get_header(); ?>
+
+
+<?php get_template_part('inc/hero','header-news-single'); ?>
+
+       <div class="body-content row column">
+
+               <div class="medium-8 large-9 columns">
+
+            <div id="primary" class="content-area">
+
+                <main id="main" class="site-main" role="main">
+
+                                       <div class="post-page-title"><?php if ( 'deal' === get_post_type() ) { echo '<h1>SPECIALS + PACKAGES</h1>'; } else { echo '<h1><a href="'.get_the_permalink('34').'">',get_the_title('34'),'</a></h1>'; } ?></div>
+
+                                               <div class="news-wrapper">
+
+                                                       <?php
+
+                                                       if (is_user_logged_in() && in_category('members-only')) {
+
+                                                               while ( have_posts() ) : the_post();
+
+                                                               get_template_part( 'template-parts/content-single', get_post_format() );
+
+
+                                                               if (in_category(4)) { }
+                                                               else {
+                                                                       the_post_navigation();
+
+                                                                       // If comments are open or we have at least one comment, load up the comment template.
+                                                                       if ( comments_open() || get_comments_number() ) :
+                                                                               comments_template();
+                                                                       endif;
+
+                                                               }
+
+                                                               endwhile; // End of the loop.
+
+                                                       }
+                                                       elseif (!is_user_logged_in() && in_category('members-only')) {
+                                                               echo 'You must be a WMTA Member to view this page.';
+                                                       }
+                                                       elseif (!in_category('members-only'))
+                                                       {
+                                                               global $query_string;
+                                                               query_posts($query_string . '&cat=-665');
+                                                               while ( have_posts() ) : the_post();
+
+                                                                       get_template_part( 'template-parts/content-single', get_post_format() );
+
+
+                                                                       if (in_category(4)) { }
+                                                                       else {
+                                                                               if ( 'deal' === get_post_type() ) {}
+                                                                               else { the_post_navigation();}
+
+                                                                               // If comments are open or we have at least one comment, load up the comment template.
+                                                                               if ( comments_open() || get_comments_number() ) :
+                                                                                       comments_template();
+                                                                               endif;
+
+                                                                       }
+
+                                                               endwhile; // End of the loop.
+                                                       }
+                                                       ?>
+
+                                               </div>
+
+
+                </main><!-- #main -->
+
+            </div><!-- #primary -->
+
+        </div><!-- .large-9.columns -->
+
+        <div class="medium-4 large-3 columns page-sidebar">
+            <?php
+                       if (in_category(array(4,665))) {
+                               get_sidebar('page');
+                       }
+            if ( 'deal' === get_post_type() ) {
+                   get_sidebar('page');
+            }
+                       else {
+                               get_sidebar();
+                       }
+                       ?>
+        </div><!-- .large-3.columns -->
+
+    </div><!-- .row -->
+
+
+<?php
+get_footer();
\ No newline at end of file
diff --git a/style-101216.css b/style-101216.css
new file mode 100644 (file)
index 0000000..87ea1fb
--- /dev/null
@@ -0,0 +1,21 @@
+/*!
+Theme Name: wmta
+Theme URI: http://underscores.me/
+Author: Underscores.me
+Author URI: http://underscores.me/
+Description: Description
+Version: 1.0.0
+License: GNU General Public License v2 or later
+License URI: http://www.gnu.org/licenses/gpl-2.0.html
+Text Domain: wmta
+Tags:
+
+This theme, like WordPress, is licensed under the GPL.
+Use it to make something cool, have fun, and share what you've learned with others.
+
+wmta is based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc.
+Underscores is distributed under the terms of the GNU GPL v2 or later.
+
+Normalizing styles have been helped along thanks to the fine work of
+Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
+*/html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}body,button,input,select,textarea{color:#878787;font-family:"Roboto",sans-serif;font-size:16px;font-size:1rem;line-height:1}h1,h2,h3,h4,h5,h6{clear:both;font-family:"Roboto",sans-serif;color:#333}h1{font-weight:bold}h2{font-weight:bold;font-size:1.5rem}h3{font-size:1.4rem}h4{font-size:1.3rem}h5{font-size:1.2rem}p{margin-bottom:1em;line-height:1.25}dfn,cite,em,i{font-style:italic}blockquote{margin:0 1.5em}address{margin:0 0 1.5em}pre{background:#eee;font-family:"Courier 10 Pitch",Courier,monospace;font-size:15px;font-size:.9375rem;line-height:1.6;margin-bottom:1.6em;max-width:100%;overflow:auto;padding:1.6em}code,kbd,tt,var{font-family:Monaco,Consolas,"Andale Mono","DejaVu Sans Mono",monospace;font-size:15px;font-size:.9375rem}abbr,acronym{border-bottom:1px dotted #666;cursor:help}mark,ins{background:#fff9c0;text-decoration:none}big{font-size:125%}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{background:#fff}blockquote,q{quotes:"" ""}blockquote:before,blockquote:after,q:before,q:after{content:""}hr{background-color:#ccc;border:0;height:1px;margin-bottom:1.5em;max-width:75.25rem !important}.row{max-width:75.25rem !important}ul,ol{margin:0 0 1.5em 1.5em}ul{list-style:disc}ol{list-style:decimal}li>ul,li>ol{margin-bottom:0;margin-left:1.5em}dt{font-weight:bold}dd{margin:0 1.5em 1.5em}img{height:auto;max-width:100%}table{margin:0 0 1.5em;width:100%}button,input[type="button"],input[type="reset"],input[type="submit"]{border:1px solid;border-color:#ccc #ccc #bbb;border-radius:3px;background:#e6e6e6;box-shadow:inset 0 1px 0 rgba(255,255,255,0.5),inset 0 15px 17px rgba(255,255,255,0.5),inset 0 -5px 12px rgba(0,0,0,0.05);color:rgba(0,0,0,0.8);font-size:12px;font-size:.75rem;line-height:1;padding:.6em 1em .4em;text-shadow:0 1px 0 rgba(255,255,255,0.8)}button:hover,input[type="button"]:hover,input[type="reset"]:hover,input[type="submit"]:hover{border-color:#ccc #bbb #aaa;box-shadow:inset 0 1px 0 rgba(255,255,255,0.8),inset 0 15px 17px rgba(255,255,255,0.8),inset 0 -5px 12px rgba(0,0,0,0.02)}button:active,button:focus,input[type="button"]:active,input[type="button"]:focus,input[type="reset"]:active,input[type="reset"]:focus,input[type="submit"]:active,input[type="submit"]:focus{border-color:#aaa #bbb #bbb;box-shadow:inset 0 -1px 0 rgba(255,255,255,0.5),inset 0 2px 5px rgba(0,0,0,0.15)}[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=month],[type=week],[type=email],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=color],textarea{width:auto}input[type="text"],input[type="email"],input[type="url"],input[type="password"],input[type="search"],textarea{color:#666;border:1px solid #ccc;border-radius:3px}input[type="text"]:focus,input[type="email"]:focus,input[type="url"]:focus,input[type="password"]:focus,input[type="search"]:focus,textarea:focus{color:#111}input[type="text"],input[type="email"],input[type="url"],input[type="password"],input[type="search"]{padding:3px}textarea{padding-left:3px;width:100%}.gform_wrapper .gfield_checkbox li input,.gform_wrapper .gfield_checkbox li input[type=checkbox]{margin-top:4px !important}#label_6_18_1,#label_6_18_5,#label_6_18_14,#label_6_18_22{font-weight:bold}a{color:#156c96}a:visited{color:#156c96}a:hover,a:focus,a:active{color:#333}a:focus{outline:thin dotted}a:hover,a:active{outline:0}.header-top{background:#d0e2ea}.header-top.row{margin:0}.main-navigation.row.column{padding-left:0;padding-right:0;margin:0}#scroller{background:#fff;width:100%}.stuck{position:fixed;z-index:9999999;width:100%;top:0;padding:0;margin:0;left:50%;margin-left:-50%;background:#fff}.logo-adjust{left:0px}#top-navigation #mega_main_menu>.menu_holder>.menu_inner>.mega_main_menu_ul{position:absolute;width:100%;background:#d0e2ea}#site-navigation #mega_main_menu>.menu_holder>.menu_inner>.mega_main_menu_ul{position:absolute;width:100%;background:#fff}#site-navigation #mega_main_menu>.menu_holder>.menu_inner>ul>li>.item_link{padding:0px 8px}#site-navigation #mega_main_menu>.menu_holder>.menu_inner>ul>li>.item_link:after{display:none;content:''}.main-navigation{position:relative;padding-left:0}.main-navigation .link_text{text-transform:uppercase}#mega_main_menu.responsive-enable>.menu_holder>.menu_inner>ul{box-shadow:0 0 6px 0,rgba(0,0,0,0.6)}#mega_main_menu .nav_logo .logo_link{padding-left:0;padding-bottom:0}.site-main .comment-navigation,.site-main .posts-navigation,.site-main .post-navigation{margin:0 0 1.5em;overflow:hidden}.comment-navigation .nav-previous,.posts-navigation .nav-previous,.post-navigation .nav-previous{float:left;width:50%}.comment-navigation .nav-next,.posts-navigation .nav-next,.post-navigation .nav-next{float:right;text-align:right;width:50%}#top-navigation #mega_main_menu>.menu_holder>.menu_inner>ul>li>.item_link{padding:0px 10px}#top-navigation #mega_main_menu>.menu_holder>.menu_inner>ul>li>.item_link:after{right:2px;margin-top:-2px;display:none}#top-navigation #menu-item-43.menu-item{margin:0;padding:0;border-left:0 none}.top-navigation.row.column{padding-left:0;padding-right:0;margin:0}.top-navigation .top-menu-right{float:right;width:100%;position:relative;background:#156c96;padding:0;height:28px}.top-navigation .top-menu-right ul{list-style:none;margin:0;line-height:1}.top-navigation .top-menu-right ul li{float:right}.top-navigation .top-menu-right ul li i{display:inline-block;padding:5px 6px 4px 6px}.top-navigation .top-menu-right ul li a{color:#74a8c1;outline:none;border:0 none}.top-navigation .top-menu-right ul li a:hover{color:#fff}.top-navigation .top-menu-left{float:right;width:100%;position:relative;z-index:9999}.main-nav-wrap.row.column{position:relative}.search-button{display:block;width:14px;position:absolute;right:0;top:15px;z-index:5000;color:#999 !important}.search-button:before{position:absolute;font-family:'FontAwesome';top:4px;left:8px;content:"\f002";font-size:15px}#mega_main_menu li.tabs_dropdown>.mega_dropdown,#mega_main_menu li.multicolumn_dropdown>.mega_dropdown,#mega_main_menu li.widgets_dropdown>.mega_dropdown,#mega_main_menu li.post_type_dropdown>.mega_dropdown,#mega_main_menu li.grid_dropdown>.mega_dropdown,#mega_main_menu li .mega_dropdown>li .post_details{width:auto;min-width:415px}#mega_main_menu li#menu-item-42.tabs_dropdown>.mega_dropdown,#mega_main_menu li#menu-item-42.multicolumn_dropdown>.mega_dropdown,#mega_main_menu li#menu-item-42.widgets_dropdown>.mega_dropdown,#mega_main_menu li#menu-item-42.post_type_dropdown>.mega_dropdown,#mega_main_menu li#menu-item-42.grid_dropdown>.mega_dropdown,#mega_main_menu li#menu-item-42.mega_dropdown>li .post_details{width:640px}.mega-left{display:block;width:auto;padding-right:0;vertical-align:top}.mega-right{display:block;width:auto;vertical-align:top;text-align:left}li#menu-item-42 .mega-right{padding:0 10px}.mega-right p{padding:6px 0;margin:0;font-size:14px}.mega-thumb{display:table-cell;width:200px;height:115px;background-repeat:no-repeat;background-position:center center;background-size:cover;font-size:14px;color:#fff;padding:15px 15px 5px 15px;vertical-align:bottom;text-shadow:0 0 1px #000}.mega1-th1,.mega1-th2,.mega2-th1,.mega2-th2,.mega3-th1,.mega3-th2,.mega4-th1,.mega4-th2{display:none}@media only screen and (min-width: 1025px) and (max-width: 1206px){.stuck{position:fixed;z-index:9999999;width:100%;top:0;padding:0;margin:0;left:50%;margin-left:-535px !important;background:#fff}}@media only screen and (min-width: 64.0625em){#top-navigation #menu-item-43.menu-item{border-left:10px #fff solid}.top-navigation .top-menu-right{width:12%}.top-navigation .top-menu-left{width:88%}.search-button{display:block;width:25px;position:absolute;right:-15px;left:auto;top:0px;color:#999 !important;height:85px;z-index:9999999}.search-button:before{top:33px;left:4px}.main-navigation{padding-left:5px}#scroller{background:#fff;width:100%}.stuck{position:fixed;z-index:9999999;width:100%;top:0;padding:0 4px;margin:0;left:48%;margin-left:-592px;background:#fff}.logo-adjust{left:30px}#mega_main_menu.responsive-enable>.menu_holder>.menu_inner>ul{box-shadow:none}.mega-left{display:table-cell;width:1%;padding-right:20px;vertical-align:top}.mega-right{display:table-cell;width:1%;vertical-align:top;text-align:left}.mega1-th1,.mega1-th2,.mega2-th1,.mega2-th2,.mega3-th1,.mega3-th2,.mega4-th1,.mega4-th2{display:block}}.screen-reader-text{clip:rect(1px, 1px, 1px, 1px);position:absolute !important;height:1px;width:1px;overflow:hidden}.screen-reader-text:focus{background-color:#f1f1f1;border-radius:3px;box-shadow:0 0 2px 2px rgba(0,0,0,0.6);clip:auto !important;color:#21759b;display:block;font-size:14px;font-size:.875rem;font-weight:bold;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}#content[tabindex="-1"]:focus{outline:0}.alignleft{display:inline;float:left;margin-right:1.5em}.alignright{display:inline;float:right;margin-left:1.5em}.aligncenter{clear:both;display:block;margin-left:auto;margin-right:auto}.clear:before,.clear:after,.entry-content:before,.entry-content:after,.comment-content:before,.comment-content:after,.site-header:before,.site-header:after,.site-content:before,.site-content:after,.site-footer:before,.site-footer:after{content:"";display:table;table-layout:fixed}.clear:after,.entry-content:after,.comment-content:after,.site-header:after,.site-content:after,.site-footer:after{clear:both}.overlay{position:fixed;width:100%;height:100%;top:0;left:0;background:rgba(255,255,255,0.9);z-index:999998;padding:20px;overflow:scroll}.overlay .overlay-close{width:40px;height:40px;position:absolute;right:20px;top:20px;border:none;background:#156c96;color:#fff;outline:none;z-index:9999;box-shadow:none;border-radius:0;font-size:40px}.overlay .overlay-close:before{content:"X";color:#fff;font-size:30px;position:absolute;right:30px;top:5px;z-index:10000}.overlay nav{text-align:center;position:relative;top:50%;height:60%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.overlay ul{list-style:none;padding:0;margin:0 auto;display:inline-block;height:100%;position:relative}.overlay ul li{display:block;height:20%;height:calc(100% / 5);min-height:54px;-webkit-backface-visibility:hidden;backface-visibility:hidden}.overlay ul li a{font-size:54px;font-weight:300;display:block;color:#fff;-webkit-transition:color 0.2s;transition:color 0.2s}.overlay ul li a:hover,.overlay ul li a:focus{color:#f0f0f0}.overlay-scale{visibility:hidden;opacity:0;-webkit-transform:scale(0.9);transform:scale(0.9);-webkit-transition:-webkit-transform 0.2s, opacity 0.2s, visibility 0s 0.2s;transition:transform 0.2s, opacity 0.2s, visibility 0s 0.2s}.overlay-scale.open{visibility:visible;opacity:1;-webkit-transform:scale(1);transform:scale(1);-webkit-transition:-webkit-transform 0.4s, opacity 0.4s;transition:transform 0.4s, opacity 0.4s}@media screen and (max-height: 30.5em){.overlay nav{height:70%;font-size:34px}.overlay ul li{min-height:34px}}#search-overlay{padding-top:80px}#search-overlay .select-wrap{width:auto;margin-bottom:20px}#search-overlay .search-all{padding:15px;border:0 none;border-left:#156c96 2px solid;font-size:18px;font-weight:300;line-height:1;color:#333;text-transform:uppercase;border-radius:0;width:90%;-webkit-appearance:none}#search-overlay .select-arrow{width:auto;margin:0 0 20px 0;float:none;position:relative}#search-overlay button.submit-close,#search-overlay input[type=submit]{clear:left;display:block;padding:20px 0;border:0 none;border-left:#156c96 2px solid;font-size:35px;font-weight:100;line-height:1;background:#156c96;color:#fff;text-transform:uppercase;border-radius:0;width:80%;box-shadow:none;text-shadow:none}#search-overlay .columns.overlay-news-feed{padding-left:0}#search-overlay .columns.overlay-news-feed ul li a{font-size:16px;color:#156c96}#search-overlay .columns.overlay-pop-search{padding-right:0}#search-overlay h2{text-transform:uppercase;color:#156c96;font-size:30px;font-weight:100}#search-overlay h4{font-size:16px}#search-overlay h4 a{color:#156c96;font-size:16px}#search-overlay .chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:40px;background:#ddd;color:#333;border-radius:0;border:0 none;background-clip:padding-box;box-shadow:none;text-decoration:none;white-space:nowrap;line-height:39px}#search-overlay .chosen-container .chosen-results{width:100%}#search-overlay .chosen-results li.active-result{display:block;height:auto;min-height:auto}#search-overlay .chosen-container-single .chosen-single div b{margin-top:6px}#search-overlay .search-results-list dl{counter-reset:search-results-counter}#search-overlay .search-results-list dt:before{content:counter(search-results-counter);counter-increment:search-results-counter;padding:0;font-size:60px;font-weight:bold;color:#2d7ba1;margin:0 0 0 0;line-height:40px;height:50px}#search-overlay .search-results-list dt{background:#156c96;padding:0 20px;margin:0 0 15px 0;line-height:1;height:40px;overflow:hidden}#search-overlay .search-results-list dt a{display:inline-block;color:#fff;font-size:20px;font-weight:300;line-height:auto;margin:0 0 -15px 0;top:-13px;padding:0 0 0 15px;position:relative}#search-overlay .search-results-list dt:hover{background:#004260}.feed_results{display:none}@media only screen and (min-width: 40.0625em){.overlay{padding:50px}#search-overlay{padding-top:100px}#search-overlay .select-wrap{width:75%;margin-bottom:8%}#search-overlay .search-all{padding:30px 15px;border:0 none;border-left:#156c96 2px solid;font-size:55px;font-weight:300;line-height:1;color:#333;text-transform:uppercase;border-radius:0;width:100%}#search-overlay .select-arrow{width:25.3%;margin:0 2% 20px 0;float:left;position:relative}.overlay .overlay-close{width:70px;height:70px;position:absolute;right:20px;top:20px;border:none;background:#156c96;color:#fff;outline:none;z-index:9999;box-shadow:none;border-radius:0;font-size:40px}.overlay .overlay-close:before{content:"X";color:#fff;font-size:40px;position:absolute;right:25px;top:15px;z-index:10000}.feed_results{display:block}}.widget{margin:0 0 1.5em}.widget select{max-width:100%}#header-advert{padding:10px 0 0;text-align:center;width:auto;margin:0 auto;min-height:70px;max-height:70px;height:70px;position:relative;overflow:hidden}#header-advert img{width:auto;min-height:50px;max-height:50px;margin:0 auto}@media only screen and (min-width: 40.0625em){#header-advert{min-height:100px;max-height:100px;height:100px}#header-advert img{width:650px;min-height:100px;max-height:100px;height:100px}}.page-sidebar.columns{padding-right:0;padding-left:0}.page-sidebar{padding:30px 20px 0}.page-sidebar .textwidget{padding:0 20px 10px}.page-sidebar .event-list-wrap{border:0 none}.page-sidebar .event-list-wrap h3{width:60%}.page-sidebar .event-cost{display:inline-block;padding:5px;position:absolute;top:0;right:0;color:#fff;background:#2d7ba1;max-width:33%;height:auto}.page-sidebar .widget-area{font-size:14px}.page-sidebar .widget-area p{line-height:1.5;margin-bottom:10px}.page-sidebar .widget-area ul{list-style:none;padding-bottom:20px}.page-sidebar .widget-area ul a{color:#7b7b7b}.page-sidebar .widget-area ul li.event-item{padding:5px 0}.page-sidebar .widget-area ul a.event-link{color:#156c96}.page-sidebar .widget-area .explore-posts ul{font-size:16px;margin:0}.page-sidebar .widget-area .explore-posts a{color:#156c96}.page-sidebar .widget-area .popular-tags ul{font-size:12px;margin:0}.page-sidebar .widget-area .popular-tags ul li{float:left;display:inline-block;position:relative;padding:2px 4px;background:#7b7b7b;margin:0 5px 5px 0}.page-sidebar .widget-area .popular-tags ul li a{color:#fff}.page-sidebar .widget-area .popular-tags ul li:hover{background:#333}.page-sidebar .widget-area ul.gform_fields{padding-bottom:0}.page-sidebar .widget-area .gform_footer.top_label{padding:0;margin:0}.page-sidebar .widget-area .gfield_required,.page-sidebar .widget-area .gform_wrapper .top_label .gfield_label{display:none}.page-sidebar .widget-area input[type=text],.page-sidebar .widget-area input[type=email]{width:90%;border:#939393 1px solid;border-radius:0;padding:6px 9px;font-size:12px;height:25px;border-color:#ececec}.page-sidebar .widget-area input[type=submit]{position:relative;border:#156c96 1px solid;border-radius:0;padding:6px;font-size:12px;height:25px;background:#156c96;color:#fff;box-shadow:none;text-shadow:none}.page-sidebar .widget-area .widget-container{padding:0 20px 10px 20px}.page-sidebar .widget-area .widget-title{display:inline-block;padding:10px 15px;background:#333;color:#fff;font-size:15px;font-weight:300;margin:0 0 0 20px;position:relative;z-index:100;top:-20px;width:185px;max-width:185px}.page-sidebar .widget-area .news-feed-title:before{position:absolute;font-family:'FontAwesome';top:7px;right:15px;content:"\f09e";font-size:20px}.page-sidebar .widget-area section,.page-sidebar .widget-area section.widget_black_studio_tinymce.event-sidebar{background:#fff;margin-bottom:60px}.page-sidebar .widget-area section.event-sidebar{background:#fff;margin-bottom:15px}.page-sidebar .widget-area #black-studio-tinymce-10 ul{margin-left:0}.page-sidebar .simple-section-nav .widget-title{display:inline-block;padding:10px 15px;background:#333;color:#fff;font-size:15px;font-weight:300;margin:0 0 0 20px;position:relative;z-index:100;top:-20px;width:185px;max-width:185px}.page-sidebar .custom_menu h3{display:inline-block;padding:10px 15px;background:#333;color:#fff;font-size:15px;font-weight:300;margin:0 0 0 20px;position:relative;z-index:100;top:-20px;width:185px;max-width:185px}.advert-wrap{position:relative;display:block;margin-top:-30px;height:auto;background:#fff;width:250px;min-height:250px;max-height:250px}.advert-wrap img{width:100%;height:auto;margin:0 auto;text-align:center}.sidebar-bottom-ads div{display:table-cell;width:1%;position:relative}.sidebar-bottom-ads div img{width:125px;height:125px}.sidebar-bottom-ads div:first-child{text-align:left}.sidebar-bottom-ads div:last-child{text-align:right}#adrotate_widgets-4 .g-3{width:100%;text-align:center}#adrotate_widgets-4 .g-3 img{margin:0 auto;text-align:center}.member-sidebar.columns{padding-right:0;padding-left:0}.member-sidebar{padding:400px 30px 20px 0}.member-sidebar .widget-area{font-size:14px}.member-sidebar .widget-area p{line-height:1.5;margin-bottom:10px}.member-sidebar .widget-area input[type=text],.member-sidebar .widget-area input[type=email]{width:90%;border:#939393 1px solid;border-radius:0;padding:6px 9px;font-size:12px;height:25px;border-color:#ececec}.member-sidebar .widget-area input[type=submit]{position:relative;border:#156c96 1px solid;border-radius:0;padding:6px;font-size:12px;height:25px;background:#156c96;color:#fff;box-shadow:none;text-shadow:none}.member-sidebar .widget-area .widget-container{padding:0 20px 10px 20px}.member-sidebar .widget-area .widget-title{display:inline-block;padding:10px 15px;background:#333;color:#fff;font-size:15px;font-weight:300;margin:0 0 0 20px;position:relative;z-index:100;top:-20px;width:185px;max-width:185px}.member-sidebar .widget-area .news-feed-title:before{position:absolute;font-family:'FontAwesome';top:7px;right:15px;content:"\f09e";font-size:20px}.member-sidebar .widget-area section{background:#fff;margin-bottom:60px}.member-sidebar .simple-section-nav .widget-title{display:inline-block;padding:10px 15px;background:#333;color:#fff;font-size:15px;font-weight:300;margin:0 0 0 20px;position:relative;z-index:100;top:-20px;width:185px;max-width:185px}.member-sidebar .simple-section-nav ul{list-style:none;padding-bottom:20px}.member-sidebar .simple-section-nav ul a{color:#7b7b7b}.advert-wrap{position:relative;display:block;margin-top:-30px;height:auto;background:#fff}.sticky{display:block}.hentry{margin:0 0 1.5em}.byline,.updated:not(.published){display:none}.single .byline,.group-blog .byline{display:inline}.page-content,.entry-content,.entry-summary{margin:1.5em 0 0}.page-links{clear:both;margin:0 0 1.5em}.hero-header{height:215px;background-repeat:no-repeat;background-position:center center;background-size:cover}@media only screen and (min-width: 40.0625em){.hero-header{height:415px;background-repeat:no-repeat;background-position:center center;background-size:cover}}.home-row.row.column{margin:0;width:auto !important}.front-main.column,.front-main.columns{width:auto;padding-left:0;padding-right:0}.front-main{padding:0;margin-top:0 !important;margin-bottom:30px}.front-main img{width:100%;height:auto;margin-bottom:10px}.front-main .front-main-left{background:#f6f6f6;margin-bottom:30px}.front-main .front-main-right{background:#f6f6f6}.front-main h2{color:#156c96;font-weight:100;font-size:28px}.front-main p{margin-bottom:0}.row.front-bottom{padding:0;margin:0}.front-bottom{padding:0;margin:0;height:325px;background-repeat:no-repeat;background-position:center center;background-size:contain;overflow:hidden;position:relative}.front-bottom .front-bottom-img-link{display:block;position:absolute;z-index:2;width:100%;height:350px}.front-bottom .front-bottom-container{display:table-cell;width:100%;vertical-align:bottom;padding-left:0;height:325px}.front-bottom h5{display:inline-block;padding:15px;background:#156c96;color:#fff;font-weight:300;text-transform:uppercase;position:relative;z-index:1001;float:left;margin:0;line-height:1}.front-bottom h5 a{color:#fff}.front-bottom p{display:inline-block;float:left;position:relative;z-index:1001;padding:18px 16px 17px 16px;background:#fff;margin:0;line-height:1;font-size:14px}.front-bottom p a{color:#7b7b7b}.royalSlider>.rsContent{visibility:hidden}.slider-header-wrap.row.column{margin:0 auto;width:auto !important}.slider-header{margin:0 0 0px 0;padding:0;background:#f6f6f6;height:auto}.slider-header .g{overflow:visible !important}.front-block{background:transparent;padding:0;position:relative;z-index:1000;width:100%;top:-20px}.front-block h3{display:inline-block;padding:10px 20px;background:#156c96;color:#fff;font-weight:100;text-transform:uppercase;position:relative;z-index:1001;left:0 !important;margin-bottom:0px;overflow:hidden;font-size:20px}.front-block p{display:none}.slider-header .royalSlider{min-height:350px !important}.rsNav.rsThumbs.rsThumbsHor{visibility:hidden}.customRShome .rsOverflow,.customRShome .rsSlide{overflow:hidden;height:100% !important}@media only screen and (min-width: 40.0625em){.slider-header{margin:0;padding:0 0 0 0;background:#f6f6f6;height:auto}.customRShome .rsOverflow,.customRShome .rsSlide{overflow:hidden;height:795px !important}.front-main{padding:65px 30px 45px 30px}.front-main .front-main-left.columns{margin-bottom:0}.front-block{background:#fff;padding:25px;position:relative;z-index:1000;width:95%;display:block}.front-block h3{display:inline-block;padding:25px;background:#156c96;color:#fff;font-weight:100;text-transform:uppercase;position:relative;z-index:1001;top:-100px !important;margin-bottom:-80px;overflow:hidden;font-size:35px}.front-block p{display:block}}@media only screen and (min-width: 64.0625em){.rsNav.rsThumbs.rsThumbsHor{visibility:visible}.slider-header-wrap.row.column{margin:0 auto;padding:0 .9375rem}.home-row.row.column{margin:0 auto;padding:0 .9375rem}.front-block{background:#fff;padding:25px;position:relative;width:auto;display:block;top:0}.front-bottom{padding:0 .9375rem;margin:0;background-size:cover}.front-bottom .front-bottom-container{display:table-cell;width:1%;vertical-align:bottom;padding-left:50px}}body{top:0}.site-header.row.column{margin:0 auto;padding:0}.widget_adrotate_widgets{overflow:hidden !important}.body-content.row.column{padding-left:0;padding-right:0;margin:0 auto;background:#f6f6f6}.body-content{background:#f6f6f6}.page .entry-header{background:#156c96;position:relative;display:inline-block;z-index:100;top:30px;padding:5px 20px;height:auto;margin-bottom:15px}.page .entry-title{color:#fff;font-size:1.4rem;font-weight:100;text-transform:uppercase;line-height:1}.post-page-title{background:#156c96;position:relative;display:inline-block;z-index:100;top:30px;padding:5px 20px;height:auto;margin-bottom:15px}.post-page-title h1{color:#fff;font-size:1  .4rem;font-weight:100;text-transform:uppercase;line-height:1}.post-page-title p{color:#fff;font-size:2.4rem;font-weight:100;text-transform:uppercase;line-height:1 !important;margin:0.67em 0 !important}.news-wrapper{position:relative;margin-top:-80px}.content-area{margin:0;width:100%;padding:0}.site-main{margin:0;padding:0}.site-main article.page{margin-top:-80px}.site-main article.post{margin-top:0;margin-bottom:50px;padding-bottom:30px;border-bottom:#878787 1px solid}.site-main p{line-height:1.33}.site-search{padding:50px 20px}.site-content .widget-area{float:none;width:auto}.site-footer{clear:both;width:100%}.page-sidebar{margin-top:39px}@media only screen and (min-width: 40.0625em){#header-advert{padding:20px 0;width:650px;min-height:140px;max-height:140px}#header-advert img{width:650px;min-height:100px;max-height:100px;margin:0 auto}.page .entry-header{background:#156c96;position:relative;display:inline-block;z-index:100;top:0;padding:5px 32px;height:auto;margin-bottom:15px}.page .entry-title{color:#fff;font-size:2.4rem;font-weight:100;text-transform:uppercase;line-height:1}.post-page-title{background:#156c96;position:relative;display:inline-block;z-index:100;top:0;padding:5px 32px;height:auto;top:-80px;margin-bottom:35px}.post-page-title h1{color:#fff;font-size:2.4rem;font-weight:100;text-transform:uppercase;line-height:1}.post-page-title p{color:#fff;font-size:2.4rem;font-weight:100;text-transform:uppercase;line-height:1 !important;margin:0.67em 0 !important}}@media only screen and (min-width: 64.0625em){.site-header.row.column{margin:0 auto;padding:0 .9375rem}.site-main{padding:0 20px 20px 70px}}.post-page-title{background:#156c96;position:relative;display:inline-block;z-index:100;top:0;padding:5px 32px;height:auto;top:-80px;margin-bottom:35px}.post-page-title h1{color:#fff;font-size:2.4rem;font-weight:100;text-transform:uppercase;line-height:1}.post-page-title h1 a{color:#fff}.post-page-title p{color:#fff;font-size:2.4rem;font-weight:100;text-transform:uppercase;line-height:1 !important;margin:0.67em 0 !important}.news-wrapper{position:relative;margin-top:-80px}article.post{margin-top:0;margin-bottom:50px;padding-bottom:30px;border-bottom:#878787 1px solid}.tags-links,.cat-links,.posted-on,.byline,.author.vcard{font-size:12px;display:inline-block;margin-right:8px}.deals-list .deal-wrap{float:left;position:relative;width:100%;margin:0}.deals-list .deal.hentry{padding:15px;border:#7b7b7b 1px solid;background:#fff;min-height:100%;max-height:100%}.deals-list .deal.hentry img{margin:0 0 10px 0;width:100%;height:auto}.deals-list .deal.hentry p{font-size:13px}.deals-list .deal.hentry h2{color:#2d7ba1}.deals-list .deal.hentry .entry-meta{font-size:12px}.deal.hentry{padding:15px;border:#7b7b7b 1px solid;background:#fff}.deal.hentry img{margin:0 0 10px 0;max-width:100%;height:auto}.deal.hentry h1{color:#2d7ba1}.deal.hentry .entry-meta{font-size:12px}@media only screen and (min-width: 64.0625em){.deals-list .deal-wrap{float:left;position:relative;width:47%;margin:0 3% 0 0}.deals-list .deal.hentry{padding:15px;border:#7b7b7b 1px solid;background:#fff;min-height:530px;max-height:530px}}.directory-list{list-style:none;margin:30px 0 0;padding:0;width:100%}.directory-list li{width:100%;float:none;position:relative;margin:0 0 30px}.directory-list li div,.directory-list li a.img-link{height:190px;width:1%;margin:0;overflow:hidden;display:table-cell;vertical-align:top;text-align:left;background-repeat:no-repeat;background-position:center center;background-size:cover}.directory-list li span.list-title-link{text-transform:uppercase;color:#fff;font-size:28px;line-height:1;text-shadow:0 0 3px #000;display:block;padding:20px;font-weight:700;width:100%;height:190px;background:rgba(255,255,255,0)}.directory-list li a.img-link:hover span.list-title-link{text-shadow:0 0 3px rgba(0,0,0,0.6);background:rgba(255,255,255,0.3)}.directory-list li:nth-child(odd){width:100%;clear:none;float:none;padding:0;margin:0 0 30px 0}.directory-list li:nth-child(even){width:100%;margin:0 0 30px 0;float:none}#SFpne .gm-style{pointer-events:none}@media only screen and (min-width: 40.0625em){#SFpne .gm-style{pointer-events:auto}.directory-list li:nth-child(odd){width:47%;clear:left;float:left;padding:0;margin:0 1.5% 30px 0}.directory-list li:nth-child(even){width:48%;margin:0 0 30px 1.5%;float:left}}.page-sidebar .event-list-wrap{padding:0;margin:0 0 10px 0;position:relative}.page-sidebar .event-list-wrap h3{font-size:20px}.page-sidebar .events-row{padding:0}.ui-widget-header{border:1px solid #fff !important;background:#2d7ba1 !important}#ui-datepicker-div{z-index:101 !important}.em-search-wrapper p{display:inline !important;line-height:1}input.em-events-search-text.em-search-text,input.em-search-geo,input.em-date-input-loc.em-date-start.hasDatepicker,input.em-date-input-loc.em-date-end.hasDatepicker{display:inline-block !important}button.em-search-submit{display:inline-block !important}div.css-search div.em-search-main .em-search-submit{background:#2d7ba1;display:inline-block !important}div.css-search div.em-search-main .em-search-submit:hover{background:#004260}.events-row{padding:15px 0;text-align:left;vertical-align:top;font-size:14px}.events-row p img{float:left;position:relative;width:300px;height:auto;margin:0 15px 15px 0;display:inline-block}.event-cost{display:inline-block;padding:5px;position:absolute;top:15px;right:15px;color:#fff;background:#2d7ba1;max-width:33%}.event-list-wrap{padding:15px;border:#f6f6f6 1px solid;background:#fff;margin:0 0 20px 0;position:relative}.event-list-wrap h3{width:66%}.css-events-list p{clear:both}.em-pagination .page-numbers{display:inline-block;padding:8px;background:#156c96;color:#fff}.em-pagination .page-numbers:hover,.em-pagination .page-numbers.current{background:#004260}.blog .format-aside .entry-title,.archive .format-aside .entry-title{display:none}.comment-content a{word-wrap:break-word}.bypostauthor{display:block}.footer.row.column{margin:0 auto;padding:0}.site-footer{background:#333;padding:40px 15px 25px 15px}.site-footer #footer-left,.site-footer #footer-right{list-style:none;margin-left:0;font-size:12px}.site-footer #footer-left a,.site-footer #footer-right a{color:#7b7b7b}.site-footer #footer-left a:hover,.site-footer #footer-right a:hover{color:#fff}.site-footer .footer-signup{position:relative}.site-footer .footer-signup p,.site-footer .footer-signup h6{color:#7b7b7b;font-size:12px;margin-bottom:5px}.site-footer .footer-signup input[type=text],.site-footer .footer-signup input[type=email]{width:100%;border:#939393 1px solid;border-radius:0;padding:6px 9px;font-size:12px;height:25px}.site-footer .footer-signup .gform_wrapper .top_label input.large{width:100%}.site-footer .footer-signup .gform_wrapper .gform_footer input.button,.site-footer .footer-signup .gform_wrapper .gform_footer input[type=submit],.site-footer .footer-signup input[type=submit]{border:#156c96 1px solid;border-radius:0;padding:6px;font-size:12px;height:25px;background:#156c96;color:#fff;box-shadow:none;text-shadow:none}.site-footer .footer-signup .gform_wrapper{margin:0}.site-footer .footer-signup .gform_body{float:left;position:relative;width:86%;margin:0;padding:0}.site-footer .footer-signup ul.gform_fields{padding-bottom:0}.site-footer .footer-signup .gform_wrapper .gform_footer{clear:none}.site-footer .footer-signup .gform_footer.top_label{padding:0;margin:6px 0 0;float:left;position:relative;width:auto}.site-footer .footer-signup .gfield_required,.site-footer .footer-signup .gform_wrapper .top_label .gfield_label{display:none}.site-footer .footer-signup .footer-advert-container{position:fixed;bottom:-25px;left:auto;right:auto;height:auto;text-align:center}.site-footer .footer-signup .footer-advert{clear:both;padding:0;margin:20px auto 15px auto;min-height:41px;max-height:60px;height:60px;display:inline-block;max-width:290px;text-align:center;overflow:hidden}.site-footer .footer-signup .footer-advert p{width:100%;display:inline-block;text-align:center}.site-footer .footer-signup .footer-advert img{width:100%;max-width:100%;min-height:41px;max-height:41px;height:41px;margin:0 auto;display:inline-block;text-align:center}.site-footer .site-info p{color:#7b7b7b;padding:20px 0;font-size:12px}.site-footer .site-info p a{color:#fff;text-decoration:none}@media only screen and (min-width: 40.0625em){.site-footer .footer-signup .footer-advert-container{position:relative;bottom:auto;left:auto;right:auto;height:auto;text-align:left}.site-footer .footer-signup .footer-advert{width:468px;min-height:100%;max-height:100%;max-width:468px;height:100%;margin:0;padding:0;position:relative}.site-footer .footer-signup .footer-advert img{width:468px;max-width:468px;min-height:60px;max-height:60px;height:60px;float:left;position:relative}}@media only screen and (min-width: 64.0625em){.footer.row.column{margin:0 auto;padding:0 .9375rem}.site-footer{padding:40px 50px 25px 50px}.site-footer .footer-signup input[type=submit]{padding:6px 9px}}.infinite-scroll .posts-navigation,.infinite-scroll.neverending .site-footer{display:none}.infinity-end.neverending .site-footer{display:block}.page-content .wp-smiley,.entry-content .wp-smiley,.comment-content .wp-smiley{border:none;margin-bottom:0;margin-top:0;padding:0}embed,iframe,object{max-width:100%}.wp-caption{margin-bottom:1.5em;max-width:100%}.wp-caption img[class*="wp-image-"]{display:block;margin-left:auto;margin-right:auto}.wp-caption .wp-caption-text{margin:0.8075em 0}.wp-caption-text{text-align:center}.gallery{margin-bottom:1.5em}.gallery-item{display:inline-block;text-align:center;vertical-align:top;width:100%}.gallery-columns-2 .gallery-item{max-width:50%}.gallery-columns-3 .gallery-item{max-width:33.33%}.gallery-columns-4 .gallery-item{max-width:25%}.gallery-columns-5 .gallery-item{max-width:20%}.gallery-columns-6 .gallery-item{max-width:16.66%}.gallery-columns-7 .gallery-item{max-width:14.28%}.gallery-columns-8 .gallery-item{max-width:12.5%}.gallery-columns-9 .gallery-item{max-width:11.11%}.gallery-caption{display:block}
diff --git a/style.css b/style.css
new file mode 100644 (file)
index 0000000..84f1065
--- /dev/null
+++ b/style.css
@@ -0,0 +1,21 @@
+/*!
+Theme Name: wmta
+Theme URI: http://underscores.me/
+Author: Underscores.me
+Author URI: http://underscores.me/
+Description: Description
+Version: 1.0.0
+License: GNU General Public License v2 or later
+License URI: http://www.gnu.org/licenses/gpl-2.0.html
+Text Domain: wmta
+Tags:
+
+This theme, like WordPress, is licensed under the GPL.
+Use it to make something cool, have fun, and share what you've learned with others.
+
+wmta is based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc.
+Underscores is distributed under the terms of the GNU GPL v2 or later.
+
+Normalizing styles have been helped along thanks to the fine work of
+Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
+*/html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}body,button,input,select,textarea{color:#878787;font-family:"Roboto",sans-serif;font-size:16px;font-size:1rem;line-height:1}h1,h2,h3,h4,h5,h6{clear:both;font-family:"Roboto",sans-serif;color:#333}h1{font-weight:bold}h2{font-weight:bold;font-size:1.5rem}h3{font-size:1.4rem}h4{font-size:1.3rem}h5{font-size:1.2rem}p{margin-bottom:1em;line-height:1.25}dfn,cite,em,i{font-style:italic}blockquote{margin:0 1.5em}address{margin:0 0 1.5em}pre{background:#eee;font-family:"Courier 10 Pitch",Courier,monospace;font-size:15px;font-size:.9375rem;line-height:1.6;margin-bottom:1.6em;max-width:100%;overflow:auto;padding:1.6em}code,kbd,tt,var{font-family:Monaco,Consolas,"Andale Mono","DejaVu Sans Mono",monospace;font-size:15px;font-size:.9375rem}abbr,acronym{border-bottom:1px dotted #666;cursor:help}mark,ins{background:#fff9c0;text-decoration:none}big{font-size:125%}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{background:#fff}blockquote,q{quotes:"" ""}blockquote:before,blockquote:after,q:before,q:after{content:""}hr{background-color:#ccc;border:0;height:1px;margin-bottom:1.5em;max-width:75.25rem !important}.row{max-width:75.25rem !important}ul,ol{margin:0 0 1.5em 1.5em}ul{list-style:disc}ol{list-style:decimal}li>ul,li>ol{margin-bottom:0;margin-left:1.5em}dt{font-weight:bold}dd{margin:0 1.5em 1.5em}img{height:auto;max-width:100%}table{margin:0 0 1.5em;width:100%}button,input[type="button"],input[type="reset"],input[type="submit"]{border:1px solid;border-color:#ccc #ccc #bbb;border-radius:3px;background:#e6e6e6;box-shadow:inset 0 1px 0 rgba(255,255,255,0.5),inset 0 15px 17px rgba(255,255,255,0.5),inset 0 -5px 12px rgba(0,0,0,0.05);color:rgba(0,0,0,0.8);font-size:12px;font-size:.75rem;line-height:1;padding:.6em 1em .4em;text-shadow:0 1px 0 rgba(255,255,255,0.8)}button:hover,input[type="button"]:hover,input[type="reset"]:hover,input[type="submit"]:hover{border-color:#ccc #bbb #aaa;box-shadow:inset 0 1px 0 rgba(255,255,255,0.8),inset 0 15px 17px rgba(255,255,255,0.8),inset 0 -5px 12px rgba(0,0,0,0.02)}button:active,button:focus,input[type="button"]:active,input[type="button"]:focus,input[type="reset"]:active,input[type="reset"]:focus,input[type="submit"]:active,input[type="submit"]:focus{border-color:#aaa #bbb #bbb;box-shadow:inset 0 -1px 0 rgba(255,255,255,0.5),inset 0 2px 5px rgba(0,0,0,0.15)}[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=month],[type=week],[type=email],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=color],textarea{width:auto}input[type="text"],input[type="email"],input[type="url"],input[type="password"],input[type="search"],textarea{color:#666;border:1px solid #ccc;border-radius:3px}input[type="text"]:focus,input[type="email"]:focus,input[type="url"]:focus,input[type="password"]:focus,input[type="search"]:focus,textarea:focus{color:#111}input[type="text"],input[type="email"],input[type="url"],input[type="password"],input[type="search"]{padding:3px}textarea{padding-left:3px;width:100%}.gform_wrapper .gfield_checkbox li input,.gform_wrapper .gfield_checkbox li input[type=checkbox]{margin-top:4px !important}#label_6_18_1,#label_6_18_7,#label_6_18_14,#label_6_18_19{font-weight:bold}@media only screen and (min-width: 641px){.gform_wrapper li.gf_list_inline ul.gfield_checkbox li,.gform_wrapper li.gf_list_inline ul.gfield_radio li{margin:0 15px 10px 0 !important}}.gform_wrapper .gfield_checkbox li label,.gform_wrapper .gfield_radio li label{max-width:100% !important}a{color:#156c96}a:visited{color:#156c96}a:hover,a:focus,a:active{color:#333}a:focus{outline:thin dotted}a:hover,a:active{outline:0}.header-top{background:#d0e2ea}.header-top.row{margin:0}.main-navigation.row.column{padding-left:0;padding-right:0;margin:0}#scroller{background:#fff;width:100%}.stuck{position:fixed;z-index:9999999;width:100%;top:0;padding:0;margin:0;left:50%;margin-left:-50%;background:#fff}.logo-adjust{left:0px}#top-navigation #mega_main_menu>.menu_holder>.menu_inner>.mega_main_menu_ul{position:absolute;width:100%;background:#d0e2ea}#site-navigation #mega_main_menu>.menu_holder>.menu_inner>.mega_main_menu_ul{position:absolute;width:100%;background:#fff}#site-navigation #mega_main_menu>.menu_holder>.menu_inner>ul>li>.item_link{padding:0px 8px}#site-navigation #mega_main_menu>.menu_holder>.menu_inner>ul>li>.item_link:after{display:none;content:''}.main-navigation{position:relative;padding-left:0}.main-navigation .link_text{text-transform:uppercase}#mega_main_menu.responsive-enable>.menu_holder>.menu_inner>ul{box-shadow:0 0 6px 0,rgba(0,0,0,0.6)}#mega_main_menu .nav_logo .logo_link{padding-left:0;padding-bottom:0}.site-main .comment-navigation,.site-main .posts-navigation,.site-main .post-navigation{margin:0 0 1.5em;overflow:hidden}.comment-navigation .nav-previous,.posts-navigation .nav-previous,.post-navigation .nav-previous{float:left;width:50%}.comment-navigation .nav-next,.posts-navigation .nav-next,.post-navigation .nav-next{float:right;text-align:right;width:50%}#top-navigation #mega_main_menu>.menu_holder>.menu_inner>ul>li>.item_link{padding:0px 10px}#top-navigation #mega_main_menu>.menu_holder>.menu_inner>ul>li>.item_link:after{right:2px;margin-top:-2px;display:none}#top-navigation #menu-item-43.menu-item{margin:0;padding:0;border-left:0 none}.top-navigation.row.column{padding-left:0;padding-right:0;margin:0}.top-navigation .top-menu-right{float:right;width:100%;position:relative;background:#156c96;padding:0;height:28px}.top-navigation .top-menu-right ul{list-style:none;margin:0;line-height:1}.top-navigation .top-menu-right ul li{float:right}.top-navigation .top-menu-right ul li i{display:inline-block;padding:5px 6px 4px 6px}.top-navigation .top-menu-right ul li a{color:#74a8c1;outline:none;border:0 none}.top-navigation .top-menu-right ul li a:hover{color:#fff}.top-navigation .top-menu-left{float:right;width:100%;position:relative;z-index:9999}.main-nav-wrap.row.column{position:relative}.search-button{display:block;width:14px;position:absolute;right:0;top:15px;z-index:5000;color:#999 !important}.search-button:before{position:absolute;font-family:'FontAwesome';top:4px;left:8px;content:"\f002";font-size:15px}#mega_main_menu li.tabs_dropdown>.mega_dropdown,#mega_main_menu li.multicolumn_dropdown>.mega_dropdown,#mega_main_menu li.widgets_dropdown>.mega_dropdown,#mega_main_menu li.post_type_dropdown>.mega_dropdown,#mega_main_menu li.grid_dropdown>.mega_dropdown,#mega_main_menu li .mega_dropdown>li .post_details{width:auto;min-width:415px}#mega_main_menu li#menu-item-42.tabs_dropdown>.mega_dropdown,#mega_main_menu li#menu-item-42.multicolumn_dropdown>.mega_dropdown,#mega_main_menu li#menu-item-42.widgets_dropdown>.mega_dropdown,#mega_main_menu li#menu-item-42.post_type_dropdown>.mega_dropdown,#mega_main_menu li#menu-item-42.grid_dropdown>.mega_dropdown,#mega_main_menu li#menu-item-42.mega_dropdown>li .post_details{width:640px}.mega-left{display:block;width:auto;padding-right:0;vertical-align:top}.mega-right{display:block;width:auto;vertical-align:top;text-align:left}li#menu-item-42 .mega-right{padding:0 10px}.mega-right p{padding:6px 0;margin:0;font-size:14px}.mega-thumb{display:table-cell;width:200px;height:115px;background-repeat:no-repeat;background-position:center center;background-size:cover;font-size:14px;color:#fff;padding:15px 15px 5px 15px;vertical-align:bottom;text-shadow:0 0 1px #000}.mega1-th1,.mega1-th2,.mega2-th1,.mega2-th2,.mega3-th1,.mega3-th2,.mega4-th1,.mega4-th2{display:none}@media only screen and (min-width: 1025px) and (max-width: 1206px){.stuck{position:fixed;z-index:9999999;width:100%;top:0;padding:0;margin:0;left:50%;margin-left:-535px !important;background:#fff}}@media only screen and (min-width: 64.0625em){#top-navigation #menu-item-43.menu-item{border-left:10px #fff solid}.top-navigation .top-menu-right{width:12%}.top-navigation .top-menu-left{width:88%}.search-button{display:block;width:25px;position:absolute;right:-15px;left:auto;top:0px;color:#999 !important;height:85px;z-index:9999999}.search-button:before{top:33px;left:4px}.main-navigation{padding-left:5px}#scroller{background:#fff;width:100%}.stuck{position:fixed;z-index:9999999;width:100%;top:0;padding:0 4px;margin:0;left:48%;margin-left:-592px;background:#fff}.logo-adjust{left:30px}#mega_main_menu.responsive-enable>.menu_holder>.menu_inner>ul{box-shadow:none}.mega-left{display:table-cell;width:1%;padding-right:20px;vertical-align:top}.mega-right{display:table-cell;width:1%;vertical-align:top;text-align:left}.mega1-th1,.mega1-th2,.mega2-th1,.mega2-th2,.mega3-th1,.mega3-th2,.mega4-th1,.mega4-th2{display:block}}.screen-reader-text{clip:rect(1px, 1px, 1px, 1px);position:absolute !important;height:1px;width:1px;overflow:hidden}.screen-reader-text:focus{background-color:#f1f1f1;border-radius:3px;box-shadow:0 0 2px 2px rgba(0,0,0,0.6);clip:auto !important;color:#21759b;display:block;font-size:14px;font-size:.875rem;font-weight:bold;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}#content[tabindex="-1"]:focus{outline:0}.alignleft{display:inline;float:left;margin-right:1.5em}.alignright{display:inline;float:right;margin-left:1.5em}.aligncenter{clear:both;display:block;margin-left:auto;margin-right:auto}.clear:before,.clear:after,.entry-content:before,.entry-content:after,.comment-content:before,.comment-content:after,.site-header:before,.site-header:after,.site-content:before,.site-content:after,.site-footer:before,.site-footer:after{content:"";display:table;table-layout:fixed}.clear:after,.entry-content:after,.comment-content:after,.site-header:after,.site-content:after,.site-footer:after{clear:both}.overlay{position:fixed;width:100%;height:100%;top:0;left:0;background:rgba(255,255,255,0.9);z-index:999998;padding:20px;overflow:scroll}.overlay .overlay-close{width:40px;height:40px;position:absolute;right:20px;top:20px;border:none;background:#156c96;color:#fff;outline:none;z-index:9999;box-shadow:none;border-radius:0;font-size:40px}.overlay .overlay-close:before{content:"X";color:#fff;font-size:30px;position:absolute;right:30px;top:5px;z-index:10000}.overlay nav{text-align:center;position:relative;top:50%;height:60%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.overlay ul{list-style:none;padding:0;margin:0 auto;display:inline-block;height:100%;position:relative}.overlay ul li{display:block;height:20%;height:calc(100% / 5);min-height:54px;-webkit-backface-visibility:hidden;backface-visibility:hidden}.overlay ul li a{font-size:54px;font-weight:300;display:block;color:#156c96;-webkit-transition:color 0.2s;transition:color 0.2s}.overlay ul li a:hover,.overlay ul li a:focus{color:#004260}.overlay-scale{visibility:hidden;opacity:0;-webkit-transform:scale(0.9);transform:scale(0.9);-webkit-transition:-webkit-transform 0.2s, opacity 0.2s, visibility 0s 0.2s;transition:transform 0.2s, opacity 0.2s, visibility 0s 0.2s}.overlay-scale.open{visibility:visible;opacity:1;-webkit-transform:scale(1);transform:scale(1);-webkit-transition:-webkit-transform 0.4s, opacity 0.4s;transition:transform 0.4s, opacity 0.4s}@media screen and (max-height: 30.5em){.overlay nav{height:70%;font-size:34px}.overlay ul li{min-height:34px}}#search-overlay{padding-top:80px}#search-overlay .select-wrap{width:auto;margin-bottom:20px}#search-overlay .search-all{padding:15px;border:0 none;border-left:#156c96 2px solid;font-size:18px;font-weight:300;line-height:1;color:#333;text-transform:uppercase;border-radius:0;width:90%;-webkit-appearance:none}#search-overlay .select-arrow{width:auto;margin:0 0 20px 0;float:none;position:relative}#search-overlay button.submit-close,#search-overlay input[type=submit]{clear:left;display:block;padding:20px 0;border:0 none;border-left:#156c96 2px solid;font-size:35px;font-weight:100;line-height:1;background:#156c96;color:#fff;text-transform:uppercase;border-radius:0;width:80%;box-shadow:none;text-shadow:none}#search-overlay .columns.overlay-news-feed{padding-left:0}#search-overlay .columns.overlay-news-feed ul li a{font-size:16px;color:#156c96}#search-overlay .columns.overlay-pop-search{padding-right:0}#search-overlay h2{text-transform:uppercase;color:#156c96;font-size:30px;font-weight:100}#search-overlay h4{font-size:16px}#search-overlay h4 a{color:#156c96;font-size:16px}#search-overlay .chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:40px;background:#ddd;color:#333;border-radius:0;border:0 none;background-clip:padding-box;box-shadow:none;text-decoration:none;white-space:nowrap;line-height:39px}#search-overlay .chosen-container .chosen-results{width:100%}#search-overlay .chosen-results li.active-result{display:block;height:auto;min-height:auto}#search-overlay .chosen-container-single .chosen-single div b{margin-top:6px}#search-overlay .search-results-list dl{counter-reset:search-results-counter}#search-overlay .search-results-list dt:before{content:counter(search-results-counter);counter-increment:search-results-counter;padding:0;font-size:60px;font-weight:bold;color:#2d7ba1;margin:0 0 0 0;line-height:40px;height:50px}#search-overlay .search-results-list dt{background:#156c96;padding:0 20px;margin:0 0 15px 0;line-height:1;height:40px;overflow:hidden}#search-overlay .search-results-list dt a{display:inline-block;color:#fff;font-size:20px;font-weight:300;line-height:auto;margin:0 0 -15px 0;top:-13px;padding:0 0 0 15px;position:relative}#search-overlay .search-results-list dt:hover{background:#004260}.feed_results{display:none}@media only screen and (min-width: 40.0625em){.overlay{padding:50px}#search-overlay{padding-top:100px}#search-overlay .select-wrap{width:75%;margin-bottom:8%}#search-overlay .search-all{padding:30px 15px;border:0 none;border-left:#156c96 2px solid;font-size:55px;font-weight:300;line-height:1;color:#333;text-transform:uppercase;border-radius:0;width:100%}#search-overlay .select-arrow{width:25.3%;margin:0 2% 20px 0;float:left;position:relative}.overlay .overlay-close{width:70px;height:70px;position:absolute;right:20px;top:20px;border:none;background:#156c96;color:#fff;outline:none;z-index:9999;box-shadow:none;border-radius:0;font-size:40px}.overlay .overlay-close:before{content:"X";color:#fff;font-size:40px;position:absolute;right:25px;top:15px;z-index:10000}.feed_results{display:block}}.widget{margin:0 0 1.5em}.widget select{max-width:100%}#header-advert{padding:10px 0 0;text-align:center;width:auto;margin:0 auto;min-height:70px;max-height:70px;height:70px;position:relative;overflow:hidden}#header-advert img{width:auto;min-height:50px;max-height:50px;margin:0 auto}@media only screen and (min-width: 40.0625em){#header-advert{min-height:100px;max-height:100px;height:100px}#header-advert img{width:650px;min-height:100px;max-height:100px;height:100px}}.page-sidebar.columns{padding-right:0;padding-left:0}.page-sidebar{padding:30px 20px 0}.page-sidebar .textwidget{padding:0 20px 10px}.page-sidebar .event-list-wrap{border:0 none}.page-sidebar .event-list-wrap h3{width:60%}.page-sidebar .event-cost{display:inline-block;padding:5px;position:absolute;top:0;right:0;color:#fff;background:#2d7ba1;max-width:33%;height:auto}.page-sidebar .widget-area{font-size:14px}.page-sidebar .widget-area p{line-height:1.5;margin-bottom:10px}.page-sidebar .widget-area ul{list-style:none;padding-bottom:20px}.page-sidebar .widget-area ul a{color:#7b7b7b}.page-sidebar .widget-area ul li.event-item{padding:5px 0}.page-sidebar .widget-area ul a.event-link{color:#156c96}.page-sidebar .widget-area .explore-posts ul{font-size:16px;margin:0}.page-sidebar .widget-area .explore-posts a{color:#156c96}.page-sidebar .widget-area .popular-tags ul{font-size:12px;margin:0}.page-sidebar .widget-area .popular-tags ul li{float:left;display:inline-block;position:relative;padding:2px 4px;background:#7b7b7b;margin:0 5px 5px 0}.page-sidebar .widget-area .popular-tags ul li a{color:#fff}.page-sidebar .widget-area .popular-tags ul li:hover{background:#333}.page-sidebar .widget-area ul.gform_fields{padding-bottom:0}.page-sidebar .widget-area .gform_footer.top_label{padding:0;margin:0}.page-sidebar .widget-area .gfield_required,.page-sidebar .widget-area .gform_wrapper .top_label .gfield_label{display:none}.page-sidebar .widget-area input[type=text],.page-sidebar .widget-area input[type=email]{width:90%;border:#939393 1px solid;border-radius:0;padding:6px 9px;font-size:12px;height:25px;border-color:#ececec}.page-sidebar .widget-area input[type=submit]{position:relative;border:#156c96 1px solid;border-radius:0;padding:6px;font-size:12px;height:25px;background:#156c96;color:#fff;box-shadow:none;text-shadow:none}.page-sidebar .widget-area .widget-container{padding:0 20px 10px 20px}.page-sidebar .widget-area .widget-title{display:inline-block;padding:10px 15px;background:#333;color:#fff;font-size:15px;font-weight:300;margin:0 0 0 20px;position:relative;z-index:100;top:-20px;width:185px;max-width:185px}.page-sidebar .widget-area .news-feed-title:before{position:absolute;font-family:'FontAwesome';top:7px;right:15px;content:"\f09e";font-size:20px}.page-sidebar .widget-area section,.page-sidebar .widget-area section.widget_black_studio_tinymce.event-sidebar{background:#fff;margin-bottom:60px}.page-sidebar .widget-area section.event-sidebar{background:#fff;margin-bottom:15px}.page-sidebar .widget-area #black-studio-tinymce-10 ul{margin-left:0}.page-sidebar .simple-section-nav .widget-title{display:inline-block;padding:10px 15px;background:#333;color:#fff;font-size:15px;font-weight:300;margin:0 0 0 20px;position:relative;z-index:100;top:-20px;width:185px;max-width:185px}.page-sidebar .custom_menu h3{display:inline-block;padding:10px 15px;background:#333;color:#fff;font-size:15px;font-weight:300;margin:0 0 0 20px;position:relative;z-index:100;top:-20px;width:185px;max-width:185px}.advert-wrap{position:relative;display:block;margin-top:-30px;height:auto;background:#fff;width:250px;min-height:250px;max-height:250px}.advert-wrap img{width:100%;height:auto;margin:0 auto;text-align:center}.sidebar-bottom-ads div{display:table-cell;width:1%;position:relative}.sidebar-bottom-ads div img{width:125px;height:125px}.sidebar-bottom-ads div:first-child{text-align:left}.sidebar-bottom-ads div:last-child{text-align:right}#adrotate_widgets-4 .g-3{width:100%;text-align:center}#adrotate_widgets-4 .g-3 img{margin:0 auto;text-align:center}.member-sidebar.columns{padding-right:0;padding-left:0}.member-sidebar{padding:400px 30px 20px 0}.member-sidebar .widget-area{font-size:14px}.member-sidebar .widget-area p{line-height:1.5;margin-bottom:10px}.member-sidebar .widget-area input[type=text],.member-sidebar .widget-area input[type=email]{width:90%;border:#939393 1px solid;border-radius:0;padding:6px 9px;font-size:12px;height:25px;border-color:#ececec}.member-sidebar .widget-area input[type=submit]{position:relative;border:#156c96 1px solid;border-radius:0;padding:6px;font-size:12px;height:25px;background:#156c96;color:#fff;box-shadow:none;text-shadow:none}.member-sidebar .widget-area .widget-container{padding:0 20px 10px 20px}.member-sidebar .widget-area .widget-title{display:inline-block;padding:10px 15px;background:#333;color:#fff;font-size:15px;font-weight:300;margin:0 0 0 20px;position:relative;z-index:100;top:-20px;width:185px;max-width:185px}.member-sidebar .widget-area .news-feed-title:before{position:absolute;font-family:'FontAwesome';top:7px;right:15px;content:"\f09e";font-size:20px}.member-sidebar .widget-area section{background:#fff;margin-bottom:60px}.member-sidebar .simple-section-nav .widget-title{display:inline-block;padding:10px 15px;background:#333;color:#fff;font-size:15px;font-weight:300;margin:0 0 0 20px;position:relative;z-index:100;top:-20px;width:185px;max-width:185px}.member-sidebar .simple-section-nav ul{list-style:none;padding-bottom:20px}.member-sidebar .simple-section-nav ul a{color:#7b7b7b}.advert-wrap{position:relative;display:block;margin-top:-30px;height:auto;background:#fff}.sticky{display:block}.hentry{margin:0 0 1.5em}.byline,.updated:not(.published){display:none}.single .byline,.group-blog .byline{display:inline}.page-content,.entry-content,.entry-summary{margin:1.5em 0 0}.page-links{clear:both;margin:0 0 1.5em}.hero-header{height:215px;background-repeat:no-repeat;background-position:0 0;background-size:100% auto;max-width:100%}@media only screen and (min-width: 40.0625em){.hero-header{height:315px}}@media only screen and (min-width: 64.0625em){.hero-header{height:415px}}.home-row.row.column{margin:0;width:auto !important}.front-main.column,.front-main.columns{width:auto;padding-left:0;padding-right:0}.front-main{padding:0;margin-top:0 !important;margin-bottom:30px}.front-main img{width:100%;height:auto;margin-bottom:10px}.front-main .front-main-left{background:#f6f6f6;margin-bottom:30px}.front-main .front-main-right{background:#f6f6f6}.front-main h2{color:#156c96;font-weight:100;font-size:28px}.front-main p{margin-bottom:0}.row.front-bottom{padding:0;margin:0}.front-bottom{padding:0;margin:0;height:325px;background-repeat:no-repeat;background-position:center center;background-size:contain;overflow:hidden;position:relative}.front-bottom .front-bottom-img-link{display:block;position:absolute;z-index:2;width:100%;height:350px}.front-bottom .front-bottom-container{display:table-cell;width:100%;vertical-align:bottom;padding-left:0;height:325px}.front-bottom h5{display:inline-block;padding:15px;background:#156c96;color:#fff;font-weight:300;text-transform:uppercase;position:relative;z-index:1001;float:left;margin:0;line-height:1}.front-bottom h5 a{color:#fff}.front-bottom p{display:inline-block;float:left;position:relative;z-index:1001;padding:18px 16px 17px 16px;background:#fff;margin:0;line-height:1;font-size:14px}.front-bottom p a{color:#7b7b7b}.royalSlider>.rsContent{visibility:hidden}.slider-header-wrap.row.column{margin:0 auto;width:auto !important}.slider-header{margin:0 0 0px 0;padding:0;background:#f6f6f6;height:auto}.front-block{background:transparent;padding:0;position:relative;z-index:1000;width:100%;top:-2px;}.front-block h3{display:inline-block;padding:8px;background:#156c96;color:#fff;font-weight:100;text-transform:uppercase;position:relative;z-index:1001;left:0 !important;margin-bottom:0px;overflow:hidden;font-size:14px;line-height:1}.front-block p{display:none}.slider-header .royalSlider{min-height:350px !important}.rsNav.rsThumbs.rsThumbsHor{visibility:hidden}.customRShome .rsOverflow,.customRShome .rsSlide{overflow:hidden;height:100% !important}@media only screen and (min-width: 40.0625em){.slider-header{margin:0;padding:0 0 0 0;background:#f6f6f6;height:auto}.customRShome .rsOverflow,.customRShome .rsSlide{overflow:hidden;height:795px !important}.front-main{padding:65px 30px 45px 30px}.front-main .front-main-left.columns{margin-bottom:0}.front-block{background:#fff;padding:25px;position:relative;z-index:1000;width:95%;display:block;top:0}.front-block h3{display:inline-block;padding:25px;background:#156c96;color:#fff;font-weight:100;text-transform:uppercase;position:relative;z-index:1001;top:-118px !important;margin-bottom:-100px;overflow:hidden;font-size:35px}.front-block p{display:block}}@media only screen and (min-width: 64.0625em){.rsNav.rsThumbs.rsThumbsHor{visibility:visible}.slider-header-wrap.row.column{margin:0 auto;padding:0 .9375rem}.home-row.row.column{margin:0 auto;padding:0 .9375rem}.front-block{background:#fff;padding:25px;position:relative;width:auto;display:block;top:0}.front-bottom{padding:0 .9375rem;margin:0;background-size:cover}.front-bottom .front-bottom-container{display:table-cell;width:1%;vertical-align:bottom;padding-left:50px}}body{top:0}.site-header.row.column{margin:0 auto;padding:0}.widget_adrotate_widgets{overflow:hidden !important}.body-content.row.column{padding-left:0;padding-right:0;margin:0 auto;background:#f6f6f6}.body-content{background:#f6f6f6}.page .entry-header{background:#156c96;position:relative;display:inline-block;z-index:100;top:30px;padding:5px 20px;height:auto;margin-bottom:15px}.page .entry-title{color:#fff;font-size:1.4rem;font-weight:100;text-transform:uppercase;line-height:1}.post-page-title{background:#156c96;position:relative;display:inline-block;z-index:100;top:30px;padding:5px 20px;height:auto;margin-bottom:15px}.post-page-title h1{color:#fff;font-size:1  .4rem;font-weight:100;text-transform:uppercase;line-height:1}.post-page-title p{color:#fff;font-size:2.4rem;font-weight:100;text-transform:uppercase;line-height:1 !important;margin:0.67em 0 !important}.news-wrapper{position:relative;margin-top:-80px}.content-area{margin:0;width:100%;padding:0}.site-main{margin:0;padding:0}.site-main article.page{margin-top:-130px}.site-main article.post{margin-top:0;margin-bottom:50px;padding-bottom:30px;border-bottom:#878787 1px solid}.site-main p{line-height:1.33}.site-main #breadcrumbs{font-size:12px;margin-top:24px}.site-search{padding:50px 20px}.site-content .widget-area{float:none;width:auto}.site-footer{clear:both;width:100%}.page-sidebar{margin-top:39px}@media only screen and (min-width: 40.0625em){#header-advert{padding:20px 0;width:728px;min-height:130px;max-height:130px}#header-advert img{width:728px;min-height:90px;max-height:90px;margin:0 auto}.page .entry-header{background:#156c96;position:relative;display:inline-block;z-index:100;top:0;padding:5px 32px;height:auto;margin-bottom:15px}.page .entry-title{color:#fff;font-size:2.4rem;font-weight:100;text-transform:uppercase;line-height:1}.site-main article.page{margin-top:-80px}.post-page-title{background:#156c96;position:relative;display:inline-block;z-index:100;top:0;padding:5px 32px;height:auto;top:-100px;margin-bottom:35px}.post-page-title h1{color:#fff;font-size:2.4rem;font-weight:100;text-transform:uppercase;line-height:1}.post-page-title p{color:#fff;font-size:2.4rem;font-weight:100;text-transform:uppercase;line-height:1 !important;margin:0.67em 0 !important}}@media only screen and (min-width: 64.0625em){.site-header.row.column{margin:0 auto;padding:0 .9375rem}.site-main{padding:0 20px 20px 70px}#breadcrumbs{margin-top:0}.post-page-title{top:-80px}}.post-page-title{background:#156c96;position:relative;display:inline-block;z-index:100;top:0;padding:5px 32px;height:auto;top:-80px;margin-bottom:35px}.post-page-title h1{color:#fff;font-size:2.4rem;font-weight:100;text-transform:uppercase;line-height:1}.post-page-title h1 a{color:#fff}.post-page-title p{color:#fff;font-size:2.4rem;font-weight:100;text-transform:uppercase;line-height:1 !important;margin:0.67em 0 !important}.news-wrapper{position:relative;margin-top:-80px}article.post{margin-top:0;margin-bottom:50px;padding-bottom:30px;border-bottom:#878787 1px solid}.tags-links,.cat-links,.posted-on,.byline,.author.vcard{font-size:12px;display:inline}.deal-wrap:nth-child(odd){clear:both !important;}.deals-list .deal.hentry{padding:15px;border:#7b7b7b 1px solid;background:#fff;}.deals-list .deal.hentry img{margin:0 0 10px 0;width:100%;height:auto}.deals-list .deal.hentry p{font-size:13px}.deals-list .deal.hentry h2{color:#2d7ba1}.deals-list .deal.hentry .entry-meta{font-size:12px}.deal.hentry{padding:15px;border:#7b7b7b 1px solid;background:#fff}.deal.hentry img{margin:0 0 10px 0;max-width:100%;height:auto}.deal.hentry h1{color:#2d7ba1}.deal.hentry .entry-meta{font-size:12px}@media only screen and (min-width: 64.0625em){.deals-list .deal-wrap{float:left;position:relative;width:47%;margin:0 3% 0 0}.deals-list .deal.hentry{padding:15px;border:#7b7b7b 1px solid;background:#fff;}}.directory-list{list-style:none;margin:30px 0 0;padding:0;width:100%}.directory-list li{width:100%;float:none;position:relative;margin:0 0 30px}.directory-list li div,.directory-list li a.img-link{height:190px;width:1%;margin:0;overflow:hidden;display:table-cell;vertical-align:top;text-align:left;background-repeat:no-repeat;background-position:center center;background-size:cover}.directory-list li span.list-title-link{text-transform:uppercase;color:#fff;font-size:28px;line-height:1;text-shadow:0 0 3px #000;display:block;padding:20px;font-weight:700;width:100%;height:190px;background:rgba(255,255,255,0)}.directory-list li a.img-link:hover span.list-title-link{text-shadow:0 0 3px rgba(0,0,0,0.6);background:rgba(255,255,255,0.3)}.directory-list li:nth-child(odd){width:100%;clear:none;float:none;padding:0;margin:0 0 30px 0}.directory-list li:nth-child(even){width:100%;margin:0 0 30px 0;float:none}#SFpne .gm-style{pointer-events:none}@media only screen and (min-width: 40.0625em){#SFpne .gm-style{pointer-events:auto}.directory-list li:nth-child(odd){width:47%;clear:left;float:left;padding:0;margin:0 1.5% 30px 0}.directory-list li:nth-child(even){width:48%;margin:0 0 30px 1.5%;float:left}}.page-sidebar .event-list-wrap{padding:0;margin:0 0 10px 0;position:relative}.page-sidebar .event-list-wrap h3{font-size:20px}.page-sidebar .events-row{padding:0}.ui-widget-header{border:1px solid #fff !important;background:#2d7ba1 !important}#ui-datepicker-div{z-index:101 !important}.em-search-wrapper p{display:inline !important;line-height:1}input.em-events-search-text.em-search-text,input.em-search-geo,input.em-date-input-loc.em-date-start.hasDatepicker,input.em-date-input-loc.em-date-end.hasDatepicker{display:inline-block !important}button.em-search-submit{display:inline-block !important}div.css-search div.em-search-main .em-search-submit{background:#2d7ba1;display:inline-block !important}div.css-search div.em-search-main .em-search-submit:hover{background:#004260}.em-search-town select{padding-right:30px !important}.events-row{padding:15px 0;text-align:left;vertical-align:top;font-size:14px}.events-row p img{float:left;position:relative;width:300px;height:auto;margin:0 15px 15px 0;display:inline-block}.event-img{max-width:40%}.event-map{position:relative;padding-bottom:75%;height:0;overflow:hidden}.event-map iframe{position:absolute;top:0;left:0;width:100% !important;height:100% !important}.event-cost{display:inline-block;padding:5px;position:absolute;top:15px;right:15px;color:#fff;background:#2d7ba1;max-width:23%}.event-list-wrap{padding:15px;border:#f6f6f6 1px solid;background:#fff;margin:0 0 20px 0;position:relative}.event-list-wrap h3{width:66%}.css-events-list p{clear:both}.em-pagination .page-numbers{display:inline-block;padding:8px;background:#156c96;color:#fff}.em-pagination .page-numbers:hover,.em-pagination .page-numbers.current{background:#004260}img.size-medium{max-width:100%;width:100%;margin-bottom:25px}@media only screen and (min-width: 40.0625em){.event-map{position:relative;padding-bottom:40%;height:0;overflow:hidden}img.size-medium{width:50%}}.blog .format-aside .entry-title,.archive .format-aside .entry-title{display:none}.comment-content a{word-wrap:break-word}.bypostauthor{display:block}.footer.row.column{margin:0 auto;padding:0}.site-footer{background:#333;padding:40px 15px 25px 15px}.site-footer #footer-left,.site-footer #footer-right{list-style:none;margin-left:0;font-size:12px}.site-footer #footer-left a,.site-footer #footer-right a{color:#7b7b7b}.site-footer #footer-left a:hover,.site-footer #footer-right a:hover{color:#fff}.site-footer .footer-signup{position:relative}.site-footer .footer-signup p,.site-footer .footer-signup h6{color:#7b7b7b;font-size:12px;margin-bottom:5px}.site-footer .footer-signup input[type=text],.site-footer .footer-signup input[type=email]{width:100% !important;border:#939393 1px solid;border-radius:0;padding:6px 9px;font-size:12px;height:25px}.site-footer .footer-signup .gform_wrapper .top_label input.large{width:100%}.site-footer .footer-signup .gform_wrapper .gform_footer input.button,.site-footer .footer-signup .gform_wrapper .gform_footer input[type=submit],.site-footer .footer-signup input[type=submit]{border:#156c96 1px solid;border-radius:0;padding:6px;font-size:12px;height:25px;background:#156c96;color:#fff;box-shadow:none;text-shadow:none}.site-footer .footer-signup .gform_wrapper{margin:0}.site-footer .footer-signup .gform_body{float:left;position:relative;width:75% !important;margin:0;padding:0}.site-footer .footer-signup ul.gform_fields{padding-bottom:0}.site-footer .footer-signup .gform_wrapper .gform_footer{clear:none}.site-footer .footer-signup .gform_footer.top_label{padding:0;margin:8px 0 0;float:left;position:relative;width:auto}.site-footer .footer-signup .gfield_required,.site-footer .footer-signup .gform_wrapper .top_label .gfield_label{display:none}@media only screen and (min-width: 641px){.site-footer .footer-signup .gform_wrapper ul.gform_fields li.gfield{padding-right:0 !important;}}body .gform_wrapper ul li.gfield{margin-top:0 !important;padding-top:0;}.site-footer .footer-signup .footer-advert-container{position:fixed;bottom:-25px;left:auto;right:auto;height:auto;text-align:center}.site-footer .footer-signup .footer-advert{clear:both;padding:0;margin:20px auto 15px auto;min-height:41px;max-height:60px;height:60px;display:inline-block;max-width:290px;text-align:center;overflow:hidden}.site-footer .footer-signup .footer-advert p{width:100%;display:inline-block;text-align:center}.site-footer .footer-signup .footer-advert img{width:100%;max-width:100%;min-height:41px;max-height:41px;height:41px;margin:0 auto;display:inline-block;text-align:center}.site-footer .site-info p{color:#7b7b7b;padding:20px 0;font-size:12px}.site-footer .site-info p a{color:#fff;text-decoration:none}@media only screen and (min-width: 40.0625em){.site-footer .footer-signup .footer-advert-container{position:relative;bottom:auto;left:auto;right:auto;height:auto;text-align:left}.site-footer .footer-signup .footer-advert{width:468px;min-height:100%;max-height:100%;max-width:468px;height:100%;margin:0;padding:0;position:relative;clear:both !important;}.site-footer .footer-signup .footer-advert img{width:468px;max-width:468px;min-height:60px;max-height:60px;height:60px;float:left;position:relative}}@media only screen and (min-width: 64.0625em){.footer.row.column{margin:0 auto;padding:0 .9375rem}.site-footer{padding:40px 50px 25px 50px}.site-footer .footer-signup input[type=submit]{padding:6px 9px}}.infinite-scroll .posts-navigation,.infinite-scroll.neverending .site-footer{display:none}.infinity-end.neverending .site-footer{display:block}.page-content .wp-smiley,.entry-content .wp-smiley,.comment-content .wp-smiley{border:none;margin-bottom:0;margin-top:0;padding:0}embed,iframe,object{max-width:100%}.wp-caption{margin-bottom:1.5em;max-width:100%}.wp-caption img[class*="wp-image-"]{display:block;margin-left:auto;margin-right:auto}.wp-caption .wp-caption-text{margin:0.8075em 0}.wp-caption-text{text-align:center}.gallery{margin-bottom:1.5em}.gallery-item{display:inline-block;text-align:center;vertical-align:top;width:100%}.gallery-columns-2 .gallery-item{max-width:50%}.gallery-columns-3 .gallery-item{max-width:33.33%}.gallery-columns-4 .gallery-item{max-width:25%}.gallery-columns-5 .gallery-item{max-width:20%}.gallery-columns-6 .gallery-item{max-width:16.66%}.gallery-columns-7 .gallery-item{max-width:14.28%}.gallery-columns-8 .gallery-item{max-width:12.5%}.gallery-columns-9 .gallery-item{max-width:11.11%}.gallery-caption{display:block}
diff --git a/template-parts/child-pages.php b/template-parts/child-pages.php
new file mode 100644 (file)
index 0000000..d89e315
--- /dev/null
@@ -0,0 +1,18 @@
+<ul class="directory-list">
+    <?php
+
+    $mypages = get_pages('child_of='.$post->ID.'&sort_column=menu_order&parent='.$post->ID.'&hierarchical=0');
+    if($mypages) {
+        foreach($mypages as $page)
+        {
+    ?>
+        <li>
+            <a class="img-link" <?php if (has_post_thumbnail( $page->ID ) ){ ?><?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $page->ID ), 'single-post-thumbnail' ); ?><?php echo 'style="background-image:url('.$image[0].');"'; ?><?php } else { echo ' style="background-image: url('.esc_url(get_template_directory_uri()).'/img/hero-default.jpg);"';} ?> href="<?php echo get_page_link($page->ID) ?>">
+                <span class="list-title-link"><?php echo $page->post_title; ?></span>
+            </a>
+        </li>
+    <?php
+        }
+    }
+    ?>
+</ul>
\ No newline at end of file
diff --git a/template-parts/content-front.php b/template-parts/content-front.php
new file mode 100644 (file)
index 0000000..b652381
--- /dev/null
@@ -0,0 +1,27 @@
+<?php
+/**
+ * Template part for displaying page content in page.php.
+ *
+ * @link https://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package wmta
+ */
+
+?>
+
+<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> style="background:#f6f6f6;">
+
+       <?php the_content(); ?>
+       <?php
+       edit_post_link(
+                       sprintf(
+                       /* translators: %s: Name of current post */
+                                       esc_html__( 'Edit %s', 'wmta' ),
+                                       the_title( '<span class="screen-reader-text">"', '"</span>', false )
+                       ),
+                       '<span class="edit-link">',
+                       '</span>'
+       );
+       ?>
+
+</article><!-- #post-## -->
diff --git a/template-parts/content-none.php b/template-parts/content-none.php
new file mode 100644 (file)
index 0000000..e63aafc
--- /dev/null
@@ -0,0 +1,58 @@
+<?php
+/**
+ * Template part for displaying a message that posts cannot be found.
+ *
+ * @link https://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package wmta
+ */
+
+?>
+
+
+
+
+<section class="no-results not-found">
+
+
+
+
+       <div class="page-content">
+
+               <?php if ( is_search() ) : ?>
+
+
+                       <header class="page-header">
+                               <h1 class="page-title">Search results: <?php printf( esc_html__( '%s', 'wmta' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
+                       </header><!-- .page-heade-->
+
+                       <?php display_memberfindme_directory() ?>
+
+                       <header class="page-header">
+                               <h1 class="page-title"><?php esc_html_e( 'Related search results: Nothing Found', 'wmta' ); ?></h1>
+                       </header><!-- .page-header -->
+
+                       <p><?php esc_html_e( 'Sorry, but nothing matched your search terms or no search terms were found. Please try again with some different keywords.', 'wmta' ); ?></p>
+                       <?php
+
+
+               else : ?>
+
+
+                       <header class="page-header">
+                               <h1 class="page-title">Search results for: <?php printf( esc_html__( '%s', 'wmta' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
+                       </header><!-- .page-heade-->
+
+                       <?php display_memberfindme_directory() ?>
+
+                       <header class="page-header">
+                               <h1 class="page-title"><?php esc_html_e( 'Related search results: Nothing Found', 'wmta' ); ?></h1>
+                       </header><!-- .page-header -->
+
+                       <p><?php esc_html_e( 'Sorry, but nothing matched your keywords or no keywords were found. Please try again with some different keywords.', 'wmta' ); ?></p>
+                       <?php
+
+
+               endif; ?>
+       </div><!-- .page-content -->
+</section><!-- .no-results -->
diff --git a/template-parts/content-page.php b/template-parts/content-page.php
new file mode 100644 (file)
index 0000000..f111422
--- /dev/null
@@ -0,0 +1,45 @@
+<?php
+/**
+ * Template part for displaying page content in page.php.
+ *
+ * @link https://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package wmta
+ */
+
+?>
+
+<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+       <header class="entry-header">
+               <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
+       </header><!-- .entry-header -->
+
+       <?php if ( function_exists('yoast_breadcrumb') )
+       {yoast_breadcrumb('<p id="breadcrumbs">','</p>');} ?>
+
+       <div class="entry-content">
+
+               <?php
+                       the_content();
+
+                       wp_link_pages( array(
+                               'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'wmta' ),
+                               'after'  => '</div>',
+                       ) );
+               ?>
+       </div><!-- .entry-content -->
+
+       <footer class="entry-footer">
+               <?php
+                       edit_post_link(
+                               sprintf(
+                                       /* translators: %s: Name of current post */
+                                       esc_html__( 'Edit %s', 'wmta' ),
+                                       the_title( '<span class="screen-reader-text">"', '"</span>', false )
+                               ),
+                               '<span class="edit-link">',
+                               '</span>'
+                       );
+               ?>
+       </footer><!-- .entry-footer -->
+</article><!-- #post-## -->
diff --git a/template-parts/content-search.php b/template-parts/content-search.php
new file mode 100644 (file)
index 0000000..b06d7d7
--- /dev/null
@@ -0,0 +1,41 @@
+<?php
+/**
+ * Template part for displaying results in search pages.
+ *
+ * @link https://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package wmta
+ */
+
+?>
+
+<article id="post-<?php the_ID(); ?>" class="search-post">
+       <header>
+
+               <?php
+               if ( 'event' === get_post_type()):
+                       the_title( sprintf( '<h2 class="entry-title"><span>Events: </span><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
+               endif; ?>
+
+               <?php if ( 'post' === get_post_type() ) : ?>
+               <?php the_title( sprintf( '<h2 class="entry-title"><span>News: </span><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
+               <?php endif; ?>
+
+               <div class="entry-meta">
+                       <?php wmta_posted_on(); ?>
+               </div><!-- .entry-meta -->
+       </header><!-- .entry-header -->
+
+       <div class="entry-summary">
+               <?php the_excerpt(); ?>
+       </div><!-- .entry-summary -->
+
+       <footer class="entry-footer">
+               <?php wmta_entry_footer(); ?>
+       </footer><!-- .entry-footer -->
+
+       <hr>
+
+</article><!-- #post-## -->
+
+
diff --git a/template-parts/content-single.php b/template-parts/content-single.php
new file mode 100644 (file)
index 0000000..09f3d7b
--- /dev/null
@@ -0,0 +1,78 @@
+<?php
+/**
+ * Template part for displaying posts.
+ *
+ * @link https://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package wmta
+ */
+
+
+// Get current user values
+if(isset($_GET['author_name'])) :
+       $curauth = get_user_by( 'login', '' );
+else :
+       $curauth = get_userdata(intval($author));
+endif;
+
+$author_id = $curauth->ID;
+
+?>
+
+<?php if ( function_exists('yoast_breadcrumb') )
+{yoast_breadcrumb('<p id="breadcrumbs">','</p>');} ?>
+
+<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+       <header class="entry-header">
+               <?php
+                       the_title( '<h1 class="entry-title">', '</h1>' );
+
+               if ( 'post' === get_post_type() ) : ?>
+               <div class="entry-meta">
+                       <?php wmta_posted_on(); ?>
+               </div><!-- .entry-meta -->
+               <?php
+               endif; ?>
+               <?php if ( 'deal' === get_post_type() ) : ?>
+               <div class="entry-meta">
+                       <?php echo get_the_author_link(); ?></p>
+               </div><!-- .entry-meta -->
+               <?php
+               endif; ?>
+
+       </header><!-- .entry-header -->
+
+       <div class="entry-content">
+
+               <?php //Show Featured Image is post is Deal
+               if ( 'deal' === get_post_type() && has_post_thumbnail( $post->ID ) ):
+                       $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), '' );
+                       echo '<img src="'.$image[0].'" alt="'.get_the_title().'" class="alignnone" />';
+               endif; ?>
+
+               <?php
+
+                       the_content( sprintf(
+                               /* translators: %s: Name of current post. */
+                               wp_kses( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'wmta' ), array( 'span' => array( 'class' => array() ) ) ),
+                               the_title( '<span class="screen-reader-text">"', '"</span>', false )
+                       ) );
+
+                       wp_link_pages( array(
+                               'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'wmta' ),
+                               'after'  => '</div>',
+                       ) );
+               ?>
+       </div><!-- .entry-content -->
+
+       <footer class="entry-footer">
+               <?php wmta_entry_footer(); ?>
+       </footer><!-- .entry-footer -->
+
+</article><!-- #post-## -->
+
+<?php if ( 'deal' === get_post_type() ) : ?>
+       <p>Back to <a href="<?php echo get_permalink('30'); ?>"><?php echo get_the_title('30'); ?></a></p>
+       <?php
+endif; ?>
+
diff --git a/template-parts/content.php b/template-parts/content.php
new file mode 100644 (file)
index 0000000..aa56ed5
--- /dev/null
@@ -0,0 +1,36 @@
+<?php
+/**
+ * Template part for displaying posts.
+ *
+ * @link https://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package wmta
+ */
+
+?>
+
+<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+       <header class="entry-header">
+               <?php
+                       if ( is_single() ) {
+                               the_title( '<h1 class="entry-title">', '</h1>' );
+                       } else {
+                               the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
+                       }
+
+               if ( 'post' === get_post_type() ) : ?>
+               <div class="entry-meta">
+                       <?php wmta_posted_on(); ?>
+               </div><!-- .entry-meta -->
+               <?php
+               endif; ?>
+       </header><!-- .entry-header -->
+
+       <div class="entry-content">
+               <?php the_excerpt(); ?>
+       </div><!-- .entry-content -->
+
+       <footer class="entry-footer">
+               <?php wmta_entry_footer(); ?>
+       </footer><!-- .entry-footer -->
+</article><!-- #post-## -->
diff --git a/template-parts/deals-loop.php b/template-parts/deals-loop.php
new file mode 100644 (file)
index 0000000..131d9cc
--- /dev/null
@@ -0,0 +1,44 @@
+<div class="row">
+
+    <?php
+// gets regular blog posts with message if no posts available
+
+$args = array(
+    'post_type' => 'deal',
+    'orderby' => 'rand',
+    'posts_per_page' => -1,
+    'order'    => 'DESC'
+);
+$loop = new WP_Query( $args );?>
+
+<?php if ($loop->post_count == 0) { ?>
+    <p>There are no deals available.</p>
+<?php } else {
+
+    while ( $loop->have_posts() ) : $loop->the_post();
+        ?>
+
+        <div class="deal-wrap large-6 columns">
+
+            <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+                <header>
+                    <h2><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wmta' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
+                    <div class="entry-meta">
+                        <?php echo get_the_author_link(); ?></p>
+                    </div><!-- .entry-meta -->
+                </header><!-- .entry-header -->
+
+                <div class="entry-content">
+                    <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wmta' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php if (has_post_thumbnail( $post->ID ) ): $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'medium' ); echo '<img src="'.$image[0].'" alt="'.get_the_title().'" class="alignnone" />'; endif; ?></a>
+
+                    <?php the_excerpt() ?>
+                </div><!-- .entry-content -->
+
+                <div class="entry-meta">Posted on: <?php the_time('F j, Y'); ?></div>
+            </article><!-- #post-## -->
+
+        </div>
+
+    <?php endwhile; } // End the loop. ?>
+
+</div>
\ No newline at end of file
diff --git a/template-parts/main-nav.php b/template-parts/main-nav.php
new file mode 100644 (file)
index 0000000..948a901
--- /dev/null
@@ -0,0 +1,5 @@
+<nav id="site-navigation" class="main-navigation" role="navigation">
+       <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu' ) ); ?>
+</nav><!-- #site-navigation -->
+
+<a class="search-button" href="#" id="trigger-overlay"></a>
\ No newline at end of file
diff --git a/template-parts/membersonly-loop.php b/template-parts/membersonly-loop.php
new file mode 100644 (file)
index 0000000..85a460f
--- /dev/null
@@ -0,0 +1,72 @@
+<?php
+// gets regular blog posts with message if no posts available
+if ( get_query_var('paged') ) {
+       $paged = get_query_var('paged');
+} elseif ( get_query_var('page') ) { // 'page' is used instead of 'paged' on Static Front Page
+       $paged = get_query_var('page');
+} else {
+       $paged = 1;
+}
+
+$args = array(
+       'category_name' => 'members-only',
+       'sort_by' => 'post_date',
+       'posts_per_page' => 10,
+       'order'    => 'DESC',
+       'paged' => $paged
+);
+$loop = new WP_Query( $args );?>
+
+<?php if ($loop->post_count == 0) { ?>
+       <p>There are no related posts available.</p>
+<?php } else {
+
+       while ( $loop->have_posts() ) : $loop->the_post();
+               ?>
+
+               <article id="post-<?php the_ID(); ?>" class="post">
+                       <header>
+                               <?php
+                               the_title( '<h2><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
+
+                               if ( 'post' === get_post_type() ) : ?>
+                                       <div class="entry-meta">
+                                               <?php wmta_posted_on(); ?>
+                                       </div><!-- .entry-meta -->
+                                       <?php
+                               endif; ?>
+                       </header><!-- .entry-header -->
+
+                       <div class="entry-content">
+                               <?php the_excerpt(); ?>
+                       </div><!-- .entry-content -->
+
+                       <footer class="entry-footer">
+                               <?php wmta_entry_footer(); ?>
+                       </footer><!-- .entry-footer -->
+               </article><!-- #post-## -->
+
+       <?php endwhile; } // End the loop. ?>
+
+<?php if ($loop->max_num_pages > 1) : // custom pagination  ?>
+       <?php
+       $orig_query = $wp_query; // fix for pagination to work
+       $wp_query = $loop;
+       ?>
+       <nav class="prev-next-posts">
+               <div class="prev-posts-link">
+                       <?php echo get_next_posts_link( 'Older Entries', $loop->max_num_pages ); ?>
+               </div>
+               <div class="next-posts-link">
+                       <?php echo get_previous_posts_link( 'Newer Entries' ); ?>
+               </div>
+       </nav>
+       <?php
+       $wp_query = $orig_query; // fix for pagination to work
+       ?>
+<?php endif; ?>
+
+<?php
+wp_reset_postdata(); // reset the query
+
+?>
diff --git a/template-parts/press-loop.php b/template-parts/press-loop.php
new file mode 100644 (file)
index 0000000..876357b
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+// gets regular blog posts with message if no posts available
+
+$args = array(
+    'category_name' => 'west-michigan-news',
+    'sort_by' => 'post_date',
+    'posts_per_page' => -1,
+    'order'    => 'DESC'
+);
+$loop = new WP_Query( $args );?>
+
+<?php if ($loop->post_count == 0) { ?>
+    <p>There are no related posts available.</p>
+<?php } else {
+
+    while ( $loop->have_posts() ) : $loop->the_post();
+        ?>
+
+        <p><?php the_time('F j, Y'); ?>
+            <br>
+            <strong><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wmta' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?> </a></strong>
+        </p>
+
+    <?php endwhile; } // End the loop. ?>
\ No newline at end of file
diff --git a/template-parts/search-overlay.php b/template-parts/search-overlay.php
new file mode 100644 (file)
index 0000000..b22b89c
--- /dev/null
@@ -0,0 +1,155 @@
+<div class="overlay overlay-scale " id="search-overlay">
+
+    <div class="row">
+        <button type="button" class="overlay-close"></button>
+
+        <form id="search-wmta" method="get"  action="" onsubmit="event.preventDefault();">
+
+            <div><input tabindex="0" autofocus id="tag" type="search" class="search-all" value="" placeholder="Search by topic, keyword, etc." ></div>
+
+             <div class="select-wrap">
+                <div class="select-arrow">
+
+                    <select id="lbl" class="chosen-select" data-placeholder="Select a category">
+                        <option value="">Search All Categories</option>
+                        <option value="569f1813ec5a499f06831f5f">Agri-tourism &amp; Farmers Markets</option>
+                        <option value="569f16d34f952e0e62684e64">Area Information</option>
+                        <option value="569f16d94f952e0e62684e65">Arts &amp; Culture</option>
+                        <option value="569f1821ec5a49c906831f5f">Attractions</option>
+                        <option value="569f16e04f952e4562684e64">Beaches</option>
+                        <option value="569f16e64f952ec762684e64">Bed &amp; Breakfast</option>
+                        <option value="569f1864ec5a497506831f5f">Eat & Drink</option>
+                        <option value="569f186fec5a494406831f61">Boating</option>
+                        <option value="569f17354f952ec462684e65">Breweries</option>
+                        <option value="569f187dec5a49c906831f60">Campgrounds &amp; RV Parks</option>
+                        <option value="569f17404f952e4d62684e65">Casinos</option>
+                        <option value="569f17444f952e4d62684e66">Confections</option>
+                        <option value="569f17494f952e9462684e66">Cottages &amp; Cabins</option>
+                        <option value="569f1892ec5a499d06831f5f">Culinary Tours</option>
+                        <option value="569f17544f952ec562684e64">Dinner Cruises &amp; Shows</option>
+                        <option value="569f189cec5a494406831f62">Distilleries</option>
+                        <option value="569f175c4f952ee960684e64">Entertainment/Nightlife</option>
+                        <option value="569f17614f952e6d62684e64">Equestrian</option>
+                        <option value="569f17654f952e6d62684e65">Experiences &amp; Tours</option>
+                        <option value="569f17694f952ea362684e64">Festivals &amp; Fairs</option>
+                        <option value="569f176c4f952e4d62684e67">Golf</option>
+                        <option value="569f17704f952e9f62684e64">Haunted</option>
+                        <option value="569f18b8ec5a49c406831f5f">Historic Sites</option>
+                        <option value="569f17784f952e1362684e64">Hotels &amp; Motels</option>
+                        <option value="569f18c0ec5a496206831f60">Hunting &amp; Fishing</option>
+                        <option value="569f177f4f952e1362684e65">Kids Activities</option>
+                        <option value="569f17834f952ee960684e65">Local Info</option>
+                        <option value="5924621d9865a11a13e009f4">Mead</option>
+                        <option value="569f18ccec5a496406831f62">Museums</option>
+                        <option value="569f18d0ec5a49dc06831f5f">Outdoor Recreation</option>
+                        <option value="569f18d4ec5a494606831f61">Paddle Sports</option>
+                        <option value="569f17954f952ea162684e64">Places To Stay</option>
+                        <option value="569f18deec5a493d06831f60">Resorts</option>
+                        <option value="569f179d4f952ea162684e65">Restaurants</option>
+                        <option value="569f17a04f952e6862684e65">Shopping</option>
+                        <option value="569f18e8ec5a493e06831f60">Snow Sports</option>
+                        <option value="569f17a94f952e6862684e66">Spas &amp; Wellness</option>
+                        <option value="569f18f2ec5a499b06831f61">Things To Do</option>
+                        <option value="569f17b14f952e8562684e65">Transportation</option>
+                        <option value="569f17b64f952e1a62684e64">Vacation Rentals</option>
+                        <option value="569f18feec5a49af06831f5f">Vendors</option>
+                        <option value="569f1903ec5a49bf06831f5f">Water Parks</option>
+                        <option value="569f17c44f952e5b62684e64">Wedding/Event Venues</option>
+                        <option value="569f190dec5a49af06831f60">Wineries</option>
+                        <option value="569f1912ec5a49aa06831f5f">Zoos &amp; Nature Centers</option>
+
+
+                    </select>
+                </div>
+
+                 <div class="select-arrow">
+
+                     <?php select_dropdown_cities(); ?>
+
+                 </div>
+
+                 <div class="select-arrow">
+
+                     <select id="xre" class="chosen-select" data-placeholder="Select a region">
+                         <option value="">Search All Regions</option>
+                         <option value="North">North</option>
+                         <option value="Central">Central</option>
+                         <option value="South">South</option>
+                         <option value="Statewide">Statewide</option>
+                         <option value="Upper Peninsula">Upper Peninsula</option>
+
+                     </select>
+                 </div>
+
+                 <button type="submit" id="overlay_search" class="submit-close">Go!</button>
+
+            </form>
+
+
+             </div>
+
+    </div>
+
+
+
+
+    <div class="row feed_results">
+        <div class="columns large-6 overlay-news-feed">
+            <h2>What's Happening</h2>
+            <ul>
+
+                <?php
+                // gets regular blog posts with message if no posts available
+
+                $args = array(
+                    'category_name' => 'west-michigan-news',
+                    'sort_by' => 'post_date',
+                    'posts_per_page' => 3,
+                    'order'    => 'DESC'
+                );
+                $loop = new WP_Query( $args );?>
+
+                <?php if ($loop->post_count == 0) { ?>
+                    <li>There are no related posts available.</li>
+                <?php } else {
+
+                    while ( $loop->have_posts() ) : $loop->the_post();
+                        ?>
+
+                        <li>
+
+                            <h4><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wmta' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?> </a></h4>
+
+                            <?php the_excerpt('10'); ?>
+
+
+                        </li>
+
+                    <?php endwhile; } wp_reset_postdata(); // End the loop. ?>
+            </ul>
+        </div>
+
+        <div class="columns large-6 overlay-pop-search">
+            <h2 class="widget-title news-feed-title">Popular Searches</h2>
+            <div class="search-results-list">
+                <?php sm_list_popular_searches( ); ?>
+            </div>
+        </div>
+    </div>
+
+    <script>
+
+        var myEl = document.getElementById('overlay_search');
+
+        myEl.addEventListener('click', function() {window.location = '<?php esc_url( home_url());echo '/?s='; ?>' + encodeURI(document.getElementById('tag').value) + '#!directory/map/ord=rnd/tag=' + encodeURI(document.getElementById('tag').value) + '/lbl=' + encodeURI(document.getElementById('lbl').value)  + '/xlo=' + encodeURI(document.getElementById('xlo').value) + '/xre=' + encodeURI(document.getElementById('xre').value) ;
+
+
+        }, false);
+
+
+
+
+    </script>
+
+
+</div>
\ No newline at end of file
diff --git a/template-parts/top-nav.php b/template-parts/top-nav.php
new file mode 100644 (file)
index 0000000..e5e01cd
--- /dev/null
@@ -0,0 +1,18 @@
+<nav id="top-navigation" class="top-navigation row column" role="navigation">
+
+       <div class="top-menu-right">
+
+               <ul>
+                       <li><?php if( get_theme_mod( 'instagram-url') == '' ) { } else { echo '<a href="'.get_theme_mod( 'instagram-url', 'No URL has been entered.' ).'" target="_blank"><i class="fa fa-instagram"></i></a>'; }?></li>
+                       <li><?php if( get_theme_mod( 'pinterest-url') == '' ) { } else { echo '<a href="'.get_theme_mod( 'pinterest-url', 'No URL has been entered.' ).'" target="_blank"><i class="fa fa-pinterest-p"></i></a>'; }?></li>
+                       <li><?php if( get_theme_mod( 'twitter-url') == '' ) { } else { echo '<a href="'.get_theme_mod( 'twitter-url', 'No URL has been entered.' ).'" target="_blank"><i class="fa fa-icon-twitter"></i></a>'; }?></li>
+                       <li><?php if( get_theme_mod( 'facebook-url') == '' ) { } else { echo '<a href="'.get_theme_mod( 'facebook-url', 'No URL has been entered.' ).'" target="_blank"><i class="fa fa-facebook-official"></i></a>'; }?></li>
+               </ul>
+
+       </div><!-- .top-menu-right -->
+
+       <div class="top-menu-left">
+               <?php wp_nav_menu( array( 'theme_location' => 'top', 'menu_id' => 'top-menu' ) ); ?>
+       </div><!-- .top-menu-left -->
+
+</nav><!-- #site-navigation -->
\ No newline at end of file