Changeset 11741
- Timestamp:
- 04/03/2022 03:31:24 PM (3 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/locale-projects.php
r11732 r11741 86 86 <div class="search-form"> 87 87 <form> 88 <input type="hidden" name="filter" value="<?php echo esc_attr( $filter ?? '' ); ?>"> 89 <input type="hidden" name="without-editors" value="<?php echo esc_attr( $without_editors ? '1' : '' ); ?>"> 88 90 <label class="screen-reader-text" for="projects-filter"><?php esc_attr_e( 'Search projects...' ); ?></label> 89 <input placeholder="<?php esc_attr_e( 'Search projects...' ); ?>" type="search" id="projects-filter" name="s" value="<?php if ( !empty( $search ) ) { echo esc_attr( $search ); }?>" class="filter-search">91 <input placeholder="<?php esc_attr_e( 'Search projects...' ); ?>" type="search" id="projects-filter" name="s" value="<?php echo esc_attr( $search ?? '' ); ?>" class="filter-search"> 90 92 <input type="submit" value="<?php esc_attr_e( 'Search' ); ?>" class="screen-reader-text" /> 91 93 </form> … … 103 105 $filter_count++; 104 106 ?> 105 <input id="filter-without-editors" type="checkbox" name="without-editors" value="1"<?php checked( isset( $_GET['without-editors'] )); ?>>107 <input id="filter-without-editors" type="checkbox" name="without-editors" value="1"<?php checked( $without_editors ); ?>> 106 108 <label for="filter-without-editors">Limit to projects without editors</label> 107 109 <span class="filter-sep" aria-hidden="true">|</span> … … 144 146 </form> 145 147 </div> 148 149 <?php 150 if ( isset( $pages ) && $pages['pages'] > 1 ) { 151 echo '<div class="projects-paging">'; 152 echo gp_pagination( $pages['page'], $pages['per_page'], $pages['results'] ); 153 echo '</div>'; 154 } 155 ?> 156 146 157 <div id="projects" class="projects"> 147 158 <?php … … 193 204 <div class="project-name"> 194 205 <h4> 195 <?php echo gp_link_get( $project_url, $project_name )?>206 <?php echo gp_link_get( $project_url, wp_trim_words( $project_name, 10 ) ); ?> 196 207 </h4> 197 208 </div> … … 200 211 $description = wp_strip_all_tags( $sub_project->description ); 201 212 $description = str_replace( array( 'WordPress.org Plugin Page', 'WordPress.org Theme Page' ), '', $description ); 202 echo wp_trim_words( $description, 30);213 echo wp_trim_words( $description, 15 ); 203 214 ?></p> 204 215 </div> … … 243 254 ?> 244 255 </div> 256 245 257 <?php 246 if ( isset( $pages ) && $pages['pages'] > 1 ) { 247 echo gp_pagination( $pages['page'], $pages['per_page'], $pages['results'] ); 248 } 258 if ( isset( $pages ) && $pages['pages'] > 1 ) { 259 echo '<div class="projects-paging">'; 260 echo gp_pagination( $pages['page'], $pages['per_page'], $pages['results'] ); 261 echo '</div>'; 262 } 249 263 ?> 250 264 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/style.css
r11739 r11741 911 911 .locale-header:before, 912 912 .locale-header:after, 913 .projects:before,914 .projects:after,915 913 .project-box-header:before, 916 914 .project-box-header:after, … … 924 922 925 923 .locale-header:after, 926 .projects:after,927 924 .project-box-header:after, 928 925 .project-status:after, … … 1058 1055 } 1059 1056 1057 .projects-paging { 1058 clear: both; 1059 display: flex; 1060 justify-content: flex-end; 1061 margin: 1rem 0; 1062 } 1063 1060 1064 .projects { 1061 margin-left: -2.083%; 1065 clear: both; 1066 display: grid; 1067 grid-gap: 1rem; 1068 grid-template-columns: minmax( 0, 1fr ); 1069 margin: 1rem 0; 1070 } 1071 1072 @media screen and (min-width: 799px) { 1073 .projects { 1074 grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); 1075 } 1076 } 1077 1078 @media screen and (min-width: 1219px) { 1079 .projects { 1080 grid-template-columns: repeat( 3, minmax( 0, 1fr ) ); 1081 } 1062 1082 } 1063 1083 1064 1084 .projects .project { 1065 float: left;1066 margin: 0 0 2.083% 2.083%;1067 width: 47.917%;1085 display: flex; 1086 flex-direction: column; 1087 justify-content: flex-end; 1068 1088 border: 1px solid #72777c; 1069 1089 box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1); … … 1071 1091 } 1072 1092 1073 .projects .project:nth-child(odd) {1074 clear: both;1075 }1076 1077 1093 .projects .project.percent-100 { 1078 1094 border-color: #509040; … … 1081 1097 .projects .project-top { 1082 1098 position: relative; 1083 padding: 20px 20px 10px; 1084 min-height: 135px; 1099 padding: 20px; 1100 min-height: 140px; 1101 margin-bottom: auto; 1085 1102 } 1086 1103 1087 1104 .projects .project-name, 1088 1105 .projects .project-description { 1089 margin-left: 1 48px;1106 margin-left: 120px; 1090 1107 overflow-wrap: break-word; 1091 1108 } … … 1103 1120 margin-top: 0; 1104 1121 padding: 0; 1122 font-size: .875rem; 1123 } 1124 1125 .projects .project-description p { 1126 margin: 0; 1105 1127 } 1106 1128 … … 1109 1131 top: 20px; 1110 1132 left: 20px; 1111 width: 1 28px;1112 height: 1 28px;1133 width: 100px; 1134 height: 100px; 1113 1135 margin: 0 20px 20px 0; 1114 1136 } … … 1120 1142 .projects .project-icon .default-icon, 1121 1143 .projects .project-icon .wordpress-icon { 1122 width: 1 28px;1123 height: 1 28px;1144 width: 100px; 1145 height: 100px; 1124 1146 background: #dedede; 1125 1147 } 1126 1148 1127 1149 .projects .project-icon .plugin-icon { 1128 width: 1 28px;1129 height: 1 28px;1150 width: 100px; 1151 height: 100px; 1130 1152 background-size: contain; 1131 1153 } … … 1133 1155 .projects .project-icon .default-icon span, 1134 1156 .projects .project-icon .wordpress-icon span { 1135 height: 1 28px;1136 width: 1 28px;1157 height: 100px; 1158 width: 100px; 1137 1159 font-size: 85px; 1138 line-height: 1 28px;1160 line-height: 100px; 1139 1161 color: #a0a5aa; 1140 1162 } … … 1149 1171 1150 1172 .projects .project-icon .icon img { 1151 width: 1 28px;1173 width: 100px; 1152 1174 height: auto; 1153 1175 } … … 1160 1182 width: 25%; 1161 1183 float: left; 1162 margin: 20px 0;1184 margin: 0 0 20px; 1163 1185 text-align: center; 1164 1186 } … … 1499 1521 } 1500 1522 1501 .projects {1502 margin-left: 0;1503 }1504 1505 .projects .project {1506 width: 100%;1507 margin-left: 0;1508 }1509 1510 1523 .locale-intro { 1511 1524 float: none; … … 1693 1706 .sort-bar { 1694 1707 float: right; 1695 margin: -30px 0 5px5px;1708 margin: -30px 0 1rem 5px; 1696 1709 background-color: #e2e4e7; 1697 1710 padding: 5px; -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/inc/routes/class-locale.php
r11092 r11741 44 44 global $wpdb; 45 45 46 $per_page = 2 0;46 $per_page = 21; 47 47 $page = (int) gp_get( 'page', 1 ); 48 48 $search = gp_get( 's', '' ); … … 267 267 case 'wordcamp': 268 268 return '<div class="default-icon"><span class="dashicons dashicons-tickets"></span></div>'; 269 case 'pattern-directory': 270 return '<div class="default-icon"><span class="dashicons dashicons-art"></span></div>'; 269 271 case 'browsehappy': 270 272 return '<div class="icon"><img src="' . plugins_url( 'templates/images/browsehappy.png', 'wporg-gp-customizations/wporg-gp-customizations.php' ) . '" width="' . $size . '" height="' . $size . '"></div>'; … … 298 300 case 'apps': 299 301 return '<div class="default-icon"><span class="dashicons dashicons-smartphone"></span></div>'; 302 case 'patterns': 303 return '<div class="default-icon"><span class="dashicons dashicons-art"></span></div>'; 300 304 default: 301 305 return '<div class="default-icon"><span class="dashicons dashicons-translation"></span></div>';
Note: See TracChangeset
for help on using the changeset viewer.