9f8821a6 by Jeff Balicki

single res

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 8959d606
...@@ -14627,6 +14627,29 @@ input[type=checkbox] { ...@@ -14627,6 +14627,29 @@ input[type=checkbox] {
14627 border-radius: 25px; 14627 border-radius: 25px;
14628 } 14628 }
14629 14629
14630 #single-wrapper #main {
14631 min-height: calc(70vh + 57px);
14632 }
14633
14634 .back {
14635 text-decoration: none !important;
14636 font-size: 20px;
14637 }
14638
14639 .back::before {
14640 display: inline-block;
14641 content: "";
14642 width: 15px;
14643 height: 15px;
14644 margin-right: 5px;
14645 background-size: contain;
14646 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");
14647 }
14648
14649 .back:hover::before {
14650 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");
14651 }
14652
14630 .pre-header { 14653 .pre-header {
14631 background-color: #0484b8; 14654 background-color: #0484b8;
14632 color: #fff; 14655 color: #fff;
...@@ -14879,6 +14902,10 @@ input[type=checkbox] { ...@@ -14879,6 +14902,10 @@ input[type=checkbox] {
14879 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"); 14902 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");
14880 } 14903 }
14881 14904
14905 .search-button a:hover {
14906 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");
14907 }
14908
14882 .search-button.open { 14909 .search-button.open {
14883 display: none; 14910 display: none;
14884 } 14911 }
......
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 ){ ...@@ -82,4 +82,51 @@ function misha_rename_downloads( $menu_links ){
82 $menu_links[ 'edit-address' ] = 'Address'; 82 $menu_links[ 'edit-address' ] = 'Address';
83 83
84 return $menu_links; 84 return $menu_links;
85 }
86
87
88 add_shortcode( 'certs', 'certs' );
89
90 function certs(){
91
92 try{
93 $enrolled_courses = learndash_user_get_enrolled_courses( get_current_user_id(), array(), false);
94
95
96 ob_start();
97
98 if (is_array($enrolled_courses)):?>
99
100 <div class="carousel">
101 <div id="cert" class="cert-carousel carousel-items container">
102 <div class='swiper-wrapper'>
103 <?php foreach($enrolled_courses as $enrolled_course){
104 $cert = learndash_get_course_certificate_link($enrolled_course, get_current_user_id());
105 if(!empty($cert)){
106 $sfwd_course = get_post_meta($enrolled_course , '_sfwd-courses', true );
107 $thumbnail_id = "911"; ?>
108 <div class="swiper-slide">
109 <div class="cert">
110 <?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>'
111 .get_user_meta(get_current_user_id(), 'first_name', true )." ". get_user_meta(get_current_user_id(), 'last_name', true ).'</strong></p>'
112 .get_the_title( $enrolled_course ).'</div></a>';
113 ?>
114 </div>
115 </div>
116 <?php }
117 }; ?>
118 </div>
119 <div class="swiper-pagination"></div>
120 <div class="swiper-button-prev" data-id="cert"></div>
121 <div class="swiper-button-next" data-id="cert"></div>
122 </div>
123 </div>
124
125 <?php endif;
126 wp_reset_query();
127 $output = ob_get_clean();
128 return $output;
129 }catch(Throwable $e) {
130 error_log("certs()". $e->getMessage()) ;
131 }
85 } 132 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -121,49 +121,3 @@ function post_title(){ ...@@ -121,49 +121,3 @@ function post_title(){
121 return ob_get_clean(); 121 return ob_get_clean();
122 } 122 }
123 123
124
125 add_shortcode( 'certs', 'certs' );
126
127 function certs(){
128
129 try{
130 $enrolled_courses = learndash_user_get_enrolled_courses( get_current_user_id(), array(), false);
131
132
133 ob_start();
134
135 if (is_array($enrolled_courses)):?>
136
137 <div class="carousel">
138 <div id="cert" class="cert-carousel carousel-items container">
139 <div class='swiper-wrapper'>
140 <?php foreach($enrolled_courses as $enrolled_course){
141 $cert = learndash_get_course_certificate_link($enrolled_course, get_current_user_id());
142 if(!empty($cert)){
143 $sfwd_course = get_post_meta($enrolled_course , '_sfwd-courses', true );
144 $thumbnail_id = "911"; ?>
145 <div class="swiper-slide">
146 <div class="cert">
147 <?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>'
148 .get_user_meta(get_current_user_id(), 'first_name', true )." ". get_user_meta(get_current_user_id(), 'last_name', true ).'</strong></p>'
149 .get_the_title( $enrolled_course ).'</div></a>';
150 ?>
151 </div>
152 </div>
153 <?php }
154 }; ?>
155 </div>
156 <div class="swiper-pagination"></div>
157 <div class="swiper-button-prev" data-id="cert"></div>
158 <div class="swiper-button-next" data-id="cert"></div>
159 </div>
160 </div>
161
162 <?php endif;
163 wp_reset_query();
164 $output = ob_get_clean();
165 return $output;
166 }catch(Throwable $e) {
167 error_log("certs()". $e->getMessage()) ;
168 }
169 }
...\ No newline at end of file ...\ No newline at end of file
......
This diff could not be displayed because it is too large.
...@@ -17,7 +17,7 @@ defined( 'ABSPATH' ) || exit; ...@@ -17,7 +17,7 @@ defined( 'ABSPATH' ) || exit;
17 17
18 <div class="entry-meta"> 18 <div class="entry-meta">
19 19
20 <?php understrap_posted_on(); ?> 20 <?php // understrap_posted_on(); ?>
21 21
22 </div><!-- .entry-meta --> 22 </div><!-- .entry-meta -->
23 23
......
1 <?php
2 /**
3 * The template for displaying all single posts
4 *
5 * @package Understrap
6 */
7
8 // Exit if accessed directly.
9 defined( 'ABSPATH' ) || exit;
10
11 get_header();
12 $container = get_theme_mod( 'understrap_container_type' );
13 ?>
14
15 <div class="wrapper" id="single-wrapper">
16
17 <div class="<?php echo esc_attr( $container ); ?>" id="content" tabindex="-1">
18
19 <div class="row">
20 <a class="back" href="javascript:void(0)" onclick="history.back()">Back</a>
21 <?php
22 // Do the left sidebar check and open div#primary.
23 //get_template_part( 'global-templates/left-sidebar-check' );
24 ?>
25
26 <main class="site-main" id="main">
27
28 <?php
29 while ( have_posts() ) {
30 the_post();
31 get_template_part( 'loop-templates/content', 'single' );
32 //understrap_post_nav();
33 }
34 ?>
35
36 </main>
37
38 <?php
39 // Do the right sidebar check and close div#primary.
40 //get_template_part( 'global-templates/right-sidebar-check' );
41 ?>
42
43 </div><!-- .row -->
44
45 </div><!-- #content -->
46
47 </div><!-- #single-wrapper -->
48
49 <?php
50 get_footer();
...@@ -31,18 +31,18 @@ document.addEventListener("DOMContentLoaded", function() { ...@@ -31,18 +31,18 @@ document.addEventListener("DOMContentLoaded", function() {
31 }); 31 });
32 32
33 33
34 document.addEventListener("DOMContentLoaded", function() { 34 document.addEventListener("DOMContentLoaded", function() {
35 window.addEventListener('scroll', function() { 35 window.addEventListener('scroll', function() {
36 if (window.scrollY > 57) { 36 if (window.scrollY > 57) {
37 document.getElementById('main-nav').classList.add('fixed-top'); 37 document.getElementById('main-nav').classList.add('fixed-top');
38 38
39 } else { 39 } else {
40 document.getElementById('main-nav').classList.remove('fixed-top'); 40 document.getElementById('main-nav').classList.remove('fixed-top');
41 document.getElementById('search').classList.remove('open'); 41 document.getElementById('search').classList.remove('open');
42 document.getElementById('search-button').classList.remove('open'); 42 document.getElementById('search-button').classList.remove('open');
43 } 43 }
44 }); 44 });
45 }); 45 });
46 46
47 //Get the button 47 //Get the button
48 let mybutton = document.getElementById("btn-back-to-top"); 48 let mybutton = document.getElementById("btn-back-to-top");
......
...@@ -157,3 +157,24 @@ max-width: 100% !important; ...@@ -157,3 +157,24 @@ max-width: 100% !important;
157 .wp-block-image.is-style-rounded img{ 157 .wp-block-image.is-style-rounded img{
158 border-radius: 25px; 158 border-radius: 25px;
159 } 159 }
160
161 #single-wrapper #main{
162 min-height: calc(70vh + 57px);
163 }
164 .back{
165 text-decoration: none !important;
166 font-size: 20px;
167 }
168
169 .back::before{
170 display: inline-block;
171 content: "";
172 width: 15px;
173 height: 15px;
174 margin-right: 5px;
175 background-size: contain;
176 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");
177 }
178 .back:hover::before{
179 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");
180 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -236,6 +236,10 @@ ...@@ -236,6 +236,10 @@
236 height: 35px; 236 height: 35px;
237 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"); 237 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");
238 } 238 }
239 .search-button a:hover {
240 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");
241
242 }
239 243
240 .search-button.open{ 244 .search-button.open{
241 display:none; 245 display:none;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
5 Author: Tenzing Communications 5 Author: Tenzing Communications
6 Author URI: https://tenzingbrand.com 6 Author URI: https://tenzingbrand.com
7 Template: understrap 7 Template: understrap
8 Version: 1.1.01 8 Version: 1.1.02
9 License: GNU General Public License v2 or later 9 License: GNU General Public License v2 or later
10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html
11 Text Domain: understrap-child 11 Text Domain: understrap-child
......