| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template: Info Box |
| 4 |
* |
| 5 |
* @package RadiusTheme\SB |
| 6 |
*/ |
| 7 |
|
| 8 |
/** |
| 9 |
* Template variables: |
| 10 |
* |
| 11 |
* @var $sb_pricing_table_title string |
| 12 |
* @var $sb_pricing_table_title_html_tag string |
| 13 |
* @var $has_button bool |
| 14 |
* @var $description string |
| 15 |
* @var $price string |
| 16 |
* @var $sale_price string |
| 17 |
* @var $price_currency string |
| 18 |
* @var $currency_position string |
| 19 |
* @var $price_unit string |
| 20 |
* @var $price_unit_separator string |
| 21 |
* @var $badge_style string |
| 22 |
* @var $badge_text string |
| 23 |
* @var $offer_text string |
| 24 |
* @var $feature_items array |
| 25 |
* @var $badge_position string |
| 26 |
* @var $icon_bg_type string |
| 27 |
* @var $icon_hover_bg_type string |
| 28 |
* @var $has_description bool |
| 29 |
* @var $has_table_icon bool |
| 30 |
* @var $has_button bool |
| 31 |
* @var $has_sale_price bool |
| 32 |
* @var $has_badge bool |
| 33 |
* @var $sb_button_content string |
| 34 |
* @var $sb_button_icon array |
| 35 |
* @var $sb_button_icon_position string |
| 36 |
* @var $button_attributes string |
| 37 |
* @var $icon_html string |
| 38 |
* @var $feature_item_html string |
| 39 |
* @var $icon_type string |
| 40 |
* @var $badge_bg_type string |
| 41 |
*/ |
| 42 |
|
| 43 |
use RadiusTheme\SB\Elementor\Render\GeneralAddons; |
| 44 |
use RadiusTheme\SB\Elementor\Widgets\General\PricingTable\Render; |
| 45 |
use RadiusTheme\SB\Helpers\Fns; |
| 46 |
|
| 47 |
// Do not allow directly accessing this file. |
| 48 |
if ( ! defined( 'ABSPATH' ) ) { |
| 49 |
exit( 'This script cannot be accessed directly.' ); |
| 50 |
} |
| 51 |
|
| 52 |
?> |
| 53 |
<div class="rtsb-pricing-table-wrapper"> |
| 54 |
<div class="rtsb-pricing-table-box"> |
| 55 |
<?php Fns::print_html( Render::render_badge( $has_badge, $badge_style, $badge_text, $badge_position, $badge_bg_type ) ); ?> |
| 56 |
<div class="pricing-table-header"> |
| 57 |
<?php |
| 58 |
/** |
| 59 |
* Title. |
| 60 |
*/ |
| 61 |
?> |
| 62 |
<<?php Fns::print_validated_html_tag( $sb_pricing_table_title_html_tag ); ?> class="rtsb-pricing-title"> |
| 63 |
<?php Fns::print_html( $sb_pricing_table_title ); ?> |
| 64 |
</<?php Fns::print_validated_html_tag( $sb_pricing_table_title_html_tag ); ?>> |
| 65 |
<?php |
| 66 |
/** |
| 67 |
* Description. |
| 68 |
*/ |
| 69 |
if ( $has_description ) { |
| 70 |
?> |
| 71 |
<div class="rtsb-pricing-table-description"> |
| 72 |
<?php Fns::print_html( $description ); ?> |
| 73 |
</div> |
| 74 |
<?php |
| 75 |
} |
| 76 |
?> |
| 77 |
<?php if ( ! empty( $icon_html ) ) { ?> |
| 78 |
<div class="pricing-table-icon-holder <?php echo esc_attr( $icon_type ); ?>"> |
| 79 |
<div class="icon-wrap <?php echo esc_attr( 'has-' . $icon_bg_type ); ?>"> |
| 80 |
<?php Fns::print_html( $icon_html ); ?> |
| 81 |
</div> |
| 82 |
</div> |
| 83 |
<?php } ?> |
| 84 |
<?php |
| 85 |
/** |
| 86 |
* Price. |
| 87 |
*/ |
| 88 |
Fns::print_html( Render::render_price( $has_sale_price, $currency_position, $price_currency, $price, $sale_price, $price_unit, $price_unit_separator ) ); |
| 89 |
?> |
| 90 |
<?php if ( $offer_text ) { ?> |
| 91 |
<div class="rtsb-offer-text"> |
| 92 |
<?php Fns::print_html( $offer_text ); ?> |
| 93 |
</div> |
| 94 |
<?php } ?> |
| 95 |
<?php |
| 96 |
/** |
| 97 |
* Button. |
| 98 |
*/ |
| 99 |
if ( $has_button ) { |
| 100 |
?> |
| 101 |
<div class="rtsb-shopbuilder-button"> |
| 102 |
<?php |
| 103 |
GeneralAddons::render_buttom_html( |
| 104 |
[ |
| 105 |
'button_attributes' => $button_attributes, |
| 106 |
'sb_button_icon' => $sb_button_icon, |
| 107 |
'sb_button_icon_position' => $sb_button_icon_position, |
| 108 |
'sb_button_content' => $sb_button_content, |
| 109 |
] |
| 110 |
); |
| 111 |
?> |
| 112 |
</div> |
| 113 |
<?php } ?> |
| 114 |
|
| 115 |
</div> |
| 116 |
<div class="rtsb-pricing-button-separator"></div> |
| 117 |
<div class="pricing-table-footer"> |
| 118 |
|
| 119 |
<?php |
| 120 |
/** |
| 121 |
* Feature Item. |
| 122 |
*/ |
| 123 |
?> |
| 124 |
<?php Fns::print_html( $feature_item_html ); ?> |
| 125 |
</div> |
| 126 |
|
| 127 |
</div> |
| 128 |
</div> |
| 129 |
|