Changeset 9291
- Timestamp:
- 11/24/2019 01:39:10 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/locale-projects.php
r8523 r9291 97 97 <input type="hidden" name="page" value="1"> 98 98 99 <?php if ( 'waiting' === $project->slug && is_user_logged_in() ) { ?> 99 <?php 100 $filter_count = 0; 101 102 if ( 'waiting' === $project->slug && is_user_logged_in() ) { 103 $filter_count++; 104 ?> 100 105 <input id="filter-without-editors" type="checkbox" name="without-editors" value="1"<?php checked( isset( $_GET['without-editors'] ) ); ?>> 101 106 <label for="filter-without-editors">Limit to projects without editors</label> 102 107 <span class="filter-sep" aria-hidden="true">|</span> 103 <?php } ?> 104 108 <?php 109 } 110 ?> 111 112 <?php 113 $filter_count++; 114 ?> 105 115 <label for="filter">Filter:</label> 106 116 <select id="filter" name="filter"> … … 130 140 ?> 131 141 </select> 132 <button type="submit">Submit</button> 142 143 <button type="submit"><?php echo ( 1 === $filter_count ? 'Apply Filter' : 'Apply Filters' ); ?></button> 133 144 </form> 134 145 </div>
Note: See TracChangeset
for help on using the changeset viewer.