Changeset 2372829
- Timestamp:
- 09/01/2020 07:43:04 AM (6 years ago)
- Location:
- wp-attest/trunk
- Files:
-
- 6 edited
-
asset/css/wp-attest.css (modified) (2 diffs)
-
lib/templates/single-course.php (modified) (3 diffs)
-
lib/templates/single-lesson.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
src/shortcode/class-courses-shortcode.php (modified) (2 diffs)
-
wp-attest.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-attest/trunk/asset/css/wp-attest.css
r2351320 r2372829 27 27 .attest-course-item { 28 28 margin-bottom: 20px; padding-left: 0px; min-height: 170px; border-radius: 6px; 29 box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2); background-color: #ffffff; 29 background-color: #ffffff; 30 } 31 .attest-course-item-shadow { 32 box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2); 33 } 34 .attest-course-item-radius { 30 35 -moz-border-radius: 6px !important; -webkit-border-radius: 6px !important; 31 36 } 32 37 .attest-course-thumb { 33 min-height: 170px; padding-left: 0px; -moz-border-radius: 6px 0px 0px 6px !important; 34 -webkit-border-radius: 6px 0px 0px 6px !important; background-repeat: no-repeat; 38 min-height: 170px; padding-left: 0px; background-repeat: no-repeat; 35 39 background-size: cover; background-position: center; 40 } 41 .attest-course-thumb-border-radius { 42 -moz-border-radius: 6px 0px 0px 6px !important; -webkit-border-radius: 6px 0px 0px 6px !important; 36 43 } 37 44 .attest-course-item-content { … … 50 57 } 51 58 .course-featured { 52 border: solid 2px #ffecb3 !important;59 border: solid 2px #ffecb3; 53 60 } 54 61 .badge-featured { -
wp-attest/trunk/lib/templates/single-course.php
r2359878 r2372829 22 22 <?php 23 23 //Get current post 24 $current_post_ID = get_the_ id();24 $current_post_ID = get_the_ID(); 25 25 $post = get_post($current_post_ID); 26 26 … … 150 150 <div class="mt-5"> 151 151 <h4><?php _e( 'Curriculum', 'attest'); ?></h4> 152 <input type="hidden" id="attest_total_number_of_sections" value="<?php echo esc_attr($curriculum['lesson']); ?>" />153 152 <div class="mt-5"> 154 153 <?php $item = 1; … … 209 208 </div> 210 209 <?php endif; ?> 211 <?php the_content(); ?>212 210 213 211 <?php if(false != $faqs) : ?> -
wp-attest/trunk/lib/templates/single-lesson.php
r2340069 r2372829 22 22 <?php 23 23 //Get current post 24 $current_post_ID = get_the_ id();24 $current_post_ID = get_the_ID(); 25 25 $post = get_post($current_post_ID); 26 26 -
wp-attest/trunk/readme.txt
r2359878 r2372829 6 6 Tested up to: 5.5 7 7 Requires PHP: 5.4 8 Stable tag: 1.6 8 Stable tag: 1.6.1 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 416 416 == Changelog == 417 417 418 = v1.6.1 - 2020-09-01 = 419 420 + Solves: duplication of description in single course template. 421 418 422 = v1.5.3 - 2020-08-07 = 419 423 -
wp-attest/trunk/src/shortcode/class-courses-shortcode.php
r2351320 r2372829 22 22 23 23 $plugins = $this->get_activated_plugin(); 24 if( in_array('WP Attest PRO - WooCommerce', $plugins) ) { 24 if( in_array('WP Attest PRO - WooCommerce', $plugins) ) { 25 25 $this->pro_installed = true; 26 26 } else { … … 115 115 $first_lesson = $this->functions->get_course_first_lesson($ID); 116 116 117 $body .= '<div class="row attest-course-item course-' . $ID . (($featured == '1' && !is_user_logged_in()) ? ' course-featured' : false) . '">';117 $body .= '<div class="row attest-course-item attest-course-item-shadow attest-course-item-radius course-' . $ID . (($featured == '1' && !is_user_logged_in()) ? ' course-featured' : false) . '">'; 118 118 119 119 if ($data['thumbnail']) : 120 $body .= '<div class="col-md-4 attest-course-thumb " style="background-image: url(\'' . esc_url(get_the_post_thumbnail_url( $ID, 'post-thumbnail' )) . '\');">' .120 $body .= '<div class="col-md-4 attest-course-thumb attest-course-thumb-border-radius" style="background-image: url(\'' . esc_url(get_the_post_thumbnail_url( $ID, 'post-thumbnail' )) . '\');">' . 121 121 ( ($featured == '1' && !is_user_logged_in()) ? 122 122 '<span class="badge badge-featured">' . __('FEATURED', 'attest') . '</span>' -
wp-attest/trunk/wp-attest.php
r2359878 r2372829 4 4 Plugin URI: http://www.wpattest.com/ 5 5 Description: Attest is a <strong>WordPress LMS Plugin</strong>, good for Tutors, that helps create free <strong>Online Courses</strong>, <strong>Classes</strong> and <strong>Lessons</strong> with a Gutenberg-ready interface. 6 Version: 1.6 6 Version: 1.6.1 7 7 Author: WP Attest 8 8 Author URI: https://profiles.wordpress.org/attest/
Note: See TracChangeset
for help on using the changeset viewer.