SMK Sidebar Generator - Version 3.3.1

Version Description

Download this release

Release Info

Developer _smartik_
Plugin Icon 128x128 SMK Sidebar Generator
Version 3.3.1
Comparing to
See all releases

Code changes from version 3.2.0 to 3.3.1

Files changed (8) hide show
  1. abstract.php +4 -4
  2. assets/scripts.js +3 -3
  3. assets/styles.css +3 -3
  4. html.php +4 -5
  5. readme.md +3 -3
  6. readme.txt +1 -1
  7. render.php +12 -11
  8. smk-sidebar-generator.php +1 -1
abstract.php CHANGED
@@ -3,9 +3,9 @@
3
  * SMK Sidebar Generator Abstract
4
  *
5
  * -------------------------------------------------------------------------------------
6
- * @Author: Smartik
7
- * @Author URI: http://smartik.ws/
8
- * @Copyright: (c) 2014 Smartik. All rights reserved
9
  * -------------------------------------------------------------------------------------
10
  *
11
  */
@@ -478,4 +478,4 @@ if( ! class_exists('Smk_Sidebar_Generator_Abstract')) {
478
  }
479
 
480
  } // class
481
- } // class_exists
3
  * SMK Sidebar Generator Abstract
4
  *
5
  * -------------------------------------------------------------------------------------
6
+ * @Author: Andrew Surdu
7
+ * @Author URI: https://zerowp.com/
8
+ * @Copyright: (c) 2014-present Andrew Surdu. All rights reserved
9
  * -------------------------------------------------------------------------------------
10
  *
11
  */
478
  }
479
 
480
  } // class
481
+ } // class_exists
assets/scripts.js CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
- * @Author: Smartik
3
  * @Date: 2014-03-12 21:17:04
4
- * @Last Modified by: Smartik
5
  * @Last Modified time: 2014-07-16 21:09:21
6
  */
7
 
@@ -309,4 +309,4 @@
309
 
310
  }); //document ready
311
 
312
- })(jQuery);
1
  /*
2
+ * @Author: Andrew Surdu
3
  * @Date: 2014-03-12 21:17:04
4
+ * @Last Modified by: Andrew Surdu
5
  * @Last Modified time: 2014-07-16 21:09:21
6
  */
7
 
309
 
310
  }); //document ready
311
 
312
+ })(jQuery);
assets/styles.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
- * @Author: Smartik
3
  * @Date: 2014-03-12 21:17:04
4
- * @Last Modified by: Smartik
5
  * @Last Modified time: 2014-07-16 21:09:29
6
  */
7
  /*
@@ -269,4 +269,4 @@ Clear Floated Elements
269
  */
270
  /* http://www.yuiblog.com/blog/2010/09/27/clearfix-reloaded-overflowhidden-demystified */
271
  .sbg-clearfix:before,.sbg-clearfix:after{content:'.';display:block;overflow:hidden;visibility:hidden;font-size:0;line-height:0;width:0;height:0;}
272
- .sbg-clearfix:after{clear:both;}
1
  /*
2
+ * @Author: Andrew Surdu
3
  * @Date: 2014-03-12 21:17:04
4
+ * @Last Modified by: Andrew Surdu
5
  * @Last Modified time: 2014-07-16 21:09:29
6
  */
7
  /*
269
  */
270
  /* http://www.yuiblog.com/blog/2010/09/27/clearfix-reloaded-overflowhidden-demystified */
271
  .sbg-clearfix:before,.sbg-clearfix:after{content:'.';display:block;overflow:hidden;visibility:hidden;font-size:0;line-height:0;width:0;height:0;}
272
+ .sbg-clearfix:after{clear:both;}
html.php CHANGED
@@ -5,9 +5,9 @@
5
  * Description
6
  *
7
  * -------------------------------------------------------------------------------------
8
- * @Author: Smartik
9
- * @Author URI: http://smartik.ws/
10
- * @Copyright: (c) 2014 Smartik. All rights reserved
11
  * -------------------------------------------------------------------------------------
12
  *
13
  */
@@ -80,7 +80,6 @@ if( ! class_exists('Smk_Sidebar_Generator_Html') ){
80
  break;
81
 
82
  case 'options':
83
- continue;
84
  break;
85
 
86
  default:
@@ -118,4 +117,4 @@ if( ! class_exists('Smk_Sidebar_Generator_Html') ){
118
  }
119
 
120
  }
121
- }
5
  * Description
6
  *
7
  * -------------------------------------------------------------------------------------
8
+ * @Author: Andrew Surdu
9
+ * @Author URI: https://zerowp.com/
10
+ * @Copyright: (c) 2014-present Andrew Surdu. All rights reserved
11
  * -------------------------------------------------------------------------------------
12
  *
13
  */
80
  break;
81
 
82
  case 'options':
 
83
  break;
84
 
85
  default:
117
  }
118
 
119
  }
120
+ }
readme.md CHANGED
@@ -8,10 +8,10 @@ The new version 3.x has many advantages compared with the old 2.x. First and the
8
 
9
  <!--iframe width="560" height="315" src="//www.youtube.com/embed/fluNdMnSCKA" frameborder="0" allowfullscreen></iframe-->
10
 
11
- * Author : Smartik - http://smartik.ws/
12
  * License : GPLv2
13
- * Development branch: https://github.com/Smartik89/Wordpress-Sidebar-Generator
14
- * Issue tracker: https://github.com/Smartik89/Wordpress-Sidebar-Generator/issues
15
 
16
  ####Features:
17
  * Unlimited number of sidebars.
8
 
9
  <!--iframe width="560" height="315" src="//www.youtube.com/embed/fluNdMnSCKA" frameborder="0" allowfullscreen></iframe-->
10
 
11
+ * Author : Andrew Surdu - https://zerowp.com/
12
  * License : GPLv2
13
+ * Development branch: https://github.com/awps/Wordpress-Sidebar-Generator
14
+ * Issue tracker: https://github.com/awps/Wordpress-Sidebar-Generator/issues
15
 
16
  ####Features:
17
  * Unlimited number of sidebars.
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: _smartik_
3
  Tags: sidebar, widget, generator, custom, unlimited
4
  Requires at least: 4.0
5
  Tested up to: 5.3
6
- Stable tag: 3.2.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
3
  Tags: sidebar, widget, generator, custom, unlimited
4
  Requires at least: 4.0
5
  Tested up to: 5.3
6
+ Stable tag: 3.3.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
render.php CHANGED
@@ -3,9 +3,9 @@
3
  * Smk Sidebar Generator Render
4
  *
5
  * -------------------------------------------------------------------------------------
6
- * @Author: Smartik
7
- * @Author URI: http://smartik.ws/
8
- * @Copyright: (c) 2014 Smartik. All rights reserved
9
  * -------------------------------------------------------------------------------------
10
  *
11
  */
@@ -273,7 +273,7 @@ if( class_exists('Smk_Sidebar_Generator_Abstract')) {
273
  * Display a single condition
274
  *
275
  * @param string $name HTML field name
276
- * @param string $sidebar_data Data for current sidebar
277
  * @return string The HTML
278
  */
279
  public function aSingleCondition($name, $sidebar_data, $index = 0, $condition_if = 'all'){
@@ -298,7 +298,7 @@ if( class_exists('Smk_Sidebar_Generator_Abstract')) {
298
  * Display sidebar name field
299
  *
300
  * @param string $name HTML field name
301
- * @param string $sidebar_data Data for current sidebar
302
  * @return string The HTML
303
  */
304
  public function fieldName($name, $sidebar_data){
@@ -324,7 +324,7 @@ if( class_exists('Smk_Sidebar_Generator_Abstract')) {
324
  * Display sidebar ID field
325
  *
326
  * @param string $name HTML field name
327
- * @param string $sidebar_data Data for current sidebar
328
  * @return string The HTML
329
  */
330
  public function fieldId($name, $sidebar_data){
@@ -350,7 +350,7 @@ if( class_exists('Smk_Sidebar_Generator_Abstract')) {
350
  * Display sidebar description field
351
  *
352
  * @param string $name HTML field name
353
- * @param string $sidebar_data Data for current sidebar
354
  * @return string The HTML
355
  */
356
  public function fieldDescription($name, $sidebar_data){
@@ -376,14 +376,15 @@ if( class_exists('Smk_Sidebar_Generator_Abstract')) {
376
  * Display sidebar To Replace field
377
  *
378
  * @param string $name HTML field name
379
- * @param string $sidebar_data Data for current sidebar
380
  * @return string The HTML
381
  */
382
  public function fieldToReplace($name, $sidebar_data){
383
 
384
  // To replace
385
  $static = $this->allStaticSidebars();
386
- $static_sidebars = '';
 
387
  foreach ($static as $key => $value) {
388
  $static_sidebars[ $key ] = $value['name'];
389
  }
@@ -418,7 +419,7 @@ if( class_exists('Smk_Sidebar_Generator_Abstract')) {
418
  * Display sidebar Condition main field
419
  *
420
  * @param string $name HTML field name
421
- * @param string $sidebar_data Data for current sidebar
422
  * @return string The HTML
423
  */
424
  public function fieldConditionMain($name, $sidebar_data, $index = 0){
@@ -567,4 +568,4 @@ if( class_exists('Smk_Sidebar_Generator_Abstract')) {
567
  }
568
 
569
  }
570
- }
3
  * Smk Sidebar Generator Render
4
  *
5
  * -------------------------------------------------------------------------------------
6
+ * @Author: Andrew Surdu
7
+ * @Author URI: https://zerowp.com/
8
+ * @Copyright: (c) 2014-present Andrew Surdu. All rights reserved
9
  * -------------------------------------------------------------------------------------
10
  *
11
  */
273
  * Display a single condition
274
  *
275
  * @param string $name HTML field name
276
+ * @param string|array $sidebar_data Data for current sidebar
277
  * @return string The HTML
278
  */
279
  public function aSingleCondition($name, $sidebar_data, $index = 0, $condition_if = 'all'){
298
  * Display sidebar name field
299
  *
300
  * @param string $name HTML field name
301
+ * @param array $sidebar_data Data for current sidebar
302
  * @return string The HTML
303
  */
304
  public function fieldName($name, $sidebar_data){
324
  * Display sidebar ID field
325
  *
326
  * @param string $name HTML field name
327
+ * @param array $sidebar_data Data for current sidebar
328
  * @return string The HTML
329
  */
330
  public function fieldId($name, $sidebar_data){
350
  * Display sidebar description field
351
  *
352
  * @param string $name HTML field name
353
+ * @param array $sidebar_data Data for current sidebar
354
  * @return string The HTML
355
  */
356
  public function fieldDescription($name, $sidebar_data){
376
  * Display sidebar To Replace field
377
  *
378
  * @param string $name HTML field name
379
+ * @param array $sidebar_data Data for current sidebar
380
  * @return string The HTML
381
  */
382
  public function fieldToReplace($name, $sidebar_data){
383
 
384
  // To replace
385
  $static = $this->allStaticSidebars();
386
+ $static_sidebars = [];
387
+
388
  foreach ($static as $key => $value) {
389
  $static_sidebars[ $key ] = $value['name'];
390
  }
419
  * Display sidebar Condition main field
420
  *
421
  * @param string $name HTML field name
422
+ * @param array $sidebar_data Data for current sidebar
423
  * @return string The HTML
424
  */
425
  public function fieldConditionMain($name, $sidebar_data, $index = 0){
568
  }
569
 
570
  }
571
+ }
smk-sidebar-generator.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://zerowp.com/sidebar-generator
5
  * Description: Generate an unlimited number of sidebars and assign them to any page using the conditional options without touching a single line of code.
6
  * Author: Andrei Surdu
7
- * Version: 3.2.0
8
  * Author URI: https://zerowp.com
9
  * Licence: GPLv2
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
4
  * Plugin URI: https://zerowp.com/sidebar-generator
5
  * Description: Generate an unlimited number of sidebars and assign them to any page using the conditional options without touching a single line of code.
6
  * Author: Andrei Surdu
7
+ * Version: 3.3.1
8
  * Author URI: https://zerowp.com
9
  * Licence: GPLv2
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html