Changeset 2696273
- Timestamp:
- 03/18/2022 09:58:57 PM (4 years ago)
- Location:
- filter-page-by-template/trunk
- Files:
-
- 2 added
- 3 edited
-
filter-page-by-template.php (modified) (6 diffs)
-
includes/five_star_wp_rate_notice.php (modified) (1 diff)
-
languages (added)
-
languages/filter-page-by-template.pot (added)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
filter-page-by-template/trunk/filter-page-by-template.php
r2439179 r2696273 6 6 Author: oneTarek 7 7 Author URI: http://onetarek.com 8 Version: 1.68 Version: 2.0 9 9 */ 10 10 … … 22 22 add_action('manage_pages_custom_column', array( $this, 'post_list_columns_content' ), 10, 2); 23 23 24 add_action( 'plugins_loaded', array( $this , 'load_textdomain' ) ); 25 24 26 } 25 27 … … 34 36 ?> 35 37 <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> 38 40 <option value="default" <?php echo ( $template == 'default' )? ' selected="selected" ' : "";?>><?php echo esc_html( $default_title ); ?></option> 39 41 <?php page_template_dropdown($template); ?> … … 113 115 { 114 116 $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>'; 116 118 } 117 119 else … … 121 123 if( isset( $templates[ $template ] ) ) 122 124 { 123 echo '<span title="Template file : '.$template.'">'.$templates[ $template ].'</span>';125 echo '<span title="Template file: '.$template.'">'.$templates[ $template ].'</span>'; 124 126 } 125 127 else 126 128 { 127 129 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>'; 129 131 } 130 132 } … … 132 134 } 133 135 } 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/" ); 134 144 } 135 145 -
filter-page-by-template/trunk/includes/five_star_wp_rate_notice.php
r2060052 r2696273 24 24 ?> 25 25 <div class="fpbt-five-star-wp-rate-action notice notice-success"> 26 <span class="fpbt-slug"><b>FILTER PAGE BY TEMP ALTE</b> <i>Plugin</i></span>26 <span class="fpbt-slug"><b>FILTER PAGE BY TEMPLATE</b> <i>Plugin</i></span> 27 27 28 28 <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" ) ?> 30 30 <br/><br/> 31 31 <strong><em>~ oneTarek</em></strong> 32 32 </div> 33 33 <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> 37 37 </ul> 38 38 </div> -
filter-page-by-template/trunk/readme.txt
r2439190 r2696273 4 4 Tags: Filter, Page List, Template Filter, Missing templates 5 5 Requires at least: 3.8.0 6 Tested up to: 5. 67 Stable tag: 1.66 Tested up to: 5.9.2 7 Stable tag: 2.0 8 8 License: GPLv2+ 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 44 44 45 45 == Changelog == 46 = 2.0 (March 19, 2022) = 47 * Make plugin translatable. 48 * Fix typo. 49 46 50 = 1.6 (December 14, 2020) = 47 51 * Nothing new , Just update readme with tested up to 5.6 version. … … 67 71 68 72 == Upgrade Notice == 73 = 2.0 (March 19, 2022) = 74 * Make plugin translatable. 75 * Fix typo. 76 69 77 = 1.6 (December 14, 2020) = 70 78 * Nothing new, Just update readme with tested up to 5.6 version.
Note: See TracChangeset
for help on using the changeset viewer.