97098577 by Jeff Balicki

config

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent b2dd3eec
1 set :application, 'commonwell-web' 1 set :application, 'commonwell-broker'
2 set :repo_url, 'git@git.gotenzing.com:commonwell/corporate-site-2013.git' 2 set :repo_url, 'git@git.gotenzing.com:commonwell/broker-site.git'
3 3
4 # Branch options 4 # Branch options
5 # Prompts for the branch name (defaults to current branch) 5 # Prompts for the branch name (defaults to current branch)
...@@ -7,7 +7,7 @@ set :repo_url, 'git@git.gotenzing.com:commonwell/corporate-site-2013.git' ...@@ -7,7 +7,7 @@ set :repo_url, 'git@git.gotenzing.com:commonwell/corporate-site-2013.git'
7 7
8 # Hardcodes branch to always be master 8 # Hardcodes branch to always be master
9 # This could be overridden in a stage config file 9 # This could be overridden in a stage config file
10 set :branch, :old_master_deploy 10 set :branch, :master
11 11
12 12
13 set :keep_releases, 2 13 set :keep_releases, 2
......
1 <?php include 'staging-lock.php'; ?>
2 <!DOCTYPE html>
3 <!--[if lt IE 7]>
4 <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes() ?>><![endif]-->
5 <!--[if IE 7]>
6 <html class="no-js lt-ie9 lt-ie8" <?php language_attributes() ?>><![endif]-->
7 <!--[if IE 8]>
8 <html class="no-js lt-ie9" <?php language_attributes() ?>><![endif]-->
9 <!--[if gt IE 8]><!-->
10 <html class="no-js" <?php language_attributes() ?>>
11 <!--<![endif]-->
12
13 <head>
14 <meta charset="<?php bloginfo('charset') ?>">
15 <meta name="google-site-verification" content="GTvP0lRrA3o8bYYjvi8LR64PZIYIPLPVyxGj9EDQm2M" />
16 <!--[if IE]>
17 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
18 <![endif]-->
19 <meta name="viewport" content="width=device-width" />
20 <meta name="facebook-domain-verification" content="yvu0p7s5ycmx5htkiw6wn8hmyb2rbo" />
21 <title><?php wp_title(' » ', true, 'right'); ?></title>
22 <script>
23 dataLayer = [{
24 'userId': '<?php echo get_current_user_id(); ?>'
25 }];
26 </script>
27 <script>
28 (function(w, d, s, l, i) {
29 w[l] = w[l] || [];
30 w[l].push({
31 'gtm.start': new Date().getTime(),
32 event: 'gtm.js'
33 });
34 var f = d.getElementsByTagName(s)[0],
35 j = d.createElement(s),
36 dl = l != 'dataLayer' ? '&l=' + l : '';
37 j.async = true;
38 j.src =
39 '//www.googletagmanager.com/gtm.js?id=' + i + dl;
40 f.parentNode.insertBefore(j, f);
41 })(window, document, 'script', 'dataLayer', 'GTM-MWQJ2F');
42 </script>
43 <link rel="shortcut icon" type="image/x-icon" href="<?php bloginfo('url'); ?>/favicon.ico">
44 <link rel="apple-touch-icon" href="<?php bloginfo('url'); ?>/apple-touch-icon.png">
45 <?php wp_head() ?>
46 </head>
47
48 <body <?php body_class() ?>>
49 <!-- Google Tag Manager -->
50 <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-MWQJ2F" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
51 <!-- End Google Tag Manager -->
52 <!--[if lt IE 7]>
53 <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
54 your browser</a> to improve your experience.</p>
55 <![endif]-->
56 <?php $current_user = wp_get_current_user(); ?>
57
58 <div id="mySidenav" class="sidenav">
59 <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
60
61 <?php wp_nav_menu(array(
62 'theme_location' => 'main-nav',
63 'container' => 'nav',
64 'menu_class' => 'sf-menu',
65 'walker' => new commonwell_walker_nav_menu
66
67 )) ?>
68
69 <a href='/wp-login.php' class='broker-login home-page-link'>Broker Login</a>
70 </div>
71 <div id="content">
72 <div id="content-wrap">
73 <header id="page-header-home">
74 <div id="other-header">
75 <div id="new-page-logo">
76 <a href="<?php bloginfo('url') ?>/" title="<?php bloginfo('name') ?> - <?php bloginfo('description') ?>">
77 <img id="otherpage-logo" src="<?php bloginfo('template_directory') ?>/images/Commonwell-logo.svg" alt="Commonwell Mutual Insurance Group logo" />
78 </a>
79
80 </div>
81 <div class="row header-row">
82 <div id='header'>
83
84 <div id="myTopnav" class="topnav">
85 <?php if(is_page_template("impact.php")){?>
86 <h1>Impact Report: <strong>2021</strong></h1>
87 <?php } ?>
88 <a href='/wp-login.php' class='broker-login home-page-link'>Broker Login</a>
89 <?php wp_nav_menu(array(
90 'theme_location' => 'main-nav',
91 'container' => 'nav',
92 'container_id' => 'primary-nav',
93 'menu_class' => 'sf-menu',
94 'walker' => new commonwell_walker_nav_menu
95
96 )) ?>
97 </div>
98
99 <span id="mobile-menu-btn" class="mobile-menu-btn" onclick="openNav()" title="menu-btn">Mobile menu link</span>
100 </div>
101 </div>
102 </div>
103 </header>
104 </div>
105 <script>
106 function toggle_mobile_menu() {
107 jQuery(document).ready(
108 function($) {
109 $(".mobile_collapse").slideToggle(300);
110
111 $("#mySidenav").removeClass('mySidenavOpen');
112 $(".people_span").removeClass('peopleOpen');
113
114 if ($("#seacrh_mobile").css('display') == 'block') {
115 $("#seacrh_mobile").slideToggle();
116 }
117 }
118 );
119 }
120
121 // Using jQuery.
122 </script>
...\ No newline at end of file ...\ No newline at end of file
1 <?php include 'staging-lock.php'; ?>
2 <!DOCTYPE html>
3 <!--[if lt IE 7]>
4 <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes() ?>><![endif]-->
5 <!--[if IE 7]>
6 <html class="no-js lt-ie9 lt-ie8" <?php language_attributes() ?>><![endif]-->
7 <!--[if IE 8]>
8 <html class="no-js lt-ie9" <?php language_attributes() ?>><![endif]-->
9 <!--[if gt IE 8]><!-->
10 <html class="no-js" <?php language_attributes() ?>><!--<![endif]-->
11 <head>
12 <meta charset="<?php bloginfo('charset') ?>">
13 <!--[if IE]>
14 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
15 <![endif]-->
16 <meta name="msvalidate.01" content="B3E2B5EE6669C2F5D3DC845DEAE3AF38" />
17 <meta name="viewport" content="width=device-width, initial-scale=1">
18 <meta name="facebook-domain-verification" content="yvu0p7s5ycmx5htkiw6wn8hmyb2rbo" />
19 <title><?php wp_title(' » ',true, 'right'); ?>The Commonwell</title>
20 <script>
21
22 dataLayer = [{
23 'userId': '<?php echo get_current_user_id(); ?>'
24 }];
25
26 </script>
27 <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
28 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
29 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
30 '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
31 })(window,document,'script','dataLayer','GTM-MWQJ2F');</script>
32
33 <link rel="shortcut icon" type="image/x-icon" href="<?php bloginfo('url'); ?>/favicon.ico">
34 <link rel="apple-touch-icon" href="<?php bloginfo('url'); ?>/apple-touch-icon.png">
35 <?php wp_head() ?>
36 </head>
37 <body <?php body_class() ?>>
38 <script>
39 var $ = jQuery;
40 </script>
41 <!-- Google Tag Manager -->
42 <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-MWQJ2F"
43 height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
44
45 <!-- End Google Tag Manager -->
46 <!--[if lt IE 7]>
47 <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
48 your browser</a> to improve your experience.</p>
49 <![endif]-->
50 <div id="content-wrap">
51 <?php if (!is_front_page()): ?>
52 <header id="page-header">
53 <div id="other-header">
54 <div id="page-logo">
55 <a href="<?php bloginfo('url') ?>"
56 title="<?php bloginfo('name') ?> - <?php bloginfo('description') ?>">
57 <img id="otherpage-logo"
58 src="<?php bloginfo('template_directory') ?>/images/Commonwell-logo.svg" width="266"
59 height="106" alt="Commonwell Mutual Insurance Group logo"/>
60 </a>
61 </div>
62
63 </div>
64 </header>
65 <?php endif; ?>
66
67
68 <?php if(is_front_page() && is_active_sidebar( 'canada-post-widget' )) : ?>
69 <div class="canada-post-strike-container">
70 <a href="javascript:void(0)" data-featherlight="#canada-post-strike-content" class="canada-post-icon-button"><div class="canada-post-logo"></div><span class="strike-notice">POSTAL STRIKE NOTICE</span></a>
71 </div>
72 <div id="canada-post-strike-content" class="canada-post-strike-content">
73 <?php dynamic_sidebar( 'canada-post-widget' ); ?>
74 </div>
75 <?php endif; ?>
76
...\ No newline at end of file ...\ No newline at end of file
1 <?php
2 /*
3 * Template Name: Home Page
4 */
5
6 get_header("home");
7
8 $product_sub_text = get_field('product_sub_text', $post->ID, true);
9 $header_part_image_mobile = get_field('mobile_header_image');
10 $anncouncement = get_field('announcements');
11 ?>
12
13 <div id="homecontent" class="home-content">
14
15 <?php if(!empty($anncouncement)) { ?>
16 <!-- Change cookie name for new banner -->
17 <div id="COVID-19-home-info-bar" class="hide"><button class="closeHomeBanner" type="button">x</button>
18 <?= $anncouncement ?></div>
19 <?php } ?>
20
21 <div id="carousel-cont">
22 <div id="carousel" class="carousel slide" data-ride="carousel" data-type="multi">
23 <div class="carousel-inner">
24
25 <div class="carousel-col">
26
27 <div class="head-image"><?= get_the_post_thumbnail() ?></div>
28
29 <div class='header-image-mobile'>
30 <img src='<?= (!empty($header_part_image_mobile)) ? $header_part_image_mobile['sizes']['large'] : "" ?>' alt="home-page"/>
31 </div>
32
33 </div>
34
35
36 </div>
37 <!-- <div class="left carousel-control" >
38 <a href="#carousel" role="button" data-slide="prev">
39 <span class="glyphicon prev-custom-control" aria-hidden="true"></span>
40 <span class="sr-only">Previous</span>
41 </a>
42 </div>
43 <div class="right carousel-control" >
44 <a href="#carousel" role="button" data-slide="next">
45 <span class="glyphicon custom-control" aria-hidden="true"></span>
46 <span class="sr-only">Next</span>
47 </a>
48 </div> -->
49 </div>
50 </div>
51 <!--
52 <div id="carouselButtons" style="display:none">
53 <button id="playButton" type="button" class="btn btn-default btn-xs">
54 <span class="glyphicon glyphicon-play"></span>
55 </button>
56 <button id="pauseButton" type="button" class="btn btn-default btn-xs">
57 <span class="glyphicon glyphicon-pause"></span>
58 </button>
59 </div> -->
60 <div class="header_tag_line"><?= get_the_content() ?></div>
61 <div class="hr"></div>
62 <div class="body-padding">
63 <div class="row product-row">
64 <h1 style='text-align:center'>PROTECT ALL YOU OWN</h1>
65 <p><?php echo $product_sub_text; ?></p>
66 </div>
67 <div class="row">
68 <?php
69 if (function_exists(clean_home_custom_menus())) {
70 clean_home_custom_menus();
71 }
72 ?>
73 </div>
74 </div>
75
76 <div class="hr"></div>
77
78 <?= get_field('care_to_grow') ?>
79
80 <?= do_shortcode('[care-to-grow]') ?>
81
82 </div>
83
84
85
86 <script>
87 jQuery(function($) {
88
89 $('#carousel').carousel({
90 interval: false,
91 pause: "false",
92 });
93
94 $('#playButton').click(function() {
95 $('#carousel').carousel('cycle');
96 });
97 $('#pauseButton').click(function() {
98 $('#carousel').carousel('pause');
99 });
100
101 setTimeout(function() {
102
103 $('#carouselButtons').hide();
104 $('#pauseButton').click();
105 if ($(window).width() < 768) {
106 $("#carousel").swiperight(function() {
107 $(this).carousel('prev');
108 });
109 $("#carousel").swipeleft(function() {
110 $(this).carousel('next');
111 });
112 };
113 if ($(window).width() > 1350) {
114 // $('#pauseButton').click();
115 // console.log('pause');
116 // $('#carouselButtons').hide();
117 $('.carousel-control a').attr('tabindex', '-1');
118 } else {
119 // console.log('play');
120 // $('#playButton').click();
121 // $('#carouselButtons').show();
122 $('.carousel-control a').attr('tabindex', '0');
123 };
124
125
126 }, 1000);
127
128
129
130 $('.head-image').attr('tabindex', '0');
131
132 });
133 </script>
134
135 <?php wp_reset_query();?>
136 <style>
137 .home-page-link {
138 display: inline-block !important;
139 }
140
141 .broker-footer-login {
142 display: none !important;
143 }
144 </style>
145
146 </div>
147
148 <?php get_footer();?>
...\ No newline at end of file ...\ No newline at end of file