| 1 |
<?php |
| 2 |
/** |
| 3 |
* Request a Quote Plain Text Integrated Template. |
| 4 |
* |
| 5 |
* This template can be overridden by copying it to yourtheme/tiered-pricing-table/integrated/plain-text.php. |
| 6 |
* |
| 7 |
* @var \TierPricingTable\Addons\RequestAQuote\Models\RequestQuoteForm $form |
| 8 |
* @var int $productId |
| 9 |
* @var string $plainTextStyle |
| 10 |
* @var string $buttonHtml |
| 11 |
*/ |
| 12 |
if ( ! defined( 'ABSPATH' ) ) { |
| 13 |
exit; |
| 14 |
} |
| 15 |
|
| 16 |
// the "one line" style keeps its tiers inline |
| 17 |
$display = isset( $plainTextStyle ) && 'style-2' === $plainTextStyle ? 'inline-flex' : 'flex'; |
| 18 |
?> |
| 19 |
<li class="tiered-pricing-plain-text tpt-request-quote-integrated-plain-text-line" |
| 20 |
style="display: <?php echo esc_attr( $display ); ?>; gap: 10px; align-items: center;" |
| 21 |
onclick="document.getElementById('tpt-raq-link-<?php echo esc_attr( $productId ); ?>').click();"> |
| 22 |
<strong><?php echo esc_html( $form->getIntegratedLabelText() ); ?></strong> |
| 23 |
<?php echo wp_kses_post( $buttonHtml ); ?> |
| 24 |
</li> |
| 25 |
|