Plugin Directory

Changeset 2696273


Ignore:
Timestamp:
03/18/2022 09:58:57 PM (4 years ago)
Author:
onetarek
Message:

Add Version 2.0

Location:
filter-page-by-template/trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • filter-page-by-template/trunk/filter-page-by-template.php

    r2439179 r2696273  
    66Author: oneTarek
    77Author URI: http://onetarek.com
    8 Version: 1.6
     8Version: 2.0
    99*/
    1010
     
    2222        add_action('manage_pages_custom_column', array( $this, 'post_list_columns_content' ), 10, 2);
    2323
     24        add_action( 'plugins_loaded', array( $this , 'load_textdomain' ) );
     25
    2426    }
    2527   
     
    3436        ?>
    3537        <select name="page_template_filter" id="page_template_filter">
    36             <option value="all">All Page Templates</option>
    37             <option value="all_missing" style="color:red" <?php echo ( $template == 'all_missing' )? ' selected="selected" ' : "";?>>All Missing Page Templates</option>
     38            <option value="all"><?php _e( 'All Page Templates', 'filter-page-by-template' ) ?></option>
     39            <option value="all_missing" style="color:red" <?php echo ( $template == 'all_missing' )? ' selected="selected" ' : "";?>><?php _e( 'All Missing Page Templates', 'filter-page-by-template' ) ?></option>
    3840            <option value="default" <?php echo ( $template == 'default' )? ' selected="selected" ' : "";?>><?php echo esc_html( $default_title ); ?></option>
    3941            <?php page_template_dropdown($template); ?>
     
    113115                {
    114116                    $template_name = apply_filters( 'default_page_template_title',  __( 'Default Template' ), 'meta-box' );
    115                     echo '<span title="Template file : page.php">'.$template_name.'</span>';
     117                    echo '<span title="' . esc_attr( __( 'Template file', 'filter-page-by-template' ) ) . ': page.php">'.$template_name.'</span>';
    116118                }
    117119                else
     
    121123                    if( isset( $templates[ $template ] ) )
    122124                    {
    123                         echo '<span title="Template file : '.$template.'">'.$templates[ $template ].'</span>';
     125                        echo '<span title="Template file: '.$template.'">'.$templates[ $template ].'</span>';
    124126                    }
    125127                    else
    126128                    {
    127129                       
    128                         echo '<span style="color:red" title="This template file does not exist">'.$template.'</span>';
     130                        echo '<span style="color:red" title="' . esc_attr( __( 'This template file does not exist', 'filter-page-by-template' ) ) . '">'.$template.'</span>';
    129131                    }
    130132                }
     
    132134            }
    133135        }
     136    }
     137
     138    /**
     139     * @since 2.0
     140     * @return void
     141     */
     142    public function load_textdomain(){
     143        load_plugin_textdomain( 'filter-page-by-template', false, FPBT_EMBEDER_PLUGIN_DIR."languages/" );
    134144    }
    135145   
  • filter-page-by-template/trunk/includes/five_star_wp_rate_notice.php

    r2060052 r2696273  
    2424    ?>
    2525        <div class="fpbt-five-star-wp-rate-action notice notice-success">
    26             <span class="fpbt-slug"><b>FILTER PAGE BY TEMPALTE</b> <i>Plugin</i></span>
     26            <span class="fpbt-slug"><b>FILTER PAGE BY TEMPLATE</b> <i>Plugin</i></span>
    2727
    2828            <div>
    29                 Hey, You are using the tempalte filter - that's awesome! Could you please do me a BIG favor and give it a 5-star rating on WordPress? Just to help us spread the word and boost our motivation.
     29                <?php _e("Hey, You are using the template filter - that's awesome! Could you please do me a BIG favor and give it a 5-star rating on WordPress? Just to help us spread the word and boost our motivation.", "filter-page-by-template" ) ?>
    3030                <br/><br/>
    3131                <strong><em>~ oneTarek</em></strong>
    3232            </div>
    3333            <ul data-nonce="<?php echo wp_create_nonce( 'fpbt_five_star_wp_rate_action_nonce' ) ?>">
    34                 <li><a data-rate-action="do-rate" target="_blank" href="https://wordpress.org/support/plugin/filter-page-by-template/reviews/?rate=5#postform">Ok, you deserve it</a></li>
    35                 <li><a data-rate-action="done-rating" href="#">I already did</a></li>
    36                 <li><a data-rate-action="not-enough" href="#">No, not good enough</a></li>
     34                <li><a data-rate-action="do-rate" target="_blank" href="https://wordpress.org/support/plugin/filter-page-by-template/reviews/?rate=5#postform"><?php _e( 'Ok, you deserve it', 'filter-page-by-template' ) ?></a></li>
     35                <li><a data-rate-action="done-rating" href="#"><?php _e( 'I already did', 'filter-page-by-template' ) ?></a></li>
     36                <li><a data-rate-action="not-enough" href="#"><?php _e( 'No, not good enough', 'filter-page-by-template' ) ?></a></li>
    3737            </ul>
    3838        </div>
  • filter-page-by-template/trunk/readme.txt

    r2439190 r2696273  
    44Tags: Filter, Page List, Template Filter, Missing templates   
    55Requires at least: 3.8.0
    6 Tested up to: 5.6
    7 Stable tag: 1.6
     6Tested up to: 5.9.2
     7Stable tag: 2.0
    88License: GPLv2+
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4444
    4545== Changelog ==
     46= 2.0 (March 19, 2022) =
     47* Make plugin translatable.
     48* Fix typo.
     49
    4650= 1.6 (December 14, 2020) =
    4751* Nothing new , Just update readme with tested up to 5.6 version.
     
    6771
    6872== Upgrade Notice ==
     73= 2.0 (March 19, 2022) =
     74* Make plugin translatable.
     75* Fix typo.
     76
    6977= 1.6 (December 14, 2020) =
    7078* Nothing new, Just update readme with tested up to 5.6 version.
Note: See TracChangeset for help on using the changeset viewer.