PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 3.3.5
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v3.3.5
3.4.1 3.4.0 3.3.9 3.3.8 3.3.7 3.3.6 3.3.5 3.3.4 3.3.3 3.3.2 3.3.1 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 2.3.2 2.3.3 All 194 releases
convertkit / views / backend / tinymce / modal-tabbed.php

modal-tabbed.php in Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages 3.3.5, at views/backend/tinymce/modal-tabbed.php

72 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * TinyMCE Tabbed Modal view
4 *
5 * @package ConvertKit
6 * @author ConvertKit
7 */
8
9 ?>
10
11 <!-- .wp-core-ui ensures styles are applied on frontend editors for e.g. buttons.css -->
12 <form class="convertkit-tinymce-popup wp-core-ui">
13 <input type="hidden" name="shortcode" value="convertkit_<?php echo esc_attr( $shortcode['name'] ); ?>" />
14 <input type="hidden" name="editor_type" value="<?php echo esc_attr( $editor_type ); // quicktags|tinymce. ?>" />
15 <input type="hidden" name="close_shortcode" value="<?php echo esc_attr( $shortcode['shortcode_include_closing_tag'] ? '1' : '0' ); ?>" />
16
17 <!-- Vertical Tabbed UI -->
18 <div class="convertkit-vertical-tabbed-ui">
19 <!-- Tabs -->
20 <ul class="convertkit-nav-tabs convertkit-js-tabs"
21 data-panels-container="#<?php echo esc_attr( $shortcode['name'] ); ?>-container"
22 data-panel=".<?php echo esc_attr( $shortcode['name'] ); ?>"
23 data-active="convertkit-nav-tab-vertical-active">
24
25 <?php
26 // Output each Tab.
27 $first_tab = true;
28 foreach ( $shortcode['panels'] as $modal_tab_name => $modal_tab ) {
29 ?>
30 <li class="convertkit-nav-tab<?php echo esc_attr( ( isset( $modal_tab['class'] ) ? ' ' . $modal_tab['class'] : '' ) ); ?>">
31 <a href="#<?php echo esc_attr( $shortcode['name'] ) . '-' . esc_attr( $modal_tab_name ); ?>"<?php echo ( $first_tab ? ' class="convertkit-nav-tab-vertical-active"' : '' ); ?>>
32 <?php echo esc_html( $modal_tab['label'] ); ?>
33 </a>
34 </li>
35 <?php
36 $first_tab = false;
37 }
38 ?>
39 </ul>
40
41 <!-- Content -->
42 <div id="<?php echo esc_attr( $shortcode['name'] ); ?>-container" class="convertkit-nav-tabs-content">
43 <?php
44 // Output each Tab Panel.
45 foreach ( $shortcode['panels'] as $modal_tab_name => $modal_tab ) {
46 ?>
47 <div id="<?php echo esc_attr( $shortcode['name'] ) . '-' . esc_attr( $modal_tab_name ); ?>" class="<?php echo esc_attr( $shortcode['name'] ); ?>">
48 <div class="postbox">
49 <?php
50 // Iterate through this tab's field names.
51 foreach ( $modal_tab['fields'] as $field_name ) {
52 // Skip if this field doesn't exist.
53 if ( ! isset( $shortcode['fields'][ $field_name ] ) ) {
54 continue;
55 }
56
57 // Fetch the field properties.
58 $field = $shortcode['fields'][ $field_name ];
59
60 // Output Field.
61 include 'modal-field-row.php';
62 }
63 ?>
64 </div>
65 </div>
66 <?php
67 }
68 ?>
69 </div>
70 </div>
71 </form>
72