PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 2.0.0
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v2.0.0
3.4.6 3.4.5 3.4.4 3.4.3 3.4.2 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 All 199 releases
← All changes | admin/class-convertkit-admin-tinymce.php +4 -35 2.3.0 → 2.0.0 View file →
@@ -59,30 +59,10 @@
59 59
60 60 // Define shortcode.
61 61 $shortcode = $shortcodes[ $shortcode_name ];
62 62
63 - // Show a message in the modal if no API Key is specified.
64 - if ( array_key_exists( 'has_api_key', $shortcode ) && ! $shortcode['has_api_key'] ) {
65 - $notice = $shortcode['no_api_key'];
66 - require_once CONVERTKIT_PLUGIN_PATH . '/views/backend/tinymce/modal-notice.php';
67 - die();
68 - }
69 -
70 - // Show a message in the modal if no resources exist.
71 - if ( array_key_exists( 'has_resources', $shortcode ) && ! $shortcode['has_resources'] ) {
72 - $notice = $shortcode['no_resources'];
73 - require_once CONVERTKIT_PLUGIN_PATH . '/views/backend/tinymce/modal-notice.php';
74 - die();
75 - }
76 -
77 - // If we have less than two panels defined in the shortcode properties, output a basic modal.
78 - if ( count( $shortcode['panels'] ) < 2 ) {
79 - require_once CONVERTKIT_PLUGIN_PATH . '/views/backend/tinymce/modal.php';
80 - die();
81 - }
82 -
83 - // Output tabbed view.
84 - require_once CONVERTKIT_PLUGIN_PATH . '/views/backend/tinymce/modal-tabbed.php';
63 + // Output the modal.
64 + require_once CONVERTKIT_PLUGIN_PATH . '/views/backend/tinymce/modal.php';
85 65 die();
86 66
87 67 }
88 68
@@ -147,9 +127,8 @@
147 127 return $plugins;
148 128 }
149 129
150 130 // Enqueue TinyMCE CSS and JS.
151 - wp_enqueue_script( 'convertkit-admin-tabs', CONVERTKIT_PLUGIN_URL . 'resources/backend/js/tabs.js', array( 'jquery' ), CONVERTKIT_PLUGIN_VERSION, true );
152 131 wp_enqueue_script( 'convertkit-admin-tinymce', CONVERTKIT_PLUGIN_URL . 'resources/backend/js/tinymce.js', array( 'jquery' ), CONVERTKIT_PLUGIN_VERSION, true );
153 132 wp_enqueue_script( 'convertkit-admin-modal', CONVERTKIT_PLUGIN_URL . 'resources/backend/js/modal.js', array( 'jquery' ), CONVERTKIT_PLUGIN_VERSION, true );
154 133 wp_enqueue_style( 'convertkit-admin-tinymce', CONVERTKIT_PLUGIN_URL . 'resources/backend/css/tinymce.css', array(), CONVERTKIT_PLUGIN_VERSION );
155 134
@@ -211,20 +190,10 @@
211 190
212 191 ?>
213 192 <script type="text/template" id="tmpl-convertkit-quicktags-modal">
214 193 <div id="convertkit-quicktags-modal">
215 - <div class="media-frame-title"><h1></h1></div>
216 - <div class="media-frame-content"></div>
217 - <div class="media-frame-toolbar">
218 - <div class="media-toolbar">
219 - <div class="media-toolbar-secondary">
220 - <button type="button" class="button button-large cancel"><?php esc_html_e( 'Cancel', 'convertkit' ); ?></button>
221 - </div>
222 - <div class="media-toolbar-primary">
223 - <button type="button" class="button button-primary button-large"><?php esc_html_e( 'Insert', 'convertkit' ); ?></button>
224 - </div>
225 - </div>
226 - </div>
194 + <div class="media-frame-title"><h1>Title</h1></div>
195 + <div class="media-frame-content">Content</div>
227 196 </div>
228 197 </script>
229 198 <?php
230 199