Plugin Directory

Changeset 739008


Ignore:
Timestamp:
07/11/2013 05:14:10 AM (13 years ago)
Author:
yuka2py
Message:

release ver.0.4.0

Location:
wp-over-network
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-over-network/tags/0.4.0/WPONW_RecentPostsWidget.php

    r737504 r739008  
    5151        $transient_expires_in = isset( $instance['transient_expires_in'] ) ? absint( $instance['transient_expires_in'] ) : 0;
    5252        $post_type = isset( $instance['post_type'] ) ? $instance['post_type'] : 'post';
     53        $blog_ids = ! empty( $instance['blog_ids'] ) ? $instance['blog_ids'] : null;
     54        $exclude_blog_ids = ! empty( $instance['exclude_blog_ids'] ) ? $instance['exclude_blog_ids'] : null;
    5355
    5456        //Getting posts.
     
    5860            'transient_expires_in' => $transient_expires_in,
    5961            'post_type' => $post_type,
     62            'blog_ids' => $blog_ids,
     63            'exclude_blog_ids' => $exclude_blog_ids,
    6064        );
    6165        $getpostsargs = apply_filters( 'wponw_widget_get_posts_args', $getpostsargs );
     
    8387        $instance['transient_expires_in'] = absint( $new_instance['transient_expires_in'] );
    8488        $instance['post_type'] = trim( $new_instance['post_type'] );
     89        $instance['blog_ids'] = wponw::cleanids( $new_instance['blog_ids'] );
     90        $instance['exclude_blog_ids'] = wponw::cleanids( $new_instance['exclude_blog_ids'] );
    8591        $this->flush_widget_cache();
    8692
     
    110116        $post_type_id = $this->get_field_id( 'post_type' );
    111117        $post_type_name = $this->get_field_name( 'post_type' );
     118        $blog_ids = isset( $instance['blog_ids'] ) ? $instance['blog_ids'] : null;
     119        $blog_ids_id = $this->get_field_id( 'blog_ids' );
     120        $blog_ids_name = $this->get_field_name( 'blog_ids' );
     121        $exclude_blog_ids = isset( $instance['exclude_blog_ids'] ) ? $instance['exclude_blog_ids'] : null;
     122        $exclude_blog_ids_id = $this->get_field_id( 'exclude_blog_ids' );
     123        $exclude_blog_ids_name = $this->get_field_name( 'exclude_blog_ids' );
    112124
    113125        wponw::render( 'widget-form', compact(
     
    126138            'post_type',
    127139            'post_type_id',
    128             'post_type_name'
     140            'post_type_name',
     141            'blog_ids',
     142            'blog_ids_id',
     143            'blog_ids_name',
     144            'exclude_blog_ids',
     145            'exclude_blog_ids_id',
     146            'exclude_blog_ids_name'
    129147        ) );
    130148    }
     149
     150
    131151}
  • wp-over-network/tags/0.4.0/languages/wponw-ja.po

    r737504 r739008  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WP Over Network 0.2.1.0\n"
    6 "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp_over_network\n"
    7 "POT-Creation-Date: 2013-05-25 05:44:51+00:00\n"
     5"Project-Id-Version: WP Over Network 0.4.0\n"
     6"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-over-network\n"
     7"POT-Creation-Date: 2013-07-11 04:56:05+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=UTF-8\n"
     
    4949msgstr "対象の投稿タイプ:"
    5050
     51#: templates/widget-form.php:23
     52msgid "Blog IDs to include:"
     53msgstr "表示するブログのID"
     54
     55#: templates/widget-form.php:25 templates/widget-form.php:30
     56msgid "Comma-separated."
     57msgstr "カンマ区切り"
     58
     59#: templates/widget-form.php:28
     60msgid "Blog IDs to exclude:"
     61msgstr "除外するブログのID"
     62
    5163#. Plugin Name of the plugin/theme
    5264msgid "WP Over Network"
    5365msgstr "WP Over Network"
    5466
     67#. #-#-#-#-#  wponw.pot (WP Over Network 0.4.0)  #-#-#-#-#
    5568#. Plugin URI of the plugin/theme
    56 msgid "http://foreignkey.jp/wp-over-netowrk"
    57 msgstr "http://foreignkey.jp/wp-over-netowrk"
     69#. #-#-#-#-#  wponw.pot (WP Over Network 0.4.0)  #-#-#-#-#
     70#. Author URI of the plugin/theme
     71msgid "https://github.com/yuka2py/wp_over_network"
     72msgstr "https://github.com/yuka2py/wp_over_network"
    5873
    5974#. Description of the plugin/theme
     
    6277
    6378#. Author of the plugin/theme
    64 msgid "@HissyNC, @yuka2py"
    65 msgstr "@ HissyNC、@ yuka2py"
    66 
    67 #. Author URI of the plugin/theme
    68 msgid "http://foreignkey.jp/wp-over-netowrk#author"
    69 msgstr "http://foreignkey.jp/wp-over-netowrk#author"
    70 
     79msgid "HissyNC, yuka2py"
     80msgstr "HissyNC, yuka2py"
  • wp-over-network/tags/0.4.0/languages/wponw.pot

    r737504 r739008  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WP Over Network 0.2.1.0\n"
    6 "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp_over_network\n"
    7 "POT-Creation-Date: 2013-05-25 05:44:51+00:00\n"
     5"Project-Id-Version: WP Over Network 0.4.0\n"
     6"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-over-network\n"
     7"POT-Creation-Date: 2013-07-11 04:56:05+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=UTF-8\n"
     
    4949msgstr ""
    5050
     51#: templates/widget-form.php:23
     52msgid "Blog IDs to include:"
     53msgstr ""
     54
     55#: templates/widget-form.php:25 templates/widget-form.php:30
     56msgid "Comma-separated."
     57msgstr ""
     58
     59#: templates/widget-form.php:28
     60msgid "Blog IDs to exclude:"
     61msgstr ""
     62
    5163#. Plugin Name of the plugin/theme
    5264msgid "WP Over Network"
    5365msgstr ""
    5466
     67#. #-#-#-#-#  wponw.pot (WP Over Network 0.4.0)  #-#-#-#-#
    5568#. Plugin URI of the plugin/theme
    56 msgid "http://foreignkey.jp/wp-over-netowrk"
    57 msgstr "http://foreignkey.jp/wp-over-netowrk"
     69#. #-#-#-#-#  wponw.pot (WP Over Network 0.4.0)  #-#-#-#-#
     70#. Author URI of the plugin/theme
     71msgid "https://github.com/yuka2py/wp_over_network"
     72msgstr ""
    5873
    5974#. Description of the plugin/theme
     
    6277
    6378#. Author of the plugin/theme
    64 msgid "@HissyNC, @yuka2py"
     79msgid "HissyNC, yuka2py"
    6580msgstr ""
    66 
    67 #. Author URI of the plugin/theme
    68 msgid "http://foreignkey.jp/wp-over-netowrk#author"
    69 msgstr "http://foreignkey.jp/wp-over-netowrk#author"
  • wp-over-network/tags/0.4.0/readme.txt

    r737585 r739008  
    55Requires at least: 3.5
    66Tested up to: 3.5.1
    7 Stable tag: 0.3.1.4
     7Stable tag: 0.4.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    1111Add ability to get posts from over your network sites. Supports widget, shortcode, and customizable original function.
     12
    1213
    1314== Description ==
     
    1617
    1718Use the following:
    18 
    1919
    2020
     
    112112== Upgrade Notice ==
    113113
    114 None currently.
     114= 0.4.0 =
     115* I changed the file name, for the plug-in file management issues on.
    115116
    116117
     
    123124
    124125== Changelog ==
     126
     127= 0.4.0 =
     128* Added settings to widget
     129* Bug fix
    125130
    126131= 0.3.1.x =
  • wp-over-network/tags/0.4.0/templates/widget-form.php

    r737504 r739008  
    11<p>
    22    <label for="<?php echo $widget_title_id ?>"><?php _e( 'Title:', wponw::WPONW_PREFIX ); ?></label>
    3     <input class="widefat" id="<?php echo $widget_title_id ?>" name="<?php echo $widget_title_name ?>" type="text" value="<?php echo $widget_title; ?>" />
     3    <input class="widefat" id="<?php echo $widget_title_id ?>" name="<?php echo $widget_title_name ?>" type="text" value="<?php echo esc_attr( $widget_title ); ?>" />
    44</p>
    55<p>
    66    <label for="<?php echo $numberposts_id ?>"><?php _e( 'Number of posts to show:', wponw::WPONW_PREFIX ); ?></label>
    7     <input id="<?php echo $numberposts_id ?>" name="<?php echo $numberposts_name ?>" type="text" value="<?php echo $numberposts; ?>" size="3" />
     7    <input id="<?php echo $numberposts_id ?>" name="<?php echo $numberposts_name ?>" type="text" value="<?php echo esc_attr( $numberposts ); ?>" size="3" />
    88</p>
    99<p>
    10     <input class="checkbox" type="checkbox" <?php checked( $show_date ); ?> id="<?php echo $show_date_id ?>" name="<?php echo $show_date_name ?>" />
     10    <input class="checkbox" type="checkbox" <?php checked( $show_date ); ?> id="<?php echo $show_date_id ?>" name="<?php echo esc_attr( $show_date_name ) ?>" />
    1111    <label for="<?php echo $show_date_id ?>"><?php _e( 'Display post date?', wponw::WPONW_PREFIX ); ?></label>
    1212</p>
    1313<p>
    1414    <label for="<?php echo $transient_expires_in_id ?>"><?php _e( 'Cache expiry time:', wponw::WPONW_PREFIX ); ?></label>
    15     <input id="<?php echo $transient_expires_in_id ?>" name="<?php echo $transient_expires_in_name ?>" type="text" value="<?php echo $transient_expires_in; ?>" size="3" /> <?php _e( 'seconds', wponw::WPONW_PREFIX ) ?><br />
     15    <input id="<?php echo $transient_expires_in_id ?>" name="<?php echo $transient_expires_in_name ?>" type="text" value="<?php echo esc_attr( $transient_expires_in ); ?>" size="3" /> <?php _e( 'seconds', wponw::WPONW_PREFIX ) ?><br />
    1616    (<?php _e( 'Cache is disabled by ZERO.', wponw::WPONW_PREFIX ) ?>)
    1717</p>
    1818<p>
    1919    <label for="<?php echo $post_type_id ?>"><?php _e( 'Target post type:', wponw::WPONW_PREFIX ); ?></label>
    20     <input class="widefat" id="<?php echo $post_type_id ?>" name="<?php echo $post_type_name ?>" type="text" value="<?php echo $post_type; ?>" />
     20    <input class="widefat" id="<?php echo $post_type_id ?>" name="<?php echo $post_type_name ?>" type="text" value="<?php echo esc_attr( $post_type ); ?>" />
    2121</p>
     22<p>
     23    <label for="<?php echo $blog_ids_id ?>"><?php _e( 'Blog IDs to include:', wponw::WPONW_PREFIX ); ?></label>
     24    <input class="widefat" id="<?php echo $blog_ids_id ?>" name="<?php echo $blog_ids_name ?>" type="text" value="<?php echo esc_attr( $blog_ids ); ?>" /><br>
     25    (<?php _e( 'Comma-separated.', wponw::WPONW_PREFIX ) ?>)
     26</p>
     27<p>
     28    <label for="<?php echo $exclude_blog_ids_id ?>"><?php _e( 'Blog IDs to exclude:', wponw::WPONW_PREFIX ); ?></label>
     29    <input class="widefat" id="<?php echo $exclude_blog_ids_id ?>" name="<?php echo $exclude_blog_ids_name ?>" type="text" value="<?php echo esc_attr( $exclude_blog_ids ); ?>" /><br>
     30    (<?php _e( 'Comma-separated.', wponw::WPONW_PREFIX ) ?>)
     31
     32</p>
  • wp-over-network/trunk/WPONW_RecentPostsWidget.php

    r737504 r739008  
    5151        $transient_expires_in = isset( $instance['transient_expires_in'] ) ? absint( $instance['transient_expires_in'] ) : 0;
    5252        $post_type = isset( $instance['post_type'] ) ? $instance['post_type'] : 'post';
     53        $blog_ids = ! empty( $instance['blog_ids'] ) ? $instance['blog_ids'] : null;
     54        $exclude_blog_ids = ! empty( $instance['exclude_blog_ids'] ) ? $instance['exclude_blog_ids'] : null;
    5355
    5456        //Getting posts.
     
    5860            'transient_expires_in' => $transient_expires_in,
    5961            'post_type' => $post_type,
     62            'blog_ids' => $blog_ids,
     63            'exclude_blog_ids' => $exclude_blog_ids,
    6064        );
    6165        $getpostsargs = apply_filters( 'wponw_widget_get_posts_args', $getpostsargs );
     
    8387        $instance['transient_expires_in'] = absint( $new_instance['transient_expires_in'] );
    8488        $instance['post_type'] = trim( $new_instance['post_type'] );
     89        $instance['blog_ids'] = wponw::cleanids( $new_instance['blog_ids'] );
     90        $instance['exclude_blog_ids'] = wponw::cleanids( $new_instance['exclude_blog_ids'] );
    8591        $this->flush_widget_cache();
    8692
     
    110116        $post_type_id = $this->get_field_id( 'post_type' );
    111117        $post_type_name = $this->get_field_name( 'post_type' );
     118        $blog_ids = isset( $instance['blog_ids'] ) ? $instance['blog_ids'] : null;
     119        $blog_ids_id = $this->get_field_id( 'blog_ids' );
     120        $blog_ids_name = $this->get_field_name( 'blog_ids' );
     121        $exclude_blog_ids = isset( $instance['exclude_blog_ids'] ) ? $instance['exclude_blog_ids'] : null;
     122        $exclude_blog_ids_id = $this->get_field_id( 'exclude_blog_ids' );
     123        $exclude_blog_ids_name = $this->get_field_name( 'exclude_blog_ids' );
    112124
    113125        wponw::render( 'widget-form', compact(
     
    126138            'post_type',
    127139            'post_type_id',
    128             'post_type_name'
     140            'post_type_name',
     141            'blog_ids',
     142            'blog_ids_id',
     143            'blog_ids_name',
     144            'exclude_blog_ids',
     145            'exclude_blog_ids_id',
     146            'exclude_blog_ids_name'
    129147        ) );
    130148    }
     149
     150
    131151}
  • wp-over-network/trunk/languages/wponw-ja.po

    r737504 r739008  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WP Over Network 0.2.1.0\n"
    6 "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp_over_network\n"
    7 "POT-Creation-Date: 2013-05-25 05:44:51+00:00\n"
     5"Project-Id-Version: WP Over Network 0.4.0\n"
     6"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-over-network\n"
     7"POT-Creation-Date: 2013-07-11 04:56:05+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=UTF-8\n"
     
    4949msgstr "対象の投稿タイプ:"
    5050
     51#: templates/widget-form.php:23
     52msgid "Blog IDs to include:"
     53msgstr "表示するブログのID"
     54
     55#: templates/widget-form.php:25 templates/widget-form.php:30
     56msgid "Comma-separated."
     57msgstr "カンマ区切り"
     58
     59#: templates/widget-form.php:28
     60msgid "Blog IDs to exclude:"
     61msgstr "除外するブログのID"
     62
    5163#. Plugin Name of the plugin/theme
    5264msgid "WP Over Network"
    5365msgstr "WP Over Network"
    5466
     67#. #-#-#-#-#  wponw.pot (WP Over Network 0.4.0)  #-#-#-#-#
    5568#. Plugin URI of the plugin/theme
    56 msgid "http://foreignkey.jp/wp-over-netowrk"
    57 msgstr "http://foreignkey.jp/wp-over-netowrk"
     69#. #-#-#-#-#  wponw.pot (WP Over Network 0.4.0)  #-#-#-#-#
     70#. Author URI of the plugin/theme
     71msgid "https://github.com/yuka2py/wp_over_network"
     72msgstr "https://github.com/yuka2py/wp_over_network"
    5873
    5974#. Description of the plugin/theme
     
    6277
    6378#. Author of the plugin/theme
    64 msgid "@HissyNC, @yuka2py"
    65 msgstr "@ HissyNC、@ yuka2py"
    66 
    67 #. Author URI of the plugin/theme
    68 msgid "http://foreignkey.jp/wp-over-netowrk#author"
    69 msgstr "http://foreignkey.jp/wp-over-netowrk#author"
    70 
     79msgid "HissyNC, yuka2py"
     80msgstr "HissyNC, yuka2py"
  • wp-over-network/trunk/languages/wponw.pot

    r737504 r739008  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WP Over Network 0.2.1.0\n"
    6 "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp_over_network\n"
    7 "POT-Creation-Date: 2013-05-25 05:44:51+00:00\n"
     5"Project-Id-Version: WP Over Network 0.4.0\n"
     6"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-over-network\n"
     7"POT-Creation-Date: 2013-07-11 04:56:05+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=UTF-8\n"
     
    4949msgstr ""
    5050
     51#: templates/widget-form.php:23
     52msgid "Blog IDs to include:"
     53msgstr ""
     54
     55#: templates/widget-form.php:25 templates/widget-form.php:30
     56msgid "Comma-separated."
     57msgstr ""
     58
     59#: templates/widget-form.php:28
     60msgid "Blog IDs to exclude:"
     61msgstr ""
     62
    5163#. Plugin Name of the plugin/theme
    5264msgid "WP Over Network"
    5365msgstr ""
    5466
     67#. #-#-#-#-#  wponw.pot (WP Over Network 0.4.0)  #-#-#-#-#
    5568#. Plugin URI of the plugin/theme
    56 msgid "http://foreignkey.jp/wp-over-netowrk"
    57 msgstr "http://foreignkey.jp/wp-over-netowrk"
     69#. #-#-#-#-#  wponw.pot (WP Over Network 0.4.0)  #-#-#-#-#
     70#. Author URI of the plugin/theme
     71msgid "https://github.com/yuka2py/wp_over_network"
     72msgstr ""
    5873
    5974#. Description of the plugin/theme
     
    6277
    6378#. Author of the plugin/theme
    64 msgid "@HissyNC, @yuka2py"
     79msgid "HissyNC, yuka2py"
    6580msgstr ""
    66 
    67 #. Author URI of the plugin/theme
    68 msgid "http://foreignkey.jp/wp-over-netowrk#author"
    69 msgstr "http://foreignkey.jp/wp-over-netowrk#author"
  • wp-over-network/trunk/readme.txt

    r737585 r739008  
    55Requires at least: 3.5
    66Tested up to: 3.5.1
    7 Stable tag: 0.3.1.4
     7Stable tag: 0.4.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    1111Add ability to get posts from over your network sites. Supports widget, shortcode, and customizable original function.
     12
    1213
    1314== Description ==
     
    1617
    1718Use the following:
    18 
    1919
    2020
     
    112112== Upgrade Notice ==
    113113
    114 None currently.
     114= 0.4.0 =
     115* I changed the file name, for the plug-in file management issues on.
    115116
    116117
     
    123124
    124125== Changelog ==
     126
     127= 0.4.0 =
     128* Added settings to widget
     129* Bug fix
    125130
    126131= 0.3.1.x =
  • wp-over-network/trunk/templates/widget-form.php

    r737504 r739008  
    11<p>
    22    <label for="<?php echo $widget_title_id ?>"><?php _e( 'Title:', wponw::WPONW_PREFIX ); ?></label>
    3     <input class="widefat" id="<?php echo $widget_title_id ?>" name="<?php echo $widget_title_name ?>" type="text" value="<?php echo $widget_title; ?>" />
     3    <input class="widefat" id="<?php echo $widget_title_id ?>" name="<?php echo $widget_title_name ?>" type="text" value="<?php echo esc_attr( $widget_title ); ?>" />
    44</p>
    55<p>
    66    <label for="<?php echo $numberposts_id ?>"><?php _e( 'Number of posts to show:', wponw::WPONW_PREFIX ); ?></label>
    7     <input id="<?php echo $numberposts_id ?>" name="<?php echo $numberposts_name ?>" type="text" value="<?php echo $numberposts; ?>" size="3" />
     7    <input id="<?php echo $numberposts_id ?>" name="<?php echo $numberposts_name ?>" type="text" value="<?php echo esc_attr( $numberposts ); ?>" size="3" />
    88</p>
    99<p>
    10     <input class="checkbox" type="checkbox" <?php checked( $show_date ); ?> id="<?php echo $show_date_id ?>" name="<?php echo $show_date_name ?>" />
     10    <input class="checkbox" type="checkbox" <?php checked( $show_date ); ?> id="<?php echo $show_date_id ?>" name="<?php echo esc_attr( $show_date_name ) ?>" />
    1111    <label for="<?php echo $show_date_id ?>"><?php _e( 'Display post date?', wponw::WPONW_PREFIX ); ?></label>
    1212</p>
    1313<p>
    1414    <label for="<?php echo $transient_expires_in_id ?>"><?php _e( 'Cache expiry time:', wponw::WPONW_PREFIX ); ?></label>
    15     <input id="<?php echo $transient_expires_in_id ?>" name="<?php echo $transient_expires_in_name ?>" type="text" value="<?php echo $transient_expires_in; ?>" size="3" /> <?php _e( 'seconds', wponw::WPONW_PREFIX ) ?><br />
     15    <input id="<?php echo $transient_expires_in_id ?>" name="<?php echo $transient_expires_in_name ?>" type="text" value="<?php echo esc_attr( $transient_expires_in ); ?>" size="3" /> <?php _e( 'seconds', wponw::WPONW_PREFIX ) ?><br />
    1616    (<?php _e( 'Cache is disabled by ZERO.', wponw::WPONW_PREFIX ) ?>)
    1717</p>
    1818<p>
    1919    <label for="<?php echo $post_type_id ?>"><?php _e( 'Target post type:', wponw::WPONW_PREFIX ); ?></label>
    20     <input class="widefat" id="<?php echo $post_type_id ?>" name="<?php echo $post_type_name ?>" type="text" value="<?php echo $post_type; ?>" />
     20    <input class="widefat" id="<?php echo $post_type_id ?>" name="<?php echo $post_type_name ?>" type="text" value="<?php echo esc_attr( $post_type ); ?>" />
    2121</p>
     22<p>
     23    <label for="<?php echo $blog_ids_id ?>"><?php _e( 'Blog IDs to include:', wponw::WPONW_PREFIX ); ?></label>
     24    <input class="widefat" id="<?php echo $blog_ids_id ?>" name="<?php echo $blog_ids_name ?>" type="text" value="<?php echo esc_attr( $blog_ids ); ?>" /><br>
     25    (<?php _e( 'Comma-separated.', wponw::WPONW_PREFIX ) ?>)
     26</p>
     27<p>
     28    <label for="<?php echo $exclude_blog_ids_id ?>"><?php _e( 'Blog IDs to exclude:', wponw::WPONW_PREFIX ); ?></label>
     29    <input class="widefat" id="<?php echo $exclude_blog_ids_id ?>" name="<?php echo $exclude_blog_ids_name ?>" type="text" value="<?php echo esc_attr( $exclude_blog_ids ); ?>" /><br>
     30    (<?php _e( 'Comma-separated.', wponw::WPONW_PREFIX ) ?>)
     31
     32</p>
Note: See TracChangeset for help on using the changeset viewer.