Version Description
- New: Bloginfo variables can now be added into shortcode content.
Download this release
Release Info
Developer | vaakash |
Plugin | Shortcoder |
Version | 4.1.5 |
Comparing to | |
See all releases |
Code changes from version 4.1.4 to 4.1.5
- admin/css/style.css +7 -2
- admin/sc-admin.php +1 -2
- includes/metadata.php +13 -0
- readme.txt +5 -2
- shortcoder.php +23 -11
admin/css/style.css
CHANGED
@@ -198,7 +198,7 @@ h1.sc_title .title-count {
|
|
198 |
position: relative;
|
199 |
background: #fff;
|
200 |
margin: 0;
|
201 |
-
padding: 10px;
|
202 |
width: 200px;
|
203 |
border-bottom: 1px solid #dfdfdf;
|
204 |
cursor: pointer;
|
@@ -211,7 +211,7 @@ h1.sc_title .title-count {
|
|
211 |
font-family: dashicons;
|
212 |
content: "\f139";
|
213 |
right: 5px;
|
214 |
-
top:
|
215 |
}
|
216 |
.params_wrap li:last-child{
|
217 |
border: 0;
|
@@ -225,6 +225,8 @@ h1.sc_title .title-count {
|
|
225 |
box-shadow: 0 3px 5px rgba(0,0,0,.2);
|
226 |
border: 1px solid #dfdfdf;
|
227 |
z-index: 9999;
|
|
|
|
|
228 |
}
|
229 |
.params_wrap li:hover ul{
|
230 |
display: block;
|
@@ -288,6 +290,9 @@ h1.sc_title .title-count {
|
|
288 |
.share_btn.googleplus{
|
289 |
background-color: #dd4b39;
|
290 |
}
|
|
|
|
|
|
|
291 |
|
292 |
.coffee_box{
|
293 |
padding: 15px 15px 25px 15px;
|
198 |
position: relative;
|
199 |
background: #fff;
|
200 |
margin: 0;
|
201 |
+
padding: 7px 10px;
|
202 |
width: 200px;
|
203 |
border-bottom: 1px solid #dfdfdf;
|
204 |
cursor: pointer;
|
211 |
font-family: dashicons;
|
212 |
content: "\f139";
|
213 |
right: 5px;
|
214 |
+
top: 7px;
|
215 |
}
|
216 |
.params_wrap li:last-child{
|
217 |
border: 0;
|
225 |
box-shadow: 0 3px 5px rgba(0,0,0,.2);
|
226 |
border: 1px solid #dfdfdf;
|
227 |
z-index: 9999;
|
228 |
+
max-height: 300px;
|
229 |
+
overflow: auto;
|
230 |
}
|
231 |
.params_wrap li:hover ul{
|
232 |
display: block;
|
290 |
.share_btn.googleplus{
|
291 |
background-color: #dd4b39;
|
292 |
}
|
293 |
+
.share_btn.rate_btn .dashicons{
|
294 |
+
color: #FF9800;
|
295 |
+
}
|
296 |
|
297 |
.coffee_box{
|
298 |
padding: 15px 15px 25px 15px;
|
admin/sc-admin.php
CHANGED
@@ -464,9 +464,8 @@ class Shortcoder_Admin{
|
|
464 |
|
465 |
<a href="https://goo.gl/r8Qr7Y" class="help_link" target="_blank" title="Help"><span class="dashicons dashicons-editor-help"></span></a>
|
466 |
<a href="https://goo.gl/URfxp2" class="help_link" target="_blank" title="Report issue"><span class="dashicons dashicons-flag"></span></a>
|
467 |
-
<a href="https://goo.gl/ltvnIE" class="help_link" target="_blank" title="Rate 5 stars"><span class="dashicons dashicons-star-filled"></span></a>
|
468 |
|
469 |
-
<a class="share_btn
|
470 |
<a class="share_btn twitter" href="https://twitter.com/intent/tweet?ref_src=twsrc%5Etfw&related=vaakash&text=Check%20out%20Shortcoder,%20a%20%23wordpress%20plugin%20to%20create%20shortcodes%20for%20HTML,%20JavaScript%20snippets%20easily&tw_p=tweetbutton&url=https%3A%2F%2Fwww.aakashweb.com%2Fwordpress-plugins%2Fshortcoder%2F&via=vaakash" target="_blank"><span class="dashicons dashicons-twitter"></span> Tweet about Shortcoder</a>
|
471 |
|
472 |
</div>';
|
464 |
|
465 |
<a href="https://goo.gl/r8Qr7Y" class="help_link" target="_blank" title="Help"><span class="dashicons dashicons-editor-help"></span></a>
|
466 |
<a href="https://goo.gl/URfxp2" class="help_link" target="_blank" title="Report issue"><span class="dashicons dashicons-flag"></span></a>
|
|
|
467 |
|
468 |
+
<a class="share_btn rate_btn" href="https://goo.gl/ltvnIE" target="_blank" title="Please rate 5 stars if you like Shortcoder"><span class="dashicons dashicons-star-filled"></span> Rate 5 stars</a>
|
469 |
<a class="share_btn twitter" href="https://twitter.com/intent/tweet?ref_src=twsrc%5Etfw&related=vaakash&text=Check%20out%20Shortcoder,%20a%20%23wordpress%20plugin%20to%20create%20shortcodes%20for%20HTML,%20JavaScript%20snippets%20easily&tw_p=tweetbutton&url=https%3A%2F%2Fwww.aakashweb.com%2Fwordpress-plugins%2Fshortcoder%2F&via=vaakash" target="_blank"><span class="dashicons dashicons-twitter"></span> Tweet about Shortcoder</a>
|
470 |
|
471 |
</div>';
|
includes/metadata.php
CHANGED
@@ -26,6 +26,19 @@ class Shortcoder_Metadata{
|
|
26 |
'post_image' => '',
|
27 |
'post_author' => '',
|
28 |
'post_date' => '',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
);
|
30 |
|
31 |
if( in_the_loop()) {
|
26 |
'post_image' => '',
|
27 |
'post_author' => '',
|
28 |
'post_date' => '',
|
29 |
+
|
30 |
+
'site_name' => get_bloginfo( 'name' ),
|
31 |
+
'site_description' => get_bloginfo( 'description' ),
|
32 |
+
'site_url' => get_bloginfo( 'url' ),
|
33 |
+
'site_wpurl' => get_bloginfo( 'wpurl' ),
|
34 |
+
'site_charset' => get_bloginfo( 'charset' ),
|
35 |
+
'wp_version' => get_bloginfo( 'version' ),
|
36 |
+
'stylesheet_url' => get_bloginfo( 'stylesheet_url' ),
|
37 |
+
'stylesheet_directory' => get_bloginfo( 'stylesheet_directory' ),
|
38 |
+
'template_url' => get_bloginfo( 'template_url' ),
|
39 |
+
'atom_url' => get_bloginfo( 'atom_url' ),
|
40 |
+
'rss_url' => get_bloginfo( 'rss2_url' )
|
41 |
+
|
42 |
);
|
43 |
|
44 |
if( in_the_loop()) {
|
readme.txt
CHANGED
@@ -6,8 +6,8 @@ Tags: shortcode, html, javascript, shortcodes, short code, posts, pages, widgets
|
|
6 |
Donate link: https://goo.gl/qMF3iE
|
7 |
License: GPLv2 or later
|
8 |
Requires at least: 3.3
|
9 |
-
Tested up to: 4.9.
|
10 |
-
Stable tag: 4.1.
|
11 |
|
12 |
Create custom "Shortcodes" easily for HTML, JavaScript snippets and use the shortcodes within posts, pages & widgets.
|
13 |
|
@@ -91,6 +91,9 @@ Note: When you disable a shortcode, the shortcode will not be executed in the pa
|
|
91 |
|
92 |
== Changelog ==
|
93 |
|
|
|
|
|
|
|
94 |
= 4.1.4 =
|
95 |
* New: Codemirror powered syntax highlighted shortcode content code editor (beta).
|
96 |
|
6 |
Donate link: https://goo.gl/qMF3iE
|
7 |
License: GPLv2 or later
|
8 |
Requires at least: 3.3
|
9 |
+
Tested up to: 4.9.2
|
10 |
+
Stable tag: 4.1.5
|
11 |
|
12 |
Create custom "Shortcodes" easily for HTML, JavaScript snippets and use the shortcodes within posts, pages & widgets.
|
13 |
|
91 |
|
92 |
== Changelog ==
|
93 |
|
94 |
+
= 4.1.5 =
|
95 |
+
* New: Bloginfo variables can now be added into shortcode content.
|
96 |
+
|
97 |
= 4.1.4 =
|
98 |
* New: Codemirror powered syntax highlighted shortcode content code editor (beta).
|
99 |
|
shortcoder.php
CHANGED
@@ -4,11 +4,11 @@ Plugin Name: Shortcoder
|
|
4 |
Plugin URI: https://www.aakashweb.com/
|
5 |
Description: Shortcoder is a plugin which allows to create a custom shortcode and store HTML, JavaScript and other snippets in it. So if that shortcode is used in any post or pages, then the code stored in the shortcode get executed in that place. You can create a shortcode for Youtube videos, adsense ads, buttons and more.
|
6 |
Author: Aakash Chakravarthy
|
7 |
-
Version: 4.1.
|
8 |
Author URI: https://www.aakashweb.com/
|
9 |
*/
|
10 |
|
11 |
-
define( 'SC_VERSION', '4.1.
|
12 |
define( 'SC_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
|
13 |
define( 'SC_URL', plugin_dir_url( __FILE__ ) );
|
14 |
define( 'SC_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );
|
@@ -171,16 +171,28 @@ class Shortcoder{
|
|
171 |
|
172 |
public static function wp_params_list(){
|
173 |
return apply_filters( 'sc_mod_wp_params', array(
|
174 |
-
'url' => 'URL of the post/location',
|
175 |
-
'title' => 'Title of the post/location',
|
176 |
-
'short_url' => 'Short URL of the post/location',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
|
178 |
-
'post_id' => 'Post ID',
|
179 |
-
'post_image' => 'Post featured image URL',
|
180 |
-
'post_excerpt' => 'Post excerpt',
|
181 |
-
'post_author' => 'Post author',
|
182 |
-
'post_date' => 'Post date',
|
183 |
-
'post_comments_count' => 'Post comments count'
|
184 |
));
|
185 |
}
|
186 |
|
4 |
Plugin URI: https://www.aakashweb.com/
|
5 |
Description: Shortcoder is a plugin which allows to create a custom shortcode and store HTML, JavaScript and other snippets in it. So if that shortcode is used in any post or pages, then the code stored in the shortcode get executed in that place. You can create a shortcode for Youtube videos, adsense ads, buttons and more.
|
6 |
Author: Aakash Chakravarthy
|
7 |
+
Version: 4.1.5
|
8 |
Author URI: https://www.aakashweb.com/
|
9 |
*/
|
10 |
|
11 |
+
define( 'SC_VERSION', '4.1.5' );
|
12 |
define( 'SC_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
|
13 |
define( 'SC_URL', plugin_dir_url( __FILE__ ) );
|
14 |
define( 'SC_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );
|
171 |
|
172 |
public static function wp_params_list(){
|
173 |
return apply_filters( 'sc_mod_wp_params', array(
|
174 |
+
'url' => __( 'URL of the post/location', 'shortcoder' ),
|
175 |
+
'title' => __( 'Title of the post/location', 'shortcoder' ),
|
176 |
+
'short_url' => __( 'Short URL of the post/location', 'shortcoder' ),
|
177 |
+
|
178 |
+
'post_id' => __( 'Post ID', 'shortcoder' ),
|
179 |
+
'post_image' => __( 'Post featured image URL', 'shortcoder' ),
|
180 |
+
'post_excerpt' => __( 'Post excerpt', 'shortcoder' ),
|
181 |
+
'post_author' => __( 'Post author', 'shortcoder' ),
|
182 |
+
'post_date' => __( 'Post date', 'shortcoder' ),
|
183 |
+
'post_comments_count' => __( 'Post comments count', 'shortcoder' ),
|
184 |
+
|
185 |
+
'site_name' => __( 'Site title', 'shortcoder' ),
|
186 |
+
'site_description' => __( 'Site description', 'shortcoder' ),
|
187 |
+
'site_url' => __( 'Site URL', 'shortcoder' ),
|
188 |
+
'site_wpurl' => __( 'WordPress URL', 'shortcoder' ),
|
189 |
+
'site_charset' => __( 'Site character set', 'shortcoder' ),
|
190 |
+
'wp_version' => __( 'WordPress version', 'shortcoder' ),
|
191 |
+
'stylesheet_url' => __( 'Active theme\'s stylesheet URL', 'shortcoder' ),
|
192 |
+
'stylesheet_directory' => __( 'Active theme\'s directory', 'shortcoder' ),
|
193 |
+
'atom_url' => __( 'Atom feed URL', 'shortcoder' ),
|
194 |
+
'rss_url' => __( 'RSS 2.0 feed URL', 'shortcoder' )
|
195 |
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
));
|
197 |
}
|
198 |
|