Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/responsive2 #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions themes/swm/archive-resources.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@

get_header(); ?>

<div id="primary" class="content-area">
<div id="primary resourcesPage" class="content-area">
<main id="main" class="site-main" role="main">
<header class="entry-header">
<header class="entry-header resourcesMenu">
<h3>Resources</h3>

<ul class="resourcesMenu">
<li>Featured</li>
<li>E-Book</li>
<li>Videos</li>
<li>Podcasts</li>
<li>Blog</li>
<ul class="resourcesMenuCategories">
<a class="menuFeatured" href=""><li>Featured</li></a>
<a class="menuEbook" href=""><li>E-Book</li></a>
<a class="menuVideos" href=""><li>Videos</li></a>
<a class="menuPodcasts" href=""><li>Podcasts</li></a>
<a class="menuBlog" href=""><li>Blog</li></a>
</ul>

<?php while (have_posts()) : the_post(); ?>
Expand All @@ -42,6 +42,7 @@
)
)
);

$resources_video_featured_alternate_args = array(
'post_type' => 'resources',
'posts_per_page' => '1',
Expand Down Expand Up @@ -262,8 +263,8 @@
)
)
);

?>

<?php
$resources_podcast_query = new WP_Query($resources_podcast_args);
while ($resources_podcast_query->have_posts()) : $resources_podcast_query->the_post(); ?>
Expand Down
44 changes: 23 additions & 21 deletions themes/swm/footer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* The template for displaying the footer.
*
Expand All @@ -7,29 +8,30 @@

?>

</div><!-- #content -->
</div><!-- #content -->

<footer id="colophon" class="site-footer" role="contentinfo">
<div class="site-info">
<h2 class="phone"><a class="link-phone" href="tel:1-416-834-7611">416-834-7611</a></h2>

<p class="warning"> Starts With Me does not provide services or medical advice. If you are in crisis, please call 911 or go to your nearest emergency department for assistance. </p>

<div class="social-icons">

<footer id="colophon" class="site-footer" role="contentinfo">
<div class="site-info">
<h2 class="phone"> 416-834-7611 </h2>
<br>
<p class="warning"> Starts With Me does not provide services or medical advice. If you are in crisis, please call 911 or go to your nearest emergency department for assistance. </p>
<div class="social-icons">
<a href="https://www.facebook.com/startswithmementalhealth/"> <i class="fab fa-facebook-f"></i> </a>
<a href="https://www.instagram.com/startswithme_/"> <i class="fab fa-instagram"></i> </a>
<a href="https://twitter.com/StartsWithMe_"> <i class="fab fa-twitter"></i> </a>
<a href="https://www.linkedin.com/in/michaelstroh/"> <i class="fab fa-linkedin-in"></i> </a>
<a href="https://www.youtube.com/channel/UChbAyApyFCQNoF3-ocKvdag"> <i class="fab fa-youtube"></i> </a>
</div>
<p class="copyright"> <i class="far fa-copyright"> </i> 2019 Starts With Me Inc.</p>

<a href="https://www.facebook.com/startswithmementalhealth/"> <i class="fab fa-facebook-f"></i> </a>
<a href="https://www.instagram.com/startswithme_/"> <i class="fab fa-instagram"></i> </a>
<a href="https://twitter.com/StartsWithMe_"> <i class="fab fa-twitter"></i> </a>
<a href="https://www.linkedin.com/in/michaelstroh/"> <i class="fab fa-linkedin-in"></i> </a>
<a href="https://www.youtube.com/channel/UChbAyApyFCQNoF3-ocKvdag"> <i class="fab fa-youtube"></i> </a>
</div><!-- .site-info -->
</footer><!-- #colophon -->
</div><!-- #page -->

<p class="copyright"> <i class="far fa-copyright"> </i> 2019 Starts With Me Inc.</p>
</div>
</div><!-- .site-info -->
</footer><!-- #colophon -->
</div><!-- #page -->
<?php wp_footer(); ?>

<?php wp_footer(); ?>
</body>

</body>
</html>
</html>
6 changes: 5 additions & 1 deletion themes/swm/front-page.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Template Name: Front Page Template
*
Expand All @@ -21,6 +22,9 @@
<header class="entry-header">
<?php the_content(); ?>
<?php the_post_thumbnail('full'); ?>
<!-- Add this image for the logo -->
<?php $uploads = wp_upload_dir(); ?>
<img src="<?php echo $uploads['baseurl'] . '/2019/07/image_hero_gradient-mobile-version.png'; ?>" class="hero-banner-mobile" alt="Starts With Me Hero Banner mobile version">
</header><!-- .entry-header -->

<?php endwhile; ?>
Expand Down Expand Up @@ -121,7 +125,7 @@
<?php echo get_term_thumbnail($terms->term_taxonomy_id) ?>
<section class="meta-services">
<p><?php echo $terms->name; ?></p>

<?php $service_url = '';
$service_url = get_site_url() . '/' . strtolower($terms->name) . '-services/';
?>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 13 additions & 16 deletions themes/swm/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// // });
// })(jQuery);
// });


// jQuery(document).ready(function ($) {
// // (function () {
Expand All @@ -28,21 +27,19 @@
// }
// });



// });

jQuery(document).ready(function ($) {

//Search functionality for navigation
$('.fa-search').click(function () {
$('.search-field').slideToggle('slow');
});


document.addEventListener('wpcf7mailsent', function (event) {
location = 'http://localhost:3000/lessons/startsWithMe/thank-you/';
}, false);


jQuery(document).ready(function($) {
//Search functionality for navigation
$('.fa-search').click(function() {
$('.search-field').slideToggle('slow');
});

// document.addEventListener(
// 'wpcf7mailsent',
// function(event) {
// location = 'http://localhost:3000/lessons/startsWithMe/thank-you/';
// },
// false
// );
});
14 changes: 7 additions & 7 deletions themes/swm/sass/_elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ body {

blockquote,
q {
quotes: '' '';
quotes: "" "";

&:before,
&:after {
content: '';
content: "";
}
}

Expand All @@ -37,21 +37,21 @@ hr {

//ul,
//ol {
// margin: 0 0 $base__space-unit ($base__space-unit * 2);
// margin: 0 0 $base__space-unit ($base__space-unit * 2);
//}

ul {
list-style: disc;
}

ol {
list-style: decimal;
list-style: decimal;
}

li > ul,
li > ol {
margin-bottom: 0;
// margin-left: $base__space-unit;
// margin-left: $base__space-unit;
}

dt {
Expand All @@ -63,8 +63,8 @@ dd {
}

img {
height: auto; /* Make sure images are scaled correctly. */
max-width: 100%; /* Adhere to container width. */
// height: auto; /*Make sure images are scaled correctly. */
// max-width: 100%; /*Adhere to container width. */
}

table {
Expand Down
Loading