enrolled
7 years ago
add-to-cart-edd.php
7 years ago
add-to-cart-woocommerce.php
7 years ago
add-to-cart.php
7 years ago
complete_form.php
7 years ago
course-benefits.php
7 years ago
course-content.php
7 years ago
course-enroll-box.php
7 years ago
course-enrolled-box.php
7 years ago
course-requirements.php
7 years ago
course-target-audience.php
7 years ago
course-topics.php
7 years ago
instructors.php
7 years ago
lead-info.php
7 years ago
login.php
7 years ago
material-includes.php
7 years ago
q_and_a_turned_off.php
7 years ago
review-form.php
7 years ago
reviews.php
7 years ago
social_share.php
7 years ago
tags.php
7 years ago
wc-price-html.php
7 years ago
social_share.php
29 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template for displaying social share |
| 4 | * |
| 5 | * @since v.1.0.4 |
| 6 | * |
| 7 | * @author Themeum |
| 8 | * @url https://themeum.com |
| 9 | */ |
| 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(wp_json_encode($share_config)); ?>"> |
| 20 | <?php |
| 21 | $tutor_social_share_icons = tutor_utils()->tutor_social_share_icons(); |
| 22 | if (tutor_utils()->count($tutor_social_share_icons)){ |
| 23 | foreach ($tutor_social_share_icons as $icon){ |
| 24 | echo "<button class='tutor_share {$icon['share_class']}'> {$icon['icon_html']} </a>"; |
| 25 | } |
| 26 | } |
| 27 | ?> |
| 28 | </div> |
| 29 |