2b0f5b2c by Jeff Balicki

course page start

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 0b177f92
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
5 * Copyright 2011-2021 Twitter, Inc. 5 * Copyright 2011-2021 Twitter, Inc.
6 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 6 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
7 */ 7 */
8 @import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Poppins:wght@700&display=swap");
8 :root { 9 :root {
9 --bs-blue: #0d6efd; 10 --bs-blue: #0d6efd;
10 --bs-indigo: #6610f2; 11 --bs-indigo: #6610f2;
...@@ -14464,9 +14465,14 @@ figure.woocommerce-product-gallery__wrapper { ...@@ -14464,9 +14465,14 @@ figure.woocommerce-product-gallery__wrapper {
14464 display: block; 14465 display: block;
14465 } 14466 }
14466 14467
14468 body {
14469 font-family: "Open Sans", sans-serif;
14470 }
14471
14467 h1, .h1 { 14472 h1, .h1 {
14468 font-size: 58px; 14473 font-size: 58px;
14469 line-height: 72px; 14474 line-height: 72px;
14475 font-family: "Poppins", sans-serif;
14470 } 14476 }
14471 14477
14472 h2, .h2 { 14478 h2, .h2 {
...@@ -14474,6 +14480,7 @@ h2, .h2 { ...@@ -14474,6 +14480,7 @@ h2, .h2 {
14474 font-size: 40px; 14480 font-size: 40px;
14475 line-height: 49px; 14481 line-height: 49px;
14476 margin-bottom: 20px; 14482 margin-bottom: 20px;
14483 font-family: "Poppins", sans-serif;
14477 } 14484 }
14478 14485
14479 h3, .h3 { 14486 h3, .h3 {
...@@ -14482,16 +14489,23 @@ h3, .h3 { ...@@ -14482,16 +14489,23 @@ h3, .h3 {
14482 line-height: 32px; 14489 line-height: 32px;
14483 margin-top: 20px; 14490 margin-top: 20px;
14484 margin-bottom: 20px; 14491 margin-bottom: 20px;
14492 font-family: "Open Sans", sans-serif;
14485 } 14493 }
14486 14494
14487 a { 14495 a {
14488 color: #2C2C2C; 14496 color: #2C2C2C;
14497 font-family: "Open Sans", sans-serif;
14498 }
14499
14500 a:hover {
14501 color: #0484B8;
14489 } 14502 }
14490 14503
14491 p { 14504 p {
14492 color: #2C2C2C; 14505 color: #2C2C2C;
14493 font-size: 16px; 14506 font-size: 16px;
14494 line-height: 24px; 14507 line-height: 24px;
14508 font-family: "Open Sans", sans-serif;
14495 } 14509 }
14496 14510
14497 hr { 14511 hr {
...@@ -14629,6 +14643,10 @@ input[type=checkbox] { ...@@ -14629,6 +14643,10 @@ input[type=checkbox] {
14629 margin-left: 20px; 14643 margin-left: 20px;
14630 text-align: center; 14644 text-align: center;
14631 } 14645 }
14646 #main-nav #login-menu a:hover {
14647 color: #2C2C2C;
14648 text-decoration: underline;
14649 }
14632 #main-nav #login-menu .sign-up a { 14650 #main-nav #login-menu .sign-up a {
14633 margin-left: 10px; 14651 margin-left: 10px;
14634 } 14652 }
...@@ -14642,6 +14660,12 @@ input[type=checkbox] { ...@@ -14642,6 +14660,12 @@ input[type=checkbox] {
14642 padding: 7px 25px; 14660 padding: 7px 25px;
14643 margin-left: 0px; 14661 margin-left: 0px;
14644 } 14662 }
14663 #main-nav #login-menu .log-in-button a:hover {
14664 text-decoration: none !important;
14665 }
14666 #main-nav #login-menu .log-in-button:hover {
14667 background-color: #2C2C2C;
14668 }
14645 #main-nav #main-menu { 14669 #main-nav #main-menu {
14646 transition: 0.4s; 14670 transition: 0.4s;
14647 position: relative; 14671 position: relative;
...@@ -14652,6 +14676,10 @@ input[type=checkbox] { ...@@ -14652,6 +14676,10 @@ input[type=checkbox] {
14652 font-weight: bold; 14676 font-weight: bold;
14653 color: #0484B8; 14677 color: #0484B8;
14654 } 14678 }
14679 #main-nav #main-menu a:hover {
14680 color: #2C2C2C;
14681 text-decoration: underline;
14682 }
14655 14683
14656 .admin-bar .fixed-top { 14684 .admin-bar .fixed-top {
14657 top: 32px; 14685 top: 32px;
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
...@@ -13,7 +13,7 @@ defined( 'ABSPATH' ) || exit; ...@@ -13,7 +13,7 @@ defined( 'ABSPATH' ) || exit;
13 $container = get_theme_mod( 'understrap_container_type' ); 13 $container = get_theme_mod( 'understrap_container_type' );
14 ?> 14 ?>
15 <?php 15 <?php
16 if(get_post_meta(get_the_id(), 'newsletter_sign_up', true)){?> 16 if(get_post_meta(get_the_id(), 'newsletter_sign_up', true) || get_post_type( get_the_ID() ) == 'sfwd-courses' ){?>
17 <div class="newsletter"> 17 <div class="newsletter">
18 <?php echo do_shortcode('[contact-form-7 id="37" title="Newsletter"]'); ?> 18 <?php echo do_shortcode('[contact-form-7 id="37" title="Newsletter"]'); ?>
19 </div> 19 </div>
......
...@@ -35,7 +35,7 @@ $navbar_type = get_theme_mod( 'understrap_navbar_type', 'collapse' ); ...@@ -35,7 +35,7 @@ $navbar_type = get_theme_mod( 'understrap_navbar_type', 'collapse' );
35 35
36 </div> 36 </div>
37 <div class="col align-self-center sponsored"> 37 <div class="col align-self-center sponsored">
38 sponsored by <img class="logo" src="../wp-content/themes/crlg/images/co-operators-logo.png" alt="co-operators logo" /> 38 sponsored by <img class="logo" src="/wp-content/themes/crlg/images/co-operators-logo.png" alt="co-operators logo" />
39 </div> 39 </div>
40 </div> 40 </div>
41 </div> 41 </div>
......
1 <?php 1 <?php
2 2
3
4 add_shortcode( 'promos', 'promos' ); 3 add_shortcode( 'promos', 'promos' );
5 4
6
7 function promos(){ 5 function promos(){
8 6
9 $custom_args = array( 7 $custom_args = array(
......
1 <?php
2 /*
3 *
4 */
5
6 global $user_ID;
7 get_currentuserinfo();
8 if (!$user_ID) {
9 auth_redirect();
10 }
11
12 get_header();
13 $container = get_theme_mod( 'understrap_container_type' );
14
15 if ( is_front_page() ) {
16 get_template_part( 'global-templates/hero' );
17 }
18
19 $wrapper_id = 'full-width-page-wrapper';
20
21 ?>
22 <div class="hero-container header-section blur-image" data-src="<?php echo the_post_thumbnail_url(); ?>" style="--med-image: url(<?php echo the_post_thumbnail_url('medium'); ?>);">
23 <div class="full-image">
24 <?php $hero_content = apply_filters('the_content', get_post_meta(get_the_id(), 'hero_content', true));
25 if (!empty($hero_content)) {?>
26 <div class="container">
27 <div class="hero-content row">
28 <div class="col align-self-center">
29 <?php echo $hero_content; ?>
30 </div>
31 </div>
32 </div>
33 <?php } ?>
34 </div>
35 </div>
36 <div class="wrapper" id="<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?>">
37
38 <div class="<?php echo esc_attr( $container ); ?>" id="content">
39
40 <div class="row">
41
42 <div class="col-md-12 content-area" id="primary">
43
44 <main class="site-main" id="main" role="main">
45
46 <?php
47 while ( have_posts() ) {
48 the_post();
49 get_template_part( 'loop-templates/content', 'page' );
50
51 // If comments are open or we have at least one comment, load up the comment template.
52 if ( comments_open() || get_comments_number() ) {
53 comments_template();
54 }
55 }
56 $call_out_block = get_field('call_out_block');
57 if($call_out_block['text_content'] !=""){ ?>
58 <div class='call-out-block'>
59 <div class='content'>
60 <?= $call_out_block['text_content']; ?>
61 <a href=" <?= $call_out_block['button_url']; ?>" > <?= $call_out_block['button_text']; ?> </a>
62 </div>
63 </div>
64 <?php } ?>
65 </main>
66
67 </div><!-- #primary -->
68
69 </div><!-- .row -->
70
71 </div><!-- #content -->
72
73 </div><!-- #<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?> -->
74
75 <?php
76 get_footer();
1 <?php
2 /*
3 *
4 */
5
6 global $user_ID;
7 get_currentuserinfo();
8 if (!$user_ID) {
9 auth_redirect();
10 }
11
12 get_header();
13 $container = get_theme_mod( 'understrap_container_type' );
14
15 if ( is_front_page() ) {
16 get_template_part( 'global-templates/hero' );
17 }
18
19 $wrapper_id = 'full-width-page-wrapper';
20
21 ?>
22 <div class="hero-container header-section blur-image" data-src="<?php echo the_post_thumbnail_url(); ?>" style="--med-image: url(<?php echo the_post_thumbnail_url('medium'); ?>);">
23 <div class="full-image">
24 <?php $hero_content = apply_filters('the_content', get_post_meta(get_the_id(), 'hero_content', true));
25 if (!empty($hero_content)) {?>
26 <div class="container">
27 <div class="hero-content row">
28 <div class="col align-self-center">
29 <?php echo $hero_content; ?>
30 </div>
31 </div>
32 </div>
33 <?php } ?>
34 </div>
35 </div>
36 <div class="wrapper" id="<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?>">
37
38 <div class="<?php echo esc_attr( $container ); ?>" id="content">
39
40 <div class="row">
41
42 <div class="col-md-12 content-area" id="primary">
43
44 <main class="site-main" id="main" role="main">
45
46 <?php
47 while ( have_posts() ) {
48 the_post();
49 get_template_part( 'loop-templates/content', 'page' );
50
51 // If comments are open or we have at least one comment, load up the comment template.
52 if ( comments_open() || get_comments_number() ) {
53 comments_template();
54 }
55 }
56 ?>
57
58 </main>
59
60 </div><!-- #primary -->
61
62 </div><!-- .row -->
63
64 </div><!-- #content -->
65
66 </div><!-- #<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?> -->
67
68 <?php
69 get_footer();
1 <?php
2 /*
3 *
4 */
5
6 global $user_ID;
7 get_currentuserinfo();
8 if (!$user_ID) {
9 auth_redirect();
10 }
11
12 get_header();
13 $container = get_theme_mod( 'understrap_container_type' );
14
15 if ( is_front_page() ) {
16 get_template_part( 'global-templates/hero' );
17 }
18
19 $wrapper_id = 'full-width-page-wrapper';
20
21 ?>
22 <div class="hero-container header-section blur-image" data-src="<?php echo the_post_thumbnail_url(); ?>" style="--med-image: url(<?php echo the_post_thumbnail_url('medium'); ?>);">
23 <div class="full-image">
24 <?php $hero_content = apply_filters('the_content', get_post_meta(get_the_id(), 'hero_content', true));
25 if (!empty($hero_content)) {?>
26 <div class="container">
27 <div class="hero-content row">
28 <div class="col align-self-center">
29 <?php echo $hero_content; ?>
30 </div>
31 </div>
32 </div>
33 <?php } ?>
34 </div>
35 </div>
36 <div class="wrapper" id="<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?>">
37
38 <div class="<?php echo esc_attr( $container ); ?>" id="content">
39
40 <div class="row">
41
42 <div class="col-md-12 content-area" id="primary">
43
44 <main class="site-main" id="main" role="main">
45
46 <?php
47 while ( have_posts() ) {
48 the_post();
49 get_template_part( 'loop-templates/content', 'page' );
50
51 // If comments are open or we have at least one comment, load up the comment template.
52 if ( comments_open() || get_comments_number() ) {
53 comments_template();
54 }
55 }
56 ?>
57
58 </main>
59
60 </div><!-- #primary -->
61
62 </div><!-- .row -->
63
64 </div><!-- #content -->
65
66 </div><!-- #<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?> -->
67
68 <?php
69 get_footer();
1 @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Poppins:wght@700&display=swap');
2
3 body{
4 font-family: 'Open Sans', sans-serif;
5 }
1 h1{ 6 h1{
2 font-size: 58px; 7 font-size: 58px;
3 line-height: 72px; 8 line-height: 72px;
9 font-family: 'Poppins', sans-serif;
4 } 10 }
5 11
6 h2{ 12 h2{
...@@ -8,6 +14,7 @@ h2{ ...@@ -8,6 +14,7 @@ h2{
8 font-size: 40px; 14 font-size: 40px;
9 line-height: 49px; 15 line-height: 49px;
10 margin-bottom: 20px; 16 margin-bottom: 20px;
17 font-family: 'Poppins', sans-serif;
11 } 18 }
12 19
13 h3{ 20 h3{
...@@ -16,14 +23,20 @@ h3{ ...@@ -16,14 +23,20 @@ h3{
16 line-height: 32px; 23 line-height: 32px;
17 margin-top: 20px; 24 margin-top: 20px;
18 margin-bottom: 20px; 25 margin-bottom: 20px;
26 font-family: 'Open Sans', sans-serif;
19 } 27 }
20 a{ 28 a{
21 color:#2C2C2C; 29 color:#2C2C2C;
30 font-family: 'Open Sans', sans-serif;
31 }
32 a:hover{
33 color: #0484B8;
22 } 34 }
23 p{ 35 p{
24 color:#2C2C2C; 36 color:#2C2C2C;
25 font-size: 16px; 37 font-size: 16px;
26 line-height: 24px; 38 line-height: 24px;
39 font-family: 'Open Sans', sans-serif;
27 } 40 }
28 41
29 hr{ 42 hr{
...@@ -80,7 +93,7 @@ input[type=checkbox] ...@@ -80,7 +93,7 @@ input[type=checkbox]
80 } 93 }
81 .wp-block-column:nth-of-type(3) { 94 .wp-block-column:nth-of-type(3) {
82 .wp-block-image img{ 95 .wp-block-image img{
83 border-bottom:20px solid #0484B8 96 border-bottom:20px solid #0484B8;
84 } 97 }
85 } 98 }
86 } 99 }
......
...@@ -33,6 +33,11 @@ ...@@ -33,6 +33,11 @@
33 color: #0484B8; 33 color: #0484B8;
34 margin-left: 20px; 34 margin-left: 20px;
35 text-align: center; 35 text-align: center;
36
37 }
38 a:hover{
39 color: #2C2C2C;
40 text-decoration: underline;
36 } 41 }
37 .sign-up{ 42 .sign-up{
38 a{ 43 a{
...@@ -48,6 +53,13 @@ ...@@ -48,6 +53,13 @@
48 padding: 7px 25px; 53 padding: 7px 25px;
49 margin-left: 0px; 54 margin-left: 0px;
50 } 55 }
56 a:hover{
57 text-decoration: none !important;
58 }
59 }
60 .log-in-button:hover{
61 background-color: #2C2C2C;
62
51 } 63 }
52 } 64 }
53 65
...@@ -60,6 +72,10 @@ ...@@ -60,6 +72,10 @@
60 font-weight: bold; 72 font-weight: bold;
61 color: #0484B8; 73 color: #0484B8;
62 } 74 }
75 a:hover{
76 color: #2C2C2C;
77 text-decoration: underline;
78 }
63 } 79 }
64 } 80 }
65 81
......