This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('.container').css('min-height',$(window).height()-$('.footer').outerHeight(true)+'px'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| blockquote { | |
| margin: 0.25em 0; | |
| padding: 0.35em 94px; | |
| position: relative; | |
| color: #383838; | |
| } | |
| blockquote:before { | |
| display: block; | |
| padding-left: 10px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php echo get_bloginfo('name'); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="google-translate"> | |
| <div id="google_translate_element"></div> | |
| <script>function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE }, 'google_translate_element');}</script> | |
| <script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Sticky navigation bar - Make the navigation area float after scrolling past it// | |
| var aboveHeight = $('#primary-navigation').offset().top; | |
| jQuery(window).scroll(function() { | |
| if ($(window).scrollTop() > aboveHeight) { | |
| $('nav').css({ | |
| position: 'fixed', | |
| top: 0, | |
| 'z-index': 9999 | |
| }); | |
| $('.row-3').css({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Stick the #nav to the top of the window // | |
| var nav = $('#primary-navigation'); | |
| var navHomeY = nav.offset().top; | |
| var isFixed = false; | |
| var $w = $(window); | |
| $w.scroll(function () { | |
| var scrollTop = $w.scrollTop(); | |
| var shouldBeFixed = scrollTop > navHomeY; | |
| if (shouldBeFixed && !isFixed) { | |
| nav.css({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #page div.results-grid { | |
| border-collapse: separate; | |
| display: table; | |
| width: 100%; | |
| } | |
| #page div.results-grid .results-row { | |
| display: block; | |
| width: 100%; | |
| } | |
| #page div.results-grid .result { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if (is_home() && get_option('page_for_posts') ) { | |
| $featured_image = wp_get_attachment_image_src(get_post_thumbnail_id(get_option('page_for_posts')),'full'); | |
| } else { | |
| $featured_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'featured-image', false); | |
| } | |
| if(is_front_page()) { | |
| echo do_shortcode("[metaslider id=1081]"); | |
| } elseif($featured_image) { | |
| echo '<img src="'.$featured_image[0].'" width="'.$featured_image[1].'" height="'.$featured_image[2].'" alt="'.esc_attr( get_bloginfo( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php $thumbs = glob("docs/*.{pdf,doc,docx}", GLOB_BRACE); ?> | |
| <?php | |
| if(count($thumbs)) { | |
| natcasesort($thumbs); | |
| foreach($thumbs as $thumb) { | |
| ?> | |
| <p><a href="<?php echo $thumb ?>" target="_blank"><?php echo str_replace(array('docs/','.pdf','.doc','.docx'), '', $thumb); ?></a> </p> | |
| <?php | |
| }} else { | |
| echo "Sorry, no documents to display!"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //short code maker: | |
| // reviews widget provided by customer | |
| function shortcodenamehere_function() { | |
| $text = <<<TEXT | |
| (Insert any code here) | |
| TEXT; | |
| return $text; | |
| } | |
| add_shortcode('shortcodenamehere', 'shortcodenamehere_function'); |