footer-form.php
25 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! defined('ABSPATH')) { |
| 4 | exit; // Exit if accessed directly |
| 5 | } |
| 6 | global $authordata; |
| 7 | $course_id = get_the_ID(); |
| 8 | $card_style = \Academy\Helper::get_settings('course_card_style'); |
| 9 | |
| 10 | $plan = ppress_get_plan($course_id); |
| 11 | ?> |
| 12 | |
| 13 | <?php if ('layout_two' === $card_style) : |
| 14 | Academy\Helper::get_template( |
| 15 | 'loop/author.php' |
| 16 | ); |
| 17 | endif; ?> |
| 18 | |
| 19 | <form class="ppress-academy-wrap academy-widget-enroll__enroll-form" method="get" action="<?php echo esc_url($plan->get_checkout_url()); ?>"> |
| 20 | <input type="hidden" name="plan" value="<?php esc_attr_e($plan->get_id()); ?>"> |
| 21 | <button type="submit" class="academy-btn academy-btn--bg-purple"> |
| 22 | <?php esc_html_e('Subscribe Now', 'profilepress-pro'); ?> |
| 23 | </button> |
| 24 | </form> |
| 25 |