Version Description
- Service shortcode returned
Download this release
Release Info
Developer | gn_themes |
Plugin | Shortcodes Ultimate |
Version | 1.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.4.0 to 1.4.1
- readme.txt +4 -1
- shortcodes-ultimate.php +18 -1
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://ilovecode.ru/
|
|
4 |
Tags: shortcode, shortcodes, short code, shortcodes, tab, tabs, button, buttons, jquery, box, boxes, toggle, spoiler, column, columns, services, service, pullquote, list, lists, frame, images, image, links, fancy, fancy link, fancy links, fancy buttons, jquery tabs, accordeon
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.1
|
7 |
-
Stable tag: 1.4.
|
8 |
|
9 |
Provides support for multiple useful shortcodes
|
10 |
|
@@ -60,6 +60,9 @@ In your dashboard
|
|
60 |
|
61 |
== Changelog ==
|
62 |
|
|
|
|
|
|
|
63 |
= 1.4.0 =
|
64 |
* Added shortcode "Fancy link"
|
65 |
|
4 |
Tags: shortcode, shortcodes, short code, shortcodes, tab, tabs, button, buttons, jquery, box, boxes, toggle, spoiler, column, columns, services, service, pullquote, list, lists, frame, images, image, links, fancy, fancy link, fancy links, fancy buttons, jquery tabs, accordeon
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.1
|
7 |
+
Stable tag: 1.4.1
|
8 |
|
9 |
Provides support for multiple useful shortcodes
|
10 |
|
60 |
|
61 |
== Changelog ==
|
62 |
|
63 |
+
= 1.4.1 =
|
64 |
+
* Service shortcode returned
|
65 |
+
|
66 |
= 1.4.0 =
|
67 |
* Added shortcode "Fancy link"
|
68 |
|
shortcodes-ultimate.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Shortcodes Ultimate
|
4 |
Plugin URI: http://ilovecode.ru/?p=122
|
5 |
-
Version: 1.4.
|
6 |
Author: Vladimir Anokhin
|
7 |
Author URI: http://ilovecode.ru/
|
8 |
Description: Provides support for many easy to use shortcodes
|
@@ -278,6 +278,23 @@
|
|
278 |
return '<a class="su-fancy-link su-fancy-link-' . $color . '" href="' . $link . '">' . $content . '</a>';
|
279 |
}
|
280 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
/**
|
282 |
* Shortcode: box
|
283 |
*
|
2 |
/*
|
3 |
Plugin Name: Shortcodes Ultimate
|
4 |
Plugin URI: http://ilovecode.ru/?p=122
|
5 |
+
Version: 1.4.1
|
6 |
Author: Vladimir Anokhin
|
7 |
Author URI: http://ilovecode.ru/
|
8 |
Description: Provides support for many easy to use shortcodes
|
278 |
return '<a class="su-fancy-link su-fancy-link-' . $color . '" href="' . $link . '">' . $content . '</a>';
|
279 |
}
|
280 |
|
281 |
+
/**
|
282 |
+
* Shortcode: service
|
283 |
+
*
|
284 |
+
* @param array $atts Shortcode attributes
|
285 |
+
* @param string $content
|
286 |
+
* @return string Output html
|
287 |
+
*/
|
288 |
+
function su_service_shortcode( $atts, $content = null ) {
|
289 |
+
extract( shortcode_atts( array(
|
290 |
+
'title' => __( 'Service name', 'shortcodes-ultimate' ),
|
291 |
+
'icon' => su_plugin_url() . '/images/service.png',
|
292 |
+
'size' => 32
|
293 |
+
), $atts ) );
|
294 |
+
|
295 |
+
return '<div class="su-service"><div class="su-service-title" style="padding:' . round( ( $size - 16 ) / 2 ) . 'px 0 ' . round( ( $size - 16 ) / 2 ) . 'px ' . ( $size + 15 ) . 'px"><img src="' . $icon . '" width="' . $size . '" height="' . $size . '" alt="' . $title . '" /> ' . $title . '</div><div class="su-service-content" style="padding:0 0 0 ' . ( $size + 15 ) . 'px">' . do_shortcode( $content ) . '</div></div>';
|
296 |
+
}
|
297 |
+
|
298 |
/**
|
299 |
* Shortcode: box
|
300 |
*
|