enrolled
2 years ago
add-to-cart-edd.php
3 years ago
add-to-cart-woocommerce.php
3 years ago
continue-lesson.php
3 years ago
course-benefits.php
3 years ago
course-content.php
3 years ago
course-entry-box.php
2 years ago
course-requirements.php
3 years ago
course-target-audience.php
3 years ago
course-topics.php
2 years ago
instructors.php
3 years ago
lead-info.php
2 years ago
material-includes.php
3 years ago
q_and_a_turned_off.php
3 years ago
reviews-loop.php
3 years ago
reviews.php
2 years ago
social_share.php
3 years ago
tags.php
3 years ago
wc-price-html.php
3 years ago
social_share.php
26 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template for displaying social share |
| 4 | * |
| 5 | * @package Tutor\Templates |
| 6 | * @subpackage Single\Course |
| 7 | * @author Themeum <support@themeum.com> |
| 8 | * @link https://themeum.com |
| 9 | * @since 1.0.4 |
| 10 | */ |
| 11 | |
| 12 | $share_config = array( |
| 13 | 'title' => get_the_title(), |
| 14 | 'text' => get_the_excerpt(), |
| 15 | 'image' => get_tutor_course_thumbnail( 'post-thumbnail', true ), |
| 16 | ); |
| 17 | ?> |
| 18 | |
| 19 | <div class="tutor-social-share-wrap" data-social-share-config="<?php echo esc_attr( json_encode( $share_config ) ); ?>"> |
| 20 | <?php |
| 21 | foreach ( $tutor_social_share_icons as $icon ) { |
| 22 | echo '<button class="tutor_share ' . $icon['share_class'] . '"> ' . $icon['icon_html'] . ' </button>'; //phpcs:ignore |
| 23 | } |
| 24 | ?> |
| 25 | </div> |
| 26 |