Version Description
- Foxed options saving
Download this release
Release Info
Developer | gn_themes |
Plugin | Shortcodes Ultimate |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
- languages/ru_RU.mo +0 -0
- languages/ru_RU.po +13 -9
- readme.txt +5 -1
- shortcodes-ultimate.php +19 -14
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-16
|
6 |
-
"PO-Revision-Date: 2011-04-16
|
7 |
"Last-Translator: Vladimir Anokhin <ano.vladimir@gmail.com>\n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -30,31 +30,35 @@ msgstr "Название услуги"
|
|
30 |
msgid "This is box title"
|
31 |
msgstr "Заголовок блока"
|
32 |
|
33 |
-
#: shortcodes-ultimate.php:
|
34 |
msgid "Shortcodes"
|
35 |
msgstr "Шорткоды"
|
36 |
|
37 |
-
#: shortcodes-ultimate.php:
|
|
|
|
|
|
|
|
|
38 |
msgid "Shortcodes ultimate settings"
|
39 |
msgstr "Настройки Shortcodes Ultimate"
|
40 |
|
41 |
-
#: shortcodes-ultimate.php:
|
42 |
msgid "Disable custom formatting"
|
43 |
msgstr "Отключить специальное форматирование"
|
44 |
|
45 |
-
#: shortcodes-ultimate.php:
|
46 |
msgid "Save settings"
|
47 |
msgstr "Сохранить настройки"
|
48 |
|
49 |
-
#: shortcodes-ultimate.php:
|
50 |
msgid "Available shortcodes"
|
51 |
msgstr "Доступные шорткоды"
|
52 |
|
53 |
-
#: shortcodes-ultimate.php:
|
54 |
msgid "Coming soon"
|
55 |
msgstr "Скоро появятся"
|
56 |
|
57 |
-
#: shortcodes-ultimate.php:
|
58 |
msgid "Visit"
|
59 |
msgstr "Посетите"
|
60 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: gn_themes\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2011-04-16 11:23+0300\n"
|
6 |
+
"PO-Revision-Date: 2011-04-16 11:23+0300\n"
|
7 |
"Last-Translator: Vladimir Anokhin <ano.vladimir@gmail.com>\n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
30 |
msgid "This is box title"
|
31 |
msgstr "Заголовок блока"
|
32 |
|
33 |
+
#: shortcodes-ultimate.php:525
|
34 |
msgid "Shortcodes"
|
35 |
msgstr "Шорткоды"
|
36 |
|
37 |
+
#: shortcodes-ultimate.php:535
|
38 |
+
msgid "Settings saved"
|
39 |
+
msgstr "Настройки сохранены"
|
40 |
+
|
41 |
+
#: shortcodes-ultimate.php:542
|
42 |
msgid "Shortcodes ultimate settings"
|
43 |
msgstr "Настройки Shortcodes Ultimate"
|
44 |
|
45 |
+
#: shortcodes-ultimate.php:544
|
46 |
msgid "Disable custom formatting"
|
47 |
msgstr "Отключить специальное форматирование"
|
48 |
|
49 |
+
#: shortcodes-ultimate.php:545
|
50 |
msgid "Save settings"
|
51 |
msgstr "Сохранить настройки"
|
52 |
|
53 |
+
#: shortcodes-ultimate.php:548
|
54 |
msgid "Available shortcodes"
|
55 |
msgstr "Доступные шорткоды"
|
56 |
|
57 |
+
#: shortcodes-ultimate.php:549
|
58 |
msgid "Coming soon"
|
59 |
msgstr "Скоро появятся"
|
60 |
|
61 |
+
#: shortcodes-ultimate.php:550
|
62 |
msgid "Visit"
|
63 |
msgstr "Посетите"
|
64 |
|
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: 1.1.
|
8 |
|
9 |
Provides support for multiple useful shortcodes
|
10 |
|
@@ -28,6 +28,7 @@ With this plugin you can easily add buttons, dividers, spacers, boxes, notes and
|
|
28 |
* Note
|
29 |
* List
|
30 |
* Column
|
|
|
31 |
|
32 |
== Installation ==
|
33 |
|
@@ -55,6 +56,9 @@ http://ilovecode.ru/?p=122
|
|
55 |
|
56 |
== Changelog ==
|
57 |
|
|
|
|
|
|
|
58 |
= 1.1.0 =
|
59 |
* Added options page
|
60 |
|
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.1
|
8 |
|
9 |
Provides support for multiple useful shortcodes
|
10 |
|
28 |
* Note
|
29 |
* List
|
30 |
* Column
|
31 |
+
|
32 |
|
33 |
== Installation ==
|
34 |
|
56 |
|
57 |
== Changelog ==
|
58 |
|
59 |
+
= 1.1.1 =
|
60 |
+
* Foxed options saving
|
61 |
+
|
62 |
= 1.1.0 =
|
63 |
* Added options page
|
64 |
|
shortcodes-ultimate.php
CHANGED
@@ -2,15 +2,12 @@
|
|
2 |
/*
|
3 |
Plugin Name: Shortcodes Ultimate
|
4 |
Plugin URI: http://ilovecode.ru/?p=122
|
5 |
-
Version: 1.1.
|
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 |
*
|
@@ -330,6 +327,9 @@
|
|
330 |
*/
|
331 |
function su_plugin_init() {
|
332 |
|
|
|
|
|
|
|
333 |
/**
|
334 |
* Returns current plugin version.
|
335 |
*
|
@@ -474,7 +474,7 @@
|
|
474 |
// Enable shortcodes in widgets
|
475 |
add_filter( 'widget_text', 'do_shortcode' );
|
476 |
|
477 |
-
if ( get_option( 'su_disable_custom_formatting' ) != '
|
478 |
|
479 |
// Disable WordPress native formatters
|
480 |
remove_filter( 'the_content', 'wpautop' );
|
@@ -518,21 +518,24 @@
|
|
518 |
add_shortcode( 'list', 'su_list_shortcode' );
|
519 |
add_shortcode( 'column', 'su_column_shortcode' );
|
520 |
|
521 |
-
|
522 |
-
|
523 |
-
|
|
|
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['
|
530 |
-
update_option( 'su_disable_custom_formatting', '
|
531 |
-
|
532 |
-
update_option( 'su_disable_custom_formatting', '0' );
|
533 |
}
|
534 |
|
535 |
-
$checked = ( get_option( 'su_disable_custom_formatting' ) == '
|
536 |
?>
|
537 |
<!-- .wrap -->
|
538 |
<div class="wrap">
|
@@ -540,6 +543,7 @@
|
|
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' ); ?>…</p>
|
@@ -550,6 +554,7 @@
|
|
550 |
}
|
551 |
|
552 |
}
|
553 |
-
|
|
|
554 |
add_action( 'init', 'su_plugin_init' );
|
555 |
?>
|
2 |
/*
|
3 |
Plugin Name: Shortcodes Ultimate
|
4 |
Plugin URI: http://ilovecode.ru/?p=122
|
5 |
+
Version: 1.1.1
|
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 |
/**
|
12 |
* Shortcode: heading
|
13 |
*
|
327 |
*/
|
328 |
function su_plugin_init() {
|
329 |
|
330 |
+
// Make plugin available for tramslation
|
331 |
+
load_plugin_textdomain( 'shortcodes-ultimate', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
332 |
+
|
333 |
/**
|
334 |
* Returns current plugin version.
|
335 |
*
|
474 |
// Enable shortcodes in widgets
|
475 |
add_filter( 'widget_text', 'do_shortcode' );
|
476 |
|
477 |
+
if ( get_option( 'su_disable_custom_formatting' ) != 'on' ) {
|
478 |
|
479 |
// Disable WordPress native formatters
|
480 |
remove_filter( 'the_content', 'wpautop' );
|
518 |
add_shortcode( 'list', 'su_list_shortcode' );
|
519 |
add_shortcode( 'column', 'su_column_shortcode' );
|
520 |
|
521 |
+
/**
|
522 |
+
* Register administration page
|
523 |
+
*/
|
524 |
+
function shortcodes_ultimate_add_admin() {
|
525 |
add_options_page( __( 'Shortcodes', 'shortcodes-ultimate' ), __( 'Shortcodes', 'shortcodes-ultimate' ), 'manage_options', 'shortcodes-ultimate', 'shortcodes_ultimate_admin_page' );
|
526 |
}
|
527 |
|
528 |
+
/**
|
529 |
+
* Administration page
|
530 |
+
*/
|
531 |
function shortcodes_ultimate_admin_page() {
|
532 |
|
533 |
+
if ( $_POST['save'] ) {
|
534 |
+
update_option( 'su_disable_custom_formatting', $_POST['su_disable_custom_formatting'] );
|
535 |
+
echo '<div class="updated"><p><strong>' . __( 'Settings saved', 'shortcodes-ultimate' ) . '</strong></p></div>';
|
|
|
536 |
}
|
537 |
|
538 |
+
$checked = ( get_option( 'su_disable_custom_formatting' ) == 'on' ) ? ' checked="checked"' : '';
|
539 |
?>
|
540 |
<!-- .wrap -->
|
541 |
<div class="wrap">
|
543 |
<form action="" method="post">
|
544 |
<p><label><input type="checkbox" name="su_disable_custom_formatting" <?php echo $checked; ?> /> <?php _e( 'Disable custom formatting', 'shortcodes-ultimate' ); ?></label></p>
|
545 |
<p><input type="submit" value="<?php _e( 'Save settings', 'shortcodes-ultimate' ); ?>" class="button-primary" /></p>
|
546 |
+
<input type="hidden" name="save" value="true" />
|
547 |
</form>
|
548 |
<h2><?php _e( 'Available shortcodes', 'shortcodes-ultimate' ); ?></h2>
|
549 |
<p><?php _e( 'Coming soon', 'shortcodes-ultimate' ); ?>…</p>
|
554 |
}
|
555 |
|
556 |
}
|
557 |
+
|
558 |
+
add_action( 'admin_menu', 'shortcodes_ultimate_add_admin' );
|
559 |
add_action( 'init', 'su_plugin_init' );
|
560 |
?>
|