2b0f5b2c by Jeff Balicki

course page start

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 0b177f92
......@@ -5,6 +5,7 @@
* Copyright 2011-2021 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Poppins:wght@700&display=swap");
:root {
--bs-blue: #0d6efd;
--bs-indigo: #6610f2;
......@@ -14464,9 +14465,14 @@ figure.woocommerce-product-gallery__wrapper {
display: block;
}
body {
font-family: "Open Sans", sans-serif;
}
h1, .h1 {
font-size: 58px;
line-height: 72px;
font-family: "Poppins", sans-serif;
}
h2, .h2 {
......@@ -14474,6 +14480,7 @@ h2, .h2 {
font-size: 40px;
line-height: 49px;
margin-bottom: 20px;
font-family: "Poppins", sans-serif;
}
h3, .h3 {
......@@ -14482,16 +14489,23 @@ h3, .h3 {
line-height: 32px;
margin-top: 20px;
margin-bottom: 20px;
font-family: "Open Sans", sans-serif;
}
a {
color: #2C2C2C;
font-family: "Open Sans", sans-serif;
}
a:hover {
color: #0484B8;
}
p {
color: #2C2C2C;
font-size: 16px;
line-height: 24px;
font-family: "Open Sans", sans-serif;
}
hr {
......@@ -14629,6 +14643,10 @@ input[type=checkbox] {
margin-left: 20px;
text-align: center;
}
#main-nav #login-menu a:hover {
color: #2C2C2C;
text-decoration: underline;
}
#main-nav #login-menu .sign-up a {
margin-left: 10px;
}
......@@ -14642,6 +14660,12 @@ input[type=checkbox] {
padding: 7px 25px;
margin-left: 0px;
}
#main-nav #login-menu .log-in-button a:hover {
text-decoration: none !important;
}
#main-nav #login-menu .log-in-button:hover {
background-color: #2C2C2C;
}
#main-nav #main-menu {
transition: 0.4s;
position: relative;
......@@ -14652,6 +14676,10 @@ input[type=checkbox] {
font-weight: bold;
color: #0484B8;
}
#main-nav #main-menu a:hover {
color: #2C2C2C;
text-decoration: underline;
}
.admin-bar .fixed-top {
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;
$container = get_theme_mod( 'understrap_container_type' );
?>
<?php
if(get_post_meta(get_the_id(), 'newsletter_sign_up', true)){?>
if(get_post_meta(get_the_id(), 'newsletter_sign_up', true) || get_post_type( get_the_ID() ) == 'sfwd-courses' ){?>
<div class="newsletter">
<?php echo do_shortcode('[contact-form-7 id="37" title="Newsletter"]'); ?>
</div>
......
......@@ -35,7 +35,7 @@ $navbar_type = get_theme_mod( 'understrap_navbar_type', 'collapse' );
</div>
<div class="col align-self-center sponsored">
sponsored by <img class="logo" src="../wp-content/themes/crlg/images/co-operators-logo.png" alt="co-operators logo" />
sponsored by <img class="logo" src="/wp-content/themes/crlg/images/co-operators-logo.png" alt="co-operators logo" />
</div>
</div>
</div>
......
<?php
add_shortcode( 'promos', 'promos' );
function promos(){
$custom_args = array(
......
<?php
/*
*
*/
global $user_ID;
get_currentuserinfo();
if (!$user_ID) {
auth_redirect();
}
get_header();
$container = get_theme_mod( 'understrap_container_type' );
if ( is_front_page() ) {
get_template_part( 'global-templates/hero' );
}
$wrapper_id = 'full-width-page-wrapper';
?>
<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'); ?>);">
<div class="full-image">
<?php $hero_content = apply_filters('the_content', get_post_meta(get_the_id(), 'hero_content', true));
if (!empty($hero_content)) {?>
<div class="container">
<div class="hero-content row">
<div class="col align-self-center">
<?php echo $hero_content; ?>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="wrapper" id="<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?>">
<div class="<?php echo esc_attr( $container ); ?>" id="content">
<div class="row">
<div class="col-md-12 content-area" id="primary">
<main class="site-main" id="main" role="main">
<?php
while ( have_posts() ) {
the_post();
get_template_part( 'loop-templates/content', 'page' );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) {
comments_template();
}
}
$call_out_block = get_field('call_out_block');
if($call_out_block['text_content'] !=""){ ?>
<div class='call-out-block'>
<div class='content'>
<?= $call_out_block['text_content']; ?>
<a href=" <?= $call_out_block['button_url']; ?>" > <?= $call_out_block['button_text']; ?> </a>
</div>
</div>
<?php } ?>
</main>
</div><!-- #primary -->
</div><!-- .row -->
</div><!-- #content -->
</div><!-- #<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?> -->
<?php
get_footer();
<?php
/*
*
*/
global $user_ID;
get_currentuserinfo();
if (!$user_ID) {
auth_redirect();
}
get_header();
$container = get_theme_mod( 'understrap_container_type' );
if ( is_front_page() ) {
get_template_part( 'global-templates/hero' );
}
$wrapper_id = 'full-width-page-wrapper';
?>
<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'); ?>);">
<div class="full-image">
<?php $hero_content = apply_filters('the_content', get_post_meta(get_the_id(), 'hero_content', true));
if (!empty($hero_content)) {?>
<div class="container">
<div class="hero-content row">
<div class="col align-self-center">
<?php echo $hero_content; ?>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="wrapper" id="<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?>">
<div class="<?php echo esc_attr( $container ); ?>" id="content">
<div class="row">
<div class="col-md-12 content-area" id="primary">
<main class="site-main" id="main" role="main">
<?php
while ( have_posts() ) {
the_post();
get_template_part( 'loop-templates/content', 'page' );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) {
comments_template();
}
}
?>
</main>
</div><!-- #primary -->
</div><!-- .row -->
</div><!-- #content -->
</div><!-- #<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?> -->
<?php
get_footer();
<?php
/*
*
*/
global $user_ID;
get_currentuserinfo();
if (!$user_ID) {
auth_redirect();
}
get_header();
$container = get_theme_mod( 'understrap_container_type' );
if ( is_front_page() ) {
get_template_part( 'global-templates/hero' );
}
$wrapper_id = 'full-width-page-wrapper';
?>
<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'); ?>);">
<div class="full-image">
<?php $hero_content = apply_filters('the_content', get_post_meta(get_the_id(), 'hero_content', true));
if (!empty($hero_content)) {?>
<div class="container">
<div class="hero-content row">
<div class="col align-self-center">
<?php echo $hero_content; ?>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="wrapper" id="<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?>">
<div class="<?php echo esc_attr( $container ); ?>" id="content">
<div class="row">
<div class="col-md-12 content-area" id="primary">
<main class="site-main" id="main" role="main">
<?php
while ( have_posts() ) {
the_post();
get_template_part( 'loop-templates/content', 'page' );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) {
comments_template();
}
}
?>
</main>
</div><!-- #primary -->
</div><!-- .row -->
</div><!-- #content -->
</div><!-- #<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?> -->
<?php
get_footer();
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Poppins:wght@700&display=swap');
body{
font-family: 'Open Sans', sans-serif;
}
h1{
font-size: 58px;
line-height: 72px;
font-family: 'Poppins', sans-serif;
}
h2{
......@@ -8,6 +14,7 @@ h2{
font-size: 40px;
line-height: 49px;
margin-bottom: 20px;
font-family: 'Poppins', sans-serif;
}
h3{
......@@ -16,14 +23,20 @@ h3{
line-height: 32px;
margin-top: 20px;
margin-bottom: 20px;
font-family: 'Open Sans', sans-serif;
}
a{
color:#2C2C2C;
font-family: 'Open Sans', sans-serif;
}
a:hover{
color: #0484B8;
}
p{
color:#2C2C2C;
font-size: 16px;
line-height: 24px;
font-family: 'Open Sans', sans-serif;
}
hr{
......@@ -80,7 +93,7 @@ input[type=checkbox]
}
.wp-block-column:nth-of-type(3) {
.wp-block-image img{
border-bottom:20px solid #0484B8
border-bottom:20px solid #0484B8;
}
}
}
......
......@@ -33,6 +33,11 @@
color: #0484B8;
margin-left: 20px;
text-align: center;
}
a:hover{
color: #2C2C2C;
text-decoration: underline;
}
.sign-up{
a{
......@@ -48,6 +53,13 @@
padding: 7px 25px;
margin-left: 0px;
}
a:hover{
text-decoration: none !important;
}
}
.log-in-button:hover{
background-color: #2C2C2C;
}
}
......@@ -60,6 +72,10 @@
font-weight: bold;
color: #0484B8;
}
a:hover{
color: #2C2C2C;
text-decoration: underline;
}
}
}
......