Shortcodes Ultimate - Version 4.4.6

Version Description

  • Minor admin panel fixes
Download this release

Release Info

Developer gn_themes
Plugin Icon 128x128 Shortcodes Ultimate
Version 4.4.6
Comparing to
See all releases

Code changes from version 4.4.5 to 4.4.6

Files changed (3) hide show
  1. inc/core/admin-views.php +64 -66
  2. readme.txt +3 -0
  3. shortcodes-ultimate.php +2 -2
inc/core/admin-views.php CHANGED
@@ -1,10 +1,9 @@
1
  <?php
2
- if ( class_exists( 'Sunrise3_Views' ) ) {
3
- class Su_Admin_Views {
4
- function __construct() {}
5
 
6
- public static function about( $field, $config ) {
7
- ob_start();
8
  ?>
9
  <div id="su-about-screen">
10
  <h1><?php _e( 'Welcome to Shortcodes Ultimate', 'su' ); ?> <small><?php _e( 'A real swiss army knife for WordPress', 'su' ); ?></small></h1>
@@ -49,15 +48,15 @@ if ( class_exists( 'Sunrise3_Views' ) ) {
49
  </div>
50
  </div>
51
  <?php
52
- $output = ob_get_contents();
53
- ob_end_clean();
54
- su_query_asset( 'css', array( 'magnific-popup', 'su-options-page' ) );
55
- su_query_asset( 'js', array( 'jquery', 'magnific-popup', 'su-options-page' ) );
56
- return $output;
57
- }
58
 
59
- public static function custom_css( $field, $config ) {
60
- ob_start();
61
  ?>
62
  <div id="su-custom-css-screen">
63
  <div class="su-custom-css-originals">
@@ -83,65 +82,64 @@ if ( class_exists( 'Sunrise3_Views' ) ) {
83
  </div>
84
  </div>
85
  <?php
86
- $output = ob_get_contents();
87
- ob_end_clean();
88
- su_query_asset( 'css', array( 'magnific-popup', 'su-options-page' ) );
89
- su_query_asset( 'js', array( 'jquery', 'magnific-popup', 'ace', 'su-options-page' ) );
90
- return $output;
91
- }
92
 
93
- public static function examples( $field, $config ) {
94
- $output = array();
95
- $examples = Su_Data::examples();
96
- $preview = '<div style="display:none"><div id="su-examples-window"><div id="su-examples-preview"></div></div></div>';
97
- foreach ( $examples as $group ) {
98
- $items = array();
99
- if ( isset( $group['items'] ) ) foreach ( $group['items'] as $item ) {
100
- $code = ( isset( $item['code'] ) ) ? $item['code'] : plugins_url( 'inc/examples/' . $item['id'] . '.example', SU_PLUGIN_FILE );
101
- $id = ( isset( $item['id'] ) ) ? $item['id'] : '';
102
- $items[] = '<div class="su-examples-item" data-code="' . $code . '" data-id="' . $id . '" data-mfp-src="#su-examples-window" style="visibility:hidden"><i class="fa fa-' . $item['icon'] . '"></i> ' . $item['name'] . '</div>';
103
- }
104
- $output[] = '<div class="su-examples-group su-clearfix"><h2 class="su-examples-group-title" style="visibility:hidden">' . $group['title'] . '</h2>' . implode( '', $items ) . '</div>';
105
- }
106
- su_query_asset( 'css', array( 'magnific-popup', 'animate', 'font-awesome', 'su-options-page' ) );
107
- su_query_asset( 'js', array( 'jquery', 'magnific-popup', 'su-options-page' ) );
108
- return '<div id="su-examples-screen">' . implode( '', $output ) . '</div>' . $preview;
109
  }
 
 
 
 
110
 
111
- public static function addons( $field, $config ) {
112
- $output = array();
113
- $addons = array(
114
- array(
115
- 'name' => __( 'Maker', 'su' ),
116
- 'desc' => __( 'This add-on allows you to create custom shortcodes. You can easily create any shortcode with different parameters or even override default shortcodes', 'su' ),
117
- 'url' => 'http://gndev.info/shortcodes-ultimate/maker/',
118
- 'image' => plugins_url( 'assets/images/banners/maker.png', SU_PLUGIN_FILE )
119
- ),
120
- array(
121
- 'name' => __( 'Skins', 'su' ),
122
- 'desc' => __( 'Set of additional skins for Shrtcodes Ultimate. It includes skins for accordeons/spoilers, tabs and some other shortcodes', 'su' ),
123
- 'url' => 'http://gndev.info/shortcodes-ultimate/skins/',
124
- 'image' => plugins_url( 'assets/images/banners/skins.png', SU_PLUGIN_FILE )
125
- ),
126
- );
127
- $plugins = array();
128
- $output[] = '<h2>' . __( 'Shortcodes Ultimate Add-ons', 'su' ) . '</h2>';
 
 
 
 
 
 
 
129
  $output[] = '<div class="su-addons-loop su-clearfix">';
130
- foreach ( $addons as $addon ) {
131
- $output[] = '<div class="su-addons-item" style="visibility:hidden" data-url="' . $addon['url'] . '"><img src="' . $addon['image'] . '" alt="' . $addon['image'] . '" /><div class="su-addons-item-content"><h4>' . $addon['name'] . '</h4><p>' . $addon['desc'] . '</p><div class="su-addons-item-button"><a href="' . $addon['url'] . '" class="button button-primary" target="_blank">' . __( 'Learn more', 'su' ) . '</a></div></div></div>';
132
  }
133
  $output[] = '</div>';
134
- if ( count( $plugins ) ) {
135
- $output[] = '<h2>' . __( 'Other WordPress Plugins', 'su' ) . '</h2>';
136
- $output[] = '<div class="su-addons-loop su-clearfix">';
137
- foreach ( $plugins as $plugin ) {
138
- $output[] = '<div class="su-addons-item" style="visibility:hidden" data-url="' . $plugin['url'] . '"><img src="' . $plugin['image'] . '" alt="' . $plugin['image'] . '" /><div class="su-addons-item-content"><h4>' . $plugin['name'] . '</h4><p>' . $plugin['desc'] . '</p>' . Su_Shortcodes::button( array( 'url' => $plugin['url'], 'target' => 'blank', 'style' => 'flat', 'background' => '#FF7654', 'wide' => 'yes', 'radius' => '0' ), __( 'Learn more', 'su' ) ) . '</div></div>';
139
- }
140
- $output[] = '</div>';
141
- }
142
- su_query_asset( 'css', array( 'animate', 'su-options-page' ) );
143
- su_query_asset( 'js', array( 'jquery', 'su-options-page' ) );
144
- return '<div id="su-addons-screen">' . implode( '', $output ) . '</div>';
145
  }
 
 
 
146
  }
147
  }
1
  <?php
2
+ class Su_Admin_Views {
3
+ function __construct() {}
 
4
 
5
+ public static function about( $field, $config ) {
6
+ ob_start();
7
  ?>
8
  <div id="su-about-screen">
9
  <h1><?php _e( 'Welcome to Shortcodes Ultimate', 'su' ); ?> <small><?php _e( 'A real swiss army knife for WordPress', 'su' ); ?></small></h1>
48
  </div>
49
  </div>
50
  <?php
51
+ $output = ob_get_contents();
52
+ ob_end_clean();
53
+ su_query_asset( 'css', array( 'magnific-popup', 'su-options-page' ) );
54
+ su_query_asset( 'js', array( 'jquery', 'magnific-popup', 'su-options-page' ) );
55
+ return $output;
56
+ }
57
 
58
+ public static function custom_css( $field, $config ) {
59
+ ob_start();
60
  ?>
61
  <div id="su-custom-css-screen">
62
  <div class="su-custom-css-originals">
82
  </div>
83
  </div>
84
  <?php
85
+ $output = ob_get_contents();
86
+ ob_end_clean();
87
+ su_query_asset( 'css', array( 'magnific-popup', 'su-options-page' ) );
88
+ su_query_asset( 'js', array( 'jquery', 'magnific-popup', 'ace', 'su-options-page' ) );
89
+ return $output;
90
+ }
91
 
92
+ public static function examples( $field, $config ) {
93
+ $output = array();
94
+ $examples = Su_Data::examples();
95
+ $preview = '<div style="display:none"><div id="su-examples-window"><div id="su-examples-preview"></div></div></div>';
96
+ foreach ( $examples as $group ) {
97
+ $items = array();
98
+ if ( isset( $group['items'] ) ) foreach ( $group['items'] as $item ) {
99
+ $code = ( isset( $item['code'] ) ) ? $item['code'] : plugins_url( 'inc/examples/' . $item['id'] . '.example', SU_PLUGIN_FILE );
100
+ $id = ( isset( $item['id'] ) ) ? $item['id'] : '';
101
+ $items[] = '<div class="su-examples-item" data-code="' . $code . '" data-id="' . $id . '" data-mfp-src="#su-examples-window" style="visibility:hidden"><i class="fa fa-' . $item['icon'] . '"></i> ' . $item['name'] . '</div>';
102
+ }
103
+ $output[] = '<div class="su-examples-group su-clearfix"><h2 class="su-examples-group-title" style="visibility:hidden">' . $group['title'] . '</h2>' . implode( '', $items ) . '</div>';
 
 
 
 
104
  }
105
+ su_query_asset( 'css', array( 'magnific-popup', 'animate', 'font-awesome', 'su-options-page' ) );
106
+ su_query_asset( 'js', array( 'jquery', 'magnific-popup', 'su-options-page' ) );
107
+ return '<div id="su-examples-screen">' . implode( '', $output ) . '</div>' . $preview;
108
+ }
109
 
110
+ public static function addons( $field, $config ) {
111
+ $output = array();
112
+ $addons = array(
113
+ array(
114
+ 'name' => __( 'Maker', 'su' ),
115
+ 'desc' => __( 'This add-on allows you to create custom shortcodes. You can easily create any shortcode with different parameters or even override default shortcodes', 'su' ),
116
+ 'url' => 'http://gndev.info/shortcodes-ultimate/maker/',
117
+ 'image' => plugins_url( 'assets/images/banners/maker.png', SU_PLUGIN_FILE )
118
+ ),
119
+ array(
120
+ 'name' => __( 'Skins', 'su' ),
121
+ 'desc' => __( 'Set of additional skins for Shrtcodes Ultimate. It includes skins for accordeons/spoilers, tabs and some other shortcodes', 'su' ),
122
+ 'url' => 'http://gndev.info/shortcodes-ultimate/skins/',
123
+ 'image' => plugins_url( 'assets/images/banners/skins.png', SU_PLUGIN_FILE )
124
+ ),
125
+ );
126
+ $plugins = array();
127
+ $output[] = '<h2>' . __( 'Shortcodes Ultimate Add-ons', 'su' ) . '</h2>';
128
+ $output[] = '<div class="su-addons-loop su-clearfix">';
129
+ foreach ( $addons as $addon ) {
130
+ $output[] = '<div class="su-addons-item" style="visibility:hidden" data-url="' . $addon['url'] . '"><img src="' . $addon['image'] . '" alt="' . $addon['image'] . '" /><div class="su-addons-item-content"><h4>' . $addon['name'] . '</h4><p>' . $addon['desc'] . '</p><div class="su-addons-item-button"><a href="' . $addon['url'] . '" class="button button-primary" target="_blank">' . __( 'Learn more', 'su' ) . '</a></div></div></div>';
131
+ }
132
+ $output[] = '</div>';
133
+ if ( count( $plugins ) ) {
134
+ $output[] = '<h2>' . __( 'Other WordPress Plugins', 'su' ) . '</h2>';
135
  $output[] = '<div class="su-addons-loop su-clearfix">';
136
+ foreach ( $plugins as $plugin ) {
137
+ $output[] = '<div class="su-addons-item" style="visibility:hidden" data-url="' . $plugin['url'] . '"><img src="' . $plugin['image'] . '" alt="' . $plugin['image'] . '" /><div class="su-addons-item-content"><h4>' . $plugin['name'] . '</h4><p>' . $plugin['desc'] . '</p>' . Su_Shortcodes::button( array( 'url' => $plugin['url'], 'target' => 'blank', 'style' => 'flat', 'background' => '#FF7654', 'wide' => 'yes', 'radius' => '0' ), __( 'Learn more', 'su' ) ) . '</div></div>';
138
  }
139
  $output[] = '</div>';
 
 
 
 
 
 
 
 
 
 
 
140
  }
141
+ su_query_asset( 'css', array( 'animate', 'su-options-page' ) );
142
+ su_query_asset( 'js', array( 'jquery', 'su-options-page' ) );
143
+ return '<div id="su-addons-screen">' . implode( '', $output ) . '</div>';
144
  }
145
  }
readme.txt CHANGED
@@ -97,6 +97,9 @@ Upgrade normally via your Wordpress admin -> Plugins panel.
97
 
98
  == Changelog ==
99
 
 
 
 
100
  = 4.4 =
101
  * __IMPORTANT__: new galleries mechanism. Your created galleries will work but will not be visible in admin panel. Now, you're able to create galleries right in "Insert shortcode" window. Also, you can now create galleries from posts, categories or even custom taxonomies.
102
  * Removed all default links (default youtube videos)
97
 
98
  == Changelog ==
99
 
100
+ = 4.4.6 =
101
+ * Minor admin panel fixes
102
+
103
  = 4.4 =
104
  * __IMPORTANT__: new galleries mechanism. Your created galleries will work but will not be visible in admin panel. Now, you're able to create galleries right in "Insert shortcode" window. Also, you can now create galleries from posts, categories or even custom taxonomies.
105
  * Removed all default links (default youtube videos)
shortcodes-ultimate.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Shortcodes Ultimate
4
  Plugin URI: http://gndev.info/shortcodes-ultimate/
5
- Version: 4.4.5
6
  Author: Vladimir Anokhin
7
  Author URI: http://gndev.info/
8
  Description: Supercharge your WordPress theme with mega pack of shortcodes
@@ -13,7 +13,7 @@
13
 
14
  // Define plugin file constant
15
  define( 'SU_PLUGIN_FILE', __FILE__ );
16
- define( 'SU_PLUGIN_VERSION', '4.4.5' );
17
  define( 'SU_ENABLE_CACHE', true );
18
 
19
  // Includes
2
  /*
3
  Plugin Name: Shortcodes Ultimate
4
  Plugin URI: http://gndev.info/shortcodes-ultimate/
5
+ Version: 4.4.6
6
  Author: Vladimir Anokhin
7
  Author URI: http://gndev.info/
8
  Description: Supercharge your WordPress theme with mega pack of shortcodes
13
 
14
  // Define plugin file constant
15
  define( 'SU_PLUGIN_FILE', __FILE__ );
16
+ define( 'SU_PLUGIN_VERSION', '4.4.6' );
17
  define( 'SU_ENABLE_CACHE', true );
18
 
19
  // Includes