|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:root
{
--afRed: #DB072C;
--yellow: #DDB673;
}
body
{
font-weight: 300;
}
.subtitle
{
font-weight: 500;
font-size: 14px;
text-transform: uppercase;
letter-spacing: 1px;
}
hr
{
border: none;
border-top: 1px solid #cccccc;
margin: 3rem 0;
}
.es-exams-table {
& th
{
background: var(--afRed) !important;
}
}
.fieldset {
border: 1px solid var(--afRed);
margin-bottom: 2rem;
padding: 3rem 2rem 1rem;
position: relative;
h4 {
background: var(--afRed);
color: #fff;
display: inline-block;
font-weight: 500;
padding: 10px 3rem;
position: absolute;
top: -20px;
left: -10px;
}
h4::after {
content: "";
position: absolute;
width: 0;
height: 0;
border-style: solid;
border-width: 0 9px 5px 0;
border-color: transparent var(--afRed) transparent transparent;
bottom: -5px;
left: 1px;
}
}
.membership-product-repeater
{
display: grid;
grid-template-columns: repeat(3, 1fr);
align-items: stretch;
justify-content: center;
gap: 1rem;
.membership-product
{
position: relative;
padding: 1rem;
background: #efefef;
min-width: 200px;
&.selected
{
background: var(--yellow);
color: #fff;
}
}
.s8-radiobutton-container
{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 0px !important;
display: block;
}
.product-price
{
font-weight: 900;
font-size: 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.product-name
{
font-size: 1.5rem;
}
.s8-radiobutton-container input ~ .s8-radiobutton
{
border-radius: 0 !important;
display: none;
visibility: hidden;
opacity: 0;
}
.small-text
{
font-size: 14px;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 1px;
display: block;
}
}
.text-enlarge
{
font-size: 1.5rem;
}
.counter {
position: absolute;
right: 0;
bottom: -67px;
.formRowCol1 {
display: none;
min-width: 100px;
width: auto;
}
.formRowLabel {
color: #989898;
font-size: 2rem;
letter-spacing: 2px;
padding-top: 0.8rem;
text-transform: uppercase;
}
.spinBox {
> input {
display: none !important;
}
}
.spinBoxUp,
.spinBoxDown {
background: var(--yellow);
color: #fff;
display: inline-block;
width: 2rem;
height: 2rem;
line-height: 2rem;
text-align: center;
position: static;
top: 0;
bottom: 0;
right: 0;
opacity: 1;
&:before {
content: '+';
font-size: 1.2rem;
position: static;
width: 100%;
height: 100%;
left: 0;
top: 0;
border: none;
transform: none;
}
}
.spinBoxDown {
&:before {
content: '-' !important;
}
}
}
header
{
.header-links
{
display: flex;
justify-content: center;
align-items: center;
gap: 1rem;
}
.s8-navigationPrimary:last-of-type {
justify-content: flex-end !important;
text-transform: uppercase;
& li {
padding: .5em 1.5em;
}
&>li {
padding: 1em 1.5em;
a {
font-weight: 500;
position: relative;
text-decoration: none;
padding: 0 !important;
letter-spacing: 1px;
font-size: 14px;
&:not(.s8-navigationPrimary ul li a) {
color: ;
}
&::before {
content: '';
position: absolute;
left: 0;
bottom: 0;
height: 2px;
width: 0;
background-color: var(--afRed);
transition: width 0.3s ease;
}
&:hover::before {
width: 100%;
}
}
&.s8-navigationPrimaryItem--active>a::before {
width: 100%;
}
}
}
}
.s8-templates-button {
margin: 2rem 0;
}
.s8-templates-button + .s8-templates-button {
@media (min-width: 1000px) {
margin-left: 1rem;
}
}
main
{
.s8-templates-card.s8-templates-fancybox.s8-templates-fancybox-accent .s8-templates-fancybox-image
{
padding: 25%;
width: 100%;
height: 300px;
background-size: contain;
background-repeat: no-repeat;
}
.s8-templates-card.s8-templates-fancybox.s8-templates-fancybox-accent .s8-templates-fancybox-accent-hr
{
background-color: var(--afRed);
border-top: 0 !important;
}
.s8-templates-card.s8-templates-fancybox.s8-templates-fancybox-accent:hover .s8-templates-fancybox-accent-hr
{
width: 60px;
}
h1
{
position: relative;
z-index: 2;
&.heading-line
{
&.afRed
{
&:before
{
content: '';
position: absolute;
top: 35px;
left: -20px;
width: 150px;
height: 30px;
transform: rotate(-30deg);
background-color: var(--afRed);
z-index: -1;
opacity: .6;
}
}
&.yellow
{
&:before
{
content: '';
position: absolute;
top: 35px;
left: -20px;
width: 150px;
height: 20px;
transform: rotate(-30deg);
background-color: var(--yellow);
z-index: -1;
opacity: .6;
}
}
&.green
{
&:before
{
content: '';
position: absolute;
top: 35px;
left: -20px;
width: 150px;
height: 30px;
transform: rotate(-30deg);
background-color: var(--green);
z-index: -1;
opacity: .6;
}
}
&.blue
{
&:before
{
content: '';
position: absolute;
top: 35px;
left: -20px;
width: 150px;
height: 30px;
transform: rotate(-30deg);
background-color: var(--blue);
z-index: -1;
opacity: .6;
}
}
}
}
img
{
position: relative;
&.rounded
{
border-radius: 100%;
}
}
.s8-templates-card__cardsize-4
{
width: 408px;
}
.s8-templates-row
{
.s8-templates-row-container
{
@media (min-width: 1024px)
{
gap: 3rem;
}
}
}
}
footer
{
.footer-title
{
font-weight: bold;
font-size: 1.1rem;
}
ul
{
list-style: none;
margin: 0;
padding: 0;
li
{
line-height: 1.8;
}
}
a
{
color: initial;
}
}
dialogbox
{
border-radius: 0 !important;
border: none;
padding: 0 !important;
box-shadow: none !important;
}
dialogboxoverlay
{
background: #000000;
opacity: .5 !important;
}
h2
{
~ h3
{
margin-top: 0;
}
}
.s8-templates-card
{
&[style*="box-shadow"]
{
box-shadow: 0px 0px 20px rgb(0 0 0 / 5%) !important;
}
hr
{
width: 60px;
border: none;
border-top: 3px solid var(--afRed) !important;
margin: 2rem auto;
transition: .5s width;
}
&:hover
{
hr
{
width: 80px;
}
}
}
form
{
&#footer_newsletter
{
button[type="submit"] {
text-transform: inherit;
width: 100%;
display: block;
}
}
.formRow
{
background-color: transparent;
padding: 10px 0;
}
.formRow .formRowLabel,
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], textarea
{
padding: 0;
}
button[type="submit"]
{
padding: 10px 10px !important;
min-width: 155px !important;
text-transform: capitalize;
letter-spacing: normal;
border-radius: 0px;
background: var(--afRed);
color: #fff;
border: none;
}
&#cta_newsletter_form
{
::placeholder
{
color: 1a1a1a;
}
}
}
@media (max-width: 1024px)
{
h1, h2, h3, h4, h5
{
line-height: normal;
}
h1
{
font-size: 36px;
}
h2
{
font-size: 32px;
}
h3
{
font-size: 28px;
}
h4
{
font-size: 24px;
}
h5
{
font-size: 20px;
}
}
.s8-navigationPrimary--displayStateMobile:last-of-type
{
z-index: 999;
}
:root
{
--afRed: #DB072C;
--yellow: #DDB673;
}
body
{
font-weight: 300;
}
.subtitle
{
font-weight: 500;
font-size: 14px;
text-transform: uppercase;
letter-spacing: 1px;
}
hr
{
border: none;
border-top: 1px solid #cccccc;
margin: 3rem 0;
}
.es-exams-table {
& th
{
background: var(--afRed) !important;
}
}
.fieldset {
border: 1px solid var(--afRed);
margin-bottom: 2rem;
padding: 3rem 2rem 1rem;
position: relative;
h4 {
background: var(--afRed);
color: #fff;
display: inline-block;
font-weight: 500;
padding: 10px 3rem;
position: absolute;
top: -20px;
left: -10px;
}
h4::after {
content: "";
position: absolute;
width: 0;
height: 0;
border-style: solid;
border-width: 0 9px 5px 0;
border-color: transparent var(--afRed) transparent transparent;
bottom: -5px;
left: 1px;
}
}
.membership-product-repeater
{
display: grid;
grid-template-columns: repeat(3, 1fr);
align-items: stretch;
justify-content: center;
gap: 1rem;
.membership-product
{
position: relative;
padding: 1rem;
background: #efefef;
min-width: 200px;
&.selected
{
background: var(--yellow);
color: #fff;
}
}
.s8-radiobutton-container
{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 0px !important;
display: block;
}
.product-price
{
font-weight: 900;
font-size: 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.product-name
{
font-size: 1.5rem;
}
.s8-radiobutton-container input ~ .s8-radiobutton
{
border-radius: 0 !important;
display: none;
visibility: hidden;
opacity: 0;
}
.small-text
{
font-size: 14px;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 1px;
display: block;
}
}
.text-enlarge
{
font-size: 1.5rem;
}
.counter {
position: absolute;
right: 0;
bottom: -67px;
.formRowCol1 {
display: none;
min-width: 100px;
width: auto;
}
.formRowLabel {
color: #989898;
font-size: 2rem;
letter-spacing: 2px;
padding-top: 0.8rem;
text-transform: uppercase;
}
.spinBox {
> input {
display: none !important;
}
}
.spinBoxUp,
.spinBoxDown {
background: var(--yellow);
color: #fff;
display: inline-block;
width: 2rem;
height: 2rem;
line-height: 2rem;
text-align: center;
position: static;
top: 0;
bottom: 0;
right: 0;
opacity: 1;
&:before {
content: '+';
font-size: 1.2rem;
position: static;
width: 100%;
height: 100%;
left: 0;
top: 0;
border: none;
transform: none;
}
}
.spinBoxDown {
&:before {
content: '-' !important;
}
}
}
header
{
.header-links
{
display: flex;
justify-content: center;
align-items: center;
gap: 1rem;
}
.s8-navigationPrimary:last-of-type {
justify-content: flex-end !important;
text-transform: uppercase;
& li {
padding: .5em 1.5em;
}
&>li {
padding: 1em 1.5em;
a {
font-weight: 500;
position: relative;
text-decoration: none;
padding: 0 !important;
letter-spacing: 1px;
font-size: 14px;
&:not(.s8-navigationPrimary ul li a) {
color: ;
}
&::before {
content: '';
position: absolute;
left: 0;
bottom: 0;
height: 2px;
width: 0;
background-color: var(--afRed);
transition: width 0.3s ease;
}
&:hover::before {
width: 100%;
}
}
&.s8-navigationPrimaryItem--active>a::before {
width: 100%;
}
}
}
}
.s8-templates-button {
margin: 2rem 0;
}
.s8-templates-button + .s8-templates-button {
@media (min-width: 1000px) {
margin-left: 1rem;
}
}
main
{
.s8-templates-card.s8-templates-fancybox.s8-templates-fancybox-accent .s8-templates-fancybox-image
{
padding: 25%;
width: 100%;
height: 300px;
background-size: contain;
background-repeat: no-repeat;
}
.s8-templates-card.s8-templates-fancybox.s8-templates-fancybox-accent .s8-templates-fancybox-accent-hr
{
background-color: var(--afRed);
border-top: 0 !important;
}
.s8-templates-card.s8-templates-fancybox.s8-templates-fancybox-accent:hover .s8-templates-fancybox-accent-hr
{
width: 60px;
}
h1
{
position: relative;
z-index: 2;
&.heading-line
{
&.afRed
{
&:before
{
content: '';
position: absolute;
top: 35px;
left: -20px;
width: 150px;
height: 30px;
transform: rotate(-30deg);
background-color: var(--afRed);
z-index: -1;
opacity: .6;
}
}
&.yellow
{
&:before
{
content: '';
position: absolute;
top: 35px;
left: -20px;
width: 150px;
height: 20px;
transform: rotate(-30deg);
background-color: var(--yellow);
z-index: -1;
opacity: .6;
}
}
&.green
{
&:before
{
content: '';
position: absolute;
top: 35px;
left: -20px;
width: 150px;
height: 30px;
transform: rotate(-30deg);
background-color: var(--green);
z-index: -1;
opacity: .6;
}
}
&.blue
{
&:before
{
content: '';
position: absolute;
top: 35px;
left: -20px;
width: 150px;
height: 30px;
transform: rotate(-30deg);
background-color: var(--blue);
z-index: -1;
opacity: .6;
}
}
}
}
img
{
position: relative;
&.rounded
{
border-radius: 100%;
}
}
.s8-templates-card__cardsize-4
{
width: 408px;
}
.s8-templates-row
{
.s8-templates-row-container
{
@media (min-width: 1024px)
{
gap: 3rem;
}
}
}
}
footer
{
.footer-title
{
font-weight: bold;
font-size: 1.1rem;
}
ul
{
list-style: none;
margin: 0;
padding: 0;
li
{
line-height: 1.8;
}
}
a
{
color: initial;
}
}
dialogbox
{
border-radius: 0 !important;
border: none;
padding: 0 !important;
box-shadow: none !important;
}
dialogboxoverlay
{
background: #000000;
opacity: .5 !important;
}
h2
{
~ h3
{
margin-top: 0;
}
}
.s8-templates-card
{
&[style*="box-shadow"]
{
box-shadow: 0px 0px 20px rgb(0 0 0 / 5%) !important;
}
hr
{
width: 60px;
border: none;
border-top: 3px solid var(--afRed) !important;
margin: 2rem auto;
transition: .5s width;
}
&:hover
{
hr
{
width: 80px;
}
}
}
form
{
&#footer_newsletter
{
button[type="submit"] {
text-transform: inherit;
width: 100%;
display: block;
}
}
.formRow
{
background-color: transparent;
padding: 10px 0;
}
.formRow .formRowLabel,
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], textarea
{
padding: 0;
}
button[type="submit"]
{
padding: 10px 10px !important;
min-width: 155px !important;
text-transform: capitalize;
letter-spacing: normal;
border-radius: 0px;
background: var(--afRed);
color: #fff;
border: none;
}
&#cta_newsletter_form
{
::placeholder
{
color: 1a1a1a;
}
}
}
@media (max-width: 1024px)
{
h1, h2, h3, h4, h5
{
line-height: normal;
}
h1
{
font-size: 36px;
}
h2
{
font-size: 32px;
}
h3
{
font-size: 28px;
}
h4
{
font-size: 24px;
}
h5
{
font-size: 20px;
}
}
.s8-navigationPrimary--displayStateMobile:last-of-type
{
z-index: 999;
}
|
|
let observer = new MutationObserver(function () {
if ( document.querySelector('.sign-up')) {
const urlPath = document.querySelector('.sign-up a').getAttribute('href');
document.querySelector('.sign-up a').setAttribute('href', urlPath.replace('?login_popup_opened=1', ''))
}
});
// Start waiting for the element.
observer.observe(document, {
childList: true,
subtree: true
});
let observer = new MutationObserver(function () {
if ( document.querySelector('.sign-up')) {
const urlPath = document.querySelector('.sign-up a').getAttribute('href');
document.querySelector('.sign-up a').setAttribute('href', urlPath.replace('?login_popup_opened=1', ''))
}
});
// Start waiting for the element.
observer.observe(document, {
childList: true,
subtree: true
});
|
|
<?php
function determineHeaderImages()
{
$strPage = \Components\Website\Pages::currentPageId();
while($strPage)
{
if(file_exists('media/website_pages' . $strPage . 'header-images/'))
{
$arrFiles = \Components\Website\Media::getChildren('/media/website_pages' . $strPage . 'header-images/');
if(count($arrFiles))
{
return $arrFiles;
}
}
$strPage = \Framework\Components\TextualIds::getParent($strPage);
}
return [];
}
function youMayAlsoLikeGeneral()
{
$strCurrentPageId = \Components\Website\Pages::currentPageId();
$arrNoSideNavPages = [];
$arrNoSideNavPages[] = '/community/profile/';
$arrNoSideNavPages[] = '/placement-tests/';
$arrNoSideNavPages[] = '/af/';
$arrNoSideNavPages[] = '/commerce/';
$arrNoSideNavPages[] = '/products/';
$arrNoSideNavPages[] = '/order-a-course/';
foreach($arrNoSideNavPages as $strPageId)
{
if(strpos($strCurrentPageId, $strPageId) === 0)
{
return false;
}
}
return true;
}
?>
<?php
function determineHeaderImages()
{
$strPage = \Components\Website\Pages::currentPageId();
while($strPage)
{
if(file_exists('media/website_pages' . $strPage . 'header-images/'))
{
$arrFiles = \Components\Website\Media::getChildren('/media/website_pages' . $strPage . 'header-images/');
if(count($arrFiles))
{
return $arrFiles;
}
}
$strPage = \Framework\Components\TextualIds::getParent($strPage);
}
return [];
}
function youMayAlsoLikeGeneral()
{
$strCurrentPageId = \Components\Website\Pages::currentPageId();
$arrNoSideNavPages = [];
$arrNoSideNavPages[] = '/community/profile/';
$arrNoSideNavPages[] = '/placement-tests/';
$arrNoSideNavPages[] = '/af/';
$arrNoSideNavPages[] = '/commerce/';
$arrNoSideNavPages[] = '/products/';
$arrNoSideNavPages[] = '/order-a-course/';
foreach($arrNoSideNavPages as $strPageId)
{
if(strpos($strCurrentPageId, $strPageId) === 0)
{
return false;
}
}
return true;
}
?>
|
|
|
|
|
|
|