alert.php
6 days ago
button.php
6 days ago
confirm.php
6 days ago
dialog.php
6 days ago
modal.php
6 days ago
modal.php
29 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Dialog Modal View Template |
| 4 | * The base template for Tribe Dialog Modals. |
| 5 | * |
| 6 | * Override this template in your own theme by creating a file at [your-theme]/tribe/dialogs/modal.php |
| 7 | * |
| 8 | * @since 4.10.0 |
| 9 | * |
| 10 | * @package Tribe |
| 11 | * @version 4.10.0 |
| 12 | */ |
| 13 | |
| 14 | /** @var \Tribe\Dialog\View $dialog_view */ |
| 15 | $dialog_view = tribe( 'dialog.view' ); |
| 16 | // grab allthevars! |
| 17 | $vars = get_defined_vars(); |
| 18 | ?> |
| 19 | <?php $dialog_view->template( 'button', $vars, true ); ?> |
| 20 | <script data-js="<?php echo esc_attr( 'dialog-content-' . $id ); ?>" type="text/template"> |
| 21 | <?php if ( ! empty( $title ) ) : ?> |
| 22 | <h2 <?php tribe_classes( $title_classes ) ?>><?php echo esc_html( $title ); ?></h2> |
| 23 | <?php endif; ?> |
| 24 | <div <?php tribe_classes( $content_classes ) ?>> |
| 25 | <?php echo $content; ?> |
| 26 | </div> |
| 27 | </script> |
| 28 | |
| 29 |