Version Description
- Adding a new Slide Anything global setting which appears under 'Settings->Writing' within the WordPress Dashbaord. This is a checkbox setting called 'Disable TinyMCE Button', and when checked the 'Slide Anything Sliders' button within the toolbar of the WordPress Classic Editor when editing pages and posts will be disabled. This TinyMCE button is causing issues on some sites, and adding the facility to turn off this button resolves this issue.
=
Download this release
Release Info
Developer | simonpedge |
Plugin | Slide Anything – Responsive Content / HTML Slider and Carousel |
Version | 2.3.27 |
Comparing to | |
See all releases |
Code changes from version 2.3.26 to 2.3.27
- php/slide-anything-admin.php +41 -0
- readme.txt +7 -1
- slide-anything.php +8 -3
php/slide-anything-admin.php
CHANGED
@@ -191,6 +191,47 @@ function slide_anything_notice_ignore() {
|
|
191 |
}
|
192 |
}
|
193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
/* ##### ACTION HOOK - REGISTER SCRIPTS (JS AND CSS) FOR WORDPRESS DASHBOARD ONLY ##### */
|
195 |
function cpt_register_admin_scripts() {
|
196 |
$sa_pro_version = validate_slide_anything_pro_registration();
|
191 |
}
|
192 |
}
|
193 |
|
194 |
+
// ADD A CHECKBOX OPTION UNDER "Settings -> Writing" CALLED "Disable TinyMCE Button"
|
195 |
+
function slide_anything_disable_tinymce_button_setting() {
|
196 |
+
// REGISTER WORDPRESS SETTING
|
197 |
+
register_setting(
|
198 |
+
'writing',
|
199 |
+
'sa-disable-tinymce-button',
|
200 |
+
'sa_settings_sanitize'
|
201 |
+
);
|
202 |
+
// CREATE SETTINGS SECTION (within "Settings->Writing")
|
203 |
+
add_settings_section(
|
204 |
+
'sa-writing-settings-section',
|
205 |
+
'Slide Anything Settings',
|
206 |
+
'sa_writing_settings_section_description',
|
207 |
+
'writing'
|
208 |
+
);
|
209 |
+
// CREATE SETTINGS INPUT FIELD
|
210 |
+
add_settings_field(
|
211 |
+
'sa-settings-field1',
|
212 |
+
'Disable TinyMCE Button',
|
213 |
+
'sa_settings_field1_callback',
|
214 |
+
'writing',
|
215 |
+
'sa-writing-settings-section'
|
216 |
+
);
|
217 |
+
}
|
218 |
+
// SANATIZE SETTINGS CALLBACK FUNCTION
|
219 |
+
function sa_settings_sanitize($input) {
|
220 |
+
return isset($input) ? true : false;
|
221 |
+
}
|
222 |
+
// SETTING SECTION DESCRIPTION
|
223 |
+
function sa_writing_settings_section_description(){
|
224 |
+
echo wpautop("Disable the 'Slide Anything Sliders' button within the toolbar of the WordPress Classic Editor when editing pages and posts.");
|
225 |
+
}
|
226 |
+
// SETTINGS INPUT FIELD CALLBACK
|
227 |
+
function sa_settings_field1_callback(){
|
228 |
+
?>
|
229 |
+
<label for="sa-disable-tinymce-input">
|
230 |
+
<input id="sa-disable-tinymce-input" type="checkbox" value="1" name="sa-disable-tinymce-button" <?php checked(get_option('sa-disable-tinymce-button', false)); ?>>
|
231 |
+
</label>
|
232 |
+
<?php
|
233 |
+
}
|
234 |
+
|
235 |
/* ##### ACTION HOOK - REGISTER SCRIPTS (JS AND CSS) FOR WORDPRESS DASHBOARD ONLY ##### */
|
236 |
function cpt_register_admin_scripts() {
|
237 |
$sa_pro_version = validate_slide_anything_pro_registration();
|
readme.txt
CHANGED
@@ -374,6 +374,9 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
|
|
374 |
= 2.3.26 =
|
375 |
* When thumbnail pagination and popup options are used together (PRO version only) there was an issue - the popup images or popup YouTube video thumbs were not be used to set the thumbnail images.
|
376 |
|
|
|
|
|
|
|
377 |
== Upgrade Notice ==
|
378 |
|
379 |
= 1.0 =
|
@@ -649,4 +652,7 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
|
|
649 |
* Small Bug Fix: If the 'lazy load images' option was enabled and a slide content was blank then a PHP warning message was being displayed.
|
650 |
|
651 |
= 2.3.26 =
|
652 |
-
* When thumbnail pagination and popup options are used together (PRO version only) there was an issue - the popup images or popup YouTube video thumbs were not be used to set the thumbnail images.
|
|
|
|
|
|
374 |
= 2.3.26 =
|
375 |
* When thumbnail pagination and popup options are used together (PRO version only) there was an issue - the popup images or popup YouTube video thumbs were not be used to set the thumbnail images.
|
376 |
|
377 |
+
= 2.3.27 =
|
378 |
+
* Adding a new Slide Anything global setting which appears under 'Settings->Writing' within the WordPress Dashbaord. This is a checkbox setting called 'Disable TinyMCE Button', and when checked the 'Slide Anything Sliders' button within the toolbar of the WordPress Classic Editor when editing pages and posts will be disabled. This TinyMCE button is causing issues on some sites, and adding the facility to turn off this button resolves this issue.
|
379 |
+
|
380 |
== Upgrade Notice ==
|
381 |
|
382 |
= 1.0 =
|
652 |
* Small Bug Fix: If the 'lazy load images' option was enabled and a slide content was blank then a PHP warning message was being displayed.
|
653 |
|
654 |
= 2.3.26 =
|
655 |
+
* When thumbnail pagination and popup options are used together (PRO version only) there was an issue - the popup images or popup YouTube video thumbs were not be used to set the thumbnail images.
|
656 |
+
|
657 |
+
= 2.3.27 =
|
658 |
+
* Adding a new Slide Anything global setting which appears under 'Settings->Writing' within the WordPress Dashbaord. This is a checkbox setting called 'Disable TinyMCE Button', and when checked the 'Slide Anything Sliders' button within the toolbar of the WordPress Classic Editor when editing pages and posts will be disabled. This TinyMCE button is causing issues on some sites, and adding the facility to turn off this button resolves this issue.
|
slide-anything.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://wordpress.org/plugins/slide-anything/
|
5 |
* Description: Slide Anything allows you to create a carousel/slider where the content for each slide can be anything you want - images, text, HTML, and even shortcodes. This plugin uses the Owl Carousel jQuery plugin, and lets you create beautiful, touch enabled, responsive carousels and sliders.
|
6 |
* Author: Simon Edge
|
7 |
-
* Version: 2.3.
|
8 |
* License: GPLv2 or later
|
9 |
*/
|
10 |
|
@@ -27,12 +27,17 @@ add_action('add_meta_boxes', 'cpt_slider_add_meta_boxes');
|
|
27 |
add_action('save_post', 'cpt_slider_save_postdata');
|
28 |
add_filter('manage_sa_slider_posts_columns', 'cpt_slider_modify_columns');
|
29 |
add_filter('manage_sa_slider_posts_custom_column', 'cpt_slider_custom_column_content');
|
30 |
-
|
31 |
-
add_action('
|
|
|
|
|
32 |
add_action('admin_menu', 'extra_sa_menu_pages');
|
33 |
add_filter('template_include', 'sa_preview_page_template');
|
34 |
|
35 |
// SLIDE ANYTHING 2.0 UPGRADE NOTICE
|
36 |
add_action('admin_notices', 'version_20_upgrade_notice');
|
37 |
add_action('admin_init', 'slide_anything_notice_ignore');
|
|
|
|
|
|
|
38 |
?>
|
4 |
* Plugin URI: https://wordpress.org/plugins/slide-anything/
|
5 |
* Description: Slide Anything allows you to create a carousel/slider where the content for each slide can be anything you want - images, text, HTML, and even shortcodes. This plugin uses the Owl Carousel jQuery plugin, and lets you create beautiful, touch enabled, responsive carousels and sliders.
|
6 |
* Author: Simon Edge
|
7 |
+
* Version: 2.3.27
|
8 |
* License: GPLv2 or later
|
9 |
*/
|
10 |
|
27 |
add_action('save_post', 'cpt_slider_save_postdata');
|
28 |
add_filter('manage_sa_slider_posts_columns', 'cpt_slider_modify_columns');
|
29 |
add_filter('manage_sa_slider_posts_custom_column', 'cpt_slider_custom_column_content');
|
30 |
+
if (!get_option('sa-disable-tinymce-button')) {
|
31 |
+
add_action('admin_head', 'add_tinymce_button');
|
32 |
+
add_action('admin_footer', 'get_tinymce_shortcode_array', 9999999);
|
33 |
+
}
|
34 |
add_action('admin_menu', 'extra_sa_menu_pages');
|
35 |
add_filter('template_include', 'sa_preview_page_template');
|
36 |
|
37 |
// SLIDE ANYTHING 2.0 UPGRADE NOTICE
|
38 |
add_action('admin_notices', 'version_20_upgrade_notice');
|
39 |
add_action('admin_init', 'slide_anything_notice_ignore');
|
40 |
+
|
41 |
+
// ADD A CHECKBOX OPTION UNDER "Settings -> Writing" CALLED "Disable TinyMCE Button"
|
42 |
+
add_action('admin_init', 'slide_anything_disable_tinymce_button_setting');
|
43 |
?>
|