Shortcodes Ultimate - Version 2.2.0

Version Description

  • New shortcode: document
  • New shortcode: members
  • New shortcode: feed
Download this release

Release Info

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

Code changes from version 2.1.0 to 2.2.0

css/style.css CHANGED
@@ -499,4 +499,29 @@ a.nivo-prevNav {
499
  .nivo-caption a {
500
  color: #efe9d1;
501
  text-decoration: underline;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
502
  }
499
  .nivo-caption a {
500
  color: #efe9d1;
501
  text-decoration: underline;
502
+ }
503
+
504
+ /* Document */
505
+ .su-document {
506
+ border: none !important;
507
+ }
508
+
509
+ /* Members */
510
+ .su-members-style-1 {
511
+ border-top: 1px solid #fc9;
512
+ border-bottom: 1px solid #fc9;
513
+ background: #ffc;
514
+ padding: 1em;
515
+ text-align: center;
516
+ margin-bottom: 1.5em;
517
+ color: #000;
518
+ }
519
+ .su-members-style-2 {
520
+ border-top: 1px solid #8DC3EB;
521
+ border-bottom: 1px solid #8DC3EB;
522
+ background: #D9EEFF;
523
+ padding: 1em;
524
+ text-align: center;
525
+ margin-bottom: 1.5em;
526
+ color: #000;
527
  }
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-05-13 17:33+0300\n"
6
- "PO-Revision-Date: 2011-05-13 17:34+0300\n"
7
  "Last-Translator: Vladimir Anokhin <ano.vladimir@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -14,30 +14,30 @@ msgstr ""
14
  "X-Poedit-SourceCharset: utf-8\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
- #: shortcodes-ultimate.php:177
18
  #: lib/admin.php:26
19
  msgid "Shortcodes Ultimate"
20
  msgstr "Шорткоды"
21
 
22
- #: shortcodes-ultimate.php:177
23
  msgid "Vladimir Anokhin"
24
  msgstr "Владимир Анохин"
25
 
26
- #: shortcodes-ultimate.php:177
27
  msgid "Provides support for many easy to use shortcodes"
28
  msgstr "Предоставляет поддержку множества полезных шорткодов"
29
 
30
- #: shortcodes-ultimate.php:263
31
  #: lib/admin.php:35
32
  msgid "Settings"
33
  msgstr "Настройки"
34
 
35
- #: shortcodes-ultimate.php:276
36
  #: lib/admin.php:60
37
  msgid "Settings saved"
38
  msgstr "Настройки сохранены"
39
 
40
- #: shortcodes-ultimate.php:281
41
  #: lib/admin.php:117
42
  msgid "Custom CSS saved"
43
  msgstr "Произвольные стили сохранены"
@@ -191,9 +191,9 @@ msgstr "Пример использования"
191
  #: lib/admin.php:172
192
  #: lib/admin.php:177
193
  #: lib/admin.php:187
194
- #: lib/admin.php:207
195
  #: lib/admin.php:212
196
- #: lib/admin.php:237
 
197
  msgid "Content"
198
  msgstr "Содержимое"
199
 
@@ -217,10 +217,10 @@ msgstr "Скрытый текст"
217
  #: lib/admin.php:156
218
  #: lib/admin.php:186
219
  #: lib/admin.php:191
220
- #: lib/admin.php:226
221
- #: lib/admin.php:231
222
  #: lib/admin.php:241
223
  #: lib/admin.php:251
 
224
  msgid "optional"
225
  msgstr "необяз."
226
 
@@ -254,30 +254,34 @@ msgid "Service description"
254
  msgstr "Описание услуги"
255
 
256
  #: lib/admin.php:207
 
 
 
 
257
  msgid "Box title"
258
  msgstr "Заголовок блока"
259
 
260
- #: lib/admin.php:217
261
  msgid "List item"
262
  msgstr "Элемент списка"
263
 
264
- #: lib/admin.php:236
265
  msgid "add this to last columns"
266
  msgstr "добавьте к каждой последней колонке"
267
 
268
- #: lib/admin.php:242
269
  msgid "Plain table"
270
  msgstr "Простая таблица"
271
 
272
- #: lib/admin.php:242
273
  msgid "From CSV"
274
  msgstr "Из CSV-файла"
275
 
276
- #: lib/admin.php:251
277
  msgid "1 second"
278
  msgstr "1 секунда"
279
 
280
- #: lib/admin.php:256
281
  msgid "See filter IDs"
282
  msgstr "Смотреть ID фильтров"
283
 
@@ -301,6 +305,14 @@ msgstr "не найдены загруженные изображения, ил
301
  msgid "This menu doesn't exists, or has no elements"
302
  msgstr "Такое меню не существует, или в нем нет ни одного элемента"
303
 
 
 
 
 
 
 
 
 
304
  #~ msgid "General settings"
305
  #~ msgstr "Основные настройки"
306
 
2
  msgstr ""
3
  "Project-Id-Version: gn_themes\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-05-18 20:41+0300\n"
6
+ "PO-Revision-Date: 2011-05-18 20:45+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:180
18
  #: lib/admin.php:26
19
  msgid "Shortcodes Ultimate"
20
  msgstr "Шорткоды"
21
 
22
+ #: shortcodes-ultimate.php:180
23
  msgid "Vladimir Anokhin"
24
  msgstr "Владимир Анохин"
25
 
26
+ #: shortcodes-ultimate.php:180
27
  msgid "Provides support for many easy to use shortcodes"
28
  msgstr "Предоставляет поддержку множества полезных шорткодов"
29
 
30
+ #: shortcodes-ultimate.php:266
31
  #: lib/admin.php:35
32
  msgid "Settings"
33
  msgstr "Настройки"
34
 
35
+ #: shortcodes-ultimate.php:279
36
  #: lib/admin.php:60
37
  msgid "Settings saved"
38
  msgstr "Настройки сохранены"
39
 
40
+ #: shortcodes-ultimate.php:284
41
  #: lib/admin.php:117
42
  msgid "Custom CSS saved"
43
  msgstr "Произвольные стили сохранены"
191
  #: lib/admin.php:172
192
  #: lib/admin.php:177
193
  #: lib/admin.php:187
 
194
  #: lib/admin.php:212
195
+ #: lib/admin.php:217
196
+ #: lib/admin.php:247
197
  msgid "Content"
198
  msgstr "Содержимое"
199
 
217
  #: lib/admin.php:156
218
  #: lib/admin.php:186
219
  #: lib/admin.php:191
220
+ #: lib/admin.php:236
 
221
  #: lib/admin.php:241
222
  #: lib/admin.php:251
223
+ #: lib/admin.php:266
224
  msgid "optional"
225
  msgstr "необяз."
226
 
254
  msgstr "Описание услуги"
255
 
256
  #: lib/admin.php:207
257
+ msgid "Content for registered users"
258
+ msgstr "Содержимое для залогиненых посетителей"
259
+
260
+ #: lib/admin.php:212
261
  msgid "Box title"
262
  msgstr "Заголовок блока"
263
 
264
+ #: lib/admin.php:222
265
  msgid "List item"
266
  msgstr "Элемент списка"
267
 
268
+ #: lib/admin.php:246
269
  msgid "add this to last columns"
270
  msgstr "добавьте к каждой последней колонке"
271
 
272
+ #: lib/admin.php:252
273
  msgid "Plain table"
274
  msgstr "Простая таблица"
275
 
276
+ #: lib/admin.php:252
277
  msgid "From CSV"
278
  msgstr "Из CSV-файла"
279
 
280
+ #: lib/admin.php:266
281
  msgid "1 second"
282
  msgstr "1 секунда"
283
 
284
+ #: lib/admin.php:271
285
  msgid "See filter IDs"
286
  msgstr "Смотреть ID фильтров"
287
 
305
  msgid "This menu doesn't exists, or has no elements"
306
  msgstr "Такое меню не существует, или в нем нет ни одного элемента"
307
 
308
+ #: lib/shortcodes.php:640
309
+ msgid "This content is for members only."
310
+ msgstr "Это содержимое только для участников."
311
+
312
+ #: lib/shortcodes.php:640
313
+ msgid "Please login"
314
+ msgstr "Пожалуйста войдите"
315
+
316
  #~ msgid "General settings"
317
  #~ msgstr "Основные настройки"
318
 
lib/admin.php CHANGED
@@ -201,6 +201,11 @@
201
  <td>title<br/>icon (<?php _e( 'image url', 'shortcodes-ultimate' ); ?>)<br/>size (<?php _e( 'icon size', 'shortcodes-ultimate' ); ?>)</td>
202
  <td>[service title="<?php _e( 'Service name', 'shortcodes-ultimate' ); ?>" icon="images/service-1.png" size="32"] <?php _e( 'Service description', 'shortcodes-ultimate' ); ?> [/service]</td>
203
  </tr>
 
 
 
 
 
204
  <tr>
205
  <td>box</td>
206
  <td>title<br/>color="#HEX"</td>
@@ -216,6 +221,11 @@
216
  <td>style="star|arrow|check|cross|thumbs|link|gear|time|note|plus|guard|event|idea|settings|twitter"</td>
217
  <td>[list style="check"] &lt;ul&gt; &lt;li&gt; <?php _e( 'List item', 'shortcodes-ultimate' ); ?> &lt;/li&gt; &lt;/ul&gt; [/list]</td>
218
  </tr>
 
 
 
 
 
219
  <tr>
220
  <td>menu</td>
221
  <td>name</td>
@@ -231,7 +241,7 @@
231
  <td>depth (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)</td>
232
  <td>[siblings]<br/>[siblings depth="2"]</td>
233
  </tr>
234
- <tr class="su-new-shortcode">
235
  <td>column</td>
236
  <td>size="1-2|1-3|1-4|1-5|1-6|2-3|3-4|2-5|3-5|4-5|5-6"<br/>last (<?php _e( 'add this to last columns', 'shortcodes-ultimate' ); ?>)<br/>style="0|1|2|...|n"</td>
237
  <td>[column size="1-2"] <?php _e( 'Content', 'shortcodes-ultimate' ); ?> [/column]<br/>[column size="1-2" last="1"] <?php _e( 'Content', 'shortcodes-ultimate' ); ?> [/column]</td>
@@ -246,6 +256,11 @@
246
  <td>url<br/>width<br/>height</td>
247
  <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>
248
  </tr>
 
 
 
 
 
249
  <tr>
250
  <td>nivo_slider</td>
251
  <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>
201
  <td>title<br/>icon (<?php _e( 'image url', 'shortcodes-ultimate' ); ?>)<br/>size (<?php _e( 'icon size', 'shortcodes-ultimate' ); ?>)</td>
202
  <td>[service title="<?php _e( 'Service name', 'shortcodes-ultimate' ); ?>" icon="images/service-1.png" size="32"] <?php _e( 'Service description', 'shortcodes-ultimate' ); ?> [/service]</td>
203
  </tr>
204
+ <tr class="su-new-shortcode">
205
+ <td>members</td>
206
+ <td>style="0|1|2"</td>
207
+ <td>[members] <?php _e( 'Content for registered users', 'shortcodes-ultimate' ); ?> [/members]<br/>[members style="2"] <?php _e( 'Content for registered users', 'shortcodes-ultimate' ); ?> [/members]</td>
208
+ </tr>
209
  <tr>
210
  <td>box</td>
211
  <td>title<br/>color="#HEX"</td>
221
  <td>style="star|arrow|check|cross|thumbs|link|gear|time|note|plus|guard|event|idea|settings|twitter"</td>
222
  <td>[list style="check"] &lt;ul&gt; &lt;li&gt; <?php _e( 'List item', 'shortcodes-ultimate' ); ?> &lt;/li&gt; &lt;/ul&gt; [/list]</td>
223
  </tr>
224
+ <tr class="su-new-shortcode">
225
+ <td>feed</td>
226
+ <td>url<br/>limit</td>
227
+ <td>[feed url="http://rss1.smashingmagazine.com/feed/" limit="5"]</td>
228
+ </tr>
229
  <tr>
230
  <td>menu</td>
231
  <td>name</td>
241
  <td>depth (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)</td>
242
  <td>[siblings]<br/>[siblings depth="2"]</td>
243
  </tr>
244
+ <tr>
245
  <td>column</td>
246
  <td>size="1-2|1-3|1-4|1-5|1-6|2-3|3-4|2-5|3-5|4-5|5-6"<br/>last (<?php _e( 'add this to last columns', 'shortcodes-ultimate' ); ?>)<br/>style="0|1|2|...|n"</td>
247
  <td>[column size="1-2"] <?php _e( 'Content', 'shortcodes-ultimate' ); ?> [/column]<br/>[column size="1-2" last="1"] <?php _e( 'Content', 'shortcodes-ultimate' ); ?> [/column]</td>
256
  <td>url<br/>width<br/>height</td>
257
  <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>
258
  </tr>
259
+ <tr class="su-new-shortcode">
260
+ <td>document</td>
261
+ <td>file="*.doc|*.xls|*.pdf"<br/>width<br/>height</td>
262
+ <td>[document file="file.doc" width="600" height="400"]</td>
263
+ </tr>
264
  <tr>
265
  <td>nivo_slider</td>
266
  <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>
lib/shortcodes.php CHANGED
@@ -605,4 +605,58 @@
605
  return __( 'This menu doesn\'t exists, or has no elements', 'shortcodes-ultimate' );
606
  }
607
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
608
  ?>
605
  return __( 'This menu doesn\'t exists, or has no elements', 'shortcodes-ultimate' );
606
  }
607
 
608
+ /**
609
+ * Shortcode: document
610
+ *
611
+ * @param array $atts Shortcode attributes
612
+ * @param string $content
613
+ * @return string Output html
614
+ */
615
+ function su_document_shortcode( $atts, $content = null ) {
616
+ extract( shortcode_atts( array(
617
+ 'width' => 600,
618
+ 'height' => 400,
619
+ 'file' => ''
620
+ ), $atts ) );
621
+
622
+ return '<iframe src="http://docs.google.com/viewer?embedded=true&url=' . $file . '" width="' . $width . '" height="' . $height . '" class="su-document"></iframe>';
623
+ }
624
+
625
+ /**
626
+ * Shortcode: members
627
+ *
628
+ * @param array $atts Shortcode attributes
629
+ * @param string $content
630
+ * @return string Output html
631
+ */
632
+ function su_members_shortcode( $atts, $content = null ) {
633
+ extract( shortcode_atts( array(
634
+ 'style' => 1
635
+ ), $atts ) );
636
+
637
+ if ( is_user_logged_in() && !is_null( $content ) && !is_feed() ) {
638
+ return do_shortcode( $content );
639
+ } else {
640
+ return '<div class="su-members su-members-style-' . $style . '"><span class="su-members-shell">' . __( 'This content is for members only.', 'shortcodes-ultimate' ) . ' <a href="' . wp_login_url() . '">' . __( 'Please login', 'shortcodes-ultimate' ) . '</a>.' . '</span></div>';
641
+ }
642
+ }
643
+
644
+ /**
645
+ * Shortcode: feed
646
+ *
647
+ * @param array $atts Shortcode attributes
648
+ * @param string $content
649
+ * @return string Output html
650
+ */
651
+ function su_feed_shortcode( $atts, $content = null ) {
652
+ extract( shortcode_atts( array(
653
+ 'url' => get_bloginfo_rss( 'rss2_url' ),
654
+ 'limit' => 3
655
+ ), $atts ) );
656
+
657
+ include_once( ABSPATH . WPINC . '/rss.php' );
658
+
659
+ return '<div class="su-feed">' . wp_rss( $url, $limit ) . '</div>';
660
+ }
661
+
662
  ?>
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, slider, nivo, nivo slider, plugin, admin, photoshop, gallery, bloginfo, list pages, sub pages, navigation, siblings pages, children pages, permalink, permalinks
5
  Requires at least: 3.0
6
  Tested up to: 3.2
7
- Stable tag: 2.1.0
8
 
9
  Provides support for multiple useful shortcodes
10
 
@@ -12,10 +12,7 @@ Provides support for multiple useful shortcodes
12
  == Description ==
13
 
14
  = In this version =
15
- * New option: disable any script
16
- * New option: disable any stylesheet
17
- * New attribute for column shortcode - style
18
- * New attribute for spoiler shortcode - style
19
 
20
  With this plugin you can easily add buttons, dividers, spacers, boxes, notes and much more
21
  = Complete list of available shortcodes =
@@ -42,10 +39,14 @@ With this plugin you can easily add buttons, dividers, spacers, boxes, notes and
42
  * Column
43
  * Table
44
  * Media
 
45
  * Nivo slider
46
  * Photoshop
 
 
47
 
48
  Bug report / contact author: http://ilovecode.ru/?p=122
 
49
  My twitter: http://twitter.com/gn_themes
50
 
51
  Have a translation? Contact me - ano.vladimir@gmail.com
@@ -78,6 +79,11 @@ See your dashboard
78
 
79
  == Changelog ==
80
 
 
 
 
 
 
81
  = 2.1.0 =
82
  * New option: disable any script
83
  * New option: disable any stylesheet
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, bloginfo, list pages, sub pages, navigation, siblings pages, children pages, permalink, permalinks
5
  Requires at least: 3.0
6
  Tested up to: 3.2
7
+ Stable tag: 2.2.0
8
 
9
  Provides support for multiple useful shortcodes
10
 
12
  == Description ==
13
 
14
  = In this version =
15
+ * New shortcode: document
 
 
 
16
 
17
  With this plugin you can easily add buttons, dividers, spacers, boxes, notes and much more
18
  = Complete list of available shortcodes =
39
  * Column
40
  * Table
41
  * Media
42
+ * Members
43
  * Nivo slider
44
  * Photoshop
45
+ * Feed
46
+ * Document
47
 
48
  Bug report / contact author: http://ilovecode.ru/?p=122
49
+
50
  My twitter: http://twitter.com/gn_themes
51
 
52
  Have a translation? Contact me - ano.vladimir@gmail.com
79
 
80
  == Changelog ==
81
 
82
+ = 2.2.0 =
83
+ * New shortcode: document
84
+ * New shortcode: members
85
+ * New shortcode: feed
86
+
87
  = 2.1.0 =
88
  * New option: disable any script
89
  * New option: disable any stylesheet
shortcodes-ultimate.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: Shortcodes Ultimate
5
  Plugin URI: http://ilovecode.ru/?p=122
6
- Version: 2.1.0
7
  Author: Vladimir Anokhin
8
  Author URI: http://ilovecode.ru/
9
  Description: Provides support for many easy to use shortcodes
@@ -133,6 +133,9 @@
133
  add_shortcode( su_compatibility_mode_prefix() . 'subpages', 'su_subpages_shortcode' );
134
  add_shortcode( su_compatibility_mode_prefix() . 'siblings', 'su_siblings_shortcode' );
135
  add_shortcode( su_compatibility_mode_prefix() . 'menu', 'su_menu_shortcode' );
 
 
 
136
  }
137
 
138
  add_action( 'init', 'su_plugin_init' );
3
  /*
4
  Plugin Name: Shortcodes Ultimate
5
  Plugin URI: http://ilovecode.ru/?p=122
6
+ Version: 2.2.0
7
  Author: Vladimir Anokhin
8
  Author URI: http://ilovecode.ru/
9
  Description: Provides support for many easy to use shortcodes
133
  add_shortcode( su_compatibility_mode_prefix() . 'subpages', 'su_subpages_shortcode' );
134
  add_shortcode( su_compatibility_mode_prefix() . 'siblings', 'su_siblings_shortcode' );
135
  add_shortcode( su_compatibility_mode_prefix() . 'menu', 'su_menu_shortcode' );
136
+ add_shortcode( su_compatibility_mode_prefix() . 'document', 'su_document_shortcode' );
137
+ add_shortcode( su_compatibility_mode_prefix() . 'members', 'su_members_shortcode' );
138
+ add_shortcode( su_compatibility_mode_prefix() . 'feed', 'su_feed_shortcode' );
139
  }
140
 
141
  add_action( 'init', 'su_plugin_init' );