create-module
2 years ago
create-module.php
5 years ago
delete-module.php
6 years ago
import-module-settings-section.php
6 years ago
import-module.php
5 months ago
manage-tracking.php
6 years ago
create-module.php
40 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Markup for the modal "Create Module" on listing pages. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.0.0 |
| 7 | */ |
| 8 | |
| 9 | $create_options_file = Hustle_Module_Model::SOCIAL_SHARING_MODULE !== $this->admin->module_type ? 'create-non-sshare' : 'create-sshare'; |
| 10 | ?> |
| 11 | |
| 12 | <div class="sui-modal sui-modal-sm"> |
| 13 | |
| 14 | <div |
| 15 | role="dialog" |
| 16 | id="hustle-dialog--create-new-module" |
| 17 | class="sui-modal-content" |
| 18 | aria-modal="true" |
| 19 | <?php /* translators: module type in smallcaps and singular. */ ?> |
| 20 | aria-labelledby="hustle-create-new-module-dialog-label" |
| 21 | aria-describedby="hustle-create-new-module-dialog-description" |
| 22 | data-nonce="<?php echo esc_attr( wp_create_nonce( 'hustle_create_new_module' ) ); ?>" |
| 23 | data-error-message="<?php esc_attr_e( 'Something went wrong while creating your pop-up. Please try again.', 'hustle' ); ?>" |
| 24 | aria-live="polite" |
| 25 | > |
| 26 | <?php |
| 27 | // Create module options. |
| 28 | $this->render( |
| 29 | 'admin/commons/sui-listing/dialogs/create-module/' . $create_options_file, |
| 30 | array( |
| 31 | 'capitalize_singular' => $capitalize_singular, |
| 32 | 'smallcaps_singular' => $smallcaps_singular, |
| 33 | ) |
| 34 | ); |
| 35 | ?> |
| 36 | |
| 37 | </div> |
| 38 | |
| 39 | </div> |
| 40 |