d589c02a by Jeremy Groot

redesign updates

1 parent 3d5667ce
Showing 25 changed files with 740 additions and 31 deletions
<?php
// Create id attribute allowing for custom "anchor" value.
$id = 'events-' . $block['id'] . rand(0,100);
if( !empty($block['anchor']) ) {
$id = $block['anchor'];
}
$events = get_field('events', 'options');
?>
<div id='<?= $id ?>' class="events-block">
<?php foreach($events as $event) {
$is_sold = $event['is_sold_out'];
$time = strtotime($event['start_date']);
$month = date('M', $time);
$day = date('d', $time);
?>
<div class='broker-event'>
<div class='be-cal'>
<div class='be-cal-month'><?= $month ?></div>
<div class='be-cal-day'><?= $day ?></div>
</div>
<div class='be-info'>
<div class="be-title"><?= $event['title'] ?></div>
<div class="be-date">Date: <?= $month . ' ' . $day . ", " . date('Y', $time) ?> | Time: <?= date('g:i A') ?> </div>
<div class="be-desc"><?= $event['description'] ?></div>
</div>
<div class='be-btn'>
<?php if($is_sold) { ?>
<a href='<?= $event['link']['url'] ?>' aria-disabled="true" class='btn-disabled' target='_blank'><?= __("REGISTRATION FULL") ?></a>
<?php } else { ?>
<a href='<?= $event['link']['url'] ?>' target='_blank'><?= __("REGISTER") ?></a>
<?php } ?>
</div>
</div>
<?php } ?>
</div>
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -9173,6 +9173,10 @@
})(window.jQuery || window.Zepto);
jQuery(document).ready(function ($) {
$('.mobile-btn').on('click', function () {
$('.col-sm-smallMenu').toggleClass('show');
});
// Hide Header on on scroll down
var didScroll;
var lastScrollTop = 0;
......@@ -22859,7 +22863,89 @@
}
});
var Responsive = function ($) {
var desk = window.matchMedia("(min-width: 768px)");
function isDesktop() {
return desk.matches;
}
function toggleMobileMenu() {
$('#navbarNavDropdown').toggleClass('show');
$('.navbar-toggler').toggleClass('active');
if ($('#navbarNavDropdown').hasClass('show')) {
$('body').addClass('locked');
} else {
$('body').removeClass('locked');
}
}
$(document).on('click', '.navbar-toggler', function () {
toggleMobileMenu();
});
function init() {
function mobilize() {
$('.col-sm-smallMenu').prepend($('#sault'));
}
desk.addEventListener('change', event => {
if (event.matches) ; else {
mobilize();
}
});
if (desk.matches) ; else {
mobilize();
}
}
return {
init: init,
isDesktop: isDesktop
};
}(jQuery);
jQuery(document).ready(Responsive.init);
function checkOffsetForTopper() {
if (jQuery('.the-topper a').offset().top + jQuery('.the-topper a').height() >= jQuery('#new-footer').offset().top - 300) jQuery('.the-topper').addClass('stopper');
if (jQuery(document).scrollTop() + window.innerHeight < jQuery('#new-footer').offset().top) jQuery('.the-topper').removeClass('stopper');
}
function getIsExternLink($link) {
$link = $link.trim();
if ($link.indexOf('brokers') === -1 && $link.indexOf('localhost') === -1 && $link.indexOf('mailto:') === -1 && $link.indexOf('tel:') === -1 && $link.indexOf('#') !== 0) {
if ($link !== "/" && $link !== "#" && $link.indexOf('/') !== 0) {
return true;
}
}
}
jQuery(document).ready(function ($) {
if ($('#page-content').outerHeight() >= 1000) {
$('#page-content').addClass('topper');
$('.the-topper').removeClass('hide');
}
$('.the-topper a').on('click', function (e) {
e.preventDefault();
$(window).scrollTop(0);
});
$('#page-content a').each(function () {
if (jQuery(this).is("a") && jQuery(this).find('.download-bar').length == 0 && jQuery(this).text().length > 4) {
var _href = jQuery(this).attr('href');
if (_href) {
if (_href.indexOf('.pdf') !== -1) {
jQuery(this).addClass('pdf');
} else if (_href.indexOf('.xls') !== -1) {
jQuery(this).addClass('xls');
} else if (_href.indexOf('mailto:') !== -1) {
jQuery(this).addClass('mailto');
} else if (_href.indexOf('tel:') !== -1) {
jQuery(this).addClass('tel');
} else if (getIsExternLink(_href)) {
console.log(jQuery(this).parent());
if (jQuery(this).parents('.entry-content').length > 0) {
jQuery(this).html(jQuery(this).html() + "&nbsp;");
}
jQuery(this).addClass('extern');
if (jQuery(this).is('a')) {
jQuery(this).attr('target', '_blank');
}
}
}
}
});
$('.favourite').on('click', function (e) {
e.preventDefault();
$(this).attr('disabled', true).addClass('loading');
......@@ -22882,6 +22968,7 @@
});
});
function scrollScripts() {
checkOffsetForTopper();
if (!jQuery('#content-wrap').hasClass('retract')) {
if (jQuery(window).scrollTop() >= 50) {
jQuery('body').addClass('retract');
......@@ -22906,7 +22993,7 @@
scrolling = false;
scrollScripts();
}
}, 250);
}, 50);
// or for modern browsers
document.addEventListener('wheel', function (evt) {
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
var Responsive = (function($) {
var desk = window.matchMedia("(min-width: 768px)");
function isDesktop() {
return desk.matches;
}
function toggleMobileMenu() {
$('#navbarNavDropdown').toggleClass('show');
$('.navbar-toggler').toggleClass('active');
if($('#navbarNavDropdown').hasClass('show')) {
$('body').addClass('locked');
} else {
$('body').removeClass('locked');
}
}
$(document).on('click', '.navbar-toggler', function() {
toggleMobileMenu();
});
function init() {
function demobilize() {
}
function mobilize() {
$('.col-sm-smallMenu').prepend($('#sault'));
}
desk.addEventListener('change', event => {
if (event.matches) {
demobilize();
} else {
mobilize();
}
});
if (desk.matches) {
// demobilize();
} else {
mobilize();
}
}
return {
init: init,
isDesktop:isDesktop,
};
}(jQuery));
jQuery(document).ready(Responsive.init);
export { Responsive };
\ No newline at end of file
......@@ -13,10 +13,64 @@ import './accessibility';
import "./_resources_list";
import "./_custom_select";
import "./_accordion";
import "./_responsive";
function checkOffsetForTopper() {
if(jQuery('.the-topper a').offset().top + jQuery('.the-topper a').height()
>= jQuery('#new-footer').offset().top - 300)
jQuery('.the-topper').addClass('stopper');
if(jQuery(document).scrollTop() + window.innerHeight < jQuery('#new-footer').offset().top)
jQuery('.the-topper').removeClass('stopper');
}
function getIsExternLink($link) {
$link = $link.trim();
if($link.indexOf('brokers') === -1 &&
$link.indexOf('localhost') === -1 && $link.indexOf('mailto:') === -1 && $link.indexOf('tel:') === -1 && $link.indexOf('#') !== 0) {
if($link !== "/" && $link !== "#" && $link.indexOf('/') !== 0) {
return true;
}
}
}
jQuery(document).ready(function($) {
if($('#page-content').outerHeight() >= 1000) {
$('#page-content').addClass('topper');
$('.the-topper').removeClass('hide');
}
jQuery(document).ready(function($) {
$('.the-topper a').on('click', function(e) {
e.preventDefault();
$(window).scrollTop(0);
});
$('#page-content a').each(function() {
if(jQuery(this).is("a") && jQuery(this).find('.download-bar').length == 0
&& jQuery(this).text().length > 4) {
var _href = jQuery(this).attr('href');
if(_href) {
if(_href.indexOf('.pdf') !== -1) {
jQuery(this).addClass('pdf');
} else if(_href.indexOf('.xls') !== -1) {
jQuery(this).addClass('xls');
} else if(_href.indexOf('mailto:') !== -1) {
jQuery(this).addClass('mailto');
} else if(_href.indexOf('tel:') !== -1) {
jQuery(this).addClass('tel');
} else if(getIsExternLink(_href)) {
console.log(jQuery(this).parent())
if(jQuery(this).parents('.entry-content').length > 0) {
jQuery(this).html(jQuery(this).html() + "&nbsp;")
}
jQuery(this).addClass('extern');
if(jQuery(this).is('a')) {
jQuery(this).attr('target','_blank');
}
}
}
}
});
$('.favourite').on('click', function(e) {
e.preventDefault();
......@@ -41,6 +95,7 @@ jQuery(document).ready(function($) {
});
function scrollScripts() {
checkOffsetForTopper();
if(!jQuery('#content-wrap').hasClass('retract')) {
if(jQuery(window).scrollTop() >= 50) {
jQuery('body').addClass('retract');
......@@ -69,7 +124,7 @@ jQuery(document).ready(function($) {
scrolling = false;
scrollScripts();
}
}, 250 );
}, 50 );
// or for modern browsers
document.addEventListener( 'wheel', function( evt ) {
......
jQuery(document).ready(
function ($) {
$('.mobile-btn').on('click', function() {
$('.col-sm-smallMenu').toggleClass('show');
});
// Hide Header on on scroll down
var didScroll;
......
.accordian {
background:#D6EAF9;
margin-bottom:2px;
a {
border: 0 !important;
padding:0 !important;
&:before {
display: none !important;
}
}
}
.accordian_title {
......@@ -20,6 +27,19 @@
color:#009ADE;
cursor: pointer;
padding-left: 1.25rem;
&:hover {
color:#000000;
.accordian_toggler {
&.active {
&:after {
background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="21.03" height="15.697" viewBox="0 0 21.03 15.697"><g id="Component_115" data-name="Component 115" transform="translate(-4)"><path id="Path_1302" data-name="Path 1302" d="M0,0V15.7H4.254V13.842H2.285V1.854H4.254V0Z" transform="translate(4 0)"/><path id="Path_1303" data-name="Path 1303" d="M10.152,8.472V6.547h8.727V8.472Z" transform="translate(0 0)"/><path id="Path_1304" data-name="Path 1304" d="M24.777,0V1.854h1.96V13.842h-1.96V15.7H29.03V0Z" transform="translate(-4 0)"/></g></svg>');
}
}
&:after {
background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="21.03" height="15.697" viewBox="0 0 21.03 15.697"><g id="Component_114" data-name="Component 114" transform="translate(-4)"><path id="Path_1302" data-name="Path 1302" d="M0,0V15.7H4.254V13.842H2.285V1.854H4.254V0Z" transform="translate(4 0)"/><path id="Path_1303" data-name="Path 1303" d="M13.553,8.472h-3.4V6.547h3.4V3.119h1.925V6.547h3.4V8.472h-3.4v3.384H13.553Z" transform="translate(0 0)"/><path id="Path_1304" data-name="Path 1304" d="M24.777,0V1.854h1.96V13.842h-1.96V15.7H29.03V0Z" transform="translate(-4 0)"/></g></svg>');
}
}
}
}
.accordian_toggler {
......@@ -59,6 +79,7 @@
height: 0;
overflow: hidden;
position: relative;
font-size: 1rem;
// &:before {
// content:'';
// width: 100%;
......@@ -82,10 +103,11 @@
&:before {
content:'';
width: 100%;
width: calc(100% - 2.25rem);
height: 1px;
background:#949598;
position: absolute;
left:0;
left:1.25rem;
top:-0.5rem;
}
&:last-child {
......
.broker-event {
display: flex;
width: 100%;
align-items: center;
margin-top:1.375rem;
.be-info {
flex:1;
align-items: center;
padding-left:1rem;
font-size: 1rem;
padding-right:2rem;
.be-title {
font-family: "Helvetica-Bold";
}
}
.be-btn {
a {
width: 254px;
padding:1.1875rem;
text-align: center;
font-family: "Helvetica";
border: 0;
background:#009ADE;
font-size: 1.25rem;
&.btn-disabled {
background:#F2F2F2;
pointer-events: none;
color:#949598;
}
&:hover {
background:#7FCCEE;
text-decoration: none;
}
&:before {
display: none;
}
}
}
.be-cal {
text-align: center;
border:6px solid #76bc21;
border-radius: 6px;
width: 92px;
height: 92px;
display: flex;
flex-direction: column;
p {
display: none;
}
.be-cal-month {
text-transform: uppercase;
color:#76bc21;
font-family: "Helvetica-Bold";
}
.be-cal-day {
border-top:6px solid #76bc21;
font-size: 40px;
font-family: "Helvetica-Bold";
flex: 1;
display: inline-flex;
align-items: center;
justify-content: center;
color:#76bc21;
}
}
}
\ No newline at end of file
@media(max-width:768px) {
#page-content {
.inner-content-wrapper {
flex-direction: column;
}
.col-sm-smallMenu {
flex-direction: column;
display: none;
top:8.25rem;
a {
width: 100%;
text-decoration: none !important;
}
.logout-btn {
width: auto;
}
.selected-arrow {
display: none;
}
&.show {
background:white;
display: block;
}
a.tab_menu img {
float: none;
}
a.tab_menu .tab_label {
float: none;
}
#sault {
padding: 1rem 0;
align-items: end;
padding-right:1.5rem;
}
}
}
.broker-event {
flex-direction: column;
text-align: center;
}
#brokercontent {
padding-top:0 !important;
margin-top:87px !important;
}
.header-title {
display: none;
}
#sault {
flex-direction: column;
}
#page-header-landing #page-logo:after {
display: none;
}
#page-header-landing #page-logo {
padding-right: 0 !important;
}
#content-wrap {
height: 6.25rem !important;
-webkit-box-shadow: 0px 2px 4px -2px #000000;
box-shadow: 0px 2px 4px -2px #000000;
padding-bottom: 0;
.mobile-btn {
width: 37px;
height: 35px;
background:url('data:image/svg+xml,<svg id="Hamburger" xmlns="http://www.w3.org/2000/svg" width="37" height="35" viewBox="0 0 37 35"><rect id="Rectangle_416" data-name="Rectangle 416" width="37" height="35" fill="%23fff"/><rect id="Rectangle_3" data-name="Rectangle 3" width="28" height="4" rx="1" transform="translate(4 5)" fill="%23009ade"/><rect id="Rectangle_4" data-name="Rectangle 4" width="28" height="4" rx="1" transform="translate(4 15)" fill="%23009ade"/><rect id="Rectangle_5" data-name="Rectangle 5" width="28" height="4" rx="1" transform="translate(4 25)" fill="%23009ade"/></svg>');
background-repeat: no-repeat;
background-size: contain;
border: 0;
position: absolute;
bottom: 1rem;
right:1rem;
}
#page-header-landing {
justify-content: center;
align-items: center;
padding-bottom: 0;
height: 100%;
}
&.retract {
top:0 !important;
& + #brokercontent {
.col-sm-smallMenu {
top:6.25rem !important;
}
}
}
}
#otherpage-logo {
min-height: auto;
}
#content-wrap #otherpage-logo {
width: 146px !important;
}
.sidebar-pullout {
display: block;
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 40px;
display: flex;
align-items: center;
background:#F2F2F2;
.pullout-btn {
border: 0;
width: 40px;
height: 40px;
background:url('data:image/svg+xml,<svg id="Button_-_Open_Team" data-name="Button - Open Team" xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><rect id="Rectangle_414" data-name="Rectangle 414" width="40" height="40" fill="%23009ade"/><g id="Group_1503" data-name="Group 1503" transform="translate(-180.822 -281.293)"><path id="Path_733" data-name="Path 733" d="M5.835,4.308c.248-.255.488-.507.734-.753Q8.241,1.886,9.916.22A.643.643,0,0,1,10.857.2c.218.2.427.419.628.639a.624.624,0,0,1-.034.868L9.416,3.742q-1.549,1.549-3.1,3.1a.685.685,0,0,1-.577.224.662.662,0,0,1-.4-.21Q3.584,5.1,1.831,3.349C1.295,2.812.762,2.272.221,1.739A.648.648,0,0,1,.18.8C.386.588.593.371.816.173a.628.628,0,0,1,.91.047Q2.566,1.057,3.4,1.9q1.185,1.18,2.373,2.357Z" transform="translate(207.891 295.293) rotate(90)"/><path id="Path_1463" data-name="Path 1463" d="M5.835,4.308c.248-.255.488-.507.734-.753Q8.241,1.886,9.916.22A.643.643,0,0,1,10.857.2c.218.2.427.419.628.639a.624.624,0,0,1-.034.868L9.416,3.742q-1.549,1.549-3.1,3.1a.685.685,0,0,1-.577.224.662.662,0,0,1-.4-.21Q3.584,5.1,1.831,3.349C1.295,2.812.762,2.272.221,1.739A.648.648,0,0,1,.18.8C.386.588.593.371.816.173a.628.628,0,0,1,.91.047Q2.566,1.057,3.4,1.9q1.185,1.18,2.373,2.357Z" transform="translate(201.891 295.293) rotate(90)"/></g></svg>');
background-repeat: no-repeat;
background-size: contain;
position: absolute;
right: 0;
}
.sidebar-title {
position: absolute;
right: 3.5rem;
font-size: 1rem;
}
}
.inner-content-wrapper {
margin-top:24px;
}
.sidebar-title {
}
.header-image {
height: 8.75rem;
}
.sidebar {
display: none;
&.show {
display: block;
}
}
}
......@@ -4,8 +4,170 @@
transition: height 0.3s;
}
table {
a {
border: 0 !important;
padding:0 !important;
&:before {
top:auto !important;
left: auto !important;
}
}
}
.sidebar-pullout {
display: none;
}
.stk-block-carousel__button.stk-block-carousel__button__next {
position: absolute !important;
right: -40px !important;
top: 3.75rem !important;
&:after {
background:url('data:image/svg+xml,<svg id="Button_-_Right_Arrow" data-name="Button - Right Arrow" xmlns="http://www.w3.org/2000/svg" width="35" height="35" viewBox="0 0 35 35"><rect id="Rectangle_14" data-name="Rectangle 14" width="35" height="35" fill="%23009ade"/><path id="Path_734" data-name="Path 734" d="M9.41,6.941c.651-.659,1.289-1.312,1.936-1.958Q13.671,2.659,16,.34a1.044,1.044,0,0,1,1.543,0c.3.3.6.6.9.9a1.023,1.023,0,0,1-.006,1.531q-2.094,2.093-4.186,4.188-2.03,2.032-4.058,4.067a1.133,1.133,0,0,1-.759.362,1.081,1.081,0,0,1-.835-.36Q7.03,9.456,5.463,7.885,3.331,5.75,1.2,3.617c-.29-.29-.582-.58-.871-.871a1.017,1.017,0,0,1,.011-1.5L1.226.355a1.043,1.043,0,0,1,1.566,0L6.568,4.116,9.3,6.839C9.329,6.865,9.357,6.89,9.41,6.941Z" transform="translate(12.806 26.891) rotate(-90)"/></svg>');
content:'';
width: 35px;
height: 35px;
}
svg {
display: none;
}
}
#brokercontent .learning-cards .ugb-button {
font-size: 1rem;
}
#brokercontent .learning-cards .ugb-card__item {
display: flex;
flex-direction: column;
justify-content: space-between;
}
.ugb-card.ugb-card--v2 .ugb-card__content {
flex: 0;
}
#brokercontent .learning-cards {
margin-top:2.5rem;
}
.wp-block-column.has-background {
padding:2.875rem 1.125rem 1.125rem 1.125rem;
justify-content: space-between;
display: flex;
flex-direction: column;
p {
padding-right:0;
margin:1rem 0 !important;
}
.wp-block-buttons {
width: 100%;
display: flex;
.wp-block-button {
flex: 1;
}
}
}
.wp-block-file {
a {
color:#000000;
font-size: 1rem;
font-family: "Helvetica-Bold";
&:hover {
text-decoration: underline;
}
}
.wp-block-file__button {
display: none;
}
}
.stk-block-carousel__buttons {
top:0;
left:0;
width: 100%;
display: block;
}
.wp-block-stackable-video-popup {
max-height: 9.625rem;
height: 9.625rem;
margin:0;
background:#E5E5E5;
}
.stk-block-carousel__dots {
display: none;
}
.stk-block-carousel__button {
background:none !important;
}
.wp-block-stackable-carousel {
.stk-block-content {
p {
text-align: center;
}
}
.wp-block-stackable-video-popup {
padding:0;
}
.stk-block-video-popup__overlay {
max-height: 100%;
height: 100%;
p {
display: none !important;
}
}
}
.stk-block-carousel__button.stk-block-carousel__button__prev {
position: absolute !important;
left: -40px !important;
top: 3.75rem !important;
&:after {
background:url('data:image/svg+xml,<svg id="Button_-_Left_Arrow" data-name="Button - Left Arrow" xmlns="http://www.w3.org/2000/svg" width="35" height="35" viewBox="0 0 35 35"><rect id="Rectangle_14" data-name="Rectangle 14" width="35" height="35" fill="%23009ade"/><path id="Path_734" data-name="Path 734" d="M9.41,4.448c.651.659,1.289,1.312,1.936,1.958Q13.671,8.73,16,11.049a1.044,1.044,0,0,0,1.543,0c.3-.3.6-.6.9-.9a1.023,1.023,0,0,0-.006-1.531Q16.341,6.525,14.249,4.43,12.219,2.4,10.191.364A1.133,1.133,0,0,0,9.432,0,1.081,1.081,0,0,0,8.6.362Q7.03,1.933,5.463,3.5,3.331,5.639,1.2,7.772c-.29.29-.582.58-.871.871a1.017,1.017,0,0,0,.011,1.5l.889.889a1.043,1.043,0,0,0,1.566,0L6.568,7.273,9.3,4.55C9.329,4.524,9.357,4.5,9.41,4.448Z" transform="translate(10.806 26.891) rotate(-90)"/></svg>');
content:'';
width: 35px;
height: 35px;
}
&:hover {
background:url('data:image/svg+xml,<svg id="Button_-_Left_Arrow" data-name="Button - Left Arrow" xmlns="http://www.w3.org/2000/svg" width="35" height="35" viewBox="0 0 35 35"><rect id="Rectangle_14" data-name="Rectangle 14" width="35" height="35" fill="%23acd6f2"/><path id="Path_734" data-name="Path 734" d="M9.41,4.448c.651.659,1.289,1.312,1.936,1.958Q13.671,8.73,16,11.049a1.044,1.044,0,0,0,1.543,0c.3-.3.6-.6.9-.9a1.023,1.023,0,0,0-.006-1.531Q16.341,6.525,14.249,4.43,12.219,2.4,10.191.364A1.133,1.133,0,0,0,9.432,0,1.081,1.081,0,0,0,8.6.362Q7.03,1.933,5.463,3.5,3.331,5.639,1.2,7.772c-.29.29-.582.58-.871.871a1.017,1.017,0,0,0,.011,1.5l.889.889a1.043,1.043,0,0,0,1.566,0L6.568,7.273,9.3,4.55C9.329,4.524,9.357,4.5,9.41,4.448Z" transform="translate(10.806 26.891) rotate(-90)"/></svg>');
}
svg {
display: none;
}
}
.sidebar {
.sidemenu {
ul {
list-style: none;
padding:0;
margin:0;
li {
margin:0;
margin-top:1rem;
a {
color:#009ADE;
font-size: 1rem;
}
&.btn-style {
a {
font-weight: normal;
font-size: 1rem;
padding:1.25rem 1.5rem;
color:#000000;
background:#1F9BDE;
text-align: center;
font-family: "Helvetica";
}
}
}
}
}
& > h2 {
margin-top:0;
font-size: 20px;
......
......@@ -275,22 +275,38 @@ label[for="quicksearch"] {
align-items: center;
max-height: 100%;
height: 100%;
}
.previous.paginate_button {
&:hover {
&:before {
background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="9.095" height="15" viewBox="0 0 9.095 15"><path id="Path_1369" data-name="Path 1369" d="M7.515,3.553c.52.526,1.03,1.048,1.546,1.564q1.857,1.856,3.718,3.708a.834.834,0,0,0,1.232,0c.236-.242.477-.479.716-.718a.817.817,0,0,0,0-1.222L11.379,3.538Q9.758,1.915,8.138.29A.9.9,0,0,0,7.532,0a.864.864,0,0,0-.667.288Q5.614,1.544,4.363,2.8L.956,6.207c-.232.232-.465.463-.7.7A.812.812,0,0,0,.269,8.1l.71.71a.833.833,0,0,0,1.25,0l3.016-3L7.429,3.634Z" transform="translate(9.095 0) rotate(90)" fill="%23acd6f2"/></svg>') !important;
background-size: contain;
background-repeat: no-repeat;
background-size: contain !important;
background-repeat: no-repeat !important;
transform:rotate(180deg);
}
}
}
.next.paginate_button {
&:hover {
&:before {
background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="9.095" height="15" viewBox="0 0 9.095 15"><path id="Path_1369" data-name="Path 1369" d="M7.515,3.553c.52.526,1.03,1.048,1.546,1.564q1.857,1.856,3.718,3.708a.834.834,0,0,0,1.232,0c.236-.242.477-.479.716-.718a.817.817,0,0,0,0-1.222L11.379,3.538Q9.758,1.915,8.138.29A.9.9,0,0,0,7.532,0a.864.864,0,0,0-.667.288Q5.614,1.544,4.363,2.8L.956,6.207c-.232.232-.465.463-.7.7A.812.812,0,0,0,.269,8.1l.71.71a.833.833,0,0,0,1.25,0l3.016-3L7.429,3.634Z" transform="translate(9.095 0) rotate(90)" fill="%23acd6f2"/></svg>') !important;
background-size: contain !important;
background-repeat: no-repeat !important;
}
}
}
.previous.paginate_button:before {
position: relative;
content: '';
background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="9.095" height="15" viewBox="0 0 9.095 15"><path id="Path_1291" data-name="Path 1291" d="M18.82,189.571c.52-.526,1.03-1.048,1.546-1.564q1.857-1.856,3.718-3.708a.834.834,0,0,1,1.232,0c.236.242.477.479.716.718a.817.817,0,0,1,0,1.222l-3.343,3.344q-1.621,1.623-3.241,3.248a.9.9,0,0,1-.606.289.864.864,0,0,1-.667-.288q-1.251-1.255-2.5-2.51l-3.407-3.408c-.232-.232-.465-.463-.7-.7a.812.812,0,0,1,.008-1.2l.71-.71a.833.833,0,0,1,1.25,0l3.016,3,2.184,2.175Z" transform="translate(193.124 -11.305) rotate(90)" fill="%23009ade"/></svg>');
background-size: contain;
background-repeat: no-repeat;
width: 12px;
height: 16px;
background-size: contain !important;
background-repeat: no-repeat !important;
width: 9px;
height: 15px;
display: block;
margin-top: -3px;
}
......@@ -298,12 +314,11 @@ label[for="quicksearch"] {
.next.paginate_button::before {
position: relative;
content:'';
background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="9.095" height="15" viewBox="0 0 9.095 15"><path id="Path_1291" data-name="Path 1291" d="M18.82,189.571c.52-.526,1.03-1.048,1.546-1.564q1.857-1.856,3.718-3.708a.834.834,0,0,1,1.232,0c.236.242.477.479.716.718a.817.817,0,0,1,0,1.222l-3.343,3.344q-1.621,1.623-3.241,3.248a.9.9,0,0,1-.606.289.864.864,0,0,1-.667-.288q-1.251-1.255-2.5-2.51l-3.407-3.408c-.232-.232-.465-.463-.7-.7a.812.812,0,0,1,.008-1.2l.71-.71a.833.833,0,0,1,1.25,0l3.016,3,2.184,2.175Z" transform="translate(193.124 -11.305) rotate(90)" fill="%23009ade"/></svg>');
background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="9.095" height="15" viewBox="0 0 9.095 15"><path id="Path_1369" data-name="Path 1369" d="M7.515,3.553c.52.526,1.03,1.048,1.546,1.564q1.857,1.856,3.718,3.708a.834.834,0,0,0,1.232,0c.236-.242.477-.479.716-.718a.817.817,0,0,0,0-1.222L11.379,3.538Q9.758,1.915,8.138.29A.9.9,0,0,0,7.532,0a.864.864,0,0,0-.667.288Q5.614,1.544,4.363,2.8L.956,6.207c-.232.232-.465.463-.7.7A.812.812,0,0,0,.269,8.1l.71.71a.833.833,0,0,0,1.25,0l3.016-3L7.429,3.634Z" transform="translate(9.095 0) rotate(90)" fill="%23009ade"/></svg>');
background-size: contain;
background-repeat: no-repeat;
transform:rotate(180deg);
width: 12px;
height: 16px;
width: 9px;
height: 15px;
display: block;
margin-top: -3px;
}
......
......@@ -7,6 +7,7 @@
@import "custom_select";
@import "breadcrumb";
@import "accordion";
@import "events";
#footer-sidebar2 {
display: flex;
......@@ -82,7 +83,7 @@
display: flex;
gap:40px;
.sidebar {
width: 16.625rem;
width: 17.125rem;
}
.article-wrapper.has-sidebar {
max-width: 54.125rem;
......@@ -3450,4 +3451,6 @@ a[target=_blank]{
}
@import "broker_new";
@import "redesign_2023";
\ No newline at end of file
@import "redesign_2023";
@import "mobile";
\ No newline at end of file
......
......@@ -12,6 +12,7 @@ require_once 'inc/custom_post_type.php';
require_once 'inc/broker_post_system.php';
require_once 'inc/shortcodes-resources.php';
require_once 'inc/shortcodes-circulars.php';
require_once 'inc/blocks.php';
require_once 'inc/breadcrumb.php';
function load_custom_wp_admin_style(){
......
......@@ -132,16 +132,10 @@
</script>
<div id="content-wrap">
<?php
if (function_exists(clean_custom_moblie_menus())) clean_custom_moblie_menus();
// if (function_exists(clean_custom_moblie_menus())) clean_custom_moblie_menus();
?>
<style>
@media screen and (max-device-width: 480px) {
body {
-webkit-text-size-adjust: 100%;
}
}
</style>
<header id="page-header-landing">
<div id="page-logo">
......@@ -158,4 +152,5 @@
<a class='logout-btn' href='http://localhost:3000/wp-login.php?action=logout' target='_blank'>Log Out</a>
</div>
</header>
<button class='mobile-btn'></button>
</div>
\ No newline at end of file
......
<?php
add_action('acf/init', 'my_acf_init_block_types');
function my_acf_init_block_types() {
// Check function exists.
if( function_exists('acf_register_block_type') ) {
acf_register_block_type( array(
'title' => __( 'Events Block', 'client_textdomain' ),
'name' => 'events_block',
'render_template' => 'blocks/events/events.php',
'mode' => 'edit',
'supports' => [
'align' => false,
'anchor' => true,
'customClassName' => true
]
));
}
}
\ No newline at end of file
......@@ -63,6 +63,14 @@ if( function_exists('acf_add_options_page') ) {
'redirect' => false
));
//Create the options page for the broker assignments
acf_add_options_page(array(
'page_title' => 'Events',
'menu_title' => 'Events',
'menu_slug' => 'broker-events',
'redirect' => false
));
//Create the options page for the broker assignments
acf_add_options_page(array(
'page_title' => 'Team Assignments',
......
......@@ -4,7 +4,7 @@
*/
global $user_ID;
get_currentuserinfo();
wp_get_current_user();
if (!$user_ID) {
auth_redirect();
}
......@@ -14,8 +14,6 @@ global $wpdb;
?>
<div id="brokercontent">
<?php if (has_post_thumbnail( $post->ID ) ): ?>
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
<div class="header-image" id="header-image" style="background-image: url(<?php echo $image[0]; ?>);">
......@@ -33,18 +31,23 @@ global $wpdb;
?>
<div class='inner-content-wrapper'>
<div class='sidebar-pullout'>
<span class='sidebar-title'><?= __("Your Commonwell Team") ?></span>
<button class='pullout-btn'></button>
</div>
<?php
$sidebar_content = null;
?>
<!-- CHECK IF THIS PAGE HAS A MENU -->
<?php ob_start(); include_once 'templates/menu-sidebar.php'; $sidebar_content = ob_get_clean(); ?>
<!-- CHECK IF THIS IS THE HOMEPAGE.. DISPLAY THE CONTACTS -->
<?php if(is_front_page()) { ?>
<?php ob_start(); include_once 'templates/broker_sidebar.php'; $sidebar_content = ob_get_clean(); ?>
<?php ob_start(); include_once 'templates/broker_sidebar.php'; $sidebar_content .= ob_get_clean(); ?>
<?php } ?>
<!-- CHECK IF THIS PAGE HAS 2nd tier menu items -->
<?php ?>
<!-- CHECK IF THIS PAGE HAS A SEARCH MODULE -->
<?php ob_start(); include_once 'templates/search-sidebar.php'; $sidebar_content .= ob_get_clean(); ?>
......@@ -57,6 +60,10 @@ global $wpdb;
<?php get_template_part('loop', 'single');?>
</div>
<div class='the-topper hide'>
<a href='#'>Go to Top</a>
</div>
</div>
</div>
</div>
......
<?php
$menu = get_field('side_menu_items');
if($menu && count($menu) > 0) {
?><div class='sidemenu'><ul><?php
foreach($menu as $menu_item) {
$info = $menu_item['menu_items'];
$btn_style = $menu_item['button_style'];
?>
<li class='<?= ($btn_style)?'btn_style':'' ?>'><a href='<?= $info['url'] ?>' target='<?= $info['target'] ?>'><?= $info['title'] ?></a></li>
<?php
}
?></div></ul><?php
}
\ No newline at end of file