1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-22 17:23:55 +01:00

Merge pull request #19 from ascribe/fix/17

Convert tabs to spaces
This commit is contained in:
Matthias Kretschmann 2015-12-17 16:46:51 +01:00
commit 35c3dd3fd5
43 changed files with 3599 additions and 3602 deletions

View File

@ -1,20 +1,20 @@
{ {
"curly": true, "curly": true,
"eqeqeq": true, "eqeqeq": true,
"immed": true, "immed": true,
"latedef": true, "latedef": true,
"newcap": true, "newcap": true,
"noarg": true, "noarg": true,
"sub": true, "sub": true,
"undef": true, "undef": true,
"boss": true, "boss": true,
"eqnull": true, "eqnull": true,
"validthis": true, "validthis": true,
"globals": { "globals": {
"exports": true, "exports": true,
"module": false, "module": false,
"console": true, "console": true,
"document": true, "document": true,
"window": true, "window": true,
} }
} }

22
404.php
View File

@ -10,15 +10,15 @@ $controller = new Controller();
?> ?>
<?php get_template_part( 'template', 'header' ); ?> <?php get_template_part( 'template', 'header' ); ?>
<main class="above-chevron"> <main class="above-chevron">
<section class='subtemplate four-oh-four'> <section class='subtemplate four-oh-four'>
<div class='centered-content-padding'> <div class='centered-content-padding'>
<div class='centered-footer'> <div class='centered-footer'>
<h1>This page doesn't exist!</h1> <h1>This page doesn't exist!</h1>
<div>Don't worry. You can either go to our <a href="/">homepage</a> or read our <a href="/blog">blog</a>.</div> <div>Don't worry. You can either go to our <a href="/">homepage</a> or read our <a href="/blog">blog</a>.</div>
</div> </div>
</div> </div>
</section> </section>
</main> </main>
<?php get_footer(); ?> <?php get_footer(); ?>

View File

@ -5,15 +5,15 @@ echo '<div class="centered-content-padding">';
echo '<div class="column-container">'; echo '<div class="column-container">';
echo '<div class="blog-column">'; echo '<div class="blog-column">';
if ( have_posts() ) { if ( have_posts() ) {
while ( have_posts() ) { while ( have_posts() ) {
the_post(); the_post();
get_template_part( 'content', 'blog' ); get_template_part( 'content', 'blog' );
} }
} }
else { else {
get_template_part( 'content', 'noposts' ); get_template_part( 'content', 'noposts' );
} }
echo '</div>'; echo '</div>';
@ -22,4 +22,4 @@ echo '</div>';
echo '</div>'; echo '</div>';
echo '</div>'; echo '</div>';
get_footer(); get_footer();
?> ?>

View File

@ -5,8 +5,8 @@
** **
** Territorial <us@territorial.ca> ** Territorial <us@territorial.ca>
** **
** **
** https://github.com/ascribe/wp-theme.git ** https://github.com/ascribe/wp-theme.git
**/ **/
$(document).ready(function(){$("#more-articles").click(function(a){a.preventDefault(),$.ajax({url:ajaxpagination.ajaxurl,type:"post",data:{action:"ajax_pagination"},success:function(a){alert(a)}})})}); $(document).ready(function(){$("#more-articles").click(function(a){a.preventDefault(),$.ajax({url:ajaxpagination.ajaxurl,type:"post",data:{action:"ajax_pagination"},success:function(a){alert(a)}})})});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFqYXgtcGFnaW5hdGlvbi5qcyJdLCJuYW1lcyI6WyIkIiwiZG9jdW1lbnQiLCJyZWFkeSIsImNsaWNrIiwiZSIsInByZXZlbnREZWZhdWx0IiwiYWpheCIsInVybCIsImFqYXhwYWdpbmF0aW9uIiwiYWpheHVybCIsInR5cGUiLCJkYXRhIiwiYWN0aW9uIiwic3VjY2VzcyIsInJlc3VsdCIsImFsZXJ0Il0sIm1hcHBpbmdzIjoiQUFBQUEsRUFBRUMsVUFBVUMsTUFBTSxXQUNkRixFQUFFLGtCQUFrQkcsTUFBTSxTQUFTQyxHQUMvQkEsRUFBRUMsaUJBQ0ZMLEVBQUVNLE1BQ0VDLElBQUtDLGVBQWVDLFFBQ3BCQyxLQUFNLE9BQ05DLE1BQ0lDLE9BQVEsbUJBRVpDLFFBQVMsU0FBVUMsR0FDZkMsTUFBT0QiLCJmaWxlIjoiYWpheC1wYWdpbmF0aW9uLmpzIiwic291cmNlc0NvbnRlbnQiOlsiJChkb2N1bWVudCkucmVhZHkoZnVuY3Rpb24oKXtcbiAgICAkKCcjbW9yZS1hcnRpY2xlcycpLmNsaWNrKGZ1bmN0aW9uKGUpe1xuICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICQuYWpheCh7XG4gICAgICAgICAgICB1cmw6IGFqYXhwYWdpbmF0aW9uLmFqYXh1cmwsXG4gICAgICAgICAgICB0eXBlOiAncG9zdCcsXG4gICAgICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgICAgICAgYWN0aW9uOiAnYWpheF9wYWdpbmF0aW9uJ1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHN1Y2Nlc3M6IGZ1bmN0aW9uKCByZXN1bHQgKSB7XG4gICAgICAgICAgICAgICAgYWxlcnQoIHJlc3VsdCApO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KVxuICAgIH0pO1xufSk7Il0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFqYXgtcGFnaW5hdGlvbi5qcyJdLCJuYW1lcyI6WyIkIiwiZG9jdW1lbnQiLCJyZWFkeSIsImNsaWNrIiwiZSIsInByZXZlbnREZWZhdWx0IiwiYWpheCIsInVybCIsImFqYXhwYWdpbmF0aW9uIiwiYWpheHVybCIsInR5cGUiLCJkYXRhIiwiYWN0aW9uIiwic3VjY2VzcyIsInJlc3VsdCIsImFsZXJ0Il0sIm1hcHBpbmdzIjoiQUFBQUEsRUFBRUMsVUFBVUMsTUFBTSxXQUNkRixFQUFFLGtCQUFrQkcsTUFBTSxTQUFTQyxHQUMvQkEsRUFBRUMsaUJBQ0ZMLEVBQUVNLE1BQ0VDLElBQUtDLGVBQWVDLFFBQ3BCQyxLQUFNLE9BQ05DLE1BQ0lDLE9BQVEsbUJBRVpDLFFBQVMsU0FBVUMsR0FDZkMsTUFBT0QiLCJmaWxlIjoiYWpheC1wYWdpbmF0aW9uLmpzIiwic291cmNlc0NvbnRlbnQiOlsiJChkb2N1bWVudCkucmVhZHkoZnVuY3Rpb24oKXtcbiAgICAkKCcjbW9yZS1hcnRpY2xlcycpLmNsaWNrKGZ1bmN0aW9uKGUpe1xuICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICQuYWpheCh7XG4gICAgICAgICAgICB1cmw6IGFqYXhwYWdpbmF0aW9uLmFqYXh1cmwsXG4gICAgICAgICAgICB0eXBlOiAncG9zdCcsXG4gICAgICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgICAgICAgYWN0aW9uOiAnYWpheF9wYWdpbmF0aW9uJ1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHN1Y2Nlc3M6IGZ1bmN0aW9uKCByZXN1bHQgKSB7XG4gICAgICAgICAgICAgICAgYWxlcnQoIHJlc3VsdCApO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KVxuICAgIH0pO1xufSk7Il0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9

View File

@ -5,8 +5,8 @@
** **
** Territorial <us@territorial.ca> ** Territorial <us@territorial.ca>
** **
** **
** https://github.com/ascribe/wp-theme.git ** https://github.com/ascribe/wp-theme.git
**/ **/
$(document).ready(function(){$("#more-articles").click(function(a){a.preventDefault(),$.ajax({url:ajaxpagination.ajaxurl,type:"post",data:{action:"ajax_pagination"},success:function(a){alert(a)}})})}); $(document).ready(function(){$("#more-articles").click(function(a){a.preventDefault(),$.ajax({url:ajaxpagination.ajaxurl,type:"post",data:{action:"ajax_pagination"},success:function(a){alert(a)}})})});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFqYXgtcGFnaW5hdGlvbi5qcyJdLCJuYW1lcyI6WyIkIiwiZG9jdW1lbnQiLCJyZWFkeSIsImNsaWNrIiwiZSIsInByZXZlbnREZWZhdWx0IiwiYWpheCIsInVybCIsImFqYXhwYWdpbmF0aW9uIiwiYWpheHVybCIsInR5cGUiLCJkYXRhIiwiYWN0aW9uIiwic3VjY2VzcyIsInJlc3VsdCIsImFsZXJ0Il0sIm1hcHBpbmdzIjoiQUFBQUEsRUFBRUMsVUFBVUMsTUFBTSxXQUNkRixFQUFFLGtCQUFrQkcsTUFBTSxTQUFTQyxHQUMvQkEsRUFBRUMsaUJBQ0ZMLEVBQUVNLE1BQ0VDLElBQUtDLGVBQWVDLFFBQ3BCQyxLQUFNLE9BQ05DLE1BQ0lDLE9BQVEsbUJBRVpDLFFBQVMsU0FBVUMsR0FDZkMsTUFBT0QiLCJmaWxlIjoiYWpheC1wYWdpbmF0aW9uLmpzIiwic291cmNlc0NvbnRlbnQiOlsiJChkb2N1bWVudCkucmVhZHkoZnVuY3Rpb24oKXtcbiAgICAkKCcjbW9yZS1hcnRpY2xlcycpLmNsaWNrKGZ1bmN0aW9uKGUpe1xuICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICQuYWpheCh7XG4gICAgICAgICAgICB1cmw6IGFqYXhwYWdpbmF0aW9uLmFqYXh1cmwsXG4gICAgICAgICAgICB0eXBlOiAncG9zdCcsXG4gICAgICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgICAgICAgYWN0aW9uOiAnYWpheF9wYWdpbmF0aW9uJ1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHN1Y2Nlc3M6IGZ1bmN0aW9uKCByZXN1bHQgKSB7XG4gICAgICAgICAgICAgICAgYWxlcnQoIHJlc3VsdCApO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KVxuICAgIH0pO1xufSk7Il0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFqYXgtcGFnaW5hdGlvbi5qcyJdLCJuYW1lcyI6WyIkIiwiZG9jdW1lbnQiLCJyZWFkeSIsImNsaWNrIiwiZSIsInByZXZlbnREZWZhdWx0IiwiYWpheCIsInVybCIsImFqYXhwYWdpbmF0aW9uIiwiYWpheHVybCIsInR5cGUiLCJkYXRhIiwiYWN0aW9uIiwic3VjY2VzcyIsInJlc3VsdCIsImFsZXJ0Il0sIm1hcHBpbmdzIjoiQUFBQUEsRUFBRUMsVUFBVUMsTUFBTSxXQUNkRixFQUFFLGtCQUFrQkcsTUFBTSxTQUFTQyxHQUMvQkEsRUFBRUMsaUJBQ0ZMLEVBQUVNLE1BQ0VDLElBQUtDLGVBQWVDLFFBQ3BCQyxLQUFNLE9BQ05DLE1BQ0lDLE9BQVEsbUJBRVpDLFFBQVMsU0FBVUMsR0FDZkMsTUFBT0QiLCJmaWxlIjoiYWpheC1wYWdpbmF0aW9uLmpzIiwic291cmNlc0NvbnRlbnQiOlsiJChkb2N1bWVudCkucmVhZHkoZnVuY3Rpb24oKXtcbiAgICAkKCcjbW9yZS1hcnRpY2xlcycpLmNsaWNrKGZ1bmN0aW9uKGUpe1xuICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICQuYWpheCh7XG4gICAgICAgICAgICB1cmw6IGFqYXhwYWdpbmF0aW9uLmFqYXh1cmwsXG4gICAgICAgICAgICB0eXBlOiAncG9zdCcsXG4gICAgICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgICAgICAgYWN0aW9uOiAnYWpheF9wYWdpbmF0aW9uJ1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHN1Y2Nlc3M6IGZ1bmN0aW9uKCByZXN1bHQgKSB7XG4gICAgICAgICAgICAgICAgYWxlcnQoIHJlc3VsdCApO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KVxuICAgIH0pO1xufSk7Il0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -12,4 +12,4 @@ $(document).ready(function(){
} }
}) })
}); });
}); });

File diff suppressed because it is too large Load Diff

View File

@ -1,201 +1,201 @@
//GLOBALS //GLOBALS
body, body,
html { html {
.copyTextSmall; .copyTextSmall;
font-smoothing: antialiased; font-smoothing: antialiased;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
&.page-template-template-companyblue { &.page-template-template-companyblue {
.copyText; .copyText;
} }
} }
a { a {
text-decoration: none; text-decoration: none;
color: @blueBright; color: @blueBright;
&:hover { &:hover {
color: @pink; color: @pink;
} }
} }
//FONTS //FONTS
.fontLight { .fontLight {
font-family: "canada-type-gibson",sans-serif; font-family: "canada-type-gibson",sans-serif;
font-weight: 200; font-weight: 200;
} }
.fontRegular { .fontRegular {
font-family: "canada-type-gibson",sans-serif; font-family: "canada-type-gibson",sans-serif;
font-weight: 400; font-weight: 400;
} }
// GENERAL TEXT STYLES // GENERAL TEXT STYLES
.sectionHeader { .sectionHeader {
&:extend(.fontLight); &:extend(.fontLight);
font-size: 34px; font-size: 34px;
color: @blueBright; color: @blueBright;
line-height: 1.2; line-height: 1.2;
margin: 35px 0; margin: 35px 0;
text-align: center; text-align: center;
@media screen and (max-width: @tabletWidth) { @media screen and (max-width: @tabletWidth) {
font-size: 30px; font-size: 30px;
} }
} }
.subsectionHeader { .subsectionHeader {
&:extend(.fontLight); &:extend(.fontLight);
font-size: 31px; font-size: 31px;
color: @black; color: @black;
line-height: 37px; line-height: 37px;
text-align: center; text-align: center;
} }
.h1, h1 { .h1, h1 {
&:extend(.fontLight); &:extend(.fontLight);
font-size: 36px; font-size: 36px;
color: @pink; color: @pink;
line-height: 1.2; line-height: 1.2;
} }
.h2, h2 { .h2, h2 {
&:extend(.fontRegular); &:extend(.fontRegular);
font-size: 26px; font-size: 26px;
color: @pink; color: @pink;
line-height: 1.2; line-height: 1.2;
} }
.h3, h3 { .h3, h3 {
&:extend(.fontLight); &:extend(.fontLight);
font-size: 27px; font-size: 27px;
color: @pink; color: @pink;
line-height: 1.2; line-height: 1.2;
} }
.h4, h4 { .h4, h4 {
&:extend(.fontRegular); &:extend(.fontRegular);
font-size: 26px; font-size: 26px;
color: @black; color: @black;
line-height: 1.2; line-height: 1.2;
} }
.h5, h5 { .h5, h5 {
&:extend(.fontLight); &:extend(.fontLight);
font-size: 26px; font-size: 26px;
color: @black; color: @black;
line-height: 1.2; line-height: 1.2;
} }
.h6, h6 { .h6, h6 {
&:extend(.fontRegular); &:extend(.fontRegular);
color: @pink; color: @pink;
font-size: 15px; font-size: 15px;
line-height: 19px; line-height: 19px;
} }
.copyText { .copyText {
&:extend(.fontLight); &:extend(.fontLight);
color: @blueDeep; color: @blueDeep;
font-size: 18px; font-size: 18px;
line-height: 22px; line-height: 22px;
} }
.copyTextMedium { .copyTextMedium {
&:extend(.fontLight); &:extend(.fontLight);
color: @blueDeep; color: @blueDeep;
font-size: 17px; font-size: 17px;
line-height: 21px; line-height: 21px;
} }
.copyTextSmall { .copyTextSmall {
&:extend(.fontLight); &:extend(.fontLight);
color: @blueDeep; color: @blueDeep;
font-size: 15px; font-size: 15px;
line-height: 19px; line-height: 19px;
} }
// SPECIALIZED TEXT STYLES // SPECIALIZED TEXT STYLES
.heroText { .heroText {
&:extend(.fontLight); &:extend(.fontLight);
font-size: 37px; font-size: 37px;
color: @white; color: @white;
line-height: 44px; line-height: 44px;
} }
.tourNavText { .tourNavText {
&:extend(.fontLight); &:extend(.fontLight);
font-size: 25px; font-size: 25px;
line-height: 30px; line-height: 30px;
color: @blueBright; color: @blueBright;
} }
.signInUpText { .signInUpText {
&:extend(.fontLight); &:extend(.fontLight);
font-size: 17px; font-size: 17px;
line-height: 20px; line-height: 20px;
color: @white; color: @white;
text-transform: uppercase; text-transform: uppercase;
} }
.featureCircleH1 { .featureCircleH1 {
&:extend(.fontLight); &:extend(.fontLight);
font-size: 20px; font-size: 20px;
color: @pink; color: @pink;
letter-spacing: 1.11px; letter-spacing: 1.11px;
line-height: 24px; line-height: 24px;
margin-bottom: 22px; margin-bottom: 22px;
} }
.caseStudyText { .caseStudyText {
&:extend(.fontRegular); &:extend(.fontRegular);
font-size: 23px; font-size: 23px;
color: @white; color: @white;
line-height: 28px; line-height: 28px;
} }
.oldWayNewWayTH { .oldWayNewWayTH {
&:extend(.fontLight); &:extend(.fontLight);
font-size: 24px; font-size: 24px;
color: @pink; color: @pink;
line-height: 29px; line-height: 29px;
} }
.blueBoxTitle { .blueBoxTitle {
&:extend(.fontRegular); &:extend(.fontRegular);
font-size: 43px; font-size: 43px;
color: @white; color: @white;
line-height: 52px; line-height: 52px;
text-align: center; text-align: center;
} }
.blueBoxCopy { .blueBoxCopy {
&:extend(.fontLight); &:extend(.fontLight);
font-size: 43px; font-size: 43px;
color: @white; color: @white;
line-height: 52px; line-height: 52px;
} }
.galleriesPressTitle { .galleriesPressTitle {
&:extend(.fontLight); &:extend(.fontLight);
font-size: 30px; font-size: 30px;
color: @black; color: @black;
line-height: 36px; line-height: 36px;
margin-bottom: 50px; margin-bottom: 50px;
} }
.featureBlogDesc { .featureBlogDesc {
&:extend(.fontLight); &:extend(.fontLight);
font-size: 13px; font-size: 13px;
color: @blueBright; color: @blueBright;
line-height: 22.79px; line-height: 22.79px;
} }
.featureBlogTitle { .featureBlogTitle {
&:extend(.fontLight); &:extend(.fontLight);
font-size: 17px; font-size: 17px;
color: @greyText; color: @greyText;
line-height: 22.79px; line-height: 22.79px;
text-transform: uppercase; text-transform: uppercase;
} }
.teamName { .teamName {
&:extend(.fontRegular); &:extend(.fontRegular);
color: @black; color: @black;
font-size: 19px; font-size: 19px;
} }
.footerText { .footerText {
&:extend(.fontLight); &:extend(.fontLight);
font-size: 14px; font-size: 14px;
color: @white; color: @white;
line-height: 25px; line-height: 25px;
} }
.subfooterText { .subfooterText {
color: @blackish; color: @blackish;
font-size: 13px; font-size: 13px;
line-height: 14px; line-height: 14px;
} }
@ -203,136 +203,136 @@ a {
// DEVICES // DEVICES
.button { .button {
display: inline-block; display: inline-block;
padding: 25px 40px; padding: 25px 40px;
&:extend(.fontRegular); &:extend(.fontRegular);
border: 1px solid; border: 1px solid;
font-size: 22px; font-size: 22px;
line-height: 26px; line-height: 26px;
text-decoration: none; text-decoration: none;
min-width: 265px; min-width: 265px;
text-align: center; text-align: center;
&.blue { &.blue {
@bgColor: @blueBright; @bgColor: @blueBright;
color: @white; color: @white;
background-color: @bgColor; background-color: @bgColor;
border-color: @bgColor; border-color: @bgColor;
&:hover { &:hover {
background-color: fade(@bgColor,50); background-color: fade(@bgColor,50);
} }
} }
&.pink { &.pink {
@bgColor: @pink; @bgColor: @pink;
color: @white; color: @white;
background-color: @bgColor; background-color: @bgColor;
border-color: @bgColor; border-color: @bgColor;
&:hover { &:hover {
background-color: fade(@bgColor,50); background-color: fade(@bgColor,50);
} }
} }
&.blue-overPic { &.blue-overPic {
@bgColor: @blueBright; @bgColor: @blueBright;
color: @white; color: @white;
background-color: @bgColor; background-color: @bgColor;
border-color: @bgColor; border-color: @bgColor;
&:hover { &:hover {
background-color: @white; background-color: @white;
color: @bgColor; color: @bgColor;
} }
} }
&.pink-overPic { &.pink-overPic {
@bgColor: @pink; @bgColor: @pink;
color: @white; color: @white;
background-color: @bgColor; background-color: @bgColor;
border-color: @bgColor; border-color: @bgColor;
&:hover { &:hover {
background-color: @white; background-color: @white;
color: @bgColor; color: @bgColor;
} }
} }
&.white-blue { &.white-blue {
@bgColor: @white; @bgColor: @white;
color: @blueBright; color: @blueBright;
background-color: @bgColor; background-color: @bgColor;
border-color: @blueBright; border-color: @blueBright;
&:hover { &:hover {
background-color: fade(@blueBright,50); background-color: fade(@blueBright,50);
color: @white; color: @white;
} }
} }
&.small { &.small {
&:extend(.fontLight); &:extend(.fontLight);
padding: 5px 15px; padding: 5px 15px;
font-size: 14px; font-size: 14px;
color: @white; color: @white;
background-color: transparent; background-color: transparent;
border-color: @white; border-color: @white;
min-width: auto; min-width: auto;
&:hover { &:hover {
background-color: fade(@white,40); background-color: fade(@white,40);
border-color: fade(@white,40); border-color: fade(@white,40);
color: @white; color: @white;
} }
} }
@media screen and (max-width: @smallWidth) { @media screen and (max-width: @smallWidth) {
min-width: initial; min-width: initial;
} }
} }
.chevron-divider { .chevron-divider {
background-image: url(../../images/svg/ascribe-chevron.svg); background-image: url(../../images/svg/ascribe-chevron.svg);
background-position: bottom; background-position: bottom;
width: 100%; width: 100%;
background-size: 100%; background-size: 100%;
height: 150px; height: 150px;
@media screen and (max-width: @tabletWidth) { @media screen and (max-width: @tabletWidth) {
background-size: 120%; background-size: 120%;
} }
} }
.social-icon { .social-icon {
width: 21px; width: 21px;
height: 21px; height: 21px;
padding: 1px; padding: 1px;
fill: @white; fill: @white;
background-color: @greySocial; background-color: @greySocial;
border-radius: 5px; border-radius: 5px;
&:hover { &:hover {
background-color: fade(@greySocial,40); background-color: fade(@greySocial,40);
} }
} }
hr { hr {
border: 0; border: 0;
height: 2px; height: 2px;
background: @greyHr; background: @greyHr;
margin: 40px 0; margin: 40px 0;
} }
.blueGradient { .blueGradient {
background-color: @blueBright; background-color: @blueBright;
/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#519cad+0,67c4da+100 */ /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#519cad+0,67c4da+100 */
/* IE9 SVG, needs conditional override of 'filter' to 'none' */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzUxOWNhZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM2N2M0ZGEiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzUxOWNhZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM2N2M0ZGEiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top, rgba(81,156,173,1) 0%, rgba(103,196,218,1) 100%); /* FF3.6+ */ background: -moz-linear-gradient(top, rgba(81,156,173,1) 0%, rgba(103,196,218,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(81,156,173,1)), color-stop(100%,rgba(103,196,218,1))); /* Chrome,Safari4+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(81,156,173,1)), color-stop(100%,rgba(103,196,218,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(81,156,173,1) 0%,rgba(103,196,218,1) 100%); /* Chrome10+,Safari5.1+ */ background: -webkit-linear-gradient(top, rgba(81,156,173,1) 0%,rgba(103,196,218,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(81,156,173,1) 0%,rgba(103,196,218,1) 100%); /* Opera 11.10+ */ background: -o-linear-gradient(top, rgba(81,156,173,1) 0%,rgba(103,196,218,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(81,156,173,1) 0%,rgba(103,196,218,1) 100%); /* IE10+ */ background: -ms-linear-gradient(top, rgba(81,156,173,1) 0%,rgba(103,196,218,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(81,156,173,1) 0%,rgba(103,196,218,1) 100%); /* W3C */ background: linear-gradient(to bottom, rgba(81,156,173,1) 0%,rgba(103,196,218,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#519cad', endColorstr='#67c4da',GradientType=0 ); /* IE6-8 */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#519cad', endColorstr='#67c4da',GradientType=0 ); /* IE6-8 */
} }

View File

@ -9,24 +9,24 @@
// to ensure the container has a height. Use .no-clearfix to reset a clearfix // to ensure the container has a height. Use .no-clearfix to reset a clearfix
// when in a dicey spot // when in a dicey spot
.clearfix { .clearfix {
zoom: 1; zoom: 1;
&:before, &:after { &:before, &:after {
content: ""; content: "";
display: table; display: table;
} }
&:after { &:after {
clear: both; clear: both;
} }
} }
.no-clearfix { .no-clearfix {
zoom: 0; zoom: 0;
&:before, &:before,
&:after { &:after {
display: none; display: none;
} }
&:after { &:after {
clear: none; clear: none;
} }
} }
// CENTERED // CENTERED
@ -34,157 +34,157 @@
@centeredpadding: 10px; @centeredpadding: 10px;
.centered-header { .centered-header {
.clearfix; .clearfix;
max-width: 1120px + 2*@centeredpadding; max-width: 1120px + 2*@centeredpadding;
padding: 0 @centeredpadding; padding: 0 @centeredpadding;
width: 100%; width: 100%;
margin: 0 auto; margin: 0 auto;
} }
.centered-prodFeat { .centered-prodFeat {
.clearfix; .clearfix;
max-width: 930px + 2*@centeredpadding; max-width: 930px + 2*@centeredpadding;
padding: 0 @centeredpadding; padding: 0 @centeredpadding;
width: 100%; width: 100%;
margin: 0 auto; margin: 0 auto;
} }
.centered-content { .centered-content {
.clearfix; .clearfix;
max-width: 770px + 2*@centeredpadding; max-width: 770px + 2*@centeredpadding;
padding: 0 @centeredpadding; padding: 0 @centeredpadding;
width: 100%; width: 100%;
margin: 0 auto; margin: 0 auto;
} }
.centered-pricing { .centered-pricing {
.clearfix; .clearfix;
max-width: 880px + 2*@centeredpadding; max-width: 880px + 2*@centeredpadding;
padding: 0 @centeredpadding; padding: 0 @centeredpadding;
width: 100%; width: 100%;
margin: 0 auto; margin: 0 auto;
} }
.centered-content-padding { .centered-content-padding {
.clearfix; .clearfix;
max-width: 950px; max-width: 950px;
padding: 0 @centeredpadding 50px; padding: 0 @centeredpadding 50px;
width: 100%; width: 100%;
margin: 0 auto; margin: 0 auto;
background-color: @white; background-color: @white;
} }
.centered-categories { .centered-categories {
.clearfix; .clearfix;
max-width: 1000px; max-width: 1000px;
width: 100%; width: 100%;
margin: 0 auto; margin: 0 auto;
} }
.centered-footer { .centered-footer {
.clearfix; .clearfix;
max-width: 650px + 2*@centeredpadding; max-width: 650px + 2*@centeredpadding;
padding: 0 @centeredpadding; padding: 0 @centeredpadding;
width: 100%; width: 100%;
margin: 0 auto; margin: 0 auto;
} }
// GENERAL LIST // GENERAL LIST
// TAKES AWAY PADDING AND LIST STYLE // TAKES AWAY PADDING AND LIST STYLE
ul, ol { ul, ol {
padding:0; padding:0;
margin:0; margin:0;
} }
// COLUMN SECTIONS // COLUMN SECTIONS
.wrapper { .wrapper {
position: relative; position: relative;
overflow:hidden; overflow:hidden;
} }
@paddingForCols: 30px; @paddingForCols: 30px;
.ttl-columns { .ttl-columns {
font-size:0; font-size:0;
width:100%; width:100%;
width: calc(~"100% +"@paddingForCols); width: calc(~"100% +"@paddingForCols);
.column { .column {
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
padding-right: @paddingForCols; padding-right: @paddingForCols;
font-size: 15px; font-size: 15px;
} }
.column-2 { .column-2 {
.column; .column;
width: 50%; width: 50%;
@media screen and (max-width: @middleWidth) { @media screen and (max-width: @middleWidth) {
width: 100%; width: 100%;
} }
} }
.column-3 { .column-3 {
.column; .column;
width: 100/3%; width: 100/3%;
@media screen and (max-width: @middleWidth) { @media screen and (max-width: @middleWidth) {
width: 100%; width: 100%;
} }
} }
.column-4 { .column-4 {
.column; .column;
width: 25%; width: 25%;
@media screen and (max-width: @tabletWidth) { @media screen and (max-width: @tabletWidth) {
width: 50%; width: 50%;
} }
} }
.column-5 { .column-5 {
.column; .column;
width: 20%; width: 20%;
@media screen and (max-width: @tabletWidth) { @media screen and (max-width: @tabletWidth) {
width: 50%; width: 50%;
} }
} }
.column-6 { .column-6 {
.column; .column;
width: 100/6%; width: 100/6%;
@media screen and (max-width: @tabletWidth) { @media screen and (max-width: @tabletWidth) {
width: 33%; width: 33%;
} }
@media screen and (max-width: @phoneWidth) { @media screen and (max-width: @phoneWidth) {
width: 50%; width: 50%;
} }
} }
.column-7 { .column-7 {
.column; .column;
width: 100/7%; width: 100/7%;
@media screen and (max-width: @tabletWidth) { @media screen and (max-width: @tabletWidth) {
width: 33%; width: 33%;
} }
} }
.columnTwoThirds { .columnTwoThirds {
.column; .column;
width: 66.6%; width: 66.6%;
@media screen and (max-width: @middleWidth) { @media screen and (max-width: @middleWidth) {
width: 100%; width: 100%;
} }
} }
.columnThreeQuarters { .columnThreeQuarters {
.column; .column;
width: 100 * 3/4%; width: 100 * 3/4%;
@media screen and (max-width: @tabletWidth) { @media screen and (max-width: @tabletWidth) {
width: 100%; width: 100%;
} }
} }
} }
.column-container { .column-container {
.ttl-columns; .ttl-columns;
} }
// BORDER-BOX // BORDER-BOX
@ -193,9 +193,9 @@ ul, ol {
*, *,
*:before, *:before,
*:after { *:after {
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
} }
// EMBED OBJECTS // EMBED OBJECTS
@ -204,39 +204,39 @@ img,
embed, embed,
object, object,
video { video {
max-width: 100%; max-width: 100%;
border: 0; border: 0;
padding: 0; padding: 0;
} }
// MOBILE-ONLY // MOBILE-ONLY
// Use this to only display something on mobile- and tablet-width devices. // Use this to only display something on mobile- and tablet-width devices.
// Depending on project specs, you may wish to override this breakpoint. // Depending on project specs, you may wish to override this breakpoint.
.phone-only { .phone-only {
display: none; display: none;
@media screen and (max-width: @phoneWidth) { @media screen and (max-width: @phoneWidth) {
display: inherit; display: inherit;
} }
} }
.mobile-only { .mobile-only {
display: none; display: none;
@media screen and (max-width: @tabletWidth) { @media screen and (max-width: @tabletWidth) {
display: inherit; display: inherit;
} }
} }
.desktop-only { .desktop-only {
@media screen and (max-width: @tabletWidth) { @media screen and (max-width: @tabletWidth) {
display: none; display: none;
} }
} }
.phone-and-up { .phone-and-up {
@media screen and (max-width: @phoneWidth) { @media screen and (max-width: @phoneWidth) {
display: none; display: none;
} }
} }
// MIXINS // MIXINS
@ -244,11 +244,11 @@ video {
// TRANSITION // TRANSITION
// Applies a CSS transition between properties // Applies a CSS transition between properties
.transition(@property: all, @speed: 0.15s, @easing: ease-in-out) { .transition(@property: all, @speed: 0.15s, @easing: ease-in-out) {
-webkit-transition: @property @speed @easing; -webkit-transition: @property @speed @easing;
-moz-transition: @property @speed @easing; -moz-transition: @property @speed @easing;
-ms-transition: @property @speed @easing; -ms-transition: @property @speed @easing;
-o-transition: @property @speed @easing; -o-transition: @property @speed @easing;
transition: @property @speed @easing; transition: @property @speed @easing;
} }
///** ///**
@ -268,8 +268,8 @@ video {
// **/ // **/
.selection(@text-color, @background-color) { .selection(@text-color, @background-color) {
&::-moz-selection {color: @text-color; background-color: @background-color;} &::-moz-selection {color: @text-color; background-color: @background-color;}
&::selection {color: @text-color; background-color: @background-color;} &::selection {color: @text-color; background-color: @background-color;}
} }
// * =========================================================== * // * =========================================================== *
@ -284,33 +284,33 @@ video {
.placeholder(@color:#aaa, @element: 08121991) { .placeholder(@color:#aaa, @element: 08121991) {
.inception (@arguments) when not (@element = 08121991) { .inception (@arguments) when not (@element = 08121991) {
@{element}::-webkit-input-placeholder { @{element}::-webkit-input-placeholder {
color: @color; color: @color;
} }
@{element}:-moz-placeholder { @{element}:-moz-placeholder {
color: @color; color: @color;
} }
@{element}::-moz-placeholder { @{element}::-moz-placeholder {
color: @color; color: @color;
} }
@{element}:-ms-input-placeholder { @{element}:-ms-input-placeholder {
color: @color; color: @color;
} }
} }
.inception (@arguments) when (@element = 08121991) { .inception (@arguments) when (@element = 08121991) {
&::-webkit-input-placeholder { &::-webkit-input-placeholder {
color: @color; color: @color;
} }
&:-moz-placeholder { &:-moz-placeholder {
color: @color; color: @color;
} }
&::-moz-placeholder { &::-moz-placeholder {
color: @color; color: @color;
} }
&:-ms-input-placeholder { &:-ms-input-placeholder {
color: @color; color: @color;
} }
} }
.inception(@arguments); .inception(@arguments);
} }

View File

@ -47,4 +47,4 @@
.cboxSlideshow_on #cboxSlideshow{background-position:-75px -25px; right:44px;} .cboxSlideshow_on #cboxSlideshow{background-position:-75px -25px; right:44px;}
.cboxSlideshow_on #cboxSlideshow:hover{background-position:-100px -25px;} .cboxSlideshow_on #cboxSlideshow:hover{background-position:-100px -25px;}
.cboxSlideshow_off #cboxSlideshow{background-position:-100px 0px; right:44px;} .cboxSlideshow_off #cboxSlideshow{background-position:-100px 0px; right:44px;}
.cboxSlideshow_off #cboxSlideshow:hover{background-position:-75px -25px;} .cboxSlideshow_off #cboxSlideshow:hover{background-position:-75px -25px;}

View File

@ -7,9 +7,9 @@
*/ */
html { html {
font-family: sans-serif; /* 1 */ font-family: sans-serif; /* 1 */
-ms-text-size-adjust: 100%; /* 2 */ -ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */ -webkit-text-size-adjust: 100%; /* 2 */
} }
/** /**
@ -17,12 +17,12 @@ html {
*/ */
body { body {
margin: 0; margin: 0;
} }
html, html,
body { body {
height: 100%; height: 100%;
} }
/* HTML5 display definitions /* HTML5 display definitions
@ -46,7 +46,7 @@ main,
nav, nav,
section, section,
summary { summary {
display: block; display: block;
} }
/** /**
@ -58,8 +58,8 @@ audio,
canvas, canvas,
progress, progress,
video { video {
display: inline-block; /* 1 */ display: inline-block; /* 1 */
vertical-align: baseline; /* 2 */ vertical-align: baseline; /* 2 */
} }
/** /**
@ -68,8 +68,8 @@ video {
*/ */
audio:not([controls]) { audio:not([controls]) {
display: none; display: none;
height: 0; height: 0;
} }
/** /**
@ -79,7 +79,7 @@ audio:not([controls]) {
[hidden], [hidden],
template { template {
display: none; display: none;
} }
/* Links /* Links
@ -90,7 +90,7 @@ template {
*/ */
a { a {
background: transparent; background: transparent;
} }
/** /**
@ -99,7 +99,7 @@ a {
a:active, a:active,
a:hover { a:hover {
outline: 0; outline: 0;
} }
/* Text-level semantics /* Text-level semantics
@ -110,7 +110,7 @@ a:hover {
*/ */
abbr[title] { abbr[title] {
border-bottom: 1px dotted; border-bottom: 1px dotted;
} }
/** /**
@ -119,7 +119,7 @@ abbr[title] {
b, b,
strong { strong {
font-weight: bold; font-weight: bold;
} }
/** /**
@ -127,7 +127,7 @@ strong {
*/ */
dfn { dfn {
font-style: italic; font-style: italic;
} }
/** /**
@ -136,8 +136,8 @@ dfn {
*/ */
h1 { h1 {
font-size: 2em; font-size: 2em;
margin: 0.67em 0; margin: 0.67em 0;
} }
/** /**
@ -145,8 +145,8 @@ h1 {
*/ */
mark { mark {
background: #ff0; background: #ff0;
color: #000; color: #000;
} }
/** /**
@ -154,7 +154,7 @@ mark {
*/ */
small { small {
font-size: 80%; font-size: 80%;
} }
/** /**
@ -163,18 +163,18 @@ small {
sub, sub,
sup { sup {
font-size: 75%; font-size: 75%;
line-height: 0; line-height: 0;
position: relative; position: relative;
vertical-align: baseline; vertical-align: baseline;
} }
sup { sup {
top: -0.5em; top: -0.5em;
} }
sub { sub {
bottom: -0.25em; bottom: -0.25em;
} }
/* Embedded content /* Embedded content
@ -185,7 +185,7 @@ sub {
*/ */
img { img {
border: 0; border: 0;
} }
@ -197,7 +197,7 @@ img {
*/ */
figure { figure {
margin: 1em 40px; margin: 1em 40px;
} }
/** /**
@ -205,9 +205,9 @@ figure {
*/ */
hr { hr {
-moz-box-sizing: content-box; -moz-box-sizing: content-box;
box-sizing: content-box; box-sizing: content-box;
height: 0; height: 0;
} }
/** /**
@ -215,7 +215,7 @@ hr {
*/ */
pre { pre {
overflow: auto; overflow: auto;
} }
/** /**
@ -226,8 +226,8 @@ code,
kbd, kbd,
pre, pre,
samp { samp {
font-family: monospace, monospace; font-family: monospace, monospace;
font-size: 1em; font-size: 1em;
} }
/* Forms /* Forms
@ -250,9 +250,9 @@ input,
optgroup, optgroup,
select, select,
textarea { textarea {
color: inherit; /* 1 */ color: inherit; /* 1 */
font: inherit; /* 2 */ font: inherit; /* 2 */
margin: 0; /* 3 */ margin: 0; /* 3 */
} }
/** /**
@ -260,7 +260,7 @@ textarea {
*/ */
button { button {
overflow: visible; overflow: visible;
} }
/** /**
@ -272,7 +272,7 @@ button {
button, button,
select { select {
text-transform: none; text-transform: none;
} }
/** /**
@ -287,8 +287,8 @@ button,
html input[type="button"], /* 1 */ html input[type="button"], /* 1 */
input[type="reset"], input[type="reset"],
input[type="submit"] { input[type="submit"] {
-webkit-appearance: button; /* 2 */ -webkit-appearance: button; /* 2 */
cursor: pointer; /* 3 */ cursor: pointer; /* 3 */
} }
/** /**
@ -297,7 +297,7 @@ input[type="submit"] {
button[disabled], button[disabled],
html input[disabled] { html input[disabled] {
cursor: default; cursor: default;
} }
/** /**
@ -306,8 +306,8 @@ html input[disabled] {
button::-moz-focus-inner, button::-moz-focus-inner,
input::-moz-focus-inner { input::-moz-focus-inner {
border: 0; border: 0;
padding: 0; padding: 0;
} }
/** /**
@ -316,7 +316,7 @@ input::-moz-focus-inner {
*/ */
input { input {
line-height: normal; line-height: normal;
} }
/** /**
@ -329,8 +329,8 @@ input {
input[type="checkbox"], input[type="checkbox"],
input[type="radio"] { input[type="radio"] {
box-sizing: border-box; /* 1 */ box-sizing: border-box; /* 1 */
padding: 0; /* 2 */ padding: 0; /* 2 */
} }
/** /**
@ -341,7 +341,7 @@ input[type="radio"] {
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { input[type="number"]::-webkit-outer-spin-button {
height: auto; height: auto;
} }
/** /**
@ -351,10 +351,10 @@ input[type="number"]::-webkit-outer-spin-button {
*/ */
input[type="search"] { input[type="search"] {
-webkit-appearance: textfield; /* 1 */ -webkit-appearance: textfield; /* 1 */
-moz-box-sizing: content-box; -moz-box-sizing: content-box;
-webkit-box-sizing: content-box; /* 2 */ -webkit-box-sizing: content-box; /* 2 */
box-sizing: content-box; box-sizing: content-box;
} }
/** /**
@ -365,7 +365,7 @@ input[type="search"] {
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none; -webkit-appearance: none;
} }
/** /**
@ -373,9 +373,9 @@ input[type="search"]::-webkit-search-decoration {
*/ */
fieldset { fieldset {
border: 1px solid #c0c0c0; border: 1px solid #c0c0c0;
margin: 0 2px; margin: 0 2px;
padding: 0.35em 0.625em 0.75em; padding: 0.35em 0.625em 0.75em;
} }
/** /**
@ -384,8 +384,8 @@ fieldset {
*/ */
legend { legend {
border: 0; /* 1 */ border: 0; /* 1 */
padding: 0; /* 2 */ padding: 0; /* 2 */
} }
/** /**
@ -393,7 +393,7 @@ legend {
*/ */
textarea { textarea {
overflow: auto; overflow: auto;
} }
/** /**
@ -402,7 +402,7 @@ textarea {
*/ */
optgroup { optgroup {
font-weight: bold; font-weight: bold;
} }
/* Tables /* Tables
@ -413,11 +413,11 @@ optgroup {
*/ */
table { table {
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0; border-spacing: 0;
} }
td, td,
th { th {
padding: 0; padding: 0;
} }

View File

@ -1 +1 @@
@media print { * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } a, a:visited { color: #444 !important; text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } @page { margin: 0.5cm; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3{ page-break-after: avoid; } } @media print { * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } a, a:visited { color: #444 !important; text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } @page { margin: 0.5cm; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3{ page-break-after: avoid; } }

View File

@ -1,25 +1,25 @@
<?php <?php
if ( ! defined( 'PROJECT' ) ) { if ( ! defined( 'PROJECT' ) ) {
define( 'PROJECT', __DIR__ . '/includes/' ); define( 'PROJECT', __DIR__ . '/includes/' );
} }
if ( ! defined( 'WPTHEME_DIR' ) ) { if ( ! defined( 'WPTHEME_DIR' ) ) {
define( 'WPTHEME_DIR', __DIR__ . '/' ); define( 'WPTHEME_DIR', __DIR__ . '/' );
} }
// Place any additional bootstrapping requirements here for PHP Unit. // Place any additional bootstrapping requirements here for PHP Unit.
if ( ! defined( 'WP_LANG_DIR' ) ) { if ( ! defined( 'WP_LANG_DIR' ) ) {
define( 'WP_LANG_DIR', 'lang_dir' ); define( 'WP_LANG_DIR', 'lang_dir' );
} }
if ( ! defined( 'WPTHEME_PATH' ) ) { if ( ! defined( 'WPTHEME_PATH' ) ) {
define( 'WPTHEME_PATH', 'path' ); define( 'WPTHEME_PATH', 'path' );
} }
if ( ! file_exists( __DIR__ . '/vendor/autoload.php' ) ) { if ( ! file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
throw new PHPUnit_Framework_Exception( throw new PHPUnit_Framework_Exception(
'ERROR' . PHP_EOL . PHP_EOL . 'ERROR' . PHP_EOL . PHP_EOL .
'You must use Composer to install the test suite\'s dependencies!' . PHP_EOL 'You must use Composer to install the test suite\'s dependencies!' . PHP_EOL
); );
} }
require_once __DIR__ . '/vendor/autoload.php'; require_once __DIR__ . '/vendor/autoload.php';

View File

@ -1,27 +1,27 @@
{ {
"name": "ascribe", "name": "ascribe",
"description": "The best WordPress theme ever made!", "description": "The best WordPress theme ever made!",
"version": "0.0.1", "version": "0.0.1",
"type": "wordpress-theme", "type": "wordpress-theme",
"keywords": [], "keywords": [],
"homepage": "http://wordpress.org/themes", "homepage": "http://wordpress.org/themes",
"license": "GPLv2.0+", "license": "GPLv2.0+",
"authors": [ "authors": [
{ {
"name": "Territorial", "name": "Territorial",
"email": "us@territorial.ca", "email": "us@territorial.ca",
"homepage": "http://territorial.ca", "homepage": "http://territorial.ca",
"role": "Developer" "role": "Developer"
} }
], ],
"minimum-stability": "dev", "minimum-stability": "dev",
"require": { "require": {
"php": ">=5.4" "php": ">=5.4"
}, },
"require-dev": { "require-dev": {
"antecedent/patchwork": "1.2.*", "antecedent/patchwork": "1.2.*",
"phpunit/phpunit" : "*@stable", "phpunit/phpunit" : "*@stable",
"brianium/paratest" : "dev-master", "brianium/paratest" : "dev-master",
"10up/wp_mock" : "dev-master" "10up/wp_mock" : "dev-master"
} }
} }

View File

@ -8,16 +8,16 @@ $lname = get_the_author_meta('last_name');
$full_name = ''; $full_name = '';
if( empty($fname)){ if( empty($fname)){
$full_name = $lname; $full_name = $lname;
} elseif( empty( $lname )){ } elseif( empty( $lname )){
$full_name = $fname; $full_name = $fname;
} else { } else {
//both first name and last name are present //both first name and last name are present
$full_name = "{$fname} {$lname}"; $full_name = "{$fname} {$lname}";
} }
if (strlen($full_name) <= 0) { if (strlen($full_name) <= 0) {
$full_name = 'ascribe'; $full_name = 'ascribe';
} }
$url = get_the_permalink(); $url = get_the_permalink();
@ -25,33 +25,33 @@ $url = get_the_permalink();
?> ?>
<article <?php post_class(); ?>> <article <?php post_class(); ?>>
<h2><?php echo get_the_category_list(); ?></h2> <h2><?php echo get_the_category_list(); ?></h2>
<?php echo "<h1><a href='{$url}'>{$title}</a></h1>" ?> <?php echo "<h1><a href='{$url}'>{$title}</a></h1>" ?>
<div class="image"> <div class="image">
<?php <?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it. if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'blog-crop'); $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'blog-crop');
echo "<img src='{$thumb[0]}' alt='{$title} image'>"; echo "<img src='{$thumb[0]}' alt='{$title} image'>";
} }
?> ?>
</div> </div>
<div class="meta"> <div class="meta">
<?php echo get_avatar( get_the_author_email(), 'size here' ); ?> <?php echo get_avatar( get_the_author_email(), 'size here' ); ?>
<span class="author">by <?php echo $full_name; ?></span> <span class="author">by <?php echo $full_name; ?></span>
on <date><?php the_time( get_option( 'date_format' ) ); ?></date> on <date><?php the_time( get_option( 'date_format' ) ); ?></date>
</div> </div>
<main class="entry"> <main class="entry">
<?php <?php
if ( ! is_singular() ) { if ( ! is_singular() ) {
the_excerpt(); the_excerpt();
echo "<a href='{$url}'>Read More</a>"; echo "<a href='{$url}'>Read More</a>";
} else { } else {
the_content(); the_content();
} }
?> ?>
</main> </main>
</article> </article>

View File

@ -1,4 +1,4 @@
<?php $controller = new Controller(); ?> <?php $controller = new Controller(); ?>
<main class="above-chevron"> <main class="above-chevron">
<?php echo $controller->loopSubtemplates(); ?> <?php echo $controller->loopSubtemplates(); ?>
</main> </main>

View File

@ -1,7 +1,7 @@
<main> <main>
<section class="subtemplate"> <section class="subtemplate">
<h1>No Posts</h1> <h1>No Posts</h1>
<div>Sorry, there are no posts for this category!</div> <div>Sorry, there are no posts for this category!</div>
</section> </section>
</main> </main>

File diff suppressed because it is too large Load Diff

View File

@ -6,14 +6,14 @@
class Controller { class Controller {
public function __construct() { public function __construct() {
spl_autoload_register(function ($class) { spl_autoload_register(function ($class) {
require_once 'classes/' . $class . '.php'; require_once 'classes/' . $class . '.php';
}); });
} }
public function loopSubtemplates() { public function loopSubtemplates() {
$controller = new Subtemplate(); $controller = new Subtemplate();
return $controller->loopSubtemplates(); return $controller->loopSubtemplates();
} }
} }

View File

@ -16,18 +16,18 @@ $url = get_bloginfo('wpurl');
//<editor-fold desc="Get Title"> //<editor-fold desc="Get Title">
if(isset($passInTitle)) { if(isset($passInTitle)) {
$title = $passInTitle; $title = $passInTitle;
} }
else { else {
$title = get_the_title(); $title = get_the_title();
} }
if (strpos($title, 'Home') !== false) if (strpos($title, 'Home') !== false)
{ {
$title = ''; $title = '';
} }
else { else {
$title .= ' | '; $title .= ' | ';
} }
$title .= get_bloginfo(); $title .= get_bloginfo();
//</editor-fold> //</editor-fold>
@ -36,20 +36,20 @@ $title .= get_bloginfo();
$description = get_the_excerpt(); $description = get_the_excerpt();
if (empty($description)) { if (empty($description)) {
$content = get_field('subtemplate')[0]['content']; $content = get_field('subtemplate')[0]['content'];
if (!empty($content)) { if (!empty($content)) {
$description = substr(strip_tags($content),0,140)."..."; $description = substr(strip_tags($content),0,140)."...";
} }
} }
if (empty($description)) { if (empty($description)) {
$description = get_bloginfo('description'); $description = get_bloginfo('description');
} }
//</editor-fold> //</editor-fold>
//<editor-fold desc="Get Image"> //<editor-fold desc="Get Image">
$image = get_field('header_image')['url']; $image = get_field('header_image')['url'];
if (empty($image)) { if (empty($image)) {
$image = WPTHEME_TEMPLATE_URL.'/images/ico/apple-touch-icon-152x152.png'; $image = WPTHEME_TEMPLATE_URL.'/images/ico/apple-touch-icon-152x152.png';
} }
//</editor-fold> //</editor-fold>

View File

@ -16,20 +16,20 @@ $url = get_bloginfo('wpurl');
//<editor-fold desc="Get Title"> //<editor-fold desc="Get Title">
if(isset($passInTitle)) { if(isset($passInTitle)) {
$title = $passInTitle; $title = $passInTitle;
} }
else { else {
$title = get_the_title(); $title = get_the_title();
} }
if (strpos($title, 'Home') !== false) if (strpos($title, 'Home') !== false)
{ {
$title = ''; $title = '';
} }
else { else {
$title .= ' | '; $title .= ' | ';
} }
$title .= get_bloginfo(); $title .= get_bloginfo();
//</editor-fold> //</editor-fold>
@ -38,21 +38,21 @@ $title .= get_bloginfo();
$description = get_the_excerpt(); $description = get_the_excerpt();
if (empty($description)) { if (empty($description)) {
$content = get_field('subtemplate')[0]['content']; $content = get_field('subtemplate')[0]['content'];
if (!empty($content)) { if (!empty($content)) {
$description = substr(strip_tags($content),0,140)."..."; $description = substr(strip_tags($content),0,140)."...";
} }
} }
if (empty($description)) { if (empty($description)) {
$description = get_bloginfo('description'); $description = get_bloginfo('description');
} }
//</editor-fold> //</editor-fold>
//<editor-fold desc="Get Image"> //<editor-fold desc="Get Image">
$image = get_field('header_image')['url']; $image = get_field('header_image')['url'];
if (empty($image)) { if (empty($image)) {
$image = WPTHEME_TEMPLATE_URL.'/images/ico/apple-touch-icon-152x152.png'; $image = WPTHEME_TEMPLATE_URL.'/images/ico/apple-touch-icon-152x152.png';
} }
//</editor-fold> //</editor-fold>
@ -60,4 +60,3 @@ if (empty($image)) {
$signInLink = get_field('sign_in_link','option'); $signInLink = get_field('sign_in_link','option');
$signUpLink = get_field('sign_up_link','option'); $signUpLink = get_field('sign_up_link','option');
//</editor-fold> //</editor-fold>

View File

@ -14,147 +14,147 @@ $themeUrl = WPTHEME_TEMPLATE_URL . '/';
$facebook = get_field('facebook_url','option'); $facebook = get_field('facebook_url','option');
if ($facebook) { if ($facebook) {
$facebookIcon = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve" class="social-icon replaced-svg"> $facebookIcon = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve" class="social-icon replaced-svg">
<path d="M17.502747,3.688797H6.498352c-1.513306,0-2.751221,1.237915-2.751221,2.75122v11.003296 c0,1.514038,1.237915,2.751221,2.751221,2.751221h6.271484v-6.535889h-2.172913v-2.698975h2.172913V9.601334 c0-1.9469,1.461792-3.530945,3.259399-3.530945h2.172974v2.69043h-2.172974c-0.256165,0-0.54303,0.348633-0.54303,0.814941v1.383911 h2.716003v2.698975h-2.716003v6.535889h2.016541c1.513,0,2.750122-1.237183,2.750122-2.751221V6.440017 C20.252869,4.926712,19.015747,3.688797,17.502747,3.688797z"></path> <path d="M17.502747,3.688797H6.498352c-1.513306,0-2.751221,1.237915-2.751221,2.75122v11.003296 c0,1.514038,1.237915,2.751221,2.751221,2.751221h6.271484v-6.535889h-2.172913v-2.698975h2.172913V9.601334 c0-1.9469,1.461792-3.530945,3.259399-3.530945h2.172974v2.69043h-2.172974c-0.256165,0-0.54303,0.348633-0.54303,0.814941v1.383911 h2.716003v2.698975h-2.716003v6.535889h2.016541c1.513,0,2.750122-1.237183,2.750122-2.751221V6.440017 C20.252869,4.926712,19.015747,3.688797,17.502747,3.688797z"></path>
</svg>'; </svg>';
$facebook = "<li><a href='{$facebook}' target='_blank' class='facebook'>{$facebookIcon}</a></li>"; $facebook = "<li><a href='{$facebook}' target='_blank' class='facebook'>{$facebookIcon}</a></li>";
} }
$github = get_field('github_url','option'); $github = get_field('github_url','option');
if ($github) { if ($github) {
$gitIcon = '<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" $gitIcon = '<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve" class="social-icon"> viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve" class="social-icon">
<path d="M12,2.675904c-5.246338,0-9.5,4.253662-9.5,9.5c0,4.197998,2.72175,7.758179,6.497035,9.01409 <path d="M12,2.675904c-5.246338,0-9.5,4.253662-9.5,9.5c0,4.197998,2.72175,7.758179,6.497035,9.01409
c0.474889,0.086985,0.648264-0.206421,0.648264-0.456909c0-0.226143-0.008702-0.975271-0.013341-1.768484 c0.474889,0.086985,0.648264-0.206421,0.648264-0.456909c0-0.226143-0.008702-0.975271-0.013341-1.768484
C6.990234,19.538626,6.43185,17.84436,6.43185,17.84436c-0.432547-1.097046-1.054723-1.389282-1.054723-1.389282 C6.990234,19.538626,6.43185,17.84436,6.43185,17.84436c-0.432547-1.097046-1.054723-1.389282-1.054723-1.389282
c-0.863368-0.589111,0.065498-0.577515,0.065498-0.577515c0.953823,0.066092,1.455986,0.97876,1.455986,0.97876 c-0.863368-0.589111,0.065498-0.577515,0.065498-0.577515c0.953823,0.066092,1.455986,0.97876,1.455986,0.97876
c0.847726,1.451904,2.224244,1.032104,2.764649,0.788574c0.086353-0.612305,0.332203-1.032104,0.603027-1.268677 c0.847726,1.451904,2.224244,1.032104,2.764649,0.788574c0.086353-0.612305,0.332203-1.032104,0.603027-1.268677
C8.157435,16.136179,5.939,15.320923,5.939,11.680717c0-1.037912,0.370518-1.884452,0.977015-2.549525 C8.157435,16.136179,5.939,15.320923,5.939,11.680717c0-1.037912,0.370518-1.884452,0.977015-2.549525
C6.819179,8.88998,6.492153,7.923392,7.009939,6.61588c0,0,0.796701-0.255127,2.612722,0.974121 C6.819179,8.88998,6.492153,7.923392,7.009939,6.61588c0,0,0.796701-0.255127,2.612722,0.974121
c0.757255-0.211635,1.569615-0.316005,2.377319-0.319493c0.80713,0.003488,1.620047,0.109009,2.378489,0.320643 c0.757255-0.211635,1.569615-0.316005,2.377319-0.319493c0.80713,0.003488,1.620047,0.109009,2.378489,0.320643
c1.81257-1.230398,2.610421-0.974121,2.610421-0.974121c0.519531,1.308681,0.192505,2.2741,0.095093,2.514161 c1.81257-1.230398,2.610421-0.974121,2.610421-0.974121c0.519531,1.308681,0.192505,2.2741,0.095093,2.514161
c0.608816,0.665073,0.97644,1.511631,0.97644,2.549525c0,3.649484-2.221924,4.453124-4.338308,4.688546 c0.608816,0.665073,0.97644,1.511631,0.97644,2.549525c0,3.649484-2.221924,4.453124-4.338308,4.688546
c0.342111,0.294556,0.644775,0.87207,0.644775,1.758057c0,1.269846-0.012766,2.293823-0.012766,2.606934 c0.342111,0.294556,0.644775,0.87207,0.644775,1.758057c0,1.269846-0.012766,2.293823-0.012766,2.606934
c0,0.252808,0.172782,0.548513,0.654053,0.45574C18.780588,19.931763,21.5,16.371582,21.5,12.175903 c0,0.252808,0.172782,0.548513,0.654053,0.45574C18.780588,19.931763,21.5,16.371582,21.5,12.175903
C21.5,6.929566,17.246338,2.675904,12,2.675904z"/> C21.5,6.929566,17.246338,2.675904,12,2.675904z"/>
</svg> </svg>
'; ';
$github = "<li><a href='{$github}' target='_blank' class='github'>{$gitIcon}</a></li>"; $github = "<li><a href='{$github}' target='_blank' class='github'>{$gitIcon}</a></li>";
} }
$instagram = get_field('instagram_url','option'); $instagram = get_field('instagram_url','option');
if ($instagram) { if ($instagram) {
$instagramIcon = '<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" $instagramIcon = '<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve" class="social-icon"> viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve" class="social-icon">
<path d="M19.255823,10.502824h-1.559658c0.135622,0.406867,0.203432,0.881545,0.203432,1.356224 <path d="M19.255823,10.502824h-1.559658c0.135622,0.406867,0.203432,0.881545,0.203432,1.356224
c0,2.983694-2.441203,5.424897-5.424897,5.424897s-5.424898-2.441203-5.424898-5.424897 c0,2.983694-2.441203,5.424897-5.424897,5.424897s-5.424898-2.441203-5.424898-5.424897
c0-0.474679,0.067811-0.949357,0.203433-1.356224H5.693578v7.459235c0,0.406866,0.271245,0.678112,0.678112,0.678112h12.206019 c0-0.474679,0.067811-0.949357,0.203433-1.356224H5.693578v7.459235c0,0.406866,0.271245,0.678112,0.678112,0.678112h12.206019
c0.406868,0,0.678114-0.271246,0.678114-0.678112V10.502824z M19.255823,5.756038c0-0.406868-0.271246-0.678112-0.678114-0.678112 c0.406868,0,0.678114-0.271246,0.678114-0.678112V10.502824z M19.255823,5.756038c0-0.406868-0.271246-0.678112-0.678114-0.678112
h-2.034336c-0.406868,0-0.678112,0.271245-0.678112,0.678112v2.034337c0,0.406867,0.271244,0.678112,0.678112,0.678112h2.034336 h-2.034336c-0.406868,0-0.678112,0.271245-0.678112,0.678112v2.034337c0,0.406867,0.271244,0.678112,0.678112,0.678112h2.034336
c0.406868,0,0.678114-0.271245,0.678114-0.678112V5.756038z M12.4747,8.468487c-1.898714,0-3.390561,1.491848-3.390561,3.390561 c0.406868,0,0.678114-0.271245,0.678114-0.678112V5.756038z M12.4747,8.468487c-1.898714,0-3.390561,1.491848-3.390561,3.390561
s1.491847,3.390561,3.390561,3.390561s3.390561-1.491847,3.390561-3.390561S14.373414,8.468487,12.4747,8.468487 s1.491847,3.390561,3.390561,3.390561s3.390561-1.491847,3.390561-3.390561S14.373414,8.468487,12.4747,8.468487
M19.255823,20.674507H5.693578c-1.152791,0-2.034337-0.881546-2.034337-2.034336V5.077926 M19.255823,20.674507H5.693578c-1.152791,0-2.034337-0.881546-2.034337-2.034336V5.077926
c0-1.152791,0.881546-2.034337,2.034337-2.034337h13.562245c1.15279,0,2.034336,0.881546,2.034336,2.034337v13.562245 c0-1.152791,0.881546-2.034337,2.034337-2.034337h13.562245c1.15279,0,2.034336,0.881546,2.034336,2.034337v13.562245
C21.290159,19.792961,20.408613,20.674507,19.255823,20.674507"/> C21.290159,19.792961,20.408613,20.674507,19.255823,20.674507"/>
</svg>'; </svg>';
$instagram = "<li><a href='{$instagram}' target='_blank' class='instagram'>{$instagramIcon}</a></li>"; $instagram = "<li><a href='{$instagram}' target='_blank' class='instagram'>{$instagramIcon}</a></li>";
} }
$linkedin = get_field('linkedin_link','option'); $linkedin = get_field('linkedin_link','option');
if ($linkedin) { if ($linkedin) {
$linkedIcon = '<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" $linkedIcon = '<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve" class="social-icon"> viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve" class="social-icon">
<g> <g>
<rect x="5.017809" y="8.190847" width="3.427236" height="11.995403"/> <rect x="5.017809" y="8.190847" width="3.427236" height="11.995403"/>
<path d="M18.100838,8.8747c-1.275997-0.716306-3.158699-0.776488-4.514939-0.15739V8.190847h-3.427236v11.995403h3.427236 <path d="M18.100838,8.8747c-1.275997-0.716306-3.158699-0.776488-4.514939-0.15739V8.190847h-3.427236v11.995403h3.427236
v-7.671779l1.41224-0.679668c0.346379-0.166374,1.10544-0.151271,1.426956,0.02951 v-7.671779l1.41224-0.679668c0.346379-0.166374,1.10544-0.151271,1.426956,0.02951
c0.242357,0.135392,0.588039,0.696245,0.588039,1.039294v7.282643h3.427237v-7.282643 c0.242357,0.135392,0.588039,0.696245,0.588039,1.039294v7.282643h3.427237v-7.282643
C20.440371,11.328789,19.456303,9.633682,18.100838,8.8747z"/> C20.440371,11.328789,19.456303,9.633682,18.100838,8.8747z"/>
<circle cx="6.731427" cy="4.763844" r="2.141945"/> <circle cx="6.731427" cy="4.763844" r="2.141945"/>
</g> </g>
</svg> </svg>
'; ';
$linkedin = "<li><a href='{$linkedin}' target='_blank' class='linkedin'>{$linkedIcon}</a></li>"; $linkedin = "<li><a href='{$linkedin}' target='_blank' class='linkedin'>{$linkedIcon}</a></li>";
} }
$medium = get_field('medium_url','option'); $medium = get_field('medium_url','option');
if ($medium) { if ($medium) {
$mediumIcon = '<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" $mediumIcon = '<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve" class="social-icon"> viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve" class="social-icon">
<g id="g10" transform="matrix(1.3333333,0,0,-1.3333333,0,126.66667)"> <g id="g10" transform="matrix(1.3333333,0,0,-1.3333333,0,126.66667)">
<g id="g12" transform="scale(0.1)"> <g id="g12" transform="scale(0.1)">
<path id="path14" d="M166.979996,907.168213h-6.089111c-2.260651,0-5.457886-3.261108-5.457886-5.348938v-75.672424 <path id="path14" d="M166.979996,907.168213h-6.089111c-2.260651,0-5.457886-3.261108-5.457886-5.348938v-75.672424
c0-2.090393,3.197235-4.939575,5.457886-4.939575h6.089111V803.2453h-55.168983v17.961975h11.546997v79.545959h-0.565804 c0-2.090393,3.197235-4.939575,5.457886-4.939575h6.089111V803.2453h-55.168983v17.961975h11.546997v79.545959h-0.565804
L95.82766,803.2453H74.95134l-26.616726,97.507935h-0.673573v-79.545959h11.546993V803.2453H13.020055v17.961975h5.914332 L95.82766,803.2453H74.95134l-26.616726,97.507935h-0.673573v-79.545959h11.546993V803.2453H13.020055v17.961975h5.914332
c2.435684,0,5.632662,2.849182,5.632662,4.939575v75.672424c0,2.08783-3.196978,5.348938-5.632662,5.348938h-5.914332v17.962036 c2.435684,0,5.632662,2.849182,5.632662,4.939575v75.672424c0,2.08783-3.196978,5.348938-5.632662,5.348938h-5.914332v17.962036
H70.77607l18.962349-70.565002h0.521667l19.137733,70.565002h57.582176V907.168213"/> H70.77607l18.962349-70.565002h0.521667l19.137733,70.565002h57.582176V907.168213"/>
</g> </g>
</g> </g>
</svg>'; </svg>';
$medium = "<li><a href='{$medium}' target='_blank' class='medium'>{$mediumIcon}</a></li>"; $medium = "<li><a href='{$medium}' target='_blank' class='medium'>{$mediumIcon}</a></li>";
} }
$reddit = get_field('reddit_url','option'); $reddit = get_field('reddit_url','option');
if ($reddit) { if ($reddit) {
$redditIcon = '<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" $redditIcon = '<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve" class="social-icon"> viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve" class="social-icon">
<path d="M21.500202,11.34273c0-1.153058-0.893827-2.087798-1.99642-2.087798c-0.698593,0-1.312998,0.375515-1.669735,0.943782 <path d="M21.500202,11.34273c0-1.153058-0.893827-2.087798-1.99642-2.087798c-0.698593,0-1.312998,0.375515-1.669735,0.943782
c-1.385969-0.966459-3.25451-1.588227-5.327679-1.668936c-0.015877-1.482683,0.150045-2.583934,0.934364-2.945143l0.038683-0.017789 c-1.385969-0.966459-3.25451-1.588227-5.327679-1.668936c-0.015877-1.482683,0.150045-2.583934,0.934364-2.945143l0.038683-0.017789
l0.034919-0.024283c0.704523-0.490029,1.672995-0.22697,2.729114,0.186711c-0.010494,0.091261-0.016529,0.183963-0.016529,0.278195 l0.034919-0.024283c0.704523-0.490029,1.672995-0.22697,2.729114,0.186711c-0.010494,0.091261-0.016529,0.183963-0.016529,0.278195
c0,1.256454,0.960447,2.278692,2.140947,2.278692c1.180546,0,2.140993-1.022237,2.140993-2.278692 c0,1.256454,0.960447,2.278692,2.140947,2.278692c1.180546,0,2.140993-1.022237,2.140993-2.278692
s-0.960447-2.278644-2.140993-2.278644c-0.769131,0-1.444595,0.434105-1.822134,1.084015 s-0.960447-2.278644-2.140993-2.278644c-0.769131,0-1.444595,0.434105-1.822134,1.084015
c-1.241854-0.482018-2.482408-0.800331-3.546845-0.085355c-1.279602,0.618151-1.481442,2.176948-1.460395,3.804788 c-1.241854-0.482018-2.482408-0.800331-3.546845-0.085355c-1.279602,0.618151-1.481442,2.176948-1.460395,3.804788
c-2.076787,0.089254-3.946097,0.720717-5.325937,1.69783C5.864388,9.618558,5.226207,9.20863,4.496219,9.20863 c-2.076787,0.089254-3.946097,0.720717-5.325937,1.69783C5.864388,9.618558,5.226207,9.20863,4.496219,9.20863
c-1.102592,0-1.99642,0.934735-1.99642,2.087799c0,0.951335,0.608674,1.753484,1.440812,2.005238 c-1.102592,0-1.99642,0.934735-1.99642,2.087799c0,0.951335,0.608674,1.753484,1.440812,2.005238
c-0.085638,0.336285-0.132809,0.681999-0.132809,1.03569c0,3.212727,3.688456,5.817154,8.238398,5.817154 c-0.085638,0.336285-0.132809,0.681999-0.132809,1.03569c0,3.212727,3.688456,5.817154,8.238398,5.817154
s8.238397-2.604427,8.238397-5.817154c0-0.348615-0.0459-0.689465-0.12915-1.021208 s8.238397-2.604427,8.238397-5.817154c0-0.348615-0.0459-0.689465-0.12915-1.021208
C20.937929,13.033583,21.500202,12.257064,21.500202,11.34273z M7.456427,13.167045c0-0.665358,0.526536-1.204735,1.176053-1.204735 C20.937929,13.033583,21.500202,12.257064,21.500202,11.34273z M7.456427,13.167045c0-0.665358,0.526536-1.204735,1.176053-1.204735
c0.649515,0,1.176052,0.539377,1.176052,1.204735S9.281995,14.37178,8.63248,14.37178 c0.649515,0,1.176052,0.539377,1.176052,1.204735S9.281995,14.37178,8.63248,14.37178
C7.982963,14.37178,7.456427,13.832402,7.456427,13.167045z M15.263037,16.858324 C7.982963,14.37178,7.456427,13.832402,7.456427,13.167045z M15.263037,16.858324
c-1.045108,0.580391-2.207019,1.128075-3.542299,1.128075c-1.034142,0-2.172241-0.328432-3.440885-1.224594 c-1.045108,0.580391-2.207019,1.128075-3.542299,1.128075c-1.034142,0-2.172241-0.328432-3.440885-1.224594
c-0.21737-0.153557-0.269135-0.454271-0.11558-0.67164c0.15351-0.217323,0.454224-0.269183,0.67164-0.11558 c-0.21737-0.153557-0.269135-0.454271-0.11558-0.67164c0.15351-0.217323,0.454224-0.269183,0.67164-0.11558
c2.452436,1.732372,4.218222,1.007978,5.959159,0.041178c0.232711-0.129321,0.526083-0.045366,0.655263,0.187298 c2.452436,1.732372,4.218222,1.007978,5.959159,0.041178c0.232711-0.129321,0.526083-0.045366,0.655263,0.187298
C15.579562,16.435772,15.495701,16.729097,15.263037,16.858324z M14.753683,14.268519 C15.579562,16.435772,15.495701,16.729097,15.263037,16.858324z M14.753683,14.268519
c-0.649516,0-1.176053-0.539378-1.176053-1.204736s0.526537-1.204736,1.176053-1.204736s1.176052,0.539378,1.176052,1.204736 c-0.649516,0-1.176053-0.539378-1.176053-1.204736s0.526537-1.204736,1.176053-1.204736s1.176052,0.539378,1.176052,1.204736
S15.403199,14.268519,14.753683,14.268519z"/> S15.403199,14.268519,14.753683,14.268519z"/>
</svg>'; </svg>';
$reddit = "<li><a href='{$reddit}' target='_blank' class='reddit'>{$redditIcon}</a></li>"; $reddit = "<li><a href='{$reddit}' target='_blank' class='reddit'>{$redditIcon}</a></li>";
} }
$tumblr = get_field('tumblr_url','option'); $tumblr = get_field('tumblr_url','option');
if ($tumblr) { if ($tumblr) {
$tumblrIcon = '<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" $tumblrIcon = '<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve" class="social-icon"> viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve" class="social-icon">
<path d="M12.806825,2.675906v4.285488h4.284753v3.307951h-4.284753v4.751539c0,1.075847-0.013974,1.695121,0.100188,1.999938 <path d="M12.806825,2.675906v4.285488h4.284753v3.307951h-4.284753v4.751539c0,1.075847-0.013974,1.695121,0.100188,1.999938
c0.112938,0.303263,0.396588,0.617723,0.705491,0.799631c0.410562,0.245815,0.878657,0.368723,1.40657,0.368723 c0.112938,0.303263,0.396588,0.617723,0.705491,0.799631c0.410562,0.245815,0.878657,0.368723,1.40657,0.368723
c0.938063,0,1.871799-0.304817,2.799485-0.914532v2.923214c-0.790804,0.371908-1.509045,0.633657-2.150712,0.784513 c0.938063,0,1.871799-0.304817,2.799485-0.914532v2.923214c-0.790804,0.371908-1.509045,0.633657-2.150712,0.784513
c-0.642402,0.149221-1.336697,0.225058-2.082476,0.225058c-0.847193,0-1.347157-0.106972-1.997976-0.320017 c-0.642402,0.149221-1.336697,0.225058-2.082476,0.225058c-0.847193,0-1.347157-0.106972-1.997976-0.320017
c-0.65082-0.21468-1.20619-0.52113-1.665539-0.914612c-0.460412-0.396589-0.778464-0.81802-0.956453-1.263313 c-0.65082-0.21468-1.20619-0.52113-1.665539-0.914612c-0.460412-0.396589-0.778464-0.81802-0.956453-1.263313
c-0.177494-0.44611-0.266081-1.093334-0.266081-1.940855v-6.499288H6.181442V7.645392 c-0.177494-0.44611-0.266081-1.093334-0.266081-1.940855v-6.499288H6.181442V7.645392
C6.909242,7.409139,7.753575,7.07,8.271518,6.629447C8.79183,6.186523,9.208031,5.657385,9.522081,5.037374 C6.909242,7.409139,7.753575,7.07,8.271518,6.629447C8.79183,6.186523,9.208031,5.657385,9.522081,5.037374
c0.314786-0.61854,0.531099-1.406976,0.649185-2.361468H12.806825z"/> c0.314786-0.61854,0.531099-1.406976,0.649185-2.361468H12.806825z"/>
</svg> </svg>
'; ';
$tumblr = "<li><a href='{$tumblr}' target='_blank' class='tumblr'>{$tumblrIcon}</a></li>"; $tumblr = "<li><a href='{$tumblr}' target='_blank' class='tumblr'>{$tumblrIcon}</a></li>";
} }
$twitter = get_field('twitter_url','option'); $twitter = get_field('twitter_url','option');
if ($twitter) { if ($twitter) {
$twitIcon = '<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" $twitIcon = '<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve" class="social-icon"> viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve" class="social-icon">
<path d="M22.021578,5.726143c-0.737148,0.32688-1.530106,0.548534-2.361347,0.647079 <path d="M22.021578,5.726143c-0.737148,0.32688-1.530106,0.548534-2.361347,0.647079
c0.849844-0.508886,1.501448-1.314126,1.80793-2.274726c-0.794682,0.471035-1.67498,0.813644-2.611732,0.997087 c0.849844-0.508886,1.501448-1.314126,1.80793-2.274726c-0.794682,0.471035-1.67498,0.813644-2.611732,0.997087
c-0.749146-0.79856-1.818058-1.297966-3.00103-1.297966c-2.270847,0-4.111745,1.841544-4.111745,4.111745 c-0.749146-0.79856-1.818058-1.297966-3.00103-1.297966c-2.270847,0-4.111745,1.841544-4.111745,4.111745
c0,0.322642,0.035769,0.636161,0.106231,0.936753c-3.418051-0.171879-6.44781-1.807929-8.476029-4.296983 c0,0.322642,0.035769,0.636161,0.106231,0.936753c-3.418051-0.171879-6.44781-1.807929-8.476029-4.296983
C3.02004,5.158,2.817276,5.864336,2.817276,6.617646c0,1.425673,0.725657,2.684709,1.828974,3.422288 C3.02004,5.158,2.817276,5.864336,2.817276,6.617646c0,1.425673,0.725657,2.684709,1.828974,3.422288
c-0.673368-0.020685-1.307806-0.206571-1.86223-0.513483c0,0.016879,0,0.03541,0,0.050853 c-0.673368-0.020685-1.307806-0.206571-1.86223-0.513483c0,0.016879,0,0.03541,0,0.050853
c0,1.993814,1.416838,3.654788,3.298388,4.032162c-0.344693,0.096103-0.708419,0.144873-1.083637,0.144873 c0,1.993814,1.416838,3.654788,3.298388,4.032162c-0.344693,0.096103-0.708419,0.144873-1.083637,0.144873
c-0.264822,0-0.522605-0.024565-0.773349-0.073334c0.522892,1.633608,2.041148,2.8229,3.841321,2.854791 c-0.264822,0-0.522605-0.024565-0.773349-0.073334c0.522892,1.633608,2.041148,2.8229,3.841321,2.854791
c-1.407716,1.10339-3.180954,1.760237-5.107755,1.760237c-0.332123,0-0.659362-0.018244-0.980567-0.056814 c-1.407716,1.10339-3.180954,1.760237-5.107755,1.760237c-0.332123,0-0.659362-0.018244-0.980567-0.056814
c1.819852,1.165447,3.981596,1.8465,6.304014,1.8465c7.563841,0,11.699073-6.265157,11.699073-11.699072 c1.819852,1.165447,3.981596,1.8465,6.304014,1.8465c7.563841,0,11.699073-6.265157,11.699073-11.699072
c0-0.179564-0.00388-0.357046-0.011206-0.531655C20.774107,7.274566,21.47168,6.550345,22.021578,5.726143z"/> c0-0.179564-0.00388-0.357046-0.011206-0.531655C20.774107,7.274566,21.47168,6.550345,22.021578,5.726143z"/>
</svg>'; </svg>';
$twitter = "<li><a href='{$twitter}' target='_blank' class='twitter'>{$twitIcon}</a></li>"; $twitter = "<li><a href='{$twitter}' target='_blank' class='twitter'>{$twitIcon}</a></li>";
} }
@ -162,33 +162,33 @@ if ($twitter) {
?> ?>
<div class="chevron-divider"></div> <div class="chevron-divider"></div>
<footer> <footer>
<section class="top-footer"> <section class="top-footer">
<div class="centered-footer"> <div class="centered-footer">
<?php wp_nav_menu( array( 'theme_location' => 'main-footer-menu', 'container' => false ) ); ?> <?php wp_nav_menu( array( 'theme_location' => 'main-footer-menu', 'container' => false ) ); ?>
<div class="contact"> <div class="contact">
<a href="<?php echo $consultLink; ?>" class="button small">Request information</a> <a href="<?php echo $consultLink; ?>" class="button small">Request information</a>
<div><?php echo $address; ?></div> <div><?php echo $address; ?></div>
<div><a href="mailto:<?php echo $email; ?>"><?php echo $email; ?></a></div> <div><a href="mailto:<?php echo $email; ?>"><?php echo $email; ?></a></div>
</div> </div>
</div> </div>
</section> </section>
<section class="bottom-footer"> <section class="bottom-footer">
<div class="centered-footer"> <div class="centered-footer">
<div class="eu-fund"><img src="https://www.ascribe.io/wp-content/uploads/2015/11/eu-dev-fund.png" /></div> <div class="eu-fund"><img src="https://www.ascribe.io/wp-content/uploads/2015/11/eu-dev-fund.png" /></div>
<div class="copyright"><?php echo $year; ?> © ascribe GmbH</div> <div class="copyright"><?php echo $year; ?> © ascribe GmbH</div>
<?php wp_nav_menu( array( 'theme_location' => 'lower-footer-menu', 'container' => false ) ); ?> <?php wp_nav_menu( array( 'theme_location' => 'lower-footer-menu', 'container' => false ) ); ?>
<ul class="social"> <ul class="social">
<?php echo $facebook; ?> <?php echo $facebook; ?>
<?php echo $github; ?> <?php echo $github; ?>
<?php echo $instagram; ?> <?php echo $instagram; ?>
<?php echo $linkedin; ?> <?php echo $linkedin; ?>
<?php echo $medium; ?> <?php echo $medium; ?>
<?php echo $reddit; ?> <?php echo $reddit; ?>
<?php echo $tumblr; ?> <?php echo $tumblr; ?>
<?php echo $twitter; ?> <?php echo $twitter; ?>
</ul> </ul>
</div> </div>
</section> </section>
</footer> </footer>
</div> </div>
<?php wp_footer(); ?> <?php wp_footer(); ?>

View File

@ -35,8 +35,8 @@ add_filter( 'post_thumbnail_html', 'remove_thumbnail_dimensions', 10 );
add_filter( 'image_send_to_editor', 'remove_thumbnail_dimensions', 10 ); add_filter( 'image_send_to_editor', 'remove_thumbnail_dimensions', 10 );
function remove_thumbnail_dimensions( $html ) { function remove_thumbnail_dimensions( $html ) {
$html = preg_replace( '/(width|height)=\"\d*\"\s/', "", $html ); $html = preg_replace( '/(width|height)=\"\d*\"\s/', "", $html );
return $html; return $html;
} }
//remove emoji script //remove emoji script
@ -50,27 +50,27 @@ remove_action( 'admin_print_styles', 'print_emoji_styles' );
// TURN ON ACF SETTINGS PAGE // TURN ON ACF SETTINGS PAGE
if( function_exists('acf_add_options_page') ) { if( function_exists('acf_add_options_page') ) {
acf_add_options_page(array( acf_add_options_page(array(
'page_title' => 'Theme General Settings', 'page_title' => 'Theme General Settings',
'menu_title' => 'Theme Settings', 'menu_title' => 'Theme Settings',
'menu_slug' => 'theme-general-settings', 'menu_slug' => 'theme-general-settings',
'capability' => 'edit_posts', 'capability' => 'edit_posts',
'redirect' => false 'redirect' => false
)); ));
} }
//add excerpt to page //add excerpt to page
function wpcodex_add_excerpt_support_for_pages() { function wpcodex_add_excerpt_support_for_pages() {
add_post_type_support( 'page', 'excerpt' ); add_post_type_support( 'page', 'excerpt' );
} }
add_action( 'init', 'wpcodex_add_excerpt_support_for_pages' ); add_action( 'init', 'wpcodex_add_excerpt_support_for_pages' );
//Register Navigation //Register Navigation
function register_primary_nav_menu() { function register_primary_nav_menu() {
register_nav_menu('landing-menu',__( 'Product Tour Navigation Menu' )); register_nav_menu('landing-menu',__( 'Product Tour Navigation Menu' ));
register_nav_menu('main-footer-menu',__( 'Main Footer Navigation Menu' )); register_nav_menu('main-footer-menu',__( 'Main Footer Navigation Menu' ));
register_nav_menu('lower-footer-menu',__( 'Lower Footer Navigation Menu' )); register_nav_menu('lower-footer-menu',__( 'Lower Footer Navigation Menu' ));
} }
add_action( 'init', 'register_primary_nav_menu'); add_action( 'init', 'register_primary_nav_menu');
@ -80,9 +80,9 @@ add_theme_support( 'post-thumbnails' );
// ENABLE HR IN WSYWIG // ENABLE HR IN WSYWIG
function enable_more_buttons($buttons) { function enable_more_buttons($buttons) {
$buttons[] = 'hr'; $buttons[] = 'hr';
return $buttons; return $buttons;
} }
add_filter("mce_buttons", "enable_more_buttons"); add_filter("mce_buttons", "enable_more_buttons");
@ -91,14 +91,14 @@ add_filter("mce_buttons", "enable_more_buttons");
// THUMBNAIL ADD CUSTOM SIZE // THUMBNAIL ADD CUSTOM SIZE
add_action( 'after_setup_theme', 'ttl_image_setup' ); add_action( 'after_setup_theme', 'ttl_image_setup' );
function ttl_image_setup() { function ttl_image_setup() {
add_image_size( 'blog-crop', 600, 350, true ); //(cropped) add_image_size( 'blog-crop', 600, 350, true ); //(cropped)
add_image_size( 'blog-feature-crop', 300, 175, true ); //(cropped) add_image_size( 'blog-feature-crop', 300, 175, true ); //(cropped)
} }
// ADD QUERY VAR FOR EVENT PAGINATION // ADD QUERY VAR FOR EVENT PAGINATION
add_filter('query_vars', 'add_my_var'); add_filter('query_vars', 'add_my_var');
function add_my_var($public_query_vars) { function add_my_var($public_query_vars) {
$public_query_vars[] = 'date'; $public_query_vars[] = 'date';
return $public_query_vars; return $public_query_vars;
} }

View File

@ -9,11 +9,11 @@ require 'controller/init.php';
$controller = new Controller(); $controller = new Controller();
if (!isset($headColour)) { if (!isset($headColour)) {
$headColour = ''; $headColour = '';
} }
if (is_home()) { if (is_home()) {
$title = "Blog | ascribe"; $title = "Blog | ascribe";
} }
?> ?>
@ -25,52 +25,52 @@ if (is_home()) {
<html class="no-js " lang="en" itemscope itemtype="https://schema.org/Organization" xmlns="http://www.w3.org/1999/html"> <!--<![endif]--> <html class="no-js " lang="en" itemscope itemtype="https://schema.org/Organization" xmlns="http://www.w3.org/1999/html"> <!--<![endif]-->
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title><?php echo $title ?></title> <title><?php echo $title ?></title>
<base href="<?php echo $url; ?>"> <base href="<?php echo $url; ?>">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0">
<meta name="description" content="<?php echo $description ?>"> <meta name="description" content="<?php echo $description ?>">
<meta property="og:title" content="<?php echo $title; ?>" /> <meta property="og:title" content="<?php echo $title; ?>" />
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo $url; ?>" /> <meta property="og:url" content="<?php echo $url; ?>" />
<meta property="og:image" content="<?php echo $image; ?>" /> <meta property="og:image" content="<?php echo $image; ?>" />
<meta property="og:site_name" content="<?php echo get_bloginfo(); ?>" /> <meta property="og:site_name" content="<?php echo get_bloginfo(); ?>" />
<meta name="twitter:card" content="summary"> <meta name="twitter:card" content="summary">
<meta name="twitter:title" content="<?php echo $title; ?>"> <meta name="twitter:title" content="<?php echo $title; ?>">
<meta name="twitter:description" content="<?php echo $description ?>"> <meta name="twitter:description" content="<?php echo $description ?>">
<meta name="twitter:image:src" content="<?php echo $image; ?>"> <meta name="twitter:image:src" content="<?php echo $image; ?>">
<meta name="twitter:domain" content="<?php echo $url; ?>"> <meta name="twitter:domain" content="<?php echo $url; ?>">
<meta itemprop="name" content="<?php echo $title; ?>"> <meta itemprop="name" content="<?php echo $title; ?>">
<meta itemprop="description" content="<?php echo $description ?>"> <meta itemprop="description" content="<?php echo $description ?>">
<meta itemprop="image" content="<?php echo $image; ?>"> <meta itemprop="image" content="<?php echo $image; ?>">
<link rel="apple-touch-icon" sizes="57x57" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/apple-touch-icon-57x57.png"> <link rel="apple-touch-icon" sizes="57x57" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/apple-touch-icon-60x60.png"> <link rel="apple-touch-icon" sizes="60x60" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="72x72" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/apple-touch-icon-76x76.png"> <link rel="apple-touch-icon" sizes="76x76" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/apple-touch-icon-114x114.png"> <link rel="apple-touch-icon" sizes="114x114" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/apple-touch-icon-120x120.png"> <link rel="apple-touch-icon" sizes="120x120" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/apple-touch-icon-144x144.png"> <link rel="apple-touch-icon" sizes="144x144" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/apple-touch-icon-152x152.png"> <link rel="apple-touch-icon" sizes="152x152" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/apple-touch-icon-180x180.png"> <link rel="apple-touch-icon" sizes="180x180" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/favicon-32x32.png" sizes="32x32"> <link rel="icon" type="image/png" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/favicon-194x194.png" sizes="194x194"> <link rel="icon" type="image/png" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/favicon-194x194.png" sizes="194x194">
<link rel="icon" type="image/png" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/favicon-96x96.png" sizes="96x96"> <link rel="icon" type="image/png" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/android-chrome-192x192.png" sizes="192x192"> <link rel="icon" type="image/png" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/favicon-16x16.png" sizes="16x16"> <link rel="icon" type="image/png" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/manifest.json"> <link rel="manifest" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/manifest.json">
<meta name="msapplication-TileColor" content="#d6137c"> <meta name="msapplication-TileColor" content="#d6137c">
<meta name="msapplication-TileImage" content="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/mstile-144x144.png"> <meta name="msapplication-TileImage" content="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/mstile-144x144.png">
<meta name="msapplication-config" content="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/browserconfig.xml"> <meta name="msapplication-config" content="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/browserconfig.xml">
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
<script src="https://use.typekit.net/gma2yhj.js"></script> <script src="https://use.typekit.net/gma2yhj.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script> <script>try{Typekit.load({ async: true });}catch(e){}</script>
<script> <script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
@ -83,8 +83,7 @@ if (is_home()) {
</script> </script>
<?php wp_head(); ?> <?php wp_head(); ?>
</head> </head>
<body <?php body_class($headColour); ?> > <body <?php body_class($headColour); ?> >
<div class="wrapper"> <div class="wrapper">

View File

@ -5,15 +5,15 @@ echo '<div class="centered-content-padding">';
echo '<div class="column-container">'; echo '<div class="column-container">';
echo '<div class="blog-column">'; echo '<div class="blog-column">';
if ( have_posts() ) { if ( have_posts() ) {
while ( have_posts() ) { while ( have_posts() ) {
the_post(); the_post();
get_template_part( 'content', 'blog' ); get_template_part( 'content', 'blog' );
} }
} }
else { else {
get_template_part( 'content', 'noposts' ); get_template_part( 'content', 'noposts' );
} }
?> ?>
<div class="nav-previous alignleft"><?php next_posts_link( 'Older posts' ); ?></div> <div class="nav-previous alignleft"><?php next_posts_link( 'Older posts' ); ?></div>
@ -25,4 +25,4 @@ echo '</div>';
echo '</div>'; echo '</div>';
echo '</div>'; echo '</div>';
get_footer(); get_footer();
?> ?>

View File

@ -1,21 +1,21 @@
/* TEAM */ /* TEAM */
Developer: Territorial Developer: Territorial
Contact: us@territorial.ca Contact: us@territorial.ca
URI: http://territorial.ca URI: http://territorial.ca
/* THANKS */ /* THANKS */
Template Design: 10up Template Design: 10up
URI: http://10up.com URI: http://10up.com
Twitter: @10up Twitter: @10up
Template Design: Eric Mann Template Design: Eric Mann
URI: https://eamann.com URI: https://eamann.com
Twitter: @ericmann Twitter: @ericmann
Template Design: Luke Woodward
URI: http://lkwdwrd.com
Twitter: @lkwdwrd
Template Design: Luke Woodward
URI: http://lkwdwrd.com
Twitter: @lkwdwrd
/* SITE */ /* SITE */
Created: Thu Sep 17 2015 Created: Thu Sep 17 2015
Template: https://github.com/10up/generator-wp-make Template: https://github.com/10up/generator-wp-make

View File

@ -11,13 +11,13 @@ namespace TenUp\ascribe\Core;
* @return void. * @return void.
*/ */
function setup() { function setup() {
$n = function( $function ) { $n = function( $function ) {
return __NAMESPACE__ . "\\$function"; return __NAMESPACE__ . "\\$function";
}; };
add_action( 'wp_enqueue_scripts', $n( 'scripts' ) ); add_action( 'wp_enqueue_scripts', $n( 'scripts' ) );
add_action( 'wp_enqueue_scripts', $n( 'styles' ) ); add_action( 'wp_enqueue_scripts', $n( 'styles' ) );
} }
@ -32,25 +32,25 @@ function setup() {
*/ */
function scripts( $debug = false ) { function scripts( $debug = false ) {
wp_deregister_script('jquery'); wp_deregister_script('jquery');
wp_register_script('jquery', ("https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"), false, '1.3.2',true); wp_register_script('jquery', ("https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"), false, '1.3.2',true);
wp_enqueue_script('jquery'); wp_enqueue_script('jquery');
wp_enqueue_script( wp_enqueue_script(
'wptheme', 'wptheme',
WPTHEME_TEMPLATE_URL . "/assets/js/ascribe.min.js", WPTHEME_TEMPLATE_URL . "/assets/js/ascribe.min.js",
array(), array(),
WPTHEME_VERSION, WPTHEME_VERSION,
true true
); );
wp_enqueue_script( wp_enqueue_script(
'modernizr', 'modernizr',
"https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js", "https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js",
array(), array(),
'2.8.3', '2.8.3',
false false
); );
} }
@ -65,12 +65,12 @@ function scripts( $debug = false ) {
* @return void. * @return void.
*/ */
function styles( $debug = false ) { function styles( $debug = false ) {
$min = ( $debug || defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; $min = ( $debug || defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
wp_enqueue_style( wp_enqueue_style(
'wptheme', 'wptheme',
WPTHEME_URL . "/assets/css/ascribe{$min}.css", WPTHEME_URL . "/assets/css/ascribe{$min}.css",
array(), array(),
WPTHEME_VERSION WPTHEME_VERSION
); );
} }

View File

@ -1,3 +1,3 @@
# Includes # Includes
All theme classes, objects, and libraries should be hidden away in this `/includes` directory. All theme classes, objects, and libraries should be hidden away in this `/includes` directory.

View File

@ -1,2 +1,2 @@
<?php <?php
require 'template.php'; require 'template.php';

View File

@ -13,4 +13,3 @@ msgstr ""
"esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n" "esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
"X-Poedit-Basepath: .\n" "X-Poedit-Basepath: .\n"
"X-Poedit-SearchPath-0: ..\n" "X-Poedit-SearchPath-0: ..\n"

View File

@ -1,21 +1,21 @@
<phpunit <phpunit
bootstrap="bootstrap.php.dist" bootstrap="bootstrap.php.dist"
backupGlobals="false" backupGlobals="false"
processIsolation="false" processIsolation="false"
colors="false"> colors="false">
<testsuites> <testsuites>
<testsuite name="Default"> <testsuite name="Default">
<directory suffix="Tests.php">./tests/phpunit</directory> <directory suffix="Tests.php">./tests/phpunit</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<filter> <filter>
<whitelist> <whitelist>
<directory suffix=".php">./includes</directory> <directory suffix=".php">./includes</directory>
</whitelist> </whitelist>
</filter> </filter>
<php> <php>
<ini name="error_reporting" value="32767" /> <ini name="error_reporting" value="32767" />
<ini name="display_errors" value="1" /> <ini name="display_errors" value="1" />
<ini name="display_startup_errors" value="1" /> <ini name="display_startup_errors" value="1" />
</php> </php>
</phpunit> </phpunit>

View File

@ -10,11 +10,11 @@ $banner = get_field('banner_for_blog_sidebar','option');
$image = ''; $image = '';
if ($banner) { if ($banner) {
$image = "<img src='{$banner['url']}' alt='{$banner['alt']}'>"; $image = "<img src='{$banner['url']}' alt='{$banner['alt']}'>";
} }
?> ?>
<aside class="blog-sidebar"> <aside class="blog-sidebar">
<?php echo $image; ?> <?php echo $image; ?>
<?php echo $controller->blogFeatures("sidebar"); ?> <?php echo $controller->blogFeatures("sidebar"); ?>
</aside> </aside>

View File

@ -3,17 +3,17 @@ get_header();
get_template_part( 'template', 'blogheader' ); get_template_part( 'template', 'blogheader' );
echo '<div class="centered-content-padding">'; echo '<div class="centered-content-padding">';
if ( have_posts() ) { if ( have_posts() ) {
while ( have_posts() ) { while ( have_posts() ) {
the_post(); the_post();
get_template_part( 'content', 'blog' ); get_template_part( 'content', 'blog' );
} }
} }
else { else {
get_template_part( 'content', 'noposts' ); get_template_part( 'content', 'noposts' );
} }
echo '</div>'; echo '</div>';
get_footer(); get_footer();
?> ?>

View File

@ -10,41 +10,41 @@ require 'controller/init.php';
?> ?>
<header class="blog"> <header class="blog">
<div class="centered-header"> <div class="centered-header">
<a href="<?php echo get_bloginfo('wpurl');?>"><img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/logo/logo-white.png" class="logo phone-and-up"></a> <a href="<?php echo get_bloginfo('wpurl');?>"><img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/logo/logo-white.png" class="logo phone-and-up"></a>
<a href="<?php echo get_bloginfo('wpurl');?>"><img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/logo/ascribeicon-white.svg" class="logo phone-only"></a> <a href="<?php echo get_bloginfo('wpurl');?>"><img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/logo/ascribeicon-white.svg" class="logo phone-only"></a>
<div class="app-links"> <div class="app-links">
<a href="<?php echo $signInLink; ?>">Log In</a> / <a href="<?php echo $signUpLink; ?>">Sign Up</a> <a href="<?php echo $signInLink; ?>">Log In</a> / <a href="<?php echo $signUpLink; ?>">Sign Up</a>
<img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/svg/hamburger.svg" class="phone-only hamburger"> <img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/svg/hamburger.svg" class="phone-only hamburger">
</div> </div>
<nav class="tour-switcher"><?php wp_nav_menu( array( <nav class="tour-switcher"><?php wp_nav_menu( array(
'theme_location' => 'landing-menu', 'theme_location' => 'landing-menu',
'container' => false 'container' => false
)); ?> )); ?>
</nav> </nav>
<div class="mobile-nav"> <div class="mobile-nav">
<?php wp_nav_menu( array( 'theme_location' => 'main-footer-menu', 'container' => false ) ); ?> <?php wp_nav_menu( array( 'theme_location' => 'main-footer-menu', 'container' => false ) ); ?>
</div> </div>
</div> </div>
<div class="centered-header"> <div class="centered-header">
</div> </div>
<div class="chevron-divider"></div> <div class="chevron-divider"></div>
<h1><a href="/blog">ascribe blog</a></h1> <h1><a href="/blog">ascribe blog</a></h1>
</header> </header>
<nav class="blog-categories"> <nav class="blog-categories">
<div class="centered-categories"> <div class="centered-categories">
<ul> <ul>
<?php <?php
$args = array( $args = array(
'hide_empty' => 0 'hide_empty' => 0
); );
foreach((get_categories($args)) as $category) { foreach((get_categories($args)) as $category) {
if ($category->cat_name != 'Uncategorized') { if ($category->cat_name != 'Uncategorized') {
echo '<li><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '><span>' . $category->name.'</span></a></li> '; echo '<li><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '><span>' . $category->name.'</span></a></li> ';
} }
} }
?> ?>
</ul> </ul>
</div> </div>
</nav> </nav>

View File

@ -4,4 +4,4 @@ Template Name: Company Page - Blue
*/ */
$headColour = 'blue'; $headColour = 'blue';
require 'template.php'; require 'template.php';

View File

@ -3,4 +3,4 @@
Template Name: Company Page - White Template Name: Company Page - White
*/ */
$headColour = 'white'; $headColour = 'white';
require 'template.php'; require 'template.php';

View File

@ -2,4 +2,4 @@
/* /*
Template Name: Events Template Name: Events
*/ */
require 'template.php'; require 'template.php';

View File

@ -2,4 +2,4 @@
/* /*
Template Name: General Content Page Template Name: General Content Page
*/ */
require 'template.php'; require 'template.php';

View File

@ -9,27 +9,27 @@
require 'controller/init.php'; require 'controller/init.php';
?> ?>
<header> <header>
<div class="sticky"> <div class="sticky">
<div class="centered-header"> <div class="centered-header">
<a href="<?php echo get_bloginfo('wpurl');?>"><img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/logo/logo-black.png" class="logo phone-and-up"></a> <a href="<?php echo get_bloginfo('wpurl');?>"><img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/logo/logo-black.png" class="logo phone-and-up"></a>
<a href="<?php echo get_bloginfo('wpurl');?>"><img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/logo/ascribeicon-black.svg" class="logo phone-only"></a> <a href="<?php echo get_bloginfo('wpurl');?>"><img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/logo/ascribeicon-black.svg" class="logo phone-only"></a>
<div class="app-links"> <div class="app-links">
<a href="<?php echo $signInLink; ?>">Log In</a> / <a href="<?php echo $signUpLink; ?>">Sign Up</a> <a href="<?php echo $signInLink; ?>">Log In</a> / <a href="<?php echo $signUpLink; ?>">Sign Up</a>
<img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/svg/hamburger.svg" class="phone-only hamburger"> <img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/svg/hamburger.svg" class="phone-only hamburger">
</div> </div>
<nav class="tour-switcher"><?php wp_nav_menu( array( <nav class="tour-switcher"><?php wp_nav_menu( array(
'theme_location' => 'landing-menu', 'theme_location' => 'landing-menu',
'container' => false 'container' => false
)); ?> )); ?>
</nav> </nav>
</div> </div>
</div> </div>
<div class="centered-header"> <div class="centered-header">
<div class="mobile-nav"> <div class="mobile-nav">
<?php wp_nav_menu( array( 'theme_location' => 'main-footer-menu', 'container' => false ) ); ?> <?php wp_nav_menu( array( 'theme_location' => 'main-footer-menu', 'container' => false ) ); ?>
</div> </div>
</div> </div>
</header> </header>
<div class="chevron-divider"></div> <div class="chevron-divider"></div>

View File

@ -14,36 +14,36 @@ $controller = new Controller();
?> ?>
<header style="background-image:url(<?php echo $bgImage; ?>)"> <header style="background-image:url(<?php echo $bgImage; ?>)">
<div class="sticky"> <div class="sticky">
<div class="centered-header"> <div class="centered-header">
<a href="<?php echo get_bloginfo('wpurl');?>"><img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/logo/logo-white.png" class="logo phone-and-up"></a> <a href="<?php echo get_bloginfo('wpurl');?>"><img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/logo/logo-white.png" class="logo phone-and-up"></a>
<a href="<?php echo get_bloginfo('wpurl');?>"><img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/logo/ascribeicon-white.svg" class="logo phone-only"></a> <a href="<?php echo get_bloginfo('wpurl');?>"><img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/logo/ascribeicon-white.svg" class="logo phone-only"></a>
<div class="app-links"> <div class="app-links">
<a href="<?php echo $signInLink; ?>">Log In</a> / <a href="<?php echo $signUpLink; ?>">Sign Up</a> <a href="<?php echo $signInLink; ?>">Log In</a> / <a href="<?php echo $signUpLink; ?>">Sign Up</a>
<img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/svg/hamburger.svg" class="phone-only hamburger"> <img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/svg/hamburger.svg" class="phone-only hamburger">
</div> </div>
<nav class="tour-switcher"><?php wp_nav_menu( array( <nav class="tour-switcher"><?php wp_nav_menu( array(
'theme_location' => 'landing-menu', 'theme_location' => 'landing-menu',
'container' => false 'container' => false
)); ?> )); ?>
</nav> </nav>
</div> </div>
</div> </div>
<div class="centered-header"> <div class="centered-header">
<section class="description"> <section class="description">
<h1><?php echo $headerTagline; ?></h1> <h1><?php echo $headerTagline; ?></h1>
<a href="<?php echo $signUpLink; ?>" class="button <?php echo $buttonColour; ?>-overPic"><?php echo $buttonText; ?></a> <a href="<?php echo $signUpLink; ?>" class="button <?php echo $buttonColour; ?>-overPic"><?php echo $buttonText; ?></a>
</section> </section>
<div class="mobile-nav"> <div class="mobile-nav">
<?php wp_nav_menu( array( 'theme_location' => 'main-footer-menu', 'container' => false ) ); ?> <?php wp_nav_menu( array( 'theme_location' => 'main-footer-menu', 'container' => false ) ); ?>
</div> </div>
</div> </div>
<div class="chevron-divider"></div> <div class="chevron-divider"></div>
</header> </header>
<main> <main>
<?php echo $controller->loopSubtemplates(); ?> <?php echo $controller->loopSubtemplates(); ?>
</main> </main>
<?php get_footer(); ?> <?php get_footer(); ?>

View File

@ -14,4 +14,4 @@ $controller = new Controller();
<?php get_template_part( 'content', 'main' ); ?> <?php get_template_part( 'content', 'main' ); ?>
<?php get_footer(); ?> <?php get_footer(); ?>