Slide Anything – Responsive Content / HTML Slider and Carousel - Version 2.3.3

Version Description

  • Added Slide Any Post promotional meta box & fixed a couple backend aesthetic issues

=

Download this release

Release Info

Developer simonpedge
Plugin Icon 128x128 Slide Anything – Responsive Content / HTML Slider and Carousel
Version 2.3.3
Comparing to
See all releases

Code changes from version 2.3.2 to 2.3.3

css/slide-anything-admin.css CHANGED
@@ -1212,6 +1212,114 @@ input.sa_slide_popup_imagetitle:-ms-input-placeholder { color:#c0c0c0 !important
1212
  line-height:26px !important;
1213
  }
1214
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1215
  /* ### JQUERY UI - TOOLTIPS ### */
1216
  .sa_tooltip {
1217
  display:inline-block;
1212
  line-height:26px !important;
1213
  }
1214
 
1215
+ /* ### METABOX 'Slide Any Post' PROMOTION ### */
1216
+ #cpt_slide_any_post {
1217
+ margin:0px !important;
1218
+ border-color:#c0c0c0 !important;
1219
+ }
1220
+ #cpt_slide_any_post h2.hndle {
1221
+ padding:12px !important;
1222
+ background-color:#3498db !important;
1223
+ color:#ffffff !important;
1224
+ border-color:#c0c0c0 !important;
1225
+ font-weight:700 !important;
1226
+ font-size:18px !important;
1227
+ line-height:24px !important;
1228
+ }
1229
+ #cpt_slide_any_post button {
1230
+ margin-top:5px !important;
1231
+ }
1232
+ #cpt_slide_any_post button .toggle-indicator {
1233
+ color:#ffffff !important;
1234
+ }
1235
+ #cpt_slide_any_post .inside {
1236
+ margin:0px !important;
1237
+ padding:12px !important;
1238
+ background-color:#3498db !important;
1239
+ }
1240
+ #cpt_slide_any_post .inside #sapn_image {
1241
+ float:left !important;
1242
+ width:250px !important;
1243
+ padding:30px 10px !important;
1244
+ }
1245
+ #cpt_slide_any_post .inside #sapn_image img {
1246
+ width:100% !important;
1247
+ height:auto !important;
1248
+ }
1249
+ #cpt_slide_any_post .inside #sapn_text {
1250
+ width:600px !important;
1251
+ width:calc(100% - 250px) !important;
1252
+ max-width:800px !important;
1253
+ margin-left:250px !important;
1254
+ }
1255
+ #cpt_slide_any_post .inside #sapn_text h3 {
1256
+ margin:0px !important;
1257
+ padding:0px 10px 10px !important;
1258
+ font-weight:700 !important;
1259
+ font-size:22px !important;
1260
+ line-height:28px !important;
1261
+ color:#ffffff !important;
1262
+ text-align:center !important;
1263
+ }
1264
+ #cpt_slide_any_post .inside #sapn_text h5 {
1265
+ margin:0px !important;
1266
+ padding:0px 10px 10px !important;
1267
+ font-weight:400 !important;
1268
+ font-size:16px !important;
1269
+ line-height:22px !important;
1270
+ color:#ffffff !important;
1271
+ text-align:center !important;
1272
+ }
1273
+ #cpt_slide_any_post .inside #sapn_text div {
1274
+ text-align:center !important;
1275
+ }
1276
+ #cpt_slide_any_post .inside #sapn_text div a {
1277
+ display:inline-block !important;
1278
+ margin:10px !important;
1279
+ padding:10px 15px !important;
1280
+ font-weight:400 !important;
1281
+ font-size:14px !important;
1282
+ line-height:100% !important;
1283
+ text-decoration:none !important;
1284
+ border-radius:5px !important;
1285
+ color:#ffffff !important;
1286
+ transition:all 0.3s ease-in-out;
1287
+ -webkit-transition:all 0.3s ease-in-out;
1288
+ -moz-transition:all 0.3s ease-in-out;
1289
+ -o-transition:all 0.3s ease-in-out;
1290
+ }
1291
+ #cpt_slide_any_post .inside #sapn_text div #sapn_link {
1292
+ background-color:crimson !important;
1293
+ }
1294
+ #cpt_slide_any_post .inside #sapn_text div #sapn_dismiss {
1295
+ background-color:#c0c0c0 !important;
1296
+ }
1297
+ #cpt_slide_any_post .inside #sapn_text div #sapn_link:hover,
1298
+ #cpt_slide_any_post .inside #sapn_text div #sapn_dismiss:hover {
1299
+ background-color:#000000 !important;
1300
+ }
1301
+ @media only screen and (max-width:1439px) {
1302
+ #cpt_slide_any_post .inside #sapn_image { width:220px !important; padding:30px 0px !important; }
1303
+ #cpt_slide_any_post .inside #sapn_text {
1304
+ width:550px !important; width:calc(100% - 220px) !important; margin-left:220px !important; }
1305
+ #cpt_slide_any_post .inside #sapn_text h3 { font-size:20px !important; line-height:26px !important; }
1306
+ #cpt_slide_any_post .inside #sapn_text h5 { font-size:15px !important; line-height:20px !important; }
1307
+ }
1308
+ @media only screen and (max-width:1339px) {
1309
+ #cpt_slide_any_post .inside #sapn_image {
1310
+ float:none !important; width:100% !important; padding:10px 0px !important;
1311
+ text-align:center !important; }
1312
+ #cpt_slide_any_post .inside #sapn_image img { width:220px !important;}
1313
+ #cpt_slide_any_post .inside #sapn_text {
1314
+ float:none !important; width:100% !important; margin-left:0px !important; }
1315
+ }
1316
+ @media only screen and (max-width:1099px) {
1317
+ #cpt_slide_any_post h2.hndle { font-size:16px !important; line-height:22px !important; }
1318
+ #cpt_slide_any_post .inside #sapn_text h3 { font-size:18px !important; line-height:24px !important; }
1319
+ #cpt_slide_any_post .inside #sapn_text h5 { font-size:14px !important; line-height:20px !important; }
1320
+ #cpt_slide_any_post .inside #sapn_text div a { padding:8px 10px !important; font-size:13px !important; }
1321
+ }
1322
+
1323
  /* ### JQUERY UI - TOOLTIPS ### */
1324
  .sa_tooltip {
1325
  display:inline-block;
images/slide_any_post_logo.png ADDED
Binary file
images/slide_anything_pro_product_image.png ADDED
Binary file
php/slide-anything-admin.php CHANGED
@@ -125,7 +125,7 @@ function cpt_slider_plugin_activation() {
125
  }
126
  }
127
 
128
- // SLIDE ANYTHING 2.0 UPGRADE NOTICE
129
  function version_20_upgrade_notice() {
130
  global $current_user ;
131
  $user_id = $current_user->ID;
@@ -137,7 +137,7 @@ function version_20_upgrade_notice() {
137
  echo "<div class='notice notice-info' style='padding-top:10px;'>";
138
 
139
  echo "<div style='float:left; width:170px; margin-right:15px;'><a href='https://edgewebpages.com/' target='_blank'>";
140
- echo "<img style='width:100%;' src='https://edgewebpages.com/wp-content/uploads/2017/06/slide_anything_pro_product_image.png' /></a></div>";
141
  echo "<h3 style='margin:0px !important; padding:10px 0px !important;'>SLIDE ANYTHING PRO</h3>";
142
  echo "<p style='margin:0px 0px 10px !important;'><strong>SLIDE ANYTHING PRO</strong> adds POPUPS into the mix!!";
143
  echo "<br/><strong>SLIDE ANYTHING PRO</strong> also adds Hero Sliders & Thumbnail Pagination!!";
@@ -166,7 +166,7 @@ function version_20_upgrade_notice() {
166
 
167
  echo "<div style='clear:both; float:none; width:100%; height:10px;'></div>";
168
  echo "<a style='display:inline-block; float:right; padding:7px 10px; background:crimson; color:white; text-decoration:none; ";
169
- echo "border-radius:5px; font-size:16px;' href='?sa_nag_ignore=0'>Hide this notice</a>";
170
  echo "<div style='clear:both; float:none; width:100%; height:10px;'></div>";
171
 
172
  echo "</div>";
@@ -176,10 +176,14 @@ function version_20_upgrade_notice() {
176
  function slide_anything_notice_ignore() {
177
  global $current_user;
178
  $user_id = $current_user->ID;
179
- // If user clicks to ignore the notice, add that to their user meta
180
  if (isset($_GET['sa_nag_ignore']) && ($_GET['sa_nag_ignore'] == '0')) {
181
  add_user_meta($user_id, 'sa_ignore_notice', 'true', true);
182
  }
 
 
 
 
183
  }
184
 
185
  /* ##### ACTION HOOK - REGISTER SCRIPTS (JS AND CSS) FOR WORDPRESS DASHBOARD ONLY ##### */
@@ -380,6 +384,7 @@ function get_tinymce_shortcode_array() {
380
  // ##### ACTION HOOK - ADD META BOXES TO THE 'Slide Anything' CUSTOM POST TYPE #####
381
  function cpt_slider_add_meta_boxes() {
382
  global $post;
 
383
 
384
  $info_added = get_post_meta($post->ID, 'sa_info_added', true);
385
  $info_deleted = get_post_meta($post->ID, 'sa_info_deleted', true);
@@ -408,6 +413,15 @@ function cpt_slider_add_meta_boxes() {
408
  add_meta_box('cpt_slider_style', __('Slider Style'), 'cpt_slider_style_content', 'sa_slider', 'side', 'default');
409
  add_meta_box('cpt_slider_thumbs', __('Thumbnail Pagination'), 'cpt_slider_thumbs_content', 'sa_slider', 'side', 'default');
410
  remove_meta_box( 'mymetabox_revslider_0', 'sa_slider', 'normal' ); // remove revolution slider meta box
 
 
 
 
 
 
 
 
 
411
  }
412
 
413
 
@@ -2075,6 +2089,28 @@ function cpt_slider_thumbs_content($post) {
2075
 
2076
 
2077
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2078
  // ##### ACTION HOOK - SAVE CUSTOM POST TYPE ('Slide Anything') DATA #####
2079
  function cpt_slider_save_postdata() {
2080
  global $post;
125
  }
126
  }
127
 
128
+ // SLIDE ANYTHING PRO NOTICE
129
  function version_20_upgrade_notice() {
130
  global $current_user ;
131
  $user_id = $current_user->ID;
137
  echo "<div class='notice notice-info' style='padding-top:10px;'>";
138
 
139
  echo "<div style='float:left; width:170px; margin-right:15px;'><a href='https://edgewebpages.com/' target='_blank'>";
140
+ echo "<img style='width:100%;' src='".get_site_url()."/wp-content/plugins/slide-anything/images/slide_anything_pro_product_image.png' /></a></div>";
141
  echo "<h3 style='margin:0px !important; padding:10px 0px !important;'>SLIDE ANYTHING PRO</h3>";
142
  echo "<p style='margin:0px 0px 10px !important;'><strong>SLIDE ANYTHING PRO</strong> adds POPUPS into the mix!!";
143
  echo "<br/><strong>SLIDE ANYTHING PRO</strong> also adds Hero Sliders & Thumbnail Pagination!!";
166
 
167
  echo "<div style='clear:both; float:none; width:100%; height:10px;'></div>";
168
  echo "<a style='display:inline-block; float:right; padding:7px 10px; background:crimson; color:white; text-decoration:none; ";
169
+ echo "border-radius:5px; font-size:16px;' href='".get_site_url()."/wp-admin/edit.php?post_type=sa_slider&sa_nag_ignore=0'>Hide this notice</a>";
170
  echo "<div style='clear:both; float:none; width:100%; height:10px;'></div>";
171
 
172
  echo "</div>";
176
  function slide_anything_notice_ignore() {
177
  global $current_user;
178
  $user_id = $current_user->ID;
179
+ // If user clicks to ignore the Slide Anything PRO notice, add that to their user meta
180
  if (isset($_GET['sa_nag_ignore']) && ($_GET['sa_nag_ignore'] == '0')) {
181
  add_user_meta($user_id, 'sa_ignore_notice', 'true', true);
182
  }
183
+ // If user clicks to ignore the Slide Any Post notice, add that to their user meta
184
+ if (isset($_GET['sapost_ignore']) && ($_GET['sapost_ignore'] == '0')) {
185
+ add_user_meta($user_id, 'sa_ignore_sapost_notice', 'true', true);
186
+ }
187
  }
188
 
189
  /* ##### ACTION HOOK - REGISTER SCRIPTS (JS AND CSS) FOR WORDPRESS DASHBOARD ONLY ##### */
384
  // ##### ACTION HOOK - ADD META BOXES TO THE 'Slide Anything' CUSTOM POST TYPE #####
385
  function cpt_slider_add_meta_boxes() {
386
  global $post;
387
+ global $current_user;
388
 
389
  $info_added = get_post_meta($post->ID, 'sa_info_added', true);
390
  $info_deleted = get_post_meta($post->ID, 'sa_info_deleted', true);
413
  add_meta_box('cpt_slider_style', __('Slider Style'), 'cpt_slider_style_content', 'sa_slider', 'side', 'default');
414
  add_meta_box('cpt_slider_thumbs', __('Thumbnail Pagination'), 'cpt_slider_thumbs_content', 'sa_slider', 'side', 'default');
415
  remove_meta_box( 'mymetabox_revslider_0', 'sa_slider', 'normal' ); // remove revolution slider meta box
416
+ // ### SLIDE ANY POST PROMOTIONAL META BOX ###
417
+ $sa_pro_version = validate_slide_anything_pro_registration();
418
+ if (!$sa_pro_version) {
419
+ $user_id = $current_user->ID;
420
+ //delete_user_meta($user_id, 'sa_ignore_sapost_notice', 'true'); // FOR TESTING ONLY!!!
421
+ if (!get_user_meta($user_id, 'sa_ignore_sapost_notice')) {
422
+ add_meta_box('cpt_slide_any_post', __('Slide Any Post Plugin - Just Launched!'), 'cpt_slide_any_post_content', 'sa_slider', 'normal', 'default');
423
+ }
424
+ }
425
  }
426
 
427
 
2089
 
2090
 
2091
 
2092
+ // ##### META BOX CONTENT - 'Slide Any Post' PROMOTION BOX #####
2093
+ function cpt_slide_any_post_content() {
2094
+ echo "<div id='sa_post_notice'>\n";
2095
+ echo "<div id='sapn_image'>\n";
2096
+ echo "<a href='https://edgewebpages.com/sap' title='View the Slide Any Post website' target='_blank'>";
2097
+ echo "<img src='".get_site_url()."/wp-content/plugins/slide-anything/images/slide_any_post_logo.png' />";
2098
+ echo "</a>\n";
2099
+ echo "</div>\n"; // #sapn_image
2100
+ echo "<div id='sapn_text'>\n";
2101
+ echo "<h3>Generate a carousel/slider for ANY WordPress post type!</h3>\n";
2102
+ echo "<h5>Filter specific posts, filter by taxonomy, or filter by meta data values</h5>\n";
2103
+ echo "<h5>Create custom slide layouts containing post taxonomy data and post meta data</h5>\n";
2104
+ echo "<div><a id='sapn_link' href='https://edgewebpages.com/sap' title='View the Slide Any Post website' ";
2105
+ echo "target='_blank'>MORE INFORMATION</a>\n";
2106
+ echo "<a id='sapn_dismiss' href='".$_SERVER['REQUEST_URI']."&sapost_ignore=0'>DISMISS THIS NOTICE</a></div>";
2107
+ echo "</div>\n"; // #sapn_text
2108
+ echo "<div style='float:none; clear:both; width:100%; height:1px;'></div>\n";
2109
+ echo "</div>\n"; // #sa_post_notice
2110
+ }
2111
+
2112
+
2113
+
2114
  // ##### ACTION HOOK - SAVE CUSTOM POST TYPE ('Slide Anything') DATA #####
2115
  function cpt_slider_save_postdata() {
2116
  global $post;
readme.txt CHANGED
@@ -301,6 +301,9 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
301
  = 2.3.2 =
302
  * Bug Fix: Fixed 'undefined index' error that sometimes occurs on the WordPress backend when saving Showcase Carousel fields
303
 
 
 
 
304
  == Upgrade Notice ==
305
 
306
  = 1.0 =
@@ -504,4 +507,7 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
504
  * Bug Fix: Fixed issue with 'Autohide Arrows' not working properly with Showcase Carousels
505
 
506
  = 2.3.2 =
507
- * Bug Fix: Fixed 'undefined index' error that sometimes occurs on the WordPress backend when saving Showcase Carousel fields
 
 
 
301
  = 2.3.2 =
302
  * Bug Fix: Fixed 'undefined index' error that sometimes occurs on the WordPress backend when saving Showcase Carousel fields
303
 
304
+ = 2.3.3 =
305
+ * Added Slide Any Post promotional meta box & fixed a couple backend aesthetic issues
306
+
307
  == Upgrade Notice ==
308
 
309
  = 1.0 =
507
  * Bug Fix: Fixed issue with 'Autohide Arrows' not working properly with Showcase Carousels
508
 
509
  = 2.3.2 =
510
+ * Bug Fix: Fixed 'undefined index' error that sometimes occurs on the WordPress backend when saving Showcase Carousel fields
511
+
512
+ = 2.3.3 =
513
+ * Added Slide Any Post promotional meta box & fixed a couple backend aesthetic issues
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.2
8
  * License: GPLv2 or later
9
  */
10
 
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.3
8
  * License: GPLv2 or later
9
  */
10