wp/wp-admin/theme-install.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
    82 if ( $tab ) {
    82 if ( $tab ) {
    83 	/**
    83 	/**
    84 	 * Fires before each of the tabs are rendered on the Install Themes page.
    84 	 * Fires before each of the tabs are rendered on the Install Themes page.
    85 	 *
    85 	 *
    86 	 * The dynamic portion of the hook name, `$tab`, refers to the current
    86 	 * The dynamic portion of the hook name, `$tab`, refers to the current
    87 	 * theme installation tab. Possible values are 'dashboard', 'search', 'upload',
    87 	 * theme installation tab.
    88 	 * 'featured', 'new', or 'updated'.
    88 	 *
       
    89 	 * Possible hook names include:
       
    90 	 *
       
    91 	 *  - `install_themes_pre_dashboard`
       
    92 	 *  - `install_themes_pre_featured`
       
    93 	 *  - `install_themes_pre_new`
       
    94 	 *  - `install_themes_pre_search`
       
    95 	 *  - `install_themes_pre_updated`
       
    96 	 *  - `install_themes_pre_upload`
    89 	 *
    97 	 *
    90 	 * @since 2.8.0
    98 	 * @since 2.8.0
    91 	 */
    99 	 */
    92 	do_action( "install_themes_pre_{$tab}" );
   100 	do_action( "install_themes_pre_{$tab}" );
    93 }
   101 }
    97 		/* translators: %s: Theme Directory URL. */
   105 		/* translators: %s: Theme Directory URL. */
    98 		__( 'You can find additional themes for your site by using the Theme Browser/Installer on this screen, which will display themes from the <a href="%s">WordPress Theme Directory</a>. These themes are designed and developed by third parties, are available free of charge, and are compatible with the license WordPress uses.' ),
   106 		__( 'You can find additional themes for your site by using the Theme Browser/Installer on this screen, which will display themes from the <a href="%s">WordPress Theme Directory</a>. These themes are designed and developed by third parties, are available free of charge, and are compatible with the license WordPress uses.' ),
    99 		__( 'https://wordpress.org/themes/' )
   107 		__( 'https://wordpress.org/themes/' )
   100 	) . '</p>' .
   108 	) . '</p>' .
   101 	'<p>' . __( 'You can Search for themes by keyword, author, or tag, or can get more specific and search by criteria listed in the feature filter.' ) . ' <span id="live-search-desc">' . __( 'The search results will be updated as you type.' ) . '</span></p>' .
   109 	'<p>' . __( 'You can Search for themes by keyword, author, or tag, or can get more specific and search by criteria listed in the feature filter.' ) . ' <span id="live-search-desc">' . __( 'The search results will be updated as you type.' ) . '</span></p>' .
   102 	'<p>' . __( 'Alternately, you can browse the themes that are Featured, Popular, or Latest. When you find a theme you like, you can preview it or install it.' ) . '</p>' .
   110 	'<p>' . __( 'Alternately, you can browse the themes that are Popular or Latest. When you find a theme you like, you can preview it or install it.' ) . '</p>' .
   103 	'<p>' . sprintf(
   111 	'<p>' . sprintf(
   104 		/* translators: %s: /wp-content/themes */
   112 		/* translators: %s: /wp-content/themes */
   105 		__( 'You can Upload a theme manually if you have already downloaded its ZIP archive onto your computer (make sure it is from a trusted and original source). You can also do it the old-fashioned way and copy a downloaded theme&#8217;s folder via FTP into your %s directory.' ),
   113 		__( 'You can Upload a theme manually if you have already downloaded its ZIP archive onto your computer (make sure it is from a trusted and original source). You can also do it the old-fashioned way and copy a downloaded theme&#8217;s folder via FTP into your %s directory.' ),
   106 		'<code>/wp-content/themes</code>'
   114 		'<code>/wp-content/themes</code>'
   107 	) . '</p>';
   115 	) . '</p>';
   171 		<div class="filter-count">
   179 		<div class="filter-count">
   172 			<span class="count theme-count"></span>
   180 			<span class="count theme-count"></span>
   173 		</div>
   181 		</div>
   174 
   182 
   175 		<ul class="filter-links">
   183 		<ul class="filter-links">
   176 			<li><a href="#" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></a></li>
       
   177 			<li><a href="#" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a></li>
   184 			<li><a href="#" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a></li>
   178 			<li><a href="#" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a></li>
   185 			<li><a href="#" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a></li>
   179 			<li><a href="#" data-sort="favorites"><?php _ex( 'Favorites', 'themes' ); ?></a></li>
   186 			<li><a href="#" data-sort="favorites"><?php _ex( 'Favorites', 'themes' ); ?></a></li>
   180 		</ul>
   187 		</ul>
   181 
   188 
   249 if ( $tab ) {
   256 if ( $tab ) {
   250 	/**
   257 	/**
   251 	 * Fires at the top of each of the tabs on the Install Themes page.
   258 	 * Fires at the top of each of the tabs on the Install Themes page.
   252 	 *
   259 	 *
   253 	 * The dynamic portion of the hook name, `$tab`, refers to the current
   260 	 * The dynamic portion of the hook name, `$tab`, refers to the current
   254 	 * theme installation tab. Possible values are 'dashboard', 'search', 'upload',
   261 	 * theme installation tab.
   255 	 * 'featured', 'new', or 'updated'.
   262 	 *
       
   263 	 * Possible hook names include:
       
   264 	 *
       
   265 	 *  - `install_themes_dashboard`
       
   266 	 *  - `install_themes_featured`
       
   267 	 *  - `install_themes_new`
       
   268 	 *  - `install_themes_search`
       
   269 	 *  - `install_themes_updated`
       
   270 	 *  - `install_themes_upload`
   256 	 *
   271 	 *
   257 	 * @since 2.8.0
   272 	 * @since 2.8.0
   258 	 *
   273 	 *
   259 	 * @param int $paged Number of the current page of results being viewed.
   274 	 * @param int $paged Number of the current page of results being viewed.
   260 	 */
   275 	 */