Shortcodes Ultimate - Version 1.1.0

Version Description

  • Added options page
Download this release

Release Info

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

Code changes from version 1.0.0 to 1.1.0

Files changed (4) hide show
  1. languages/ru_RU.mo +0 -0
  2. languages/ru_RU.po +34 -6
  3. readme.txt +4 -3
  4. shortcodes-ultimate.php +46 -11
languages/ru_RU.mo CHANGED
Binary file
languages/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-06 16:10+0300\n"
6
- "PO-Revision-Date: 2011-04-06 16:11+0300\n"
7
  "Last-Translator: Vladimir Anokhin <ano.vladimir@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -14,22 +14,50 @@ msgstr ""
14
  "X-Poedit-SourceCharset: utf-8\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
- #: shortcodes-ultimate.php:87
18
  msgid "Spoiler title"
19
  msgstr "Скрытый текст"
20
 
21
- #: shortcodes-ultimate.php:105
22
  msgid "Top"
23
  msgstr "Вверх"
24
 
25
- #: shortcodes-ultimate.php:274
26
  msgid "Service name"
27
  msgstr "Название услуги"
28
 
29
- #: shortcodes-ultimate.php:292
30
  msgid "This is box title"
31
  msgstr "Заголовок блока"
32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  #~ msgid ""
34
  #~ "The page you've requested can not be displayed. It appears you've missed "
35
  #~ "your intended destination, either through a bad or outdated link, or a "
2
  msgstr ""
3
  "Project-Id-Version: gn_themes\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-04-16 05:36+0300\n"
6
+ "PO-Revision-Date: 2011-04-16 06:10+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:86
18
  msgid "Spoiler title"
19
  msgstr "Скрытый текст"
20
 
21
+ #: shortcodes-ultimate.php:104
22
  msgid "Top"
23
  msgstr "Вверх"
24
 
25
+ #: shortcodes-ultimate.php:273
26
  msgid "Service name"
27
  msgstr "Название услуги"
28
 
29
+ #: shortcodes-ultimate.php:291
30
  msgid "This is box title"
31
  msgstr "Заголовок блока"
32
 
33
+ #: shortcodes-ultimate.php:524
34
+ msgid "Shortcodes"
35
+ msgstr "Шорткоды"
36
+
37
+ #: shortcodes-ultimate.php:539
38
+ msgid "Shortcodes ultimate settings"
39
+ msgstr "Настройки Shortcodes Ultimate"
40
+
41
+ #: shortcodes-ultimate.php:541
42
+ msgid "Disable custom formatting"
43
+ msgstr "Отключить специальное форматирование"
44
+
45
+ #: shortcodes-ultimate.php:542
46
+ msgid "Save settings"
47
+ msgstr "Сохранить настройки"
48
+
49
+ #: shortcodes-ultimate.php:544
50
+ msgid "Available shortcodes"
51
+ msgstr "Доступные шорткоды"
52
+
53
+ #: shortcodes-ultimate.php:545
54
+ msgid "Coming soon"
55
+ msgstr "Скоро появятся"
56
+
57
+ #: shortcodes-ultimate.php:546
58
+ msgid "Visit"
59
+ msgstr "Посетите"
60
+
61
  #~ msgid ""
62
  #~ "The page you've requested can not be displayed. It appears you've missed "
63
  #~ "your intended destination, either through a bad or outdated link, or a "
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
5
  Requires at least: 3.0
6
  Tested up to: 3.1
7
- Stable tag: trunk
8
 
9
  Provides support for multiple useful shortcodes
10
 
@@ -28,8 +28,6 @@ With this plugin you can easily add buttons, dividers, spacers, boxes, notes and
28
  * Note
29
  * List
30
  * Column
31
-
32
- For more information see http://ilovecode.ru/?p=122
33
 
34
  == Installation ==
35
 
@@ -57,6 +55,9 @@ http://ilovecode.ru/?p=122
57
 
58
  == Changelog ==
59
 
 
 
 
60
  = 1.0.0 =
61
  * Initial release
62
 
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.1.0
8
 
9
  Provides support for multiple useful shortcodes
10
 
28
  * Note
29
  * List
30
  * Column
 
 
31
 
32
  == Installation ==
33
 
55
 
56
  == Changelog ==
57
 
58
+ = 1.1.0 =
59
+ * Added options page
60
+
61
  = 1.0.0 =
62
  * Initial release
63
 
shortcodes-ultimate.php CHANGED
@@ -1,14 +1,16 @@
1
  <?php
2
-
3
  /*
4
  Plugin Name: Shortcodes Ultimate
5
  Plugin URI: http://ilovecode.ru/?p=122
6
- Version: 1.0.0
7
  Author: Vladimir Anokhin
8
  Author URI: http://ilovecode.ru/
9
  Description: Provides support for many easy to use shortcodes. Visit plugin site to see the complete list of shortcodes
10
  */
11
 
 
 
 
12
  /**
13
  * Shortcode: heading
14
  *
@@ -327,9 +329,6 @@
327
  * Plugin initialization
328
  */
329
  function su_plugin_init() {
330
-
331
- // Make plugin available for tramslation
332
- load_plugin_textdomain( 'shortcodes-ultimate', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
333
 
334
  /**
335
  * Returns current plugin version.
@@ -475,13 +474,17 @@
475
  // Enable shortcodes in widgets
476
  add_filter( 'widget_text', 'do_shortcode' );
477
 
478
- // Disable WordPress native formatters
479
- remove_filter( 'the_content', 'wpautop' );
480
- remove_filter( 'the_content', 'wptexturize' );
 
 
 
 
 
 
 
481
 
482
- // Apply custom formatter function
483
- add_filter( 'the_content', 'su_custom_formatter', 99 );
484
- add_filter( 'widget_text', 'su_custom_formatter', 99 );
485
 
486
  // Fix for large posts, http://core.trac.wordpress.org/ticket/8553
487
  @ini_set( 'pcre.backtrack_limit', 500000 );
@@ -514,6 +517,38 @@
514
  add_shortcode( 'note', 'su_note_shortcode' );
515
  add_shortcode( 'list', 'su_list_shortcode' );
516
  add_shortcode( 'column', 'su_column_shortcode' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
517
  }
518
 
519
  add_action( 'init', 'su_plugin_init' );
1
  <?php
 
2
  /*
3
  Plugin Name: Shortcodes Ultimate
4
  Plugin URI: http://ilovecode.ru/?p=122
5
+ Version: 1.1.0
6
  Author: Vladimir Anokhin
7
  Author URI: http://ilovecode.ru/
8
  Description: Provides support for many easy to use shortcodes. Visit plugin site to see the complete list of shortcodes
9
  */
10
 
11
+ // Make plugin available for tramslation
12
+ load_plugin_textdomain( 'shortcodes-ultimate', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
13
+
14
  /**
15
  * Shortcode: heading
16
  *
329
  * Plugin initialization
330
  */
331
  function su_plugin_init() {
 
 
 
332
 
333
  /**
334
  * Returns current plugin version.
474
  // Enable shortcodes in widgets
475
  add_filter( 'widget_text', 'do_shortcode' );
476
 
477
+ if ( get_option( 'su_disable_custom_formatting' ) != '1' ) {
478
+
479
+ // Disable WordPress native formatters
480
+ remove_filter( 'the_content', 'wpautop' );
481
+ remove_filter( 'the_content', 'wptexturize' );
482
+
483
+ // Apply custom formatter function
484
+ add_filter( 'the_content', 'su_custom_formatter', 99 );
485
+ add_filter( 'widget_text', 'su_custom_formatter', 99 );
486
+ }
487
 
 
 
 
488
 
489
  // Fix for large posts, http://core.trac.wordpress.org/ticket/8553
490
  @ini_set( 'pcre.backtrack_limit', 500000 );
517
  add_shortcode( 'note', 'su_note_shortcode' );
518
  add_shortcode( 'list', 'su_list_shortcode' );
519
  add_shortcode( 'column', 'su_column_shortcode' );
520
+
521
+ add_action( 'admin_menu', 'shortcodes_ultimate_admin' );
522
+
523
+ function shortcodes_ultimate_admin() {
524
+ add_options_page( __( 'Shortcodes', 'shortcodes-ultimate' ), __( 'Shortcodes', 'shortcodes-ultimate' ), 'manage_options', 'shortcodes-ultimate', 'shortcodes_ultimate_admin_page' );
525
+ }
526
+
527
+ function shortcodes_ultimate_admin_page() {
528
+
529
+ if ( $_POST['su_disable_custom_formatting'] === 'on' ) {
530
+ update_option( 'su_disable_custom_formatting', '1' );
531
+ } else {
532
+ update_option( 'su_disable_custom_formatting', '0' );
533
+ }
534
+
535
+ $checked = ( get_option( 'su_disable_custom_formatting' ) == '1' ) ? ' checked="checked"' : '';
536
+ ?>
537
+ <!-- .wrap -->
538
+ <div class="wrap">
539
+ <h2><?php _e( 'Shortcodes ultimate settings', 'shortcodes-ultimate' ); ?></h2>
540
+ <form action="" method="post">
541
+ <p><label><input type="checkbox" name="su_disable_custom_formatting" <?php echo $checked; ?> /> <?php _e( 'Disable custom formatting', 'shortcodes-ultimate' ); ?></label></p>
542
+ <p><input type="submit" value="<?php _e( 'Save settings', 'shortcodes-ultimate' ); ?>" class="button-primary" /></p>
543
+ </form>
544
+ <h2><?php _e( 'Available shortcodes', 'shortcodes-ultimate' ); ?></h2>
545
+ <p><?php _e( 'Coming soon', 'shortcodes-ultimate' ); ?>&hellip;</p>
546
+ <p><?php _e( 'Visit', 'shortcodes-ultimate' ); ?>: <a href="http://ilovecode.ru/?p=122" target="_blank">http://ilovecode.ru/?p=122</a></p>
547
+ </div>
548
+ <!-- /.wrap -->
549
+ <?php
550
+ }
551
+
552
  }
553
 
554
  add_action( 'init', 'su_plugin_init' );