Index: site-template/themes/tags/twentyseventeen-1.0/functions.php =================================================================== diff -u -r1411 -r1417 --- site-template/themes/tags/twentyseventeen-1.0/functions.php (.../functions.php) (revision 1411) +++ site-template/themes/tags/twentyseventeen-1.0/functions.php (.../functions.php) (revision 1417) @@ -585,3 +585,97 @@ * SVG icons functions and filters. */ require get_parent_theme_file_path( '/inc/icon-functions.php' ); + +/** + * Method to Generate Carousal + * @param $sliderField + * @return string + */ +function generate_bgcarousel($sliderField) +{ + + $carousel = ''; + $status = ''; + + $carousel .= ''; + } + + return $carousel; +} Index: site-template/themes/tags/twentyseventeen-1.0/page-location.php =================================================================== diff -u --- site-template/themes/tags/twentyseventeen-1.0/page-location.php (revision 0) +++ site-template/themes/tags/twentyseventeen-1.0/page-location.php (revision 1417) @@ -0,0 +1,18 @@ + +
+
+
+ +
+
+
+ + + + +wp_head(); ?> + > @@ -34,6 +48,11 @@ Index: site-template/themes/tags/twentyseventeen-1.0/page-companies.php =================================================================== diff -u --- site-template/themes/tags/twentyseventeen-1.0/page-companies.php (revision 0) +++ site-template/themes/tags/twentyseventeen-1.0/page-companies.php (revision 1417) @@ -0,0 +1,41 @@ + + +
+
+ +
+
+ +
Index: site-template/themes/tags/twentyseventeen-1.0/template-parts/footer/footer-widgets.php =================================================================== diff -u --- site-template/themes/tags/twentyseventeen-1.0/template-parts/footer/footer-widgets.php (revision 0) +++ site-template/themes/tags/twentyseventeen-1.0/template-parts/footer/footer-widgets.php (revision 1417) @@ -0,0 +1,47 @@ + + + + + + + Index: site-template/themes/tags/twentyseventeen-1.0/page-contact.php =================================================================== diff -u --- site-template/themes/tags/twentyseventeen-1.0/page-contact.php (revision 0) +++ site-template/themes/tags/twentyseventeen-1.0/page-contact.php (revision 1417) @@ -0,0 +1,167 @@ + +error; + $CAPTCHA_error = true; + } else { + if (empty($_POST['form_name']) || empty($_POST['form_emailAddress']) || empty($_POST['form_subject']) || empty($_POST['form_message'])) { + $errorSummary .= 'Please fill in all required fields!'; + } else { + if (!array_key_exists('NEW_MEDIATOR_PATH', $_SERVER)) { + $_SERVER['NEW_MEDIATOR_PATH'] = getenv('NEW_MEDIATOR_PATH'); + } + $url = $_SERVER['NEW_MEDIATOR_PATH'] . 'domain/26/form/' . $formKey . '/submit'; + + $fields = array( + 'form_1_name' => sanitize_text_field($_POST["form_name"]), + 'form_2_emailAddress' => sanitize_email($_POST["form_emailAddress"]), + 'form_3_subject' => sanitize_text_field($_POST["form_subject"]), + 'form_4_message' => sanitize_text_field($_POST["form_message"]) + ); + $data = array( + 'timeout' => 30, + "body" => http_build_query($fields) + ); + + $result = wp_remote_post($url, $data); + $resultMsg = json_decode($result['body'], true); + + if (!is_wp_error($result) && $result['response']['code'] == 200) { + $formSuccess = true; + } else { + $errorSummary = mr_handle_post_error($resultMsg); + } + } + } +} + +function mr_handle_post_error($message) +{ + $errorSummary = ''; + $errorResults = array_unique($message); + if ($errorResults) { + foreach ($errorResults as $results) { + foreach($results as $res) { + $errorSummary .= $res['text']; + } + } + } else { + $errorSummary .= 'We\'re sorry, there was a server error. Please try again later.'; + } + return $errorSummary; +} + +$sliderField = get_field('slider'); +get_header(); +?> + +
+
+
+
+

Contact Us

+
+ + + +
+
+
+ +
+
+ +
+
+ +
+ + + +
+ +
+
+
+ +
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+ +
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+ +
+

Your Message Has Been Sent

+

Thank you for contacting us. We have received your submission and will respond as soon as possible. Click here to go back and send us another message

+
+ +
+
+
+ + +
+ + +
+ + + + + Index: site-template/themes/tags/twentyseventeen-1.0/template-parts/footer/site-info.php =================================================================== diff -u --- site-template/themes/tags/twentyseventeen-1.0/template-parts/footer/site-info.php (revision 0) +++ site-template/themes/tags/twentyseventeen-1.0/template-parts/footer/site-info.php (revision 1417) @@ -0,0 +1,14 @@ + + Index: site-template/themes/tags/twentyseventeen-1.0/style.css =================================================================== diff -u -r1412 -r1417 --- site-template/themes/tags/twentyseventeen-1.0/style.css (.../style.css) (revision 1412) +++ site-template/themes/tags/twentyseventeen-1.0/style.css (.../style.css) (revision 1417) @@ -1005,7 +1005,7 @@ cursor: pointer; display: inline-block; font-size: 14px; - font-size: 0.875rem; + /*font-size: 0.875rem;*/ font-weight: 800; line-height: 1; padding: 1em 2em; @@ -1773,9 +1773,9 @@ 13.2 Front Page --------------------------------------------------------------*/ -.twentyseventeen-front-page .site-content { - padding: 0; -} +/*.twentyseventeen-front-page .site-content {*/ + /*padding: 0;*/ +/*}*/ .twentyseventeen-panel { overflow: hidden; @@ -1868,7 +1868,7 @@ } .site-content { - padding: 2.5em 0 0; + /*padding: 2.5em 0 0;*/ } /*-------------------------------------------------------------- @@ -2278,7 +2278,7 @@ } .page:not(.home) #content { - padding-bottom: 1.5em; + /*padding-bottom: 1.5em;*/ } /* 404 page */ @@ -2297,19 +2297,19 @@ --------------------------------------------------------------*/ .site-footer { - border-top: 1px solid #eee; + border-top: 3px solid #eee; } .site-footer .wrap { - padding-bottom: 1.5em; + /*padding-bottom: 1.5em;*/ padding-top: 2em; } /* Footer widgets */ .site-footer .widget-area { - padding-bottom: 2em; - padding-top: 2em; + /*padding-bottom: 2em;*/ + /*padding-top: 2em;*/ } /* Social nav */ @@ -2357,8 +2357,8 @@ /* Site info */ .site-info { - font-size: 14px; - font-size: 0.875rem; + font-size: 12px; + /*font-size: 0.875rem;*/ margin-bottom: 1em; } @@ -3300,7 +3300,7 @@ .site-footer { font-size: 16px; - font-size: 1rem; + /*font-size: 1rem;*/ } /* Gallery Columns */ @@ -3779,7 +3779,7 @@ /* Posts */ .site-content { - padding: 5.5em 0 0; + padding: 103px 0 0; } .single-post .entry-title, @@ -3941,7 +3941,7 @@ } .page:not(.home) #content { - padding-bottom: 3.25em; + /*padding-bottom: 3.25em;*/ } /* 404 page */ @@ -3996,17 +3996,17 @@ h2.widget-title { font-size: 11px; - font-size: 0.6875rem; + /*font-size: 0.6875rem;*/ margin-bottom: 2em; } /* Footer */ .site-footer { font-size: 14px; - font-size: 0.875rem; + /*font-size: 0.875rem;*/ line-height: 1.6; - margin-top: 3em; + /*margin-top: 3em;*/ } .site-footer .widget-column.footer-widget-1 { @@ -4016,24 +4016,28 @@ .site-footer .widget-column.footer-widget-2 { float: right; - width: 58%; + /*width: 58%;*/ + width: 20%; } .social-navigation { clear: left; float: left; margin-bottom: 0; - width: 36%; + /*width: 36%;*/ + margin-left:-5px; } .site-info { - float: left; + /*float: left;*/ padding: 0.7em 0 0; - width: 58%; + /*width: 58%;*/ + text-align: center; + clear: both; } .social-navigation + .site-info { - margin-left: 6%; + /*margin-left: 6%;*/ } .site-info .sep { @@ -4321,18 +4325,19 @@ } footer { - font-size: 12pt; - margin-top: 100px; + /*font-size: 12pt;*/ + /*margin-top: 100px;*/ + margin-top: 20px; font-family: Arial, Helvetica, sans-serif; - font-weight: bold; + /*font-weight: bold;*/ } /*.site-content {*/ /*margin-top: 10%;*/ /*}*/ .front-page { - margin-top: 10%; + /*margin-top: 10%;*/ } .social_logos { @@ -4388,11 +4393,183 @@ } .site-footer { - display: none !important; + /*display: none !important;*/ } +.carousel-overlay { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + height: 100%; + width: 100%; + opacity: 1; + transition: .5s ease; +} + +.carousel-overlay h3:after { + content: ""; + display: block; + margin: 0 auto; + width: 35%; + padding-top: 20px; + border-bottom: 2px solid white; +} + +.text-header { + position: absolute; + top: 50%; + left: 50%; + color: #fff; + transform: translate(-50%, -50%); + -ms-transform: translate(-50%, -50%); + text-align: center; + font-size: 30px; +} + + +.text-header-mobile { + position: absolute; + top: 50%; + left: 50%; + color: #fff; + transform: translate(-50%, -50%); + -ms-transform: translate(-50%, -50%); + text-align: center; + opacity: 1; + transition: .5s ease; + font-size: 10px; +} + +.text-header-mobile h3 { + font-size: 16px; +} + +.carousel-overlay h3 { + font-weight: bold; + font-size: 32px; +} + +.imgGridBlock .row { + display: flex; + flex-wrap: wrap; + padding: 0 4px; +} + +.imgGridBlock .column { + flex: 20%; + max-width: 20%; + padding: 0 4px; +} + +.imgGridBlock .column img { + margin-top: 8px; + vertical-align: middle; +} + + + + +.navigation-top .custom-logo-link { + display:none; + float:left; +} + +.site-navigation-fixed .custom-logo-link { + display:block !important; +} + +/*.site-navigation-fixed instead of .navigation-top*/ +.site-navigation-fixed #site-navigation{ + clear:none; + float:right; + margin-top: 25px; +} + +#menu-social-links-menu a:hover, #menu-social-links-menu a:focus { + color: #fff; +} + +.widget a, +.site-footer .widget-area a { + box-shadow: none !important; + color: #333; +} + +.widget a, +.site-footer .widget-area a:hover { + color: #222; +} + +.page:not(.home) #content { + min-height: 450px; +} + +.companiesContainer { + margin-top: 150px; +} + +.logoCol { + margin-bottom: 20px; +} + +a, a:hover, a:focus { + box-shadow: none !important; +} + +.contactDiv .required label:after { + content: "*"; + color: #c22327; + font-size: 18px; +} + +.site-footer .social-navigation a { + color: #fff !important; +} +.site-footer .widget { + padding-bottom:0 !important; +} + + @media screen and (max-width: 767px) { .menu-toggle { font-size: 14px !important; } + + .navigation-top .custom-logo-link{ + display: block; + } + + .custom-logo-link img { + max-height: 50px !important; + width: auto; + } + .site-navigation-fixed #site-navigation { + margin-top: 0; + float: none; + clear: none; + } + .navigation-top .main-navigation { + clear: none; + } + .widget { + padding-bottom: 0; + } + + .site-info { + font-size: 10px; + } + + h2.widget-title { + font-size: 11px; + } + + .page:not(.home) #content { + min-height: 250px; + } + + .companiesContainer { + margin-top: 95px; + } } \ No newline at end of file Index: site-template/themes/tags/twentyseventeen-1.0/assets/js/global.js =================================================================== diff -u --- site-template/themes/tags/twentyseventeen-1.0/assets/js/global.js (revision 0) +++ site-template/themes/tags/twentyseventeen-1.0/assets/js/global.js (revision 1417) @@ -0,0 +1,250 @@ +/* global twentyseventeenScreenReaderText */ +(function( $ ) { + + // Variables and DOM Caching. + var $body = $( 'body' ), + $customHeader = $body.find( '.custom-header' ), + $branding = $customHeader.find( '.site-branding' ), + $navigation = $body.find( '.navigation-top' ), + $navWrap = $navigation.find( '.wrap' ), + // $navMenuItem = $navigation.find( '.menu-item' ), + $navMenuItem = $navigation.find( '.custom-logo-link' ), + $menuToggle = $navigation.find( '.menu-toggle' ), + $menuScrollDown = $body.find( '.menu-scroll-down' ), + $sidebar = $body.find( '#secondary' ), + $entryContent = $body.find( '.entry-content' ), + $formatQuote = $body.find( '.format-quote blockquote' ), + isFrontPage = $body.hasClass( 'twentyseventeen-front-page' ) || $body.hasClass( 'home blog' ), + navigationFixedClass = 'site-navigation-fixed', + navigationHeight, + navigationOuterHeight, + navPadding, + navMenuItemHeight, + idealNavHeight, + navIsNotTooTall, + headerOffset, + menuTop = 0, + resizeTimer; + + // Ensure the sticky navigation doesn't cover current focused links. + $( 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex], [contenteditable]', '.site-content-contain' ).filter( ':visible' ).focus( function() { + if ( $navigation.hasClass( 'site-navigation-fixed' ) ) { + var windowScrollTop = $( window ).scrollTop(), + fixedNavHeight = $navigation.height(), + itemScrollTop = $( this ).offset().top, + offsetDiff = itemScrollTop - windowScrollTop; + + // Account for Admin bar. + if ( $( '#wpadminbar' ).length ) { + offsetDiff -= $( '#wpadminbar' ).height(); + } + + if ( offsetDiff < fixedNavHeight ) { + $( window ).scrollTo( itemScrollTop - ( fixedNavHeight + 50 ), 0 ); + } + } + }); + + // Set properties of navigation. + function setNavProps() { + navigationHeight = $navigation.height(); + navigationOuterHeight = $navigation.outerHeight(); + navPadding = parseFloat( $navWrap.css( 'padding-top' ) ) * 2; + navMenuItemHeight = $navMenuItem.outerHeight() * 2; + idealNavHeight = navPadding + navMenuItemHeight; + navIsNotTooTall = navigationHeight <= idealNavHeight; + } + + // Make navigation 'stick'. + function adjustScrollClass() { + + // Make sure we're not on a mobile screen. + if ( 'none' === $menuToggle.css( 'display' ) ) { + + // Make sure the nav isn't taller than two rows. + if ( navIsNotTooTall ) { + + // When there's a custom header image or video, the header offset includes the height of the navigation. + if ( isFrontPage && ( $body.hasClass( 'has-header-image' ) || $body.hasClass( 'has-header-video' ) ) ) { + headerOffset = $customHeader.innerHeight() - navigationOuterHeight; + } else { + headerOffset = $customHeader.innerHeight(); + } + + // If the scroll is more than the custom header, set the fixed class. + if ( $( window ).scrollTop() >= headerOffset ) { + $navigation.addClass( navigationFixedClass ); + } else { + $navigation.removeClass( navigationFixedClass ); + } + + } else { + + // Remove 'fixed' class if nav is taller than two rows. + $navigation.removeClass( navigationFixedClass ); + } + } + } + + // Set margins of branding in header. + function adjustHeaderHeight() { + if ( 'none' === $menuToggle.css( 'display' ) ) { + + // The margin should be applied to different elements on front-page or home vs interior pages. + if ( isFrontPage ) { + $branding.css( 'margin-bottom', navigationOuterHeight ); + } else { + $customHeader.css( 'margin-bottom', navigationOuterHeight ); + } + + } else { + $customHeader.css( 'margin-bottom', '0' ); + $branding.css( 'margin-bottom', '0' ); + } + } + + // Set icon for quotes. + function setQuotesIcon() { + $( twentyseventeenScreenReaderText.quote ).prependTo( $formatQuote ); + } + + // Add 'below-entry-meta' class to elements. + function belowEntryMetaClass( param ) { + var sidebarPos, sidebarPosBottom; + + if ( ! $body.hasClass( 'has-sidebar' ) || ( + $body.hasClass( 'search' ) || + $body.hasClass( 'single-attachment' ) || + $body.hasClass( 'error404' ) || + $body.hasClass( 'twentyseventeen-front-page' ) + ) ) { + return; + } + + sidebarPos = $sidebar.offset(); + sidebarPosBottom = sidebarPos.top + ( $sidebar.height() + 28 ); + + $entryContent.find( param ).each( function() { + var $element = $( this ), + elementPos = $element.offset(), + elementPosTop = elementPos.top; + + // Add 'below-entry-meta' to elements below the entry meta. + if ( elementPosTop > sidebarPosBottom ) { + $element.addClass( 'below-entry-meta' ); + } else { + $element.removeClass( 'below-entry-meta' ); + } + }); + } + + /* + * Test if inline SVGs are supported. + * @link https://github.com/Modernizr/Modernizr/ + */ + function supportsInlineSVG() { + var div = document.createElement( 'div' ); + div.innerHTML = ''; + return 'http://www.w3.org/2000/svg' === ( 'undefined' !== typeof SVGRect && div.firstChild && div.firstChild.namespaceURI ); + } + + /** + * Test if an iOS device. + */ + function checkiOS() { + return /iPad|iPhone|iPod/.test(navigator.userAgent) && ! window.MSStream; + } + + /* + * Test if background-attachment: fixed is supported. + * @link http://stackoverflow.com/questions/14115080/detect-support-for-background-attachment-fixed + */ + function supportsFixedBackground() { + var el = document.createElement('div'), + isSupported; + + try { + if ( ! ( 'backgroundAttachment' in el.style ) || checkiOS() ) { + return false; + } + el.style.backgroundAttachment = 'fixed'; + isSupported = ( 'fixed' === el.style.backgroundAttachment ); + return isSupported; + } + catch (e) { + return false; + } + } + + // Fire on document ready. + $( document ).ready( function() { + + // If navigation menu is present on page, setNavProps and adjustScrollClass. + if ( $navigation.length ) { + setNavProps(); + adjustScrollClass(); + } + + // If 'Scroll Down' arrow in present on page, calculate scroll offset and bind an event handler to the click event. + if ( $menuScrollDown.length ) { + + if ( $( 'body' ).hasClass( 'admin-bar' ) ) { + menuTop -= 32; + } + if ( $( 'body' ).hasClass( 'blog' ) ) { + menuTop -= 30; // The div for latest posts has no space above content, add some to account for this. + } + if ( ! $navigation.length ) { + navigationOuterHeight = 0; + } + + $menuScrollDown.click( function( e ) { + e.preventDefault(); + $( window ).scrollTo( '#primary', { + duration: 600, + offset: { top: menuTop - navigationOuterHeight } + }); + }); + } + + adjustHeaderHeight(); + setQuotesIcon(); + if ( true === supportsInlineSVG() ) { + document.documentElement.className = document.documentElement.className.replace( /(\s*)no-svg(\s*)/, '$1svg$2' ); + } + + if ( true === supportsFixedBackground() ) { + document.documentElement.className += ' background-fixed'; + } + }); + + // If navigation menu is present on page, adjust it on scroll and screen resize. + if ( $navigation.length ) { + + // On scroll, we want to stick/unstick the navigation. + $( window ).on( 'scroll', function() { + adjustScrollClass(); + adjustHeaderHeight(); + }); + + // Also want to make sure the navigation is where it should be on resize. + $( window ).resize( function() { + setNavProps(); + setTimeout( adjustScrollClass, 500 ); + }); + } + + $( window ).resize( function() { + clearTimeout( resizeTimer ); + resizeTimer = setTimeout( function() { + belowEntryMetaClass( 'blockquote.alignleft, blockquote.alignright' ); + }, 300 ); + setTimeout( adjustHeaderHeight, 1000 ); + }); + + // Add header video class after the video is loaded. + $( document ).on( 'wp-custom-header-video-loaded', function() { + $body.addClass( 'has-header-video' ); + }); + +})( jQuery ); Index: site-template/themes/tags/twentyseventeen-1.0/front-page.php =================================================================== diff -u -r1416 -r1417 --- site-template/themes/tags/twentyseventeen-1.0/front-page.php (.../front-page.php) (revision 1416) +++ site-template/themes/tags/twentyseventeen-1.0/front-page.php (.../front-page.php) (revision 1417) @@ -12,26 +12,46 @@ * @version 1.0 */ -get_header(); ?> - +get_header(); +$sliderField = get_field('slider'); +$imageBlocks = get_field('image_blocks'); +?> +
-
- LeMans Corporation -

LeMans Corporation

+ -
-
- - © LEMANS CORPORATION. ALL RIGHTS RESERVED. - -
-