Shortcodes Ultimate - Version 1.9.0

Version Description

  • New shortcode: permalink
  • New shortcode: bloginfo
Download this release

Release Info

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

Code changes from version 1.8.3 to 1.9.0

languages/shortcodes-ultimate-ru_RU.mo CHANGED
Binary file
languages/shortcodes-ultimate-ru_RU.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: gn_themes\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2011-04-29 17:54+0300\n"
6
- "PO-Revision-Date: 2011-04-29 17:54+0300\n"
7
  "Last-Translator: Vladimir Anokhin <ano.vladimir@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -14,29 +14,29 @@ msgstr ""
14
  "X-Poedit-SourceCharset: utf-8\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
- #: shortcodes-ultimate.php:157
18
  #: lib/admin.php:23
19
  msgid "Shortcodes Ultimate"
20
  msgstr "Шорткоды"
21
 
22
- #: shortcodes-ultimate.php:157
23
  msgid "Vladimir Anokhin"
24
  msgstr "Владимир Анохин"
25
 
26
- #: shortcodes-ultimate.php:157
27
  msgid "Provides support for many easy to use shortcodes"
28
  msgstr "Предоставляет поддержку множества полезных шорткодов"
29
 
30
- #: shortcodes-ultimate.php:241
31
  msgid "Settings"
32
  msgstr "Настройки"
33
 
34
- #: shortcodes-ultimate.php:254
35
  #: lib/admin.php:57
36
  msgid "Settings saved"
37
  msgstr "Настройки сохранены"
38
 
39
- #: shortcodes-ultimate.php:259
40
  #: lib/admin.php:87
41
  msgid "Custom CSS saved"
42
  msgstr "Произвольные стили сохранены"
@@ -162,9 +162,11 @@ msgstr "Пример использования"
162
  #: lib/admin.php:137
163
  #: lib/admin.php:142
164
  #: lib/admin.php:147
165
- #: lib/admin.php:167
166
- #: lib/admin.php:172
 
167
  #: lib/admin.php:182
 
168
  msgid "Content"
169
  msgstr "Содержимое"
170
 
@@ -186,62 +188,67 @@ msgid "Hidden text"
186
  msgstr "Скрытый текст"
187
 
188
  #: lib/admin.php:126
189
- #: lib/admin.php:151
190
- #: lib/admin.php:186
191
  #: lib/admin.php:196
 
192
  msgid "optional"
193
  msgstr "необяз."
194
 
195
- #: lib/admin.php:152
 
 
 
 
196
  msgid "Button text"
197
  msgstr "Текст кнопки"
198
 
199
- #: lib/admin.php:157
200
  msgid "Read more"
201
  msgstr "Подробнее"
202
 
203
- #: lib/admin.php:161
204
  msgid "image url"
205
  msgstr "ссылка на изображение"
206
 
207
- #: lib/admin.php:161
208
  msgid "icon size"
209
  msgstr "размер иконки"
210
 
211
- #: lib/admin.php:162
212
  #: lib/shortcodes.php:292
213
  msgid "Service name"
214
  msgstr "Название услуги"
215
 
216
- #: lib/admin.php:162
217
  msgid "Service description"
218
  msgstr "Описание услуги"
219
 
220
- #: lib/admin.php:167
221
  msgid "Box title"
222
  msgstr "Заголовок блока"
223
 
224
- #: lib/admin.php:177
225
  msgid "List item"
226
  msgstr "Элемент списка"
227
 
228
- #: lib/admin.php:181
229
  msgid "add this to last columns"
230
  msgstr "добавьте к каждой последней колонке"
231
 
232
- #: lib/admin.php:187
233
  msgid "Plain table"
234
  msgstr "Простая таблица"
235
 
236
- #: lib/admin.php:187
237
  msgid "From CSV"
238
  msgstr "Из CSV-файла"
239
 
240
- #: lib/admin.php:196
241
  msgid "1 second"
242
  msgstr "1 секунда"
243
 
244
- #: lib/admin.php:201
245
  msgid "See filter IDs"
246
  msgstr "Смотреть ID фильтров"
247
 
2
  msgstr ""
3
  "Project-Id-Version: gn_themes\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-05-09 14:46+0300\n"
6
+ "PO-Revision-Date: 2011-05-09 14:46+0300\n"
7
  "Last-Translator: Vladimir Anokhin <ano.vladimir@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
14
  "X-Poedit-SourceCharset: utf-8\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
+ #: shortcodes-ultimate.php:158
18
  #: lib/admin.php:23
19
  msgid "Shortcodes Ultimate"
20
  msgstr "Шорткоды"
21
 
22
+ #: shortcodes-ultimate.php:158
23
  msgid "Vladimir Anokhin"
24
  msgstr "Владимир Анохин"
25
 
26
+ #: shortcodes-ultimate.php:158
27
  msgid "Provides support for many easy to use shortcodes"
28
  msgstr "Предоставляет поддержку множества полезных шорткодов"
29
 
30
+ #: shortcodes-ultimate.php:242
31
  msgid "Settings"
32
  msgstr "Настройки"
33
 
34
+ #: shortcodes-ultimate.php:255
35
  #: lib/admin.php:57
36
  msgid "Settings saved"
37
  msgstr "Настройки сохранены"
38
 
39
+ #: shortcodes-ultimate.php:260
40
  #: lib/admin.php:87
41
  msgid "Custom CSS saved"
42
  msgstr "Произвольные стили сохранены"
162
  #: lib/admin.php:137
163
  #: lib/admin.php:142
164
  #: lib/admin.php:147
165
+ #: lib/admin.php:152
166
+ #: lib/admin.php:157
167
+ #: lib/admin.php:177
168
  #: lib/admin.php:182
169
+ #: lib/admin.php:192
170
  msgid "Content"
171
  msgstr "Содержимое"
172
 
188
  msgstr "Скрытый текст"
189
 
190
  #: lib/admin.php:126
191
+ #: lib/admin.php:156
192
+ #: lib/admin.php:161
193
  #: lib/admin.php:196
194
+ #: lib/admin.php:206
195
  msgid "optional"
196
  msgstr "необяз."
197
 
198
+ #: lib/admin.php:151
199
+ msgid "See available values"
200
+ msgstr "Возможные значения (англ.)"
201
+
202
+ #: lib/admin.php:162
203
  msgid "Button text"
204
  msgstr "Текст кнопки"
205
 
206
+ #: lib/admin.php:167
207
  msgid "Read more"
208
  msgstr "Подробнее"
209
 
210
+ #: lib/admin.php:171
211
  msgid "image url"
212
  msgstr "ссылка на изображение"
213
 
214
+ #: lib/admin.php:171
215
  msgid "icon size"
216
  msgstr "размер иконки"
217
 
218
+ #: lib/admin.php:172
219
  #: lib/shortcodes.php:292
220
  msgid "Service name"
221
  msgstr "Название услуги"
222
 
223
+ #: lib/admin.php:172
224
  msgid "Service description"
225
  msgstr "Описание услуги"
226
 
227
+ #: lib/admin.php:177
228
  msgid "Box title"
229
  msgstr "Заголовок блока"
230
 
231
+ #: lib/admin.php:187
232
  msgid "List item"
233
  msgstr "Элемент списка"
234
 
235
+ #: lib/admin.php:191
236
  msgid "add this to last columns"
237
  msgstr "добавьте к каждой последней колонке"
238
 
239
+ #: lib/admin.php:197
240
  msgid "Plain table"
241
  msgstr "Простая таблица"
242
 
243
+ #: lib/admin.php:197
244
  msgid "From CSV"
245
  msgstr "Из CSV-файла"
246
 
247
+ #: lib/admin.php:206
248
  msgid "1 second"
249
  msgstr "1 секунда"
250
 
251
+ #: lib/admin.php:211
252
  msgid "See filter IDs"
253
  msgstr "Смотреть ID фильтров"
254
 
lib/admin.php CHANGED
@@ -146,6 +146,16 @@
146
  <td>bg="#HEX"<br/>color="#HEX"</td>
147
  <td>[highlight bg="#fc0" color="#000"] <?php _e( 'Content', 'shortcodes-ultimate' ); ?> [/highlight]</td>
148
  </tr>
 
 
 
 
 
 
 
 
 
 
149
  <tr>
150
  <td>button</td>
151
  <td>link<br/>color="#HEX"<br/>size="1-12"<br/>style="1|2|3|4"<br/>dark (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)<br/>square (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)<br/>icon (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)</td>
@@ -191,12 +201,12 @@
191
  <td>url<br/>width<br/>height</td>
192
  <td>[media url="http://www.youtube.com/watch?v=2c2EEacfC1M"]<br/>[media url="http://vimeo.com/15069551"]<br/>[media url="video.mp4"]<br/>[media url="video.flv"]<br/>[media url="audio.mp3"]<br/>[media url="image.jpg"]</td>
193
  </tr>
194
- <tr class="su-new-shortcode">
195
  <td>nivo_slider</td>
196
  <td>width<br/>height<br/>link="file|attachment" (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)<br/>speed (1000 = <?php _e( '1 second', 'shortcodes-ultimate' ); ?>)<br/>delay (1000 = <?php _e( '1 second', 'shortcodes-ultimate' ); ?>)<br/>p - post ID (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)<br/>effect="random|boxRandom|fold|fade"</td>
197
  <td>[nivo_slider]<br/>[nivo_slider width="640" height="400" link="file" effect="boxRandom"]</td>
198
  </tr>
199
- <tr class="su-new-shortcode">
200
  <td>photoshop</td>
201
  <td>image (url)<br/>width<br/>height<br/>crop="0|1"<br/>quality="0-100"<br/>sharpen="0|1"<br/>filter="%filter_id%"<br/><a href="http://www.binarymoon.co.uk/demo/timthumb-filters/" target="_blank"><?php _e( 'See filter IDs', 'shortcodes-ultimate' ); ?></a></td>
202
  <td>[photoshop image="image.jpg" width="400" height="300" filter="2"]</td>
146
  <td>bg="#HEX"<br/>color="#HEX"</td>
147
  <td>[highlight bg="#fc0" color="#000"] <?php _e( 'Content', 'shortcodes-ultimate' ); ?> [/highlight]</td>
148
  </tr>
149
+ <tr class="su-new-shortcode">
150
+ <td>bloginfo</td>
151
+ <td>option<br/><a href="http://codex.wordpress.org/Function_Reference/get_bloginfo#Parameters" target="_blank"><?php _e( 'See available values', 'shortcodes-ultimate' ); ?></a></td>
152
+ <td>[permalink p=52]<br/>[permalink p="52" target="blank"] <?php _e( 'Content', 'shortcodes-ultimate' ); ?> [/permalink]</td>
153
+ </tr>
154
+ <tr class="su-new-shortcode">
155
+ <td>permalink</td>
156
+ <td>p - post/page ID<br/>width<br/>target="self|blank" (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)<br/></td>
157
+ <td>[permalink p=52]<br/>[permalink p="52" target="blank"] <?php _e( 'Content', 'shortcodes-ultimate' ); ?> [/permalink]</td>
158
+ </tr>
159
  <tr>
160
  <td>button</td>
161
  <td>link<br/>color="#HEX"<br/>size="1-12"<br/>style="1|2|3|4"<br/>dark (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)<br/>square (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)<br/>icon (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)</td>
201
  <td>url<br/>width<br/>height</td>
202
  <td>[media url="http://www.youtube.com/watch?v=2c2EEacfC1M"]<br/>[media url="http://vimeo.com/15069551"]<br/>[media url="video.mp4"]<br/>[media url="video.flv"]<br/>[media url="audio.mp3"]<br/>[media url="image.jpg"]</td>
203
  </tr>
204
+ <tr>
205
  <td>nivo_slider</td>
206
  <td>width<br/>height<br/>link="file|attachment" (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)<br/>speed (1000 = <?php _e( '1 second', 'shortcodes-ultimate' ); ?>)<br/>delay (1000 = <?php _e( '1 second', 'shortcodes-ultimate' ); ?>)<br/>p - post ID (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)<br/>effect="random|boxRandom|fold|fade"</td>
207
  <td>[nivo_slider]<br/>[nivo_slider width="640" height="400" link="file" effect="boxRandom"]</td>
208
  </tr>
209
+ <tr>
210
  <td>photoshop</td>
211
  <td>image (url)<br/>width<br/>height<br/>crop="0|1"<br/>quality="0-100"<br/>sharpen="0|1"<br/>filter="%filter_id%"<br/><a href="http://www.binarymoon.co.uk/demo/timthumb-filters/" target="_blank"><?php _e( 'See filter IDs', 'shortcodes-ultimate' ); ?></a></td>
212
  <td>[photoshop image="image.jpg" width="400" height="300" filter="2"]</td>
lib/shortcodes.php CHANGED
@@ -486,4 +486,36 @@
486
  return $return;
487
  }
488
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
489
  ?>
486
  return $return;
487
  }
488
 
489
+ /**
490
+ * Shortcode: permalink
491
+ *
492
+ * @param string $content
493
+ * @return string Output html
494
+ */
495
+ function su_permalink_shortcode( $atts, $content = null ) {
496
+ extract( shortcode_atts( array(
497
+ 'p' => 1,
498
+ 'target' => ''
499
+ ), $atts ) );
500
+
501
+ $text = ( $content ) ? $content : get_the_title( $p );
502
+ $tgt = ( $target ) ? ' target="_' . $target . '"' : '';
503
+
504
+ return '<a href="' . get_permalink( $p ) . '" title="' . $text . '"' . $tgt . '>' . $text . '</a>';
505
+ }
506
+
507
+ /**
508
+ * Shortcode: permalink
509
+ *
510
+ * @param string $content
511
+ * @return string Output html
512
+ */
513
+ function su_bloginfo_shortcode( $atts, $content = null ) {
514
+ extract( shortcode_atts( array(
515
+ 'option' => 'name'
516
+ ), $atts ) );
517
+
518
+ return get_bloginfo( $option );
519
+ }
520
+
521
  ?>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: gn_themes
3
  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, slider, nivo, nivo slider, plugin, admin, photoshop, gallery
5
  Requires at least: 3.0
6
- Tested up to: 3.1
7
- Stable tag: 1.8.3
8
 
9
  Provides support for multiple useful shortcodes
10
 
@@ -12,8 +12,8 @@ Provides support for multiple useful shortcodes
12
  == Description ==
13
 
14
  = In this version =
15
- * Multiple tabs
16
- * No-js compatibility
17
 
18
  With this plugin you can easily add buttons, dividers, spacers, boxes, notes and much more
19
  = Complete list of available shortcodes =
@@ -70,6 +70,10 @@ In your dashboard
70
 
71
  == Changelog ==
72
 
 
 
 
 
73
  = 1.8.0 =
74
  * Some small additions
75
  * Ajax admin page
3
  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, slider, nivo, nivo slider, plugin, admin, photoshop, gallery
5
  Requires at least: 3.0
6
+ Tested up to: 3.2
7
+ Stable tag: 1.9.0
8
 
9
  Provides support for multiple useful shortcodes
10
 
12
  == Description ==
13
 
14
  = In this version =
15
+ * New shortcode: permalink
16
+ * New shortcode: bloginfo
17
 
18
  With this plugin you can easily add buttons, dividers, spacers, boxes, notes and much more
19
  = Complete list of available shortcodes =
70
 
71
  == Changelog ==
72
 
73
+ = 1.9.0 =
74
+ * New shortcode: permalink
75
+ * New shortcode: bloginfo
76
+
77
  = 1.8.0 =
78
  * Some small additions
79
  * Ajax admin page
shortcodes-ultimate.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: Shortcodes Ultimate
5
  Plugin URI: http://ilovecode.ru/?p=122
6
- Version: 1.8.3
7
  Author: Vladimir Anokhin
8
  Author URI: http://ilovecode.ru/
9
  Description: Provides support for many easy to use shortcodes
@@ -113,6 +113,8 @@
113
  add_shortcode( su_compatibility_mode_prefix() . 'table', 'su_table_shortcode' );
114
  add_shortcode( su_compatibility_mode_prefix() . 'photoshop', 'su_photoshop_shortcode' );
115
  add_shortcode( su_compatibility_mode_prefix() . 'nivo_slider', 'su_nivo_slider_shortcode' );
 
 
116
  }
117
 
118
  add_action( 'init', 'su_plugin_init' );
3
  /*
4
  Plugin Name: Shortcodes Ultimate
5
  Plugin URI: http://ilovecode.ru/?p=122
6
+ Version: 1.9.0
7
  Author: Vladimir Anokhin
8
  Author URI: http://ilovecode.ru/
9
  Description: Provides support for many easy to use shortcodes
113
  add_shortcode( su_compatibility_mode_prefix() . 'table', 'su_table_shortcode' );
114
  add_shortcode( su_compatibility_mode_prefix() . 'photoshop', 'su_photoshop_shortcode' );
115
  add_shortcode( su_compatibility_mode_prefix() . 'nivo_slider', 'su_nivo_slider_shortcode' );
116
+ add_shortcode( su_compatibility_mode_prefix() . 'permalink', 'su_permalink_shortcode' );
117
+ add_shortcode( su_compatibility_mode_prefix() . 'bloginfo', 'su_bloginfo_shortcode' );
118
  }
119
 
120
  add_action( 'init', 'su_plugin_init' );