From 6a0cbfc0de2ad79b62d586f29fff4293eb1f5868 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 16 Jan 2016 17:29:27 +0100 Subject: [PATCH] refactor all subtemplates to use new grid system & rows --- assets/less/ascribe.less | 511 ++++------------------ assets/less/ascribe/_buttons.less | 8 +- assets/less/ascribe/_feature-circles.less | 8 +- assets/less/ascribe/_grid.less | 20 +- assets/less/ascribe/_helpers.less | 42 +- assets/less/ascribe/_hero.less | 159 +++++++ assets/less/ascribe/_subtemplates.less | 38 ++ assets/less/ascribe/_team.less | 45 ++ assets/less/ascribe/_typography.less | 3 + assets/less/ascribe/_variables.less | 9 +- content-blog.php | 2 +- controller/classes/Subtemplate.php | 194 ++++---- template-header.php | 27 +- template-tour.php | 35 +- 14 files changed, 470 insertions(+), 631 deletions(-) create mode 100644 assets/less/ascribe/_hero.less create mode 100644 assets/less/ascribe/_subtemplates.less create mode 100644 assets/less/ascribe/_team.less diff --git a/assets/less/ascribe.less b/assets/less/ascribe.less index 1389734..cdb2354 100644 --- a/assets/less/ascribe.less +++ b/assets/less/ascribe.less @@ -22,7 +22,10 @@ @import 'ascribe/_grid.less'; @import 'ascribe/_footer.less'; +@import 'ascribe/_hero.less'; +@import 'ascribe/_subtemplates.less'; @import 'ascribe/_feature-circles.less'; +@import 'ascribe/_team.less'; @import 'vendor/print.less'; @@ -35,170 +38,7 @@ header { header + .chevron-divider { height: 175px; } -.page-template-template-tour header { - height: 815px; - padding:0; - padding-top: 30px; - margin-bottom: @chevronOffsetHeader; - position: relative; - background-size: cover; - background-repeat: no-repeat; - background-position: center; - overflow: visible; - .sticky { - padding: 15px 0; - width: 100%; - position: fixed; - background-color: fade(@black,0); - .transition(all); - - &.stuck { - background-color: fade(@black,100); - z-index:800; - - ul { - &.active { - background-color: @black; - padding-bottom: 10px; - } - } - } - } - nav { - float: left; - margin-top: 9px; - .tourNavText; - - ul { - padding: 0 35px; - list-style: none; - position: absolute; - - &.active { - li { - display: block; - &.current-menu-item { - a { - &:after { - transform: rotate(180deg); - } - } - } - } - } - - li { - display: none; - text-align: right; - - &.current-menu-item { - display: block; - - a { - position: relative; - font-size: 25px; - - &:before { - content: 'for '; - display: inline-block; - margin-right: 6px; - } - &:after { - content: ''; - background-image: url(../img/arrow.png); - background-repeat: no-repeat; - width: 10px; - height: 8px; - display: inline-block; - position: absolute; - top: 10px; - right: -25px; - font-size: 15px; - } - } - } - a { - width: 100%; - font-size: 20px; - } - } - - - } - } - .description { - clear: both; - width: 80%; - margin: 190px auto 0; - text-align: center; - } - h1 { - .heroText; - margin-bottom: 160px; - } - .app-links { - color: @white; - margin-top: 10px; - - a { - color: @white; - - &:hover { - color: @pink; - } - } - } - .chevron-divider { - position: absolute; - bottom: -@chevronOffsetHeader; - height: 150px; - } - - @media screen and (max-width: @tabletWidth) { - height: 600px; - - h1 { - margin-bottom: 80px; - } - - - .description { - margin: 160px auto 0; - font-size: 34px; - width: 100%; - } - } - @media screen and (max-width: @phoneWidth) { - padding-top: 10px; - .description { - margin: 90px auto 0; - font-size: 34px; - width: 100%; - } - h1 { - font-size:26px; - line-height: 33px; - margin-bottom:0; - } - .button { - position: absolute; - bottom: 150px; - left: 50%; - transform: translateX(-50%); - } - .sticky { - position: absolute; - - &.stuck { - background-color: fade(@black,0); - } - } - .app-links { - margin-top:5px; - } - } -} .page-template-template-companywhite header, .page-template-template-general header, .page-template-default header, @@ -469,8 +309,8 @@ header + .chevron-divider { // MAIN .above-chevron { - margin-top: -100px; - margin-bottom: -80px; + margin-top: -160px; + margin-bottom: -160px; position: relative; z-index: 3; } @@ -480,12 +320,6 @@ header + .chevron-divider { font-size: 34px; line-height: 41px; text-align: center; - .centered-content-padding { - min-height: 500px; - } -} -.subtemplate { - position: relative; } .case-studies { @@ -516,11 +350,6 @@ header + .chevron-divider { position: relative; left: 0px; } - .centered-header { - position: relative; - width: 100%; - height: 100%; - } .description { white-space: normal; width: 60%; @@ -662,9 +491,7 @@ header + .chevron-divider { td { text-align: center; } - .centered-content { - padding:0; - } + } @media screen and (max-width: @phoneWidth) { .new { @@ -748,28 +575,36 @@ header + .chevron-divider { } .blue-box { + &:extend(.text-center); padding: @spacer 0; background-color: @greyBg; - .blueBoxCopy; - text-align: center; @media (min-width: @tabletWidth) { padding: (@spacer * 2) 0; } - .blue-copy { - background-color: @blueBright; - text-align: center; - padding: @spacer; + &, + h1 { + color: #fff; + font-size: 180%; + line-height: 120%; + margin-top: 0; + } - @media (min-width: @tabletWidth) { - padding: (@spacer * 2); - } + .button { + margin-top: (@spacer/2) + } - h1 { - .blueBoxTitle; - margin-top: 0; - } + > .row { background: transparent; } +} + +.blue-copy { + margin: auto; + background-color: @blueBright; + padding: @spacer; + + @media (@screen-sm) { + padding: (@spacer * 2); } } @@ -888,65 +723,7 @@ header + .chevron-divider { } } } -.team { - text-align: center; - .column-container { - text-align: left; - } - - .intro { - margin-bottom: 60px; - text-align: left; - } - p { - margin:0; - } - &.tour-page { - padding: 70px 0; - background-color: @greyBg; - } - @media screen and (max-width: @tabletWidth) { - .intro { - text-align: center; - } - } -} - - -// -// Component: Team Member -// -.team-member { - .ttl-columns.column-3; - text-align: center; - margin-bottom: 40px; - img { - border-radius: 100%; - } - h1 { - .teamName; - margin-top: 20px; - margin-bottom:0; - } - h2 { - .copyText; - margin-top:2px; - } - - @media screen and (max-width: @phoneWidth) { - width: 50%; - } -} - - -.page-template-template-companywhite .team { - @media screen and (max-width: @tabletWidth) { - .intro { - text-align: left; - } - } -} .faq { .copyTextMedium; dl,dt,dd { @@ -983,38 +760,28 @@ header + .chevron-divider { } } } -.values { - padding-bottom: 150px; - .column-container { - width: calc(~"100% + 175px"); - } - .value { - .ttl-columns.column-2; - .copyText; - padding-right: 175px; - - h1 { - &:extend(.fontRegular); - color: @black; - font-size: 25px; - line-height: 1; - margin-bottom:0; - text-align: left; - } +.value { + h1 { + &:extend(.fontRegular); + color: @black; + font-size: 25px; + line-height: 1; + margin-top: 0; + text-align: left; } + p { margin-bottom: 0 } } + .careers { + &:extend(.text-center); background-color: @greyBg; - text-align: center; - padding: 90px 0 140px; - margin-bottom:75px; + + > .row { background: none; } a { - &:extend(.fontLight); + &:extend(.h3); color: @black; - font-size: 27px; - line-height: 32px; &:hover { color: @pink; @@ -1029,14 +796,6 @@ header + .chevron-divider { } } .contact { - .form { - .ttl-columns.columnThreeQuarters; - .copyText; - } - .contact-points { - .ttl-columns.column-4; - } - label { .copyTextSmall; @@ -1065,7 +824,7 @@ header + .chevron-divider { width: auto; } .contact-point { - .copyText; + h1 { &:extend(.fontRegular); font-size: 19px; @@ -1249,101 +1008,42 @@ header + .chevron-divider { } } } + + +// +// Component: Short Descriptions +// .short-descriptions { - padding-top: 35px; - text-align: center; - .copyText; - - .centered-content { - & > h1 { - margin-bottom:0; - } - } - - .short-description { - .ttl-columns.column-3; - .copyText; - margin-bottom: 40px; - - h1 { - font-size: 22px; - color: @pink; - } - } - - @media screen and (max-width: @phoneWidth) { - .short-description { - margin-bottom:0; - } - } + &:extend(.text-center); + padding-bottom: 0; } + +.short-description { + p { margin-bottom: 0 } +} + +.short-description__title { + font-size: @font-size-h4; + margin-top: 0; +} + +.short-description__description { + &:extend(.small); +} + + .content-boxed { background-color: @greyBg; padding-top: 50px; - - .centered-content-padding { - background-color: @greyBg; - } - - .centered-content { - & > div { - border: 1px solid @pink; - background-color: @white; - padding: 60px 10%; - text-align: center; - .copyText; - - & > ul { - text-align: left; - list-style: none; - - li { - margin-bottom: 35px; - } - ul { - margin-left: 10%; - text-align: left; - list-style-type: disc; - - li { - margin-bottom:0; - } - } - } - - } - - p { - max-width: 640px; - } - img { - margin: 30px 0; - } - } - - .centered-content > div, - .existing-new .content { - font-size: 14px; - } - @media screen and (max-width: @phoneWidth) { - - - .centered-content { - & > div { - border:0; - padding: 60px 2%; - .copyTextSmall; - } - } - } } + .existing-new { background-color: @greyBg; padding: 90px 0 120px; - .top-tab { - .ttl-columns.column-2; + > .row { background: none; } + .top-tab { div { padding: 25px 0; text-align: center; @@ -1371,7 +1071,6 @@ header + .chevron-divider { border: 1px solid @pink; padding: 60px 10%; margin-top: -1px; - .copyText; &.active { display: block; @@ -1397,67 +1096,29 @@ header + .chevron-divider { .button { &:extend(.button.pink); } - - @media screen and (max-width: @phoneWidth) { - .top-tab { - display: none; - } - .content { - display: block; - } - } } + + .page-template-template-tour .subtemplate.content { - .copyText; text-align: center; &.grey { background-color: @greyBg; - - .centered-content-padding { - background-color: @greyBg; - } - .centered-content { - background-color: @greyBg; - } h1 { margin-top: 55px; } } } + + .get-started { - padding-top: 70px; - padding-bottom: 230px; - .copyText; + &:extend(.text-center); - .column-container { - width: calc(~"100% + 90px"); - } - .methods-of-use { - .ttl-columns.column-2; - padding-right: 90px; - text-align: center; - .copyText; - - h1 { - .h2; - text-transform: uppercase; - font-weight: 200; - } - p { - width: 90%; - margin: 0 auto; - } - } - - @media screen and (max-width: @phoneWidth) { - padding-bottom:100px; - - .description { - text-align: center; - } + h1:not(.subtemplate__title) { + font-size: @font-size-h3; } } + .pricing { background-repeat: no-repeat; background-size: cover; @@ -1608,19 +1269,9 @@ article.post { } } .single-post { - .entry { - .copyText; - width: 80%; - } .article-post { border-bottom:0; } - - @media screen and (max-width: 500px) { - .entry { - width: 100%; - } - } } // ASCRIBE CHANGES @@ -1643,18 +1294,6 @@ article.post { text-align: center; } -.short-descriptions .short-description h1 { - font-size: 20px; -} - -.short-descriptions .short-description { - font-size: 15px; -} - -.subtemplate h1 { - margin: 20px 0; -} - .blog-column { width: auto; } diff --git a/assets/less/ascribe/_buttons.less b/assets/less/ascribe/_buttons.less index c0317cd..95e0d83 100644 --- a/assets/less/ascribe/_buttons.less +++ b/assets/less/ascribe/_buttons.less @@ -1,16 +1,20 @@ .button { &:extend(.fontRegular); - display: inline-block; + display: block; padding: (@spacer / 2) @spacer; border: 1px solid; font-size: 22px; line-height: 26px; text-decoration: none; - min-width: 265px; text-align: center; transition: .2s ease-out; + @media (@screen-sm) { + display: inline-block; + min-width: 265px; + } + &.blue { @bgColor: @blueBright; color: @white; diff --git a/assets/less/ascribe/_feature-circles.less b/assets/less/ascribe/_feature-circles.less index 4d0be2b..d0dec1e 100644 --- a/assets/less/ascribe/_feature-circles.less +++ b/assets/less/ascribe/_feature-circles.less @@ -1,14 +1,8 @@ .feature-circles { - padding-top: @spacer; - - @media (min-width: @tabletWidth) { - padding-top: (@spacer * 2); - } + padding-bottom: 0; } - - // // Feature circle component // diff --git a/assets/less/ascribe/_grid.less b/assets/less/ascribe/_grid.less index 9b8a8d6..3129063 100644 --- a/assets/less/ascribe/_grid.less +++ b/assets/less/ascribe/_grid.less @@ -37,10 +37,24 @@ .row { .clearfix; // for legacy float usage reasons - max-width: (@screen-lg-min + (@gutter-space * 2)); + max-width: @screen-lg-min; margin: auto; - padding-left: @gutter-space; - padding-right: @gutter-space; + padding-left: (@gutter-space/4); + padding-right: (@gutter-space/4); + + @media (@screen-sm) { + padding-left: (@gutter-space/2); + padding-right: (@gutter-space/2); + } + @media (@screen-md) { + padding-left: @gutter-space; + padding-right: @gutter-space; + } +} + +// more narrow row for all long text content +.row--content { + max-width: (@screen-md-min - @gutter-space); } diff --git a/assets/less/ascribe/_helpers.less b/assets/less/ascribe/_helpers.less index 0397bd9..3106c03 100644 --- a/assets/less/ascribe/_helpers.less +++ b/assets/less/ascribe/_helpers.less @@ -23,34 +23,11 @@ } } + // CENTERED // Apply this class to an element to center it responsively in a container @centeredpadding: 10px; -.centered-header { - .clearfix; - max-width: 1120px + 2*@centeredpadding; - padding: 0 @centeredpadding; - width: 100%; - margin: 0 auto; -} - -.centered-prodFeat { - .clearfix; - max-width: 930px + 2*@centeredpadding; - padding: 0 @centeredpadding; - width: 100%; - margin: 0 auto; -} - -.centered-content { - .clearfix; - max-width: 770px + 2*@centeredpadding; - padding: 0 @centeredpadding; - width: 100%; - margin: 0 auto; -} - .centered-pricing { .clearfix; max-width: 880px + 2*@centeredpadding; @@ -59,15 +36,6 @@ margin: 0 auto; } -.centered-content-padding { - .clearfix; - max-width: 950px; - padding: 0 @centeredpadding 50px; - width: 100%; - margin: 0 auto; - background-color: @white; -} - .centered-categories { .clearfix; max-width: 1000px; @@ -75,14 +43,6 @@ margin: 0 auto; } -.centered-footer { - .clearfix; - max-width: 650px + 2*@centeredpadding; - padding: 0 @centeredpadding; - width: 100%; - margin: 0 auto; -} - // GENERAL LIST // TAKES AWAY PADDING AND LIST STYLE ul, ol { diff --git a/assets/less/ascribe/_hero.less b/assets/less/ascribe/_hero.less new file mode 100644 index 0000000..67f2473 --- /dev/null +++ b/assets/less/ascribe/_hero.less @@ -0,0 +1,159 @@ + +.hero { + height: 815px; + padding:0; + padding-top: 30px; + margin-bottom: @chevronOffsetHeader; + position: relative; + background-size: cover; + background-repeat: no-repeat; + background-position: center; + overflow: visible; + + .sticky { + padding: 15px 0; + width: 100%; + position: fixed; + background-color: fade(@black,0); + .transition(all); + + &.stuck { + background-color: fade(@black,100); + z-index:800; + + ul { + &.active { + background-color: @black; + padding-bottom: 10px; + } + } + } + } + nav { + float: left; + margin-top: 9px; + .tourNavText; + + ul { + padding: 0 35px; + list-style: none; + position: absolute; + + &.active { + li { + display: block; + &.current-menu-item { + a { + &:after { + transform: rotate(180deg); + } + } + } + } + } + + li { + display: none; + text-align: right; + + &.current-menu-item { + display: block; + + a { + position: relative; + font-size: 25px; + + &:before { + content: 'for '; + display: inline-block; + margin-right: 6px; + } + &:after { + content: ''; + background-image: url(../img/arrow.png); + background-repeat: no-repeat; + width: 10px; + height: 8px; + display: inline-block; + position: absolute; + top: 10px; + right: -25px; + font-size: 15px; + } + } + } + a { + width: 100%; + font-size: 20px; + } + } + + + } + } + .description { + clear: both; + width: 80%; + margin: 190px auto 0; + text-align: center; + } + h1 { + .heroText; + margin-bottom: 160px; + } + .app-links { + color: @white; + margin-top: 10px; + + a { + color: @white; + + &:hover { + color: @pink; + } + } + } + .chevron-divider { + position: absolute; + bottom: -@chevronOffsetHeader; + height: 150px; + } + + @media screen and (max-width: @tabletWidth) { + height: 600px; + + h1 { + margin-bottom: 80px; + } + + + .description { + margin: 160px auto 0; + font-size: 34px; + width: 100%; + } + } + @media screen and (max-width: @phoneWidth) { + padding-top: 10px; + .description { + margin: 90px auto 0; + font-size: 34px; + width: 100%; + } + h1 { + font-size:26px; + line-height: 33px; + margin-bottom:0; + } + .sticky { + position: absolute; + + &.stuck { + background-color: fade(@black,0); + } + } + .app-links { + margin-top:5px; + } + } +} diff --git a/assets/less/ascribe/_subtemplates.less b/assets/less/ascribe/_subtemplates.less new file mode 100644 index 0000000..b25b559 --- /dev/null +++ b/assets/less/ascribe/_subtemplates.less @@ -0,0 +1,38 @@ +.subtemplate { + position: relative; + padding-top: @spacer; + padding-bottom: @spacer; + + @media (min-width: @tabletWidth) { + padding-top: (@spacer * 2); + padding-bottom: (@spacer * 2); + } + + > .row { background-color: @white; } + + &.case-studies { + padding: 0; + } +} + +.subtemplate__title, +.subtemplate__description { + &:extend(.text-center); +} + +.subtemplate__title { + margin-top: 0; + margin-bottom: @spacer; + text-transform: uppercase; + + .above-chevron > .subtemplate:first-child & { + margin-top: @spacer; + } +} + +.subtemplate__description { + &:extend(.large); + color: @greyText; + margin-top: -(@spacer/2); + margin-bottom: @spacer; +} diff --git a/assets/less/ascribe/_team.less b/assets/less/ascribe/_team.less new file mode 100644 index 0000000..f161c73 --- /dev/null +++ b/assets/less/ascribe/_team.less @@ -0,0 +1,45 @@ +.team { + text-align: center; + + .intro { + margin-bottom: 60px; + text-align: left; + } + + p { + margin:0; + } + &.tour-page { + padding: 70px 0; + background-color: @greyBg; + } + @media screen and (max-width: @tabletWidth) { + .intro { + text-align: center; + } + } +} + + +// +// Component: Team Member +// +.team-member { + &:extend(.text-center); + h1 { + .teamName; + margin-top: 20px; + margin-bottom:0; + } + h2 { + .copyText; + margin-top:2px; + } +} + +.team-member__image { + border-radius: 50%; + max-width: 200px; + margin: auto; + display: block; +} diff --git a/assets/less/ascribe/_typography.less b/assets/less/ascribe/_typography.less index 084be31..8299816 100644 --- a/assets/less/ascribe/_typography.less +++ b/assets/less/ascribe/_typography.less @@ -104,6 +104,7 @@ h1, h2, h3, h4, h5, h6, } + // Reset fonts for relevant elements input, button, @@ -133,10 +134,12 @@ small, .mini { font-size: @font-size-mini; + line-height: @line-height-small; } .large { font-size: @font-size-large; + line-height: @line-height-large; } strong, diff --git a/assets/less/ascribe/_variables.less b/assets/less/ascribe/_variables.less index fff6188..e96f2c3 100644 --- a/assets/less/ascribe/_variables.less +++ b/assets/less/ascribe/_variables.less @@ -37,12 +37,13 @@ @font-size-h6: @font-size-small; @line-height-base: 24px; -@line-height-small: 20px; +@line-height-small: 22px; +@line-height-large: 26px; -@text-color: @blueDeep; +@text-color: @blackish; @font-family-base: "canada-type-gibson", sans-serif; -@font-weight-base: 200; +@font-weight-base: 300; @font-weight-normal: 400; @font-weight-bold: @font-weight-normal; @@ -87,4 +88,4 @@ // // Grid // -@gutter-space: (@spacer * 2); +@gutter-space: (@spacer * 1.5); diff --git a/content-blog.php b/content-blog.php index d49832d..a3f6000 100644 --- a/content-blog.php +++ b/content-blog.php @@ -24,7 +24,7 @@ $url = get_the_permalink(); ?> -
> +
>

{$title}" ?> diff --git a/controller/classes/Subtemplate.php b/controller/classes/Subtemplate.php index b922e0d..cfdb50f 100644 --- a/controller/classes/Subtemplate.php +++ b/controller/classes/Subtemplate.php @@ -175,14 +175,20 @@ class Subtemplate { $colTitle = get_sub_field('title'); $colContent = get_sub_field('content'); - $descriptiveColumns .= "
-

{$colTitle}

-
{$colContent}
-
"; + $descriptiveColumns .= "
+

{$colTitle}

+
{$colContent}
+
"; } } - $result = "

{$subtemplateTitle}

{$content}
{$descriptiveColumns}
"; + $result = "
+
+

{$subtemplateTitle}

+
{$content}
+
{$descriptiveColumns}
+
+
"; return $result; } @@ -247,8 +253,8 @@ class Subtemplate { } $result = "
-
-

{$subtemplateTitle}

+
+

{$subtemplateTitle}

{$oldNewRows} @@ -267,7 +273,7 @@ class Subtemplate { $content = get_sub_field('content'); $result = "
-
+
{$imageAlt}

{$subtemplateTitle}

@@ -284,12 +290,12 @@ class Subtemplate { $blueBoxCtaLink = get_sub_field('bluebox_cta_link'); $result = "
-
- +
+
"; @@ -326,8 +332,8 @@ class Subtemplate { $result = "
-
-

{$subtemplateTitle}

+
+

{$subtemplateTitle}

{$galleriesImgAlt} {$galleryMarkup}
@@ -371,12 +377,12 @@ class Subtemplate { if ($page == "home") { $result = "
-
-

{$subtemplateTitle}

-
- {$blogFeatures} +
+

{$subtemplateTitle}

+
+ {$blogFeatures} +
-
"; } else { @@ -505,8 +511,8 @@ class Subtemplate { $website = ""; } - $teamMemberMarkup .= "
- Picture of {$name} + $teamMemberMarkup .= "
+ Picture of {$name}

{$name}

{$role}

{$facebook} @@ -518,11 +524,11 @@ class Subtemplate { } } - $result = "
-
-

{$subtemplateTitle}

+ $result = "
+
+

{$subtemplateTitle}

{$content}
-
{$teamMemberMarkup}
+
{$teamMemberMarkup}
Meet the Team
"; @@ -574,8 +580,8 @@ class Subtemplate { $website = ""; } - $teamMemberMarkup .= "
- Picture of {$name} + $teamMemberMarkup .= "
+ Picture of {$name}

{$name}

{$role}

{$facebook} @@ -588,12 +594,10 @@ class Subtemplate { } $result = "
-
-
-

{$subtemplateTitle}

+
+

{$subtemplateTitle}

{$content}
-
{$teamMemberMarkup}
-
+
{$teamMemberMarkup}
"; @@ -606,11 +610,9 @@ class Subtemplate { $bgColor = get_sub_field('background_color'); $result = "
-
-
-

{$subtemplateTitle}

-
{$content}
-
+
+

{$subtemplateTitle}

+
{$content}
"; @@ -621,11 +623,9 @@ class Subtemplate { $content = get_sub_field('content'); $result = "
-
-
-

{$subtemplateTitle}

-
{$content}
-
+
+

{$subtemplateTitle}

+
{$content}
"; @@ -637,11 +637,9 @@ class Subtemplate { $imageAlt = get_sub_field('image')['alt']; $result = "
-
-
-

{$subtemplateTitle}

-
{$imageAlt}
-
+
+

{$subtemplateTitle}

+
{$imageAlt}
"; @@ -676,13 +674,11 @@ class Subtemplate { } $regularFAQ .= ""; - $result = "
-
-
+ $result = "
+

{$subtemplateTitle}

{$featuredFAQ} {$regularFAQ} -
"; @@ -697,17 +693,17 @@ class Subtemplate { $title = get_sub_field('value_title'); $description = get_sub_field('value_description'); - $values .= "
-

{$title}

-
{$description}
-
"; + $values .= "
+

{$title}

+
{$description}
+
"; } } - $result = "
-

{$subtemplateTitle}

-
{$values}
-
"; + $result = "
+

{$subtemplateTitle}

+
{$values}
+
"; return $result; } @@ -730,8 +726,8 @@ class Subtemplate { } $result = "
-
-

{$subtemplateTitle}

+
+

{$subtemplateTitle}

    {$careerMarkup}
"; @@ -768,15 +764,11 @@ class Subtemplate { } } - $result = "
-
-
-

{$subtemplateTitle}

- Media Companies -
{$pressMarkup}
- -
-
+ $result = "
+

{$subtemplateTitle}

+ Media Companies +
{$pressMarkup}
+
"; return $result; @@ -785,12 +777,8 @@ class Subtemplate { $buttonUrl = get_sub_field('button_url'); $buttonText = get_sub_field('button_text'); - $result = "
-
- -
+ $result = "
+ {$buttonText}
"; return $result; @@ -815,13 +803,12 @@ class Subtemplate { } $result = "
-
-
-

{$subtemplateTitle}

-
-
{$content}
- -
+
+

{$subtemplateTitle}

+ +
+
{$content}
+
"; @@ -918,15 +905,13 @@ class Subtemplate { $sidebar = $this->eventSidebar(); $result = "
-
-
+

Events

{$eventMarkup}
{$sidebar}
-
"; return $result; @@ -941,12 +926,12 @@ class Subtemplate { $new = get_sub_field('new_marketplace_content'); $result = "
-
-

{$subtemplateTitle}

-
-
Existing Marketplace
-
New Marketplace
-
+
+

{$subtemplateTitle}

+
+
Existing Marketplace
+
New Marketplace
+

Existing Marketplace

{$existing}

New Marketplace

{$new}
@@ -963,16 +948,17 @@ class Subtemplate { $whiteText = get_sub_field('white_label_text'); $result = "
-
-

{$subtemplateTitle}

-
{$content}
-
-
+
+

{$subtemplateTitle}

+
{$content}
+ +
+

API

API {$apiText}
-
+

White Label Marketplace

White Label Marketplace {$whiteText} @@ -1081,26 +1067,22 @@ class Subtemplate { $sidebar = $this->eventSidebar(); $result = "
-
-
+

Upcoming Events

{$futureMarkup}
{$sidebar}
-
-
-
+

Past Events

{$pastMarkup}
-
"; return $result; diff --git a/template-header.php b/template-header.php index 980ce32..f1b7e67 100644 --- a/template-header.php +++ b/template-header.php @@ -8,25 +8,26 @@ require 'controller/init.php'; ?> +
-
- - -
-
+
'main-footer-menu', 'container' => false ) ); ?>
diff --git a/template-tour.php b/template-tour.php index 9bd45e9..d97b7e6 100644 --- a/template-tour.php +++ b/template-tour.php @@ -13,24 +13,23 @@ $buttonColour = get_field('header_button_colour'); $controller = new Controller(); ?> -
+
-
- - - - - +
+ + + +
-
+

@@ -42,8 +41,8 @@ $controller = new Controller();
-
- loopSubtemplates(); ?> -
+
+ loopSubtemplates(); ?> +
Old WayNew Way