Shortcodes Ultimate - Version 1.4.0

Version Description

  • Added shortcode "Fancy link"
Download this release

Release Info

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

Code changes from version 1.3.0 to 1.4.0

css/style.css CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  /* Spacer */
2
  .su-spacer {
3
  display: block;
@@ -267,6 +271,29 @@
267
  background: 100% 50% url(../images/button-style-2.png) repeat-x;
268
  }
269
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
270
  /* Services */
271
  .su-service {
272
  position: relative;
1
+ /**
2
+ * Shortcodes Ultimate stylesheet
3
+ */
4
+
5
  /* Spacer */
6
  .su-spacer {
7
  display: block;
271
  background: 100% 50% url(../images/button-style-2.png) repeat-x;
272
  }
273
 
274
+ /* Fancy link */
275
+
276
+ .su-fancy-link {
277
+ display: inline-block;
278
+ padding: 0 10px 0 0;
279
+ height: 1em !important;
280
+ line-height: 1em !important;
281
+ margin: 0 !important;
282
+ text-decoration: none;
283
+ }
284
+ .su-fancy-link:hover {
285
+ padding: 0 14px 0 0;
286
+ text-decoration: none;
287
+ }
288
+ .su-fancy-link-white {
289
+ color: #fff !important;
290
+ background: 100% 100% url(../images/fancy-link-white.png) no-repeat;
291
+ }
292
+ .su-fancy-link-black {
293
+ color: #000 !important;
294
+ background: 100% 100% url(../images/fancy-link-black.png) no-repeat;
295
+ }
296
+
297
  /* Services */
298
  .su-service {
299
  position: relative;
images/fancy-link-black.png ADDED
Binary file
images/fancy-link-white.png ADDED
Binary file
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-16 22:46+0300\n"
6
- "PO-Revision-Date: 2011-04-16 22:46+0300\n"
7
  "Last-Translator: Vladimir Anokhin <ano.vladimir@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -15,7 +15,7 @@ msgstr ""
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
  #: shortcodes-ultimate.php:88
18
- #: shortcodes-ultimate.php:605
19
  msgid "Spoiler title"
20
  msgstr "Скрытый текст"
21
 
@@ -23,144 +23,150 @@ msgstr "Скрытый текст"
23
  msgid "Top"
24
  msgstr "Вверх"
25
 
26
- #: shortcodes-ultimate.php:275
27
- #: shortcodes-ultimate.php:640
28
- msgid "Service name"
29
- msgstr "Название услуги"
30
-
31
- #: shortcodes-ultimate.php:293
32
  msgid "This is box title"
33
  msgstr "Заголовок блока"
34
 
35
- #: shortcodes-ultimate.php:527
36
  msgid "Shortcodes"
37
  msgstr "Шорткоды"
38
 
39
- #: shortcodes-ultimate.php:547
40
  msgid "Want to support author? Just share this link!"
41
  msgstr "Хотите поддержать автора? Просто опубликйте ссылку!"
42
 
 
43
  #: shortcodes-ultimate.php:550
44
- #: shortcodes-ultimate.php:551
45
  msgid "Share on Facebook"
46
  msgstr "Опубликовать на Facebook"
47
 
 
48
  #: shortcodes-ultimate.php:553
49
- #: shortcodes-ultimate.php:554
50
  msgid "Share on Twitter"
51
  msgstr "Опубликовать на Twitter"
52
 
53
- #: shortcodes-ultimate.php:558
54
  msgid "Support forum"
55
  msgstr "Форум поддержки"
56
 
57
- #: shortcodes-ultimate.php:559
58
- msgid "Contact author"
59
- msgstr "Связаться с разработчиком"
60
-
61
- #: shortcodes-ultimate.php:560
62
  msgid "Twitter"
63
  msgstr "Твиттер разработчика"
64
 
65
- #: shortcodes-ultimate.php:567
 
 
 
 
66
  msgid "Settings saved"
67
  msgstr "Настройки сохранены"
68
 
69
- #: shortcodes-ultimate.php:574
70
  msgid "Shortcodes ultimate settings"
71
  msgstr "Настройки Shortcodes Ultimate"
72
 
73
- #: shortcodes-ultimate.php:576
74
  msgid "Disable custom formatting"
75
  msgstr "Отключить специальное форматирование"
76
 
77
- #: shortcodes-ultimate.php:577
78
  msgid "Save settings"
79
  msgstr "Сохранить настройки"
80
 
81
- #: shortcodes-ultimate.php:580
82
  msgid "Available shortcodes"
83
  msgstr "Доступные шорткоды"
84
 
85
- #: shortcodes-ultimate.php:583
86
  msgid "Shortcode"
87
  msgstr "Шорткоды"
88
 
89
- #: shortcodes-ultimate.php:584
90
  msgid "Parameters"
91
  msgstr "Параметры"
92
 
93
- #: shortcodes-ultimate.php:585
94
  msgid "Usage"
95
  msgstr "Пример использования"
96
 
97
- #: shortcodes-ultimate.php:590
98
- #: shortcodes-ultimate.php:620
99
- #: shortcodes-ultimate.php:625
100
- #: shortcodes-ultimate.php:630
101
- #: shortcodes-ultimate.php:645
102
- #: shortcodes-ultimate.php:650
103
- #: shortcodes-ultimate.php:660
104
  msgid "Content"
105
  msgstr "Содержимое"
106
 
107
- #: shortcodes-ultimate.php:600
108
  msgid "Tab name"
109
  msgstr "Имя вкладки"
110
 
111
- #: shortcodes-ultimate.php:600
112
  msgid "Tab content"
113
  msgstr "Содержимое вкладки"
114
 
115
- #: shortcodes-ultimate.php:605
116
  msgid "Hidden text"
117
  msgstr "Скрытый текст"
118
 
119
- #: shortcodes-ultimate.php:609
120
- #: shortcodes-ultimate.php:634
121
  msgid "optional"
122
  msgstr "необяз."
123
 
124
- #: shortcodes-ultimate.php:635
125
  msgid "Button text"
126
  msgstr "Текст кнопки"
127
 
128
  #: shortcodes-ultimate.php:639
 
 
 
 
129
  msgid "image url"
130
  msgstr "ссылка на изображение"
131
 
132
- #: shortcodes-ultimate.php:639
133
  msgid "icon size"
134
  msgstr "размер иконки"
135
 
136
- #: shortcodes-ultimate.php:640
 
 
 
 
137
  msgid "Service description"
138
  msgstr "Описание услуги"
139
 
140
- #: shortcodes-ultimate.php:645
141
  msgid "Box title"
142
  msgstr "Заголовок блока"
143
 
144
- #: shortcodes-ultimate.php:655
145
  msgid "List item"
146
  msgstr "Элемент списка"
147
 
148
- #: shortcodes-ultimate.php:659
149
  msgid "add this to last columns"
150
  msgstr "добавьте к каждой последней колонке"
151
 
152
- #: shortcodes-ultimate.php:672
153
  msgid "Shortcodes Ultimate"
154
  msgstr "Шорткоды"
155
 
156
- #: shortcodes-ultimate.php:672
157
  msgid "Vladimir Anokhin"
158
  msgstr "Владимир Анохин"
159
 
160
- #: shortcodes-ultimate.php:672
161
  msgid "Provides support for many easy to use shortcodes"
162
  msgstr "Предоставляет поддержку множества полезных шорткодов"
163
 
 
 
 
164
  #~ msgid "Coming soon"
165
  #~ msgstr "Появится в ближайшее время"
166
 
2
  msgstr ""
3
  "Project-Id-Version: gn_themes\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-04-19 14:42+0300\n"
6
+ "PO-Revision-Date: 2011-04-19 14:42+0300\n"
7
  "Last-Translator: Vladimir Anokhin <ano.vladimir@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
  #: shortcodes-ultimate.php:88
18
+ #: shortcodes-ultimate.php:604
19
  msgid "Spoiler title"
20
  msgstr "Скрытый текст"
21
 
23
  msgid "Top"
24
  msgstr "Вверх"
25
 
26
+ #: shortcodes-ultimate.php:291
 
 
 
 
 
27
  msgid "This is box title"
28
  msgstr "Заголовок блока"
29
 
30
+ #: shortcodes-ultimate.php:526
31
  msgid "Shortcodes"
32
  msgstr "Шорткоды"
33
 
34
+ #: shortcodes-ultimate.php:546
35
  msgid "Want to support author? Just share this link!"
36
  msgstr "Хотите поддержать автора? Просто опубликйте ссылку!"
37
 
38
+ #: shortcodes-ultimate.php:549
39
  #: shortcodes-ultimate.php:550
 
40
  msgid "Share on Facebook"
41
  msgstr "Опубликовать на Facebook"
42
 
43
+ #: shortcodes-ultimate.php:552
44
  #: shortcodes-ultimate.php:553
 
45
  msgid "Share on Twitter"
46
  msgstr "Опубликовать на Twitter"
47
 
48
+ #: shortcodes-ultimate.php:557
49
  msgid "Support forum"
50
  msgstr "Форум поддержки"
51
 
52
+ #: shortcodes-ultimate.php:558
 
 
 
 
53
  msgid "Twitter"
54
  msgstr "Твиттер разработчика"
55
 
56
+ #: shortcodes-ultimate.php:559
57
+ msgid "Bug report"
58
+ msgstr "Сообщить об ошибке"
59
+
60
+ #: shortcodes-ultimate.php:566
61
  msgid "Settings saved"
62
  msgstr "Настройки сохранены"
63
 
64
+ #: shortcodes-ultimate.php:573
65
  msgid "Shortcodes ultimate settings"
66
  msgstr "Настройки Shortcodes Ultimate"
67
 
68
+ #: shortcodes-ultimate.php:575
69
  msgid "Disable custom formatting"
70
  msgstr "Отключить специальное форматирование"
71
 
72
+ #: shortcodes-ultimate.php:576
73
  msgid "Save settings"
74
  msgstr "Сохранить настройки"
75
 
76
+ #: shortcodes-ultimate.php:579
77
  msgid "Available shortcodes"
78
  msgstr "Доступные шорткоды"
79
 
80
+ #: shortcodes-ultimate.php:582
81
  msgid "Shortcode"
82
  msgstr "Шорткоды"
83
 
84
+ #: shortcodes-ultimate.php:583
85
  msgid "Parameters"
86
  msgstr "Параметры"
87
 
88
+ #: shortcodes-ultimate.php:584
89
  msgid "Usage"
90
  msgstr "Пример использования"
91
 
92
+ #: shortcodes-ultimate.php:589
93
+ #: shortcodes-ultimate.php:619
94
+ #: shortcodes-ultimate.php:624
95
+ #: shortcodes-ultimate.php:629
96
+ #: shortcodes-ultimate.php:649
97
+ #: shortcodes-ultimate.php:654
98
+ #: shortcodes-ultimate.php:664
99
  msgid "Content"
100
  msgstr "Содержимое"
101
 
102
+ #: shortcodes-ultimate.php:599
103
  msgid "Tab name"
104
  msgstr "Имя вкладки"
105
 
106
+ #: shortcodes-ultimate.php:599
107
  msgid "Tab content"
108
  msgstr "Содержимое вкладки"
109
 
110
+ #: shortcodes-ultimate.php:604
111
  msgid "Hidden text"
112
  msgstr "Скрытый текст"
113
 
114
+ #: shortcodes-ultimate.php:608
115
+ #: shortcodes-ultimate.php:633
116
  msgid "optional"
117
  msgstr "необяз."
118
 
119
+ #: shortcodes-ultimate.php:634
120
  msgid "Button text"
121
  msgstr "Текст кнопки"
122
 
123
  #: shortcodes-ultimate.php:639
124
+ msgid "Read more"
125
+ msgstr "Подробнее"
126
+
127
+ #: shortcodes-ultimate.php:643
128
  msgid "image url"
129
  msgstr "ссылка на изображение"
130
 
131
+ #: shortcodes-ultimate.php:643
132
  msgid "icon size"
133
  msgstr "размер иконки"
134
 
135
+ #: shortcodes-ultimate.php:644
136
+ msgid "Service name"
137
+ msgstr "Название услуги"
138
+
139
+ #: shortcodes-ultimate.php:644
140
  msgid "Service description"
141
  msgstr "Описание услуги"
142
 
143
+ #: shortcodes-ultimate.php:649
144
  msgid "Box title"
145
  msgstr "Заголовок блока"
146
 
147
+ #: shortcodes-ultimate.php:659
148
  msgid "List item"
149
  msgstr "Элемент списка"
150
 
151
+ #: shortcodes-ultimate.php:663
152
  msgid "add this to last columns"
153
  msgstr "добавьте к каждой последней колонке"
154
 
155
+ #: shortcodes-ultimate.php:676
156
  msgid "Shortcodes Ultimate"
157
  msgstr "Шорткоды"
158
 
159
+ #: shortcodes-ultimate.php:676
160
  msgid "Vladimir Anokhin"
161
  msgstr "Владимир Анохин"
162
 
163
+ #: shortcodes-ultimate.php:676
164
  msgid "Provides support for many easy to use shortcodes"
165
  msgstr "Предоставляет поддержку множества полезных шорткодов"
166
 
167
+ #~ msgid "Contact author"
168
+ #~ msgstr "Связаться с разработчиком"
169
+
170
  #~ msgid "Coming soon"
171
  #~ msgstr "Появится в ближайшее время"
172
 
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Plugin Name ===
2
  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
5
  Requires at least: 3.0
6
  Tested up to: 3.1
7
- Stable tag: 1.3.0
8
 
9
  Provides support for multiple useful shortcodes
10
 
@@ -23,13 +23,15 @@ With this plugin you can easily add buttons, dividers, spacers, boxes, notes and
23
  * Pullquote
24
  * Highlight
25
  * Button
 
26
  * Service
27
  * Box
28
  * Note
29
  * List
30
  * Column
31
 
32
- See: http://ilovecode.ru/?p=122
 
33
 
34
 
35
  == Installation ==
@@ -53,11 +55,17 @@ Upgrade normally via your Wordpress admin -> Plugins panel.
53
  == Frequently Asked Questions ==
54
 
55
  = Complete list of supported shortcodes =
56
- http://ilovecode.ru/?p=122
57
 
58
 
59
  == Changelog ==
60
 
 
 
 
 
 
 
61
  = 1.2.0 =
62
  * Localization support
63
 
1
  === Plugin Name ===
2
  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
5
  Requires at least: 3.0
6
  Tested up to: 3.1
7
+ Stable tag: 1.4.0
8
 
9
  Provides support for multiple useful shortcodes
10
 
23
  * Pullquote
24
  * Highlight
25
  * Button
26
+ * Fancy link
27
  * Service
28
  * Box
29
  * Note
30
  * List
31
  * Column
32
 
33
+ Bug report / contact author: http://ilovecode.ru/?p=122
34
+ My twitter: http://twitter.com/gn_themes
35
 
36
 
37
  == Installation ==
55
  == Frequently Asked Questions ==
56
 
57
  = Complete list of supported shortcodes =
58
+ In your dashboard
59
 
60
 
61
  == Changelog ==
62
 
63
+ = 1.4.0 =
64
+ * Added shortcode "Fancy link"
65
+
66
+ = 1.3.0 =
67
+ * Some fixes
68
+
69
  = 1.2.0 =
70
  * Localization support
71
 
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.3.0
6
  Author: Vladimir Anokhin
7
  Author URI: http://ilovecode.ru/
8
  Description: Provides support for many easy to use shortcodes
@@ -264,20 +264,18 @@
264
  }
265
 
266
  /**
267
- * Shortcode: service
268
  *
269
- * @param array $atts Shortcode attributes
270
  * @param string $content
271
  * @return string Output html
272
  */
273
- function su_service_shortcode( $atts, $content = null ) {
274
  extract( shortcode_atts( array(
275
- 'title' => __( 'Service name', 'shortcodes-ultimate' ),
276
- 'icon' => su_plugin_url() . '/images/service.png',
277
- 'size' => 32
278
  ), $atts ) );
279
 
280
- 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>';
281
  }
282
 
283
  /**
@@ -514,6 +512,7 @@
514
  add_shortcode( 'pullquote', 'su_pullquote_shortcode' );
515
  add_shortcode( 'highlight', 'su_highlight_shortcode' );
516
  add_shortcode( 'button', 'su_button_shortcode' );
 
517
  add_shortcode( 'service', 'su_service_shortcode' );
518
  add_shortcode( 'box', 'su_box_shortcode' );
519
  add_shortcode( 'note', 'su_note_shortcode' );
@@ -541,6 +540,9 @@
541
  background: #FFFFE0;
542
  border-radius: 3px;
543
  }
 
 
 
544
  </style>
545
 
546
  <div id="su-top-message">
@@ -556,8 +558,8 @@
556
  </p>
557
  <p>
558
  <a href="http://wordpress.org/tags/shortcodes-ultimate?forum_id=10" target="_blank"><?php _e( 'Support forum', 'shortcodes-ultimate' ); ?></a> |
559
- <a href="http://ilovecode.ru/" target="_blank"><?php _e( 'Contact author', 'shortcodes-ultimate' ); ?></a> |
560
- <a href="http://twitter.com/gn_themes" target="_blank"><?php _e( 'Twitter', 'shortcodes-ultimate' ); ?></a>
561
  </p>
562
  </div>
563
 
@@ -634,6 +636,11 @@
634
  <td>link<br/>color="#HEX"<br/>size="1-10"<br/>style="1|2"<br/>dark (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)<br/>square (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)</td>
635
  <td>[button link="#" color="#b00" size="3" style="2" dark="1" square="1"] <?php _e( 'Button text', 'shortcodes-ultimate' ); ?> [/button]</td>
636
  </tr>
 
 
 
 
 
637
  <tr>
638
  <td>service</td>
639
  <td>title<br/>icon (<?php _e( 'image url', 'shortcodes-ultimate' ); ?>)<br/>size (<?php _e( 'icon size', 'shortcodes-ultimate' ); ?>)</td>
2
  /*
3
  Plugin Name: Shortcodes Ultimate
4
  Plugin URI: http://ilovecode.ru/?p=122
5
+ Version: 1.4.0
6
  Author: Vladimir Anokhin
7
  Author URI: http://ilovecode.ru/
8
  Description: Provides support for many easy to use shortcodes
264
  }
265
 
266
  /**
267
+ * Shortcode: fancy-link
268
  *
 
269
  * @param string $content
270
  * @return string Output html
271
  */
272
+ function su_fancy_link_shortcode( $atts, $content = null ) {
273
  extract( shortcode_atts( array(
274
+ 'link' => '#',
275
+ 'color' => 'black'
 
276
  ), $atts ) );
277
 
278
+ return '<a class="su-fancy-link su-fancy-link-' . $color . '" href="' . $link . '">' . $content . '</a>';
279
  }
280
 
281
  /**
512
  add_shortcode( 'pullquote', 'su_pullquote_shortcode' );
513
  add_shortcode( 'highlight', 'su_highlight_shortcode' );
514
  add_shortcode( 'button', 'su_button_shortcode' );
515
+ add_shortcode( 'fancy_link', 'su_fancy_link_shortcode' );
516
  add_shortcode( 'service', 'su_service_shortcode' );
517
  add_shortcode( 'box', 'su_box_shortcode' );
518
  add_shortcode( 'note', 'su_note_shortcode' );
540
  background: #FFFFE0;
541
  border-radius: 3px;
542
  }
543
+ .su-new-shortcode td {
544
+ background: #ffd;
545
+ }
546
  </style>
547
 
548
  <div id="su-top-message">
558
  </p>
559
  <p>
560
  <a href="http://wordpress.org/tags/shortcodes-ultimate?forum_id=10" target="_blank"><?php _e( 'Support forum', 'shortcodes-ultimate' ); ?></a> |
561
+ <a href="http://twitter.com/gn_themes" target="_blank"><?php _e( 'Twitter', 'shortcodes-ultimate' ); ?></a> |
562
+ <a href="http://ilovecode.ru/?p=122#commentform" target="_blank" style="color:red"><?php _e( 'Bug report', 'shortcodes-ultimate' ); ?></a>
563
  </p>
564
  </div>
565
 
636
  <td>link<br/>color="#HEX"<br/>size="1-10"<br/>style="1|2"<br/>dark (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)<br/>square (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)</td>
637
  <td>[button link="#" color="#b00" size="3" style="2" dark="1" square="1"] <?php _e( 'Button text', 'shortcodes-ultimate' ); ?> [/button]</td>
638
  </tr>
639
+ <tr class="su-new-shortcode">
640
+ <td>fancy_link</td>
641
+ <td>color="black|white"<br/>link</td>
642
+ <td>[fancy_link color="black" link="http://example.com/"] <?php _e( 'Read more', 'shortcodes-ultimate' ); ?> [/fancy_link]</td>
643
+ </tr>
644
  <tr>
645
  <td>service</td>
646
  <td>title<br/>icon (<?php _e( 'image url', 'shortcodes-ultimate' ); ?>)<br/>size (<?php _e( 'icon size', 'shortcodes-ultimate' ); ?>)</td>