Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Commonwell
/
broker-site
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
97098577
authored
2023-01-10 12:38:07 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
config
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
b2dd3eec
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
349 deletions
config/deploy.rb
wp-content/themes/commonwell-broker/header-home.php
wp-content/themes/commonwell-broker/header.php
wp-content/themes/commonwell-broker/home_page.php
config/deploy.rb
View file @
9709857
set
:application
,
'commonwell-
web
'
set
:repo_url
,
'git@git.gotenzing.com:commonwell/
corporate-site-2013
.git'
set
:application
,
'commonwell-
broker
'
set
:repo_url
,
'git@git.gotenzing.com:commonwell/
broker-site
.git'
# Branch options
# 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'
# Hardcodes branch to always be master
# This could be overridden in a stage config file
set
:branch
,
:
old_master_deploy
set
:branch
,
:
master
set
:keep_releases
,
2
...
...
wp-content/themes/commonwell-broker/header-home.php
deleted
100755 → 0
View file @
b2dd3ee
<?php
include
'staging-lock.php'
;
?>
<!DOCTYPE html>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7"
<?php
language_attributes
()
?>
><![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8"
<?php
language_attributes
()
?>
><![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9"
<?php
language_attributes
()
?>
><![endif]-->
<!--[if gt IE 8]><!-->
<html
class=
"no-js"
<?php
language_attributes
()
?>
>
<!--<![endif]-->
<head>
<meta
charset=
"
<?php
bloginfo
(
'charset'
)
?>
"
>
<meta
name=
"google-site-verification"
content=
"GTvP0lRrA3o8bYYjvi8LR64PZIYIPLPVyxGj9EDQm2M"
/>
<!--[if IE]>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<![endif]-->
<meta
name=
"viewport"
content=
"width=device-width"
/>
<meta
name=
"facebook-domain-verification"
content=
"yvu0p7s5ycmx5htkiw6wn8hmyb2rbo"
/>
<title>
<?php
wp_title
(
' » '
,
true
,
'right'
);
?>
</title>
<script>
dataLayer = [{
'userId': '
<?php
echo
get_current_user_id
();
?>
'
}];
</script>
<script>
(
function
(
w
,
d
,
s
,
l
,
i
)
{
w
[
l
]
=
w
[
l
]
||
[];
w
[
l
].
push
({
'gtm.start'
:
new
Date
().
getTime
(),
event
:
'gtm.js'
});
var
f
=
d
.
getElementsByTagName
(
s
)[
0
],
j
=
d
.
createElement
(
s
),
dl
=
l
!=
'dataLayer'
?
'&l='
+
l
:
''
;
j
.
async
=
true
;
j
.
src
=
'//www.googletagmanager.com/gtm.js?id='
+
i
+
dl
;
f
.
parentNode
.
insertBefore
(
j
,
f
);
})(
window
,
document
,
'script'
,
'dataLayer'
,
'GTM-MWQJ2F'
);
</script>
<link
rel=
"shortcut icon"
type=
"image/x-icon"
href=
"
<?php
bloginfo
(
'url'
);
?>
/favicon.ico"
>
<link
rel=
"apple-touch-icon"
href=
"
<?php
bloginfo
(
'url'
);
?>
/apple-touch-icon.png"
>
<?php
wp_head
()
?>
</head>
<body
<?php
body_class
()
?>
>
<!-- Google Tag Manager -->
<noscript><iframe
src=
"//www.googletagmanager.com/ns.html?id=GTM-MWQJ2F"
height=
"0"
width=
"0"
style=
"display:none;visibility:hidden"
></iframe></noscript>
<!-- End Google Tag Manager -->
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
your browser</a> to improve your experience.</p>
<![endif]-->
<?php
$current_user
=
wp_get_current_user
();
?>
<div
id=
"mySidenav"
class=
"sidenav"
>
<a
href=
"javascript:void(0)"
class=
"closebtn"
onclick=
"closeNav()"
>
×
</a>
<?php
wp_nav_menu
(
array
(
'theme_location'
=>
'main-nav'
,
'container'
=>
'nav'
,
'menu_class'
=>
'sf-menu'
,
'walker'
=>
new
commonwell_walker_nav_menu
))
?>
<a
href=
'/wp-login.php'
class=
'broker-login home-page-link'
>
Broker Login
</a>
</div>
<div
id=
"content"
>
<div
id=
"content-wrap"
>
<header
id=
"page-header-home"
>
<div
id=
"other-header"
>
<div
id=
"new-page-logo"
>
<a
href=
"
<?php
bloginfo
(
'url'
)
?>
/"
title=
"
<?php
bloginfo
(
'name'
)
?>
-
<?php
bloginfo
(
'description'
)
?>
"
>
<img
id=
"otherpage-logo"
src=
"
<?php
bloginfo
(
'template_directory'
)
?>
/images/Commonwell-logo.svg"
alt=
"Commonwell Mutual Insurance Group logo"
/>
</a>
</div>
<div
class=
"row header-row"
>
<div
id=
'header'
>
<div
id=
"myTopnav"
class=
"topnav"
>
<?php
if
(
is_page_template
(
"impact.php"
)){
?>
<h1>
Impact Report:
<strong>
2021
</strong></h1>
<?php
}
?>
<a
href=
'/wp-login.php'
class=
'broker-login home-page-link'
>
Broker Login
</a>
<?php
wp_nav_menu
(
array
(
'theme_location'
=>
'main-nav'
,
'container'
=>
'nav'
,
'container_id'
=>
'primary-nav'
,
'menu_class'
=>
'sf-menu'
,
'walker'
=>
new
commonwell_walker_nav_menu
))
?>
</div>
<span
id=
"mobile-menu-btn"
class=
"mobile-menu-btn"
onclick=
"openNav()"
title=
"menu-btn"
>
Mobile menu link
</span>
</div>
</div>
</div>
</header>
</div>
<script>
function
toggle_mobile_menu
()
{
jQuery
(
document
).
ready
(
function
(
$
)
{
$
(
".mobile_collapse"
).
slideToggle
(
300
);
$
(
"#mySidenav"
).
removeClass
(
'mySidenavOpen'
);
$
(
".people_span"
).
removeClass
(
'peopleOpen'
);
if
(
$
(
"#seacrh_mobile"
).
css
(
'display'
)
==
'block'
)
{
$
(
"#seacrh_mobile"
).
slideToggle
();
}
}
);
}
// Using jQuery.
</script>
\ No newline at end of file
wp-content/themes/commonwell-broker/header.php
deleted
100755 → 0
View file @
b2dd3ee
<?php
include
'staging-lock.php'
;
?>
<!DOCTYPE html>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7"
<?php
language_attributes
()
?>
><![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8"
<?php
language_attributes
()
?>
><![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9"
<?php
language_attributes
()
?>
><![endif]-->
<!--[if gt IE 8]><!-->
<html
class=
"no-js"
<?php
language_attributes
()
?>
>
<!--<![endif]-->
<head>
<meta
charset=
"
<?php
bloginfo
(
'charset'
)
?>
"
>
<!--[if IE]>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<![endif]-->
<meta
name=
"msvalidate.01"
content=
"B3E2B5EE6669C2F5D3DC845DEAE3AF38"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"facebook-domain-verification"
content=
"yvu0p7s5ycmx5htkiw6wn8hmyb2rbo"
/>
<title>
<?php
wp_title
(
' » '
,
true
,
'right'
);
?>
The Commonwell
</title>
<script>
dataLayer = [{
'userId': '
<?php
echo
get_current_user_id
();
?>
'
}];
</script>
<script>
(
function
(
w
,
d
,
s
,
l
,
i
){
w
[
l
]
=
w
[
l
]
||
[];
w
[
l
].
push
({
'gtm.start'
:
new
Date
().
getTime
(),
event
:
'gtm.js'
});
var
f
=
d
.
getElementsByTagName
(
s
)[
0
],
j
=
d
.
createElement
(
s
),
dl
=
l
!=
'dataLayer'
?
'&l='
+
l
:
''
;
j
.
async
=
true
;
j
.
src
=
'//www.googletagmanager.com/gtm.js?id='
+
i
+
dl
;
f
.
parentNode
.
insertBefore
(
j
,
f
);
})(
window
,
document
,
'script'
,
'dataLayer'
,
'GTM-MWQJ2F'
);
</script>
<link
rel=
"shortcut icon"
type=
"image/x-icon"
href=
"
<?php
bloginfo
(
'url'
);
?>
/favicon.ico"
>
<link
rel=
"apple-touch-icon"
href=
"
<?php
bloginfo
(
'url'
);
?>
/apple-touch-icon.png"
>
<?php
wp_head
()
?>
</head>
<body
<?php
body_class
()
?>
>
<script>
var
$
=
jQuery
;
</script>
<!-- Google Tag Manager -->
<noscript><iframe
src=
"//www.googletagmanager.com/ns.html?id=GTM-MWQJ2F"
height=
"0"
width=
"0"
style=
"display:none;visibility:hidden"
></iframe></noscript>
<!-- End Google Tag Manager -->
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
your browser</a> to improve your experience.</p>
<![endif]-->
<div
id=
"content-wrap"
>
<?php
if
(
!
is_front_page
())
:
?>
<header
id=
"page-header"
>
<div
id=
"other-header"
>
<div
id=
"page-logo"
>
<a
href=
"
<?php
bloginfo
(
'url'
)
?>
"
title=
"
<?php
bloginfo
(
'name'
)
?>
-
<?php
bloginfo
(
'description'
)
?>
"
>
<img
id=
"otherpage-logo"
src=
"
<?php
bloginfo
(
'template_directory'
)
?>
/images/Commonwell-logo.svg"
width=
"266"
height=
"106"
alt=
"Commonwell Mutual Insurance Group logo"
/>
</a>
</div>
</div>
</header>
<?php
endif
;
?>
<?php
if
(
is_front_page
()
&&
is_active_sidebar
(
'canada-post-widget'
))
:
?>
<div
class=
"canada-post-strike-container"
>
<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>
</div>
<div
id=
"canada-post-strike-content"
class=
"canada-post-strike-content"
>
<?php
dynamic_sidebar
(
'canada-post-widget'
);
?>
</div>
<?php
endif
;
?>
\ No newline at end of file
wp-content/themes/commonwell-broker/home_page.php
deleted
100644 → 0
View file @
b2dd3ee
<?php
/*
* Template Name: Home Page
*/
get_header
(
"home"
);
$product_sub_text
=
get_field
(
'product_sub_text'
,
$post
->
ID
,
true
);
$header_part_image_mobile
=
get_field
(
'mobile_header_image'
);
$anncouncement
=
get_field
(
'announcements'
);
?>
<div
id=
"homecontent"
class=
"home-content"
>
<?php
if
(
!
empty
(
$anncouncement
))
{
?>
<!-- Change cookie name for new banner -->
<div
id=
"COVID-19-home-info-bar"
class=
"hide"
><button
class=
"closeHomeBanner"
type=
"button"
>
x
</button>
<?=
$anncouncement
?>
</div>
<?php
}
?>
<div
id=
"carousel-cont"
>
<div
id=
"carousel"
class=
"carousel slide"
data-ride=
"carousel"
data-type=
"multi"
>
<div
class=
"carousel-inner"
>
<div
class=
"carousel-col"
>
<div
class=
"head-image"
>
<?=
get_the_post_thumbnail
()
?>
</div>
<div
class=
'header-image-mobile'
>
<img
src=
'
<?=
(
!
empty
(
$header_part_image_mobile
))
?
$header_part_image_mobile
[
'sizes'
][
'large'
]
:
""
?>
'
alt=
"home-page"
/>
</div>
</div>
</div>
<!-- <div class="left carousel-control" >
<a href="#carousel" role="button" data-slide="prev">
<span class="glyphicon prev-custom-control" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
</div>
<div class="right carousel-control" >
<a href="#carousel" role="button" data-slide="next">
<span class="glyphicon custom-control" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div> -->
</div>
</div>
<!--
<div id="carouselButtons" style="display:none">
<button id="playButton" type="button" class="btn btn-default btn-xs">
<span class="glyphicon glyphicon-play"></span>
</button>
<button id="pauseButton" type="button" class="btn btn-default btn-xs">
<span class="glyphicon glyphicon-pause"></span>
</button>
</div> -->
<div
class=
"header_tag_line"
>
<?=
get_the_content
()
?>
</div>
<div
class=
"hr"
></div>
<div
class=
"body-padding"
>
<div
class=
"row product-row"
>
<h1
style=
'text-align:center'
>
PROTECT ALL YOU OWN
</h1>
<p>
<?php
echo
$product_sub_text
;
?>
</p>
</div>
<div
class=
"row"
>
<?php
if
(
function_exists
(
clean_home_custom_menus
()))
{
clean_home_custom_menus
();
}
?>
</div>
</div>
<div
class=
"hr"
></div>
<?=
get_field
(
'care_to_grow'
)
?>
<?=
do_shortcode
(
'[care-to-grow]'
)
?>
</div>
<script>
jQuery
(
function
(
$
)
{
$
(
'#carousel'
).
carousel
({
interval
:
false
,
pause
:
"false"
,
});
$
(
'#playButton'
).
click
(
function
()
{
$
(
'#carousel'
).
carousel
(
'cycle'
);
});
$
(
'#pauseButton'
).
click
(
function
()
{
$
(
'#carousel'
).
carousel
(
'pause'
);
});
setTimeout
(
function
()
{
$
(
'#carouselButtons'
).
hide
();
$
(
'#pauseButton'
).
click
();
if
(
$
(
window
).
width
()
<
768
)
{
$
(
"#carousel"
).
swiperight
(
function
()
{
$
(
this
).
carousel
(
'prev'
);
});
$
(
"#carousel"
).
swipeleft
(
function
()
{
$
(
this
).
carousel
(
'next'
);
});
};
if
(
$
(
window
).
width
()
>
1350
)
{
// $('#pauseButton').click();
// console.log('pause');
// $('#carouselButtons').hide();
$
(
'.carousel-control a'
).
attr
(
'tabindex'
,
'-1'
);
}
else
{
// console.log('play');
// $('#playButton').click();
// $('#carouselButtons').show();
$
(
'.carousel-control a'
).
attr
(
'tabindex'
,
'0'
);
};
},
1000
);
$
(
'.head-image'
).
attr
(
'tabindex'
,
'0'
);
});
</script>
<?php
wp_reset_query
();
?>
<style>
.home-page-link
{
display
:
inline-block
!important
;
}
.broker-footer-login
{
display
:
none
!important
;
}
</style>
</div>
<?php
get_footer
();
?>
\ No newline at end of file
Please
register
or
sign in
to post a comment