9f8821a6 by Jeff Balicki

single res

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 8959d606
......@@ -14627,6 +14627,29 @@ input[type=checkbox] {
border-radius: 25px;
}
#single-wrapper #main {
min-height: calc(70vh + 57px);
}
.back {
text-decoration: none !important;
font-size: 20px;
}
.back::before {
display: inline-block;
content: "";
width: 15px;
height: 15px;
margin-right: 5px;
background-size: contain;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19.074' height='18.553' viewBox='0 0 19.074 18.553'%3E%3Cg id='back_to_top' data-name='back to top' transform='translate(2.121 17.493) rotate(-90)'%3E%3Cg id='Group_1373' data-name='Group 1373' transform='translate(-3.296 -5.092)'%3E%3Cline id='Line_15' data-name='Line 15' y1='15.007' transform='translate(11.512 7.038)' fill='none' stroke='%23000' stroke-width='3'/%3E%3Cpath id='Path_1389' data-name='Path 1389' d='M3279.832 12508.2l8.216-8.217 8.216 8.217' transform='translate(-3276.535 -12494.895)' fill='none' stroke='%23000' stroke-width='3'/%3E%3Cline id='Line_67' data-name='Line 67' y1='15.007' transform='translate(11.512 7.038)' fill='none' stroke='%23000' stroke-width='3'/%3E%3Cpath id='Path_1922' data-name='Path 1922' d='M3279.832 12508.2l8.216-8.217 8.216 8.217' transform='translate(-3276.535 -12494.895)' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.back:hover::before {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19.074' height='18.553' viewBox='0 0 19.074 18.553'%3E%3Cg id='back_to_top' data-name='back to top' transform='translate(2.121 17.493) rotate(-90)'%3E%3Cg id='Group_1373' data-name='Group 1373' transform='translate(-3.296 -5.092)'%3E%3Cline id='Line_15' data-name='Line 15' y1='15.007' transform='translate(11.512 7.038)' fill='none' stroke='%230081bc' stroke-width='3'/%3E%3Cpath id='Path_1389' data-name='Path 1389' d='M3279.832 12508.2l8.216-8.217 8.216 8.217' transform='translate(-3276.535 -12494.895)' fill='none' stroke='%230081bc' stroke-width='3'/%3E%3Cline id='Line_67' data-name='Line 67' y1='15.007' transform='translate(11.512 7.038)' fill='none' stroke='%230081bc' stroke-width='3'/%3E%3Cpath id='Path_1922' data-name='Path 1922' d='M3279.832 12508.2l8.216-8.217 8.216 8.217' transform='translate(-3276.535 -12494.895)' fill='none' stroke='%230081bc' stroke-width='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.pre-header {
background-color: #0484b8;
color: #fff;
......@@ -14879,6 +14902,10 @@ input[type=checkbox] {
background-image: url("data:image/svg+xml,%3Csvg id='Component_33_1' data-name='Component 33 %E2%80%93 1' xmlns='http://www.w3.org/2000/svg' width='35' height='35' viewBox='0 0 35 35'%3E%3Ccircle id='Ellipse_8' data-name='Ellipse 8' cx='17.5' cy='17.5' r='17.5' fill='%230484b8'/%3E%3Cg id='Group_1454' data-name='Group 1454' transform='translate(-1077.417 -15.667)'%3E%3Ccircle id='Ellipse_7' data-name='Ellipse 7' cx='6.701' cy='6.701' r='6.701' transform='translate(1086.75 25)' fill='none' stroke='%23fff' stroke-width='3'/%3E%3Cline id='Line_39' data-name='Line 39' x2='4.188' y2='4.188' transform='translate(1098.896 37.146)' fill='none' stroke='%23fff' stroke-linecap='round' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E");
}
.search-button a:hover {
background-image: url("data:image/svg+xml,%3Csvg id='Component_33_1' data-name='Component 33 %E2%80%93 1' xmlns='http://www.w3.org/2000/svg' width='35' height='35' viewBox='0 0 35 35'%3E%3Ccircle id='Ellipse_8' data-name='Ellipse 8' cx='17.5' cy='17.5' r='17.5' fill='%23000'/%3E%3Cg id='Group_1454' data-name='Group 1454' transform='translate(-1077.417 -15.667)'%3E%3Ccircle id='Ellipse_7' data-name='Ellipse 7' cx='6.701' cy='6.701' r='6.701' transform='translate(1086.75 25)' fill='none' stroke='%23fff' stroke-width='3'/%3E%3Cline id='Line_39' data-name='Line 39' x2='4.188' y2='4.188' transform='translate(1098.896 37.146)' fill='none' stroke='%23fff' stroke-linecap='round' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E");
}
.search-button.open {
display: none;
}
......
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.
......@@ -82,4 +82,51 @@ function misha_rename_downloads( $menu_links ){
$menu_links[ 'edit-address' ] = 'Address';
return $menu_links;
}
add_shortcode( 'certs', 'certs' );
function certs(){
try{
$enrolled_courses = learndash_user_get_enrolled_courses( get_current_user_id(), array(), false);
ob_start();
if (is_array($enrolled_courses)):?>
<div class="carousel">
<div id="cert" class="cert-carousel carousel-items container">
<div class='swiper-wrapper'>
<?php foreach($enrolled_courses as $enrolled_course){
$cert = learndash_get_course_certificate_link($enrolled_course, get_current_user_id());
if(!empty($cert)){
$sfwd_course = get_post_meta($enrolled_course , '_sfwd-courses', true );
$thumbnail_id = "911"; ?>
<div class="swiper-slide">
<div class="cert">
<?php echo '<a target="_blank" style="background-image:url('.wp_get_attachment_url( $thumbnail_id).')" class="cert_link" href="'.$cert.'">'. wp_get_attachment_image($thumbnail_id,'medium' ).'<div class="cert-text"><p><strong>'
.get_user_meta(get_current_user_id(), 'first_name', true )." ". get_user_meta(get_current_user_id(), 'last_name', true ).'</strong></p>'
.get_the_title( $enrolled_course ).'</div></a>';
?>
</div>
</div>
<?php }
}; ?>
</div>
<div class="swiper-pagination"></div>
<div class="swiper-button-prev" data-id="cert"></div>
<div class="swiper-button-next" data-id="cert"></div>
</div>
</div>
<?php endif;
wp_reset_query();
$output = ob_get_clean();
return $output;
}catch(Throwable $e) {
error_log("certs()". $e->getMessage()) ;
}
}
\ No newline at end of file
......
......@@ -121,49 +121,3 @@ function post_title(){
return ob_get_clean();
}
add_shortcode( 'certs', 'certs' );
function certs(){
try{
$enrolled_courses = learndash_user_get_enrolled_courses( get_current_user_id(), array(), false);
ob_start();
if (is_array($enrolled_courses)):?>
<div class="carousel">
<div id="cert" class="cert-carousel carousel-items container">
<div class='swiper-wrapper'>
<?php foreach($enrolled_courses as $enrolled_course){
$cert = learndash_get_course_certificate_link($enrolled_course, get_current_user_id());
if(!empty($cert)){
$sfwd_course = get_post_meta($enrolled_course , '_sfwd-courses', true );
$thumbnail_id = "911"; ?>
<div class="swiper-slide">
<div class="cert">
<?php echo '<a target="_blank" style="background-image:url('.wp_get_attachment_url( $thumbnail_id).')" class="cert_link" href="'.$cert.'">'. wp_get_attachment_image($thumbnail_id,'medium' ).'<div class="cert-text"><p><strong>'
.get_user_meta(get_current_user_id(), 'first_name', true )." ". get_user_meta(get_current_user_id(), 'last_name', true ).'</strong></p>'
.get_the_title( $enrolled_course ).'</div></a>';
?>
</div>
</div>
<?php }
}; ?>
</div>
<div class="swiper-pagination"></div>
<div class="swiper-button-prev" data-id="cert"></div>
<div class="swiper-button-next" data-id="cert"></div>
</div>
</div>
<?php endif;
wp_reset_query();
$output = ob_get_clean();
return $output;
}catch(Throwable $e) {
error_log("certs()". $e->getMessage()) ;
}
}
\ No newline at end of file
......
This diff could not be displayed because it is too large.
......@@ -17,7 +17,7 @@ defined( 'ABSPATH' ) || exit;
<div class="entry-meta">
<?php understrap_posted_on(); ?>
<?php // understrap_posted_on(); ?>
</div><!-- .entry-meta -->
......
<?php
/**
* The template for displaying all single posts
*
* @package Understrap
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
get_header();
$container = get_theme_mod( 'understrap_container_type' );
?>
<div class="wrapper" id="single-wrapper">
<div class="<?php echo esc_attr( $container ); ?>" id="content" tabindex="-1">
<div class="row">
<a class="back" href="javascript:void(0)" onclick="history.back()">Back</a>
<?php
// Do the left sidebar check and open div#primary.
//get_template_part( 'global-templates/left-sidebar-check' );
?>
<main class="site-main" id="main">
<?php
while ( have_posts() ) {
the_post();
get_template_part( 'loop-templates/content', 'single' );
//understrap_post_nav();
}
?>
</main>
<?php
// Do the right sidebar check and close div#primary.
//get_template_part( 'global-templates/right-sidebar-check' );
?>
</div><!-- .row -->
</div><!-- #content -->
</div><!-- #single-wrapper -->
<?php
get_footer();
......@@ -31,18 +31,18 @@ document.addEventListener("DOMContentLoaded", function() {
});
document.addEventListener("DOMContentLoaded", function() {
window.addEventListener('scroll', function() {
if (window.scrollY > 57) {
document.getElementById('main-nav').classList.add('fixed-top');
} else {
document.getElementById('main-nav').classList.remove('fixed-top');
document.getElementById('search').classList.remove('open');
document.getElementById('search-button').classList.remove('open');
}
});
});
document.addEventListener("DOMContentLoaded", function() {
window.addEventListener('scroll', function() {
if (window.scrollY > 57) {
document.getElementById('main-nav').classList.add('fixed-top');
} else {
document.getElementById('main-nav').classList.remove('fixed-top');
document.getElementById('search').classList.remove('open');
document.getElementById('search-button').classList.remove('open');
}
});
});
//Get the button
let mybutton = document.getElementById("btn-back-to-top");
......
......@@ -157,3 +157,24 @@ max-width: 100% !important;
.wp-block-image.is-style-rounded img{
border-radius: 25px;
}
#single-wrapper #main{
min-height: calc(70vh + 57px);
}
.back{
text-decoration: none !important;
font-size: 20px;
}
.back::before{
display: inline-block;
content: "";
width: 15px;
height: 15px;
margin-right: 5px;
background-size: contain;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19.074' height='18.553' viewBox='0 0 19.074 18.553'%3E%3Cg id='back_to_top' data-name='back to top' transform='translate(2.121 17.493) rotate(-90)'%3E%3Cg id='Group_1373' data-name='Group 1373' transform='translate(-3.296 -5.092)'%3E%3Cline id='Line_15' data-name='Line 15' y1='15.007' transform='translate(11.512 7.038)' fill='none' stroke='%23000' stroke-width='3'/%3E%3Cpath id='Path_1389' data-name='Path 1389' d='M3279.832 12508.2l8.216-8.217 8.216 8.217' transform='translate(-3276.535 -12494.895)' fill='none' stroke='%23000' stroke-width='3'/%3E%3Cline id='Line_67' data-name='Line 67' y1='15.007' transform='translate(11.512 7.038)' fill='none' stroke='%23000' stroke-width='3'/%3E%3Cpath id='Path_1922' data-name='Path 1922' d='M3279.832 12508.2l8.216-8.217 8.216 8.217' transform='translate(-3276.535 -12494.895)' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.back:hover::before{
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19.074' height='18.553' viewBox='0 0 19.074 18.553'%3E%3Cg id='back_to_top' data-name='back to top' transform='translate(2.121 17.493) rotate(-90)'%3E%3Cg id='Group_1373' data-name='Group 1373' transform='translate(-3.296 -5.092)'%3E%3Cline id='Line_15' data-name='Line 15' y1='15.007' transform='translate(11.512 7.038)' fill='none' stroke='%230081bc' stroke-width='3'/%3E%3Cpath id='Path_1389' data-name='Path 1389' d='M3279.832 12508.2l8.216-8.217 8.216 8.217' transform='translate(-3276.535 -12494.895)' fill='none' stroke='%230081bc' stroke-width='3'/%3E%3Cline id='Line_67' data-name='Line 67' y1='15.007' transform='translate(11.512 7.038)' fill='none' stroke='%230081bc' stroke-width='3'/%3E%3Cpath id='Path_1922' data-name='Path 1922' d='M3279.832 12508.2l8.216-8.217 8.216 8.217' transform='translate(-3276.535 -12494.895)' fill='none' stroke='%230081bc' stroke-width='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
\ No newline at end of file
......
......@@ -236,6 +236,10 @@
height: 35px;
background-image: url("data:image/svg+xml,%3Csvg id='Component_33_1' data-name='Component 33 %E2%80%93 1' xmlns='http://www.w3.org/2000/svg' width='35' height='35' viewBox='0 0 35 35'%3E%3Ccircle id='Ellipse_8' data-name='Ellipse 8' cx='17.5' cy='17.5' r='17.5' fill='%230484b8'/%3E%3Cg id='Group_1454' data-name='Group 1454' transform='translate(-1077.417 -15.667)'%3E%3Ccircle id='Ellipse_7' data-name='Ellipse 7' cx='6.701' cy='6.701' r='6.701' transform='translate(1086.75 25)' fill='none' stroke='%23fff' stroke-width='3'/%3E%3Cline id='Line_39' data-name='Line 39' x2='4.188' y2='4.188' transform='translate(1098.896 37.146)' fill='none' stroke='%23fff' stroke-linecap='round' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E");
}
.search-button a:hover {
background-image: url("data:image/svg+xml,%3Csvg id='Component_33_1' data-name='Component 33 %E2%80%93 1' xmlns='http://www.w3.org/2000/svg' width='35' height='35' viewBox='0 0 35 35'%3E%3Ccircle id='Ellipse_8' data-name='Ellipse 8' cx='17.5' cy='17.5' r='17.5' fill='%23000'/%3E%3Cg id='Group_1454' data-name='Group 1454' transform='translate(-1077.417 -15.667)'%3E%3Ccircle id='Ellipse_7' data-name='Ellipse 7' cx='6.701' cy='6.701' r='6.701' transform='translate(1086.75 25)' fill='none' stroke='%23fff' stroke-width='3'/%3E%3Cline id='Line_39' data-name='Line 39' x2='4.188' y2='4.188' transform='translate(1098.896 37.146)' fill='none' stroke='%23fff' stroke-linecap='round' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E");
}
.search-button.open{
display:none;
......
......@@ -5,7 +5,7 @@
Author: Tenzing Communications
Author URI: https://tenzingbrand.com
Template: understrap
Version: 1.1.01
Version: 1.1.02
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: understrap-child
......