Plugin Directory

Changeset 1359964


Ignore:
Timestamp:
02/28/2016 08:53:20 AM (10 years ago)
Author:
yutuo
Message:

0.2.0

Location:
wp-switch-util/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • wp-switch-util/trunk/README.md

    r1354181 r1359964  
    1313* Disable pingback in site
    1414* Disable the admin bar
     15* Enable the link manager
    1516
    1617这个插件实现了以下功能:
     
    2324* 禁止站内Pingback
    2425* 不显示admin bar
     26* 启用友情链接
    2527
    2628
     
    4143
    4244#### Changelog
     45
     46**0.2.0**
     47
     48* Add feature "Enable the link manager"
     49* 添加启用友情链接功能
    4350
    4451**0.1.0**
  • wp-switch-util/trunk/inc/wp_switch_util_setting.php

    r1234729 r1359964  
    7272                    </td>
    7373                </tr>
     74                <tr>
     75                    <th scope="row"><?php echo __('Enable the link manager', 'wp_su') ?></th>
     76                    <td>
     77                        <input type="checkbox" name="wp_su_options[linkmanager]" id="wpSuLinkManager" value="1"
     78                            <?php echo ($this->options['linkmanager'] == '1') ? 'checked' : '' ?>/>
     79                    </td>
     80                </tr>
    7481            </table>
    7582            <p class="submit">
  • wp-switch-util/trunk/lang

    • Property svn:ignore set to
      wp_su.pot
  • wp-switch-util/trunk/lang/wp_su-zh_CN.po

    r1234729 r1359964  
    11msgid ""
    22msgstr ""
     3"Plural-Forms: nplurals=1; plural=0;\n"
    34"Project-Id-Version: WP Switch Util\n"
    4 "POT-Creation-Date: 2014-09-21 23:56+0900\n"
    5 "PO-Revision-Date: 2014-09-21 23:57+0900\n"
    6 "Last-Translator: \n"
     5"POT-Creation-Date: 2016-02-28 17:42+0900\n"
     6"PO-Revision-Date: 2016-02-28 17:46+0900\n"
    77"Language-Team: \n"
    8 "Language: zh\n"
    98"MIME-Version: 1.0\n"
    109"Content-Type: text/plain; charset=UTF-8\n"
    1110"Content-Transfer-Encoding: 8bit\n"
    12 "X-Generator: Poedit 1.6.9\n"
     11"X-Generator: Poedit 1.8.6\n"
    1312"X-Poedit-Basepath: ..\n"
     13"X-Poedit-WPHeader: wp_switch_util.php\n"
    1414"X-Poedit-SourceCharset: UTF-8\n"
    15 "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
    16 "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
    17 "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
    18 "Plural-Forms: nplurals=1; plural=0;\n"
     15"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;"
     16"esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;"
     17"esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
     18"Last-Translator: \n"
     19"Language: zh_CN\n"
    1920"X-Poedit-SearchPath-0: .\n"
     21"X-Poedit-SearchPathExcluded-0: *.js\n"
    2022
    21 #: inc/wp_switch_util_setting.php:10 wp_switch_util.php:59
     23#: inc/wp_switch_util_setting.php:10 wp_switch_util.php:72
    2224msgid "Wp Switch Util"
    23 msgstr "Wp Switch Util"
     25msgstr ""
    2426
     27#. Description of the plugin/theme
    2528#: inc/wp_switch_util_setting.php:13
    2629msgid ""
     
    4447#: inc/wp_switch_util_setting.php:23
    4548msgid "Cache Days:"
    46 msgstr "缓存时间:"
     49msgstr "缓存天数:"
    4750
    4851#: inc/wp_switch_util_setting.php:26
     
    7881msgstr "不显示admin bar"
    7982
    80 #: inc/wp_switch_util_setting.php:77
     83#: inc/wp_switch_util_setting.php:75
     84msgid "Enable the link manager"
     85msgstr "启用友情链接"
     86
     87#: inc/wp_switch_util_setting.php:84
    8188msgid "Save Changes"
    8289msgstr "保存修改"
    8390
    84 #: wp_switch_util.php:67
     91#: wp_switch_util.php:82
    8592msgid "Settings"
    8693msgstr "设置"
     94
     95#. Plugin Name of the plugin/theme
     96msgid "WP Switch Util"
     97msgstr ""
     98
     99#. Plugin URI of the plugin/theme
     100msgid "http://yutuo.net/archives/f685d2dbbb176e86.html"
     101msgstr ""
     102
     103#. Author of the plugin/theme
     104msgid "yutuo"
     105msgstr ""
     106
     107#. Author URI of the plugin/theme
     108msgid "http://yutuo.net"
     109msgstr ""
  • wp-switch-util/trunk/readme.txt

    r1354181 r1359964  
    55Requires at least: 3.0.1
    66Tested up to: 4.4
    7 Stable tag: 0.0.3
     7Stable tag: 0.2.0
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5656== Changelog ==
    5757
     58= 0.2.0 =
     59
     60* Add feature "Enable the link manager"
     61* 添加启用友情链接功能
     62
    5863= 0.1.0 =
    5964
  • wp-switch-util/trunk/wp_switch_util.php

    r1354181 r1359964  
    55 * Plugin URI: http://yutuo.net/archives/f685d2dbbb176e86.html
    66 * Description: This plugin can: cache the avatar, format you url, disable the histroy, disable auto save, disable admin bar
    7  * Version: 0.1.0
     7 * Version: 0.2.0
    88 * Author: yutuo
    99 * Author URI: http://yutuo.net
     
    2828        'pingback' => '0',
    2929        'adminbar' => '0',
     30        'linkmanager' => '0',
    3031    );
    3132}
     
    215216            add_filter('show_admin_bar', array($this, 'hideAdminBar'));
    216217        }
     218        // 启用友情链接
     219        if (array_key_exists('linkmanager', $this->options) && $this->options['linkmanager'] == '1') {
     220            add_filter('pre_option_link_manager_enabled', '__return_true');
     221        }
    217222    }
    218223
Note: See TracChangeset for help on using the changeset viewer.