2009-02-11 18:10:11 -05:00
< ? php
/**
* Install theme administration panel .
*
* @ package WordPress
* @ subpackage Administration
*/
/** WordPress Administration Bootstrap */
2020-02-06 01:33:11 -05:00
require_once __DIR__ . '/admin.php' ;
require ABSPATH . 'wp-admin/includes/theme-install.php' ;
2014-03-11 03:47:15 -04:00
wp_reset_vars ( array ( 'tab' ) );
2010-12-16 03:43:22 -05:00
2017-11-30 18:11:00 -05:00
if ( ! current_user_can ( 'install_themes' ) ) {
2016-06-29 11:16:29 -04:00
wp_die ( __ ( 'Sorry, you are not allowed to install themes on this site.' ) );
2017-11-30 18:11:00 -05:00
}
2009-02-11 18:10:11 -05:00
2010-12-06 10:41:19 -05:00
if ( is_multisite () && ! is_network_admin () ) {
wp_redirect ( network_admin_url ( 'theme-install.php' ) );
2020-05-26 05:37:10 -04:00
exit ;
2010-12-06 10:41:19 -05:00
}
2017-11-30 18:11:00 -05:00
$title = __ ( 'Add Themes' );
2009-02-11 18:10:11 -05:00
$parent_file = 'themes.php' ;
2014-03-11 03:47:15 -04:00
if ( ! is_network_admin () ) {
2010-10-21 13:06:52 -04:00
$submenu_file = 'themes.php' ;
2014-03-11 03:47:15 -04:00
}
2014-04-07 19:04:15 -04:00
$installed_themes = search_theme_directories ();
2017-05-11 15:21:44 -04:00
if ( false === $installed_themes ) {
$installed_themes = array ();
}
2014-04-07 19:04:15 -04:00
foreach ( $installed_themes as $k => $v ) {
if ( false !== strpos ( $k , '/' ) ) {
unset ( $installed_themes [ $k ] );
}
}
2017-11-30 18:11:00 -05:00
wp_localize_script (
2018-08-16 21:51:36 -04:00
'theme' ,
'_wpThemeSettings' ,
array (
2017-11-30 18:11:00 -05:00
'themes' => false ,
'settings' => array (
'isInstall' => true ,
'canInstall' => current_user_can ( 'install_themes' ),
'installURI' => current_user_can ( 'install_themes' ) ? self_admin_url ( 'theme-install.php' ) : null ,
'adminUrl' => parse_url ( self_admin_url (), PHP_URL_PATH ),
),
'l10n' => array (
'addNew' => __ ( 'Add New Theme' ),
'search' => __ ( 'Search Themes' ),
2020-01-28 19:45:18 -05:00
'searchPlaceholder' => __ ( 'Search themes...' ), // Placeholder (no ellipsis).
2017-11-30 18:11:00 -05:00
'upload' => __ ( 'Upload Theme' ),
'back' => __ ( 'Back' ),
'error' => sprintf (
2019-09-02 20:41:05 -04:00
/* translators: %s: Support forums URL. */
2017-11-30 18:11:00 -05:00
__ ( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
2019-05-25 10:24:50 -04:00
__ ( 'https://wordpress.org/support/forums/' )
2017-11-30 18:11:00 -05:00
),
'tryAgain' => __ ( 'Try Again' ),
2019-09-02 20:41:05 -04:00
/* translators: %d: Number of themes. */
2017-11-30 18:11:00 -05:00
'themesFound' => __ ( 'Number of Themes found: %d' ),
'noThemesFound' => __ ( 'No themes found. Try a different search.' ),
'collapseSidebar' => __ ( 'Collapse Sidebar' ),
'expandSidebar' => __ ( 'Expand Sidebar' ),
2019-09-02 20:41:05 -04:00
/* translators: Accessibility text. */
2017-11-30 18:11:00 -05:00
'selectFeatureFilter' => __ ( 'Select one or more Theme features to filter by' ),
2016-11-20 20:52:32 -05:00
),
2017-11-30 18:11:00 -05:00
'installedThemes' => array_keys ( $installed_themes ),
)
);
2009-02-11 18:10:11 -05:00
2014-03-11 03:47:15 -04:00
wp_enqueue_script ( 'theme' );
Update/Install: Shiny Updates v2.
Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.
Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.
Built from https://develop.svn.wordpress.org/trunk@37714
git-svn-id: http://core.svn.wordpress.org/trunk@37680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-15 12:37:29 -04:00
wp_enqueue_script ( 'updates' );
2009-02-11 18:10:11 -05:00
2014-03-11 03:47:15 -04:00
if ( $tab ) {
2014-11-30 06:42:24 -05:00
/**
* Fires before each of the tabs are rendered on the Install Themes page .
*
* The dynamic portion of the hook name , `$tab` , refers to the current
2017-08-22 07:52:48 -04:00
* theme installation tab . Possible values are 'dashboard' , 'search' , 'upload' ,
2014-11-30 06:42:24 -05:00
* 'featured' , 'new' , or 'updated' .
*
* @ since 2.8 . 0
*/
2014-03-11 03:47:15 -04:00
do_action ( " install_themes_pre_ { $tab } " );
}
2009-02-11 18:10:11 -05:00
2012-05-27 12:25:43 -04:00
$help_overview =
2016-02-23 20:30:25 -05:00
'<p>' . sprintf (
2019-09-02 20:41:05 -04:00
/* translators: %s: Theme Directory URL. */
I18N: Improve translator comments.
* Add missing translator comments.
* Fix placement of some translator comments. Translator comments should be on the line directly above the line containing the translation function call for optimal compatibility with various `.pot` file generation tools. The CS auto-fixing, which changed some inconsistent function calls to multi-line function calls, is part of the reason why this was no longer the case for a select group of translator comments.
Includes minor code layout fixes.
Polyglots, rejoice! All WordPress core files now have translator comments for all strings with placeholders!
Props jrf, subrataemfluence, GaryJ, webdados, Dency, swissspidy, alvarogois, marcomartins, mihaiiceyro, vladwtz, niq1982, flipkeijzer, michielatyoast, chandrapatel, thrijith, joshuanoyce, FesoVik, tessak22, bhaktirajdev, cleancoded, dhavalkasvala, garrett-eclipse, bibliofille, socalchristina, priyankkpatel, 5hel2l2y, adamsilverstein, JeffPaul, pierlo, SergeyBiryukov.
Fixes #44360.
Built from https://develop.svn.wordpress.org/trunk@45926
git-svn-id: http://core.svn.wordpress.org/trunk@45737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-01 13:13:59 -04:00
__ ( '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.' ),
2017-11-30 18:11:00 -05:00
__ ( 'https://wordpress.org/themes/' )
) . '</p>' .
2015-04-02 22:32:28 -04:00
'<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>' .
'<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>' .
2016-02-23 20:30:25 -05:00
'<p>' . sprintf (
2017-11-30 18:11:00 -05:00
/* translators: %s: /wp-content/themes */
I18N: Improve translator comments.
* Add missing translator comments.
* Fix placement of some translator comments. Translator comments should be on the line directly above the line containing the translation function call for optimal compatibility with various `.pot` file generation tools. The CS auto-fixing, which changed some inconsistent function calls to multi-line function calls, is part of the reason why this was no longer the case for a select group of translator comments.
Includes minor code layout fixes.
Polyglots, rejoice! All WordPress core files now have translator comments for all strings with placeholders!
Props jrf, subrataemfluence, GaryJ, webdados, Dency, swissspidy, alvarogois, marcomartins, mihaiiceyro, vladwtz, niq1982, flipkeijzer, michielatyoast, chandrapatel, thrijith, joshuanoyce, FesoVik, tessak22, bhaktirajdev, cleancoded, dhavalkasvala, garrett-eclipse, bibliofille, socalchristina, priyankkpatel, 5hel2l2y, adamsilverstein, JeffPaul, pierlo, SergeyBiryukov.
Fixes #44360.
Built from https://develop.svn.wordpress.org/trunk@45926
git-svn-id: http://core.svn.wordpress.org/trunk@45737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-01 13:13:59 -04:00
__ ( '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’s folder via FTP into your %s directory.' ),
2017-11-30 18:11:00 -05:00
'<code>/wp-content/themes</code>'
) . '</p>' ;
get_current_screen () -> add_help_tab (
array (
'id' => 'overview' ,
'title' => __ ( 'Overview' ),
'content' => $help_overview ,
)
);
2012-05-07 13:26:16 -04:00
$help_installing =
2017-11-30 18:11:00 -05:00
'<p>' . __ ( 'Once you have generated a list of themes, you can preview and install any of them. Click on the thumbnail of the theme you’re interested in previewing. It will open up in a full-screen Preview page to give you a better idea of how that theme will look.' ) . '</p>' .
'<p>' . __ ( 'To install the theme so you can preview it with your site’s content and customize its theme options, click the "Install" button at the top of the left-hand pane. The theme files will be downloaded to your website automatically. When this is complete, the theme is now available for activation, which you can do by clicking the "Activate" link, or by navigating to your Manage Themes screen and clicking the "Live Preview" link under any installed theme’s thumbnail image.' ) . '</p>' ;
get_current_screen () -> add_help_tab (
array (
'id' => 'installing' ,
'title' => __ ( 'Previewing and Installing' ),
'content' => $help_installing ,
)
);
2010-01-15 11:58:36 -05:00
2011-11-02 17:32:16 -04:00
get_current_screen () -> set_help_sidebar (
2017-11-30 18:11:00 -05:00
'<p><strong>' . __ ( 'For more information:' ) . '</strong></p>' .
2019-07-25 18:45:57 -04:00
'<p>' . __ ( '<a href="https://wordpress.org/support/article/using-themes/#adding-new-themes">Documentation on Adding New Themes</a>' ) . '</p>' .
2019-04-08 18:59:56 -04:00
'<p>' . __ ( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
2011-11-02 01:33:53 -04:00
);
2020-02-06 01:33:11 -05:00
require_once ABSPATH . 'wp-admin/admin-header.php' ;
2014-03-11 03:47:15 -04:00
2009-02-11 18:10:11 -05:00
?>
< div class = " wrap " >
2016-12-06 17:24:41 -05:00
< h1 class = " wp-heading-inline " >< ? php echo esc_html ( $title ); ?> </h1>
< ? php
2014-08-26 21:32:18 -04:00
/**
2016-05-22 14:01:30 -04:00
* Filters the tabs shown on the Add Themes screen .
2014-08-26 21:32:18 -04:00
*
2016-05-13 14:41:31 -04:00
* This filter is for backward compatibility only , for the suppression of the upload tab .
2014-08-26 21:32:18 -04:00
*
* @ since 2.8 . 0
2014-12-07 13:41:21 -05:00
*
2018-03-25 14:10:32 -04:00
* @ param string [] $tabs Associative array of the tabs shown on the Add Themes screen . Default is 'upload' .
2014-08-26 21:32:18 -04:00
*/
$tabs = apply_filters ( 'install_themes_tabs' , array ( 'upload' => __ ( 'Upload Theme' ) ) );
if ( ! empty ( $tabs [ 'upload' ] ) && current_user_can ( 'upload_themes' ) ) {
2016-06-17 16:47:28 -04:00
echo ' <button type="button" class="upload-view-toggle page-title-action hide-if-no-js" aria-expanded="false">' . __ ( 'Upload Theme' ) . '</button>' ;
2014-08-26 21:32:18 -04:00
}
2016-12-06 17:24:41 -05:00
?>
< hr class = " wp-header-end " >
2016-06-17 16:47:28 -04:00
< div class = " error hide-if-js " >
< p >< ? php _e ( 'The Theme Installer screen requires JavaScript.' ); ?> </p>
</ div >
2014-03-11 03:47:15 -04:00
< div class = " upload-theme " >
< ? php install_themes_upload (); ?>
</ div >
2016-06-17 16:47:28 -04:00
< h2 class = " screen-reader-text hide-if-no-js " >< ? php _e ( 'Filter themes list' ); ?> </h2>
2015-10-06 21:28:25 -04:00
2016-06-17 16:47:28 -04:00
< div class = " wp-filter hide-if-no-js " >
2014-08-25 11:58:15 -04:00
< div class = " filter-count " >
2014-07-17 23:40:16 -04:00
< span class = " count theme-count " ></ span >
2014-03-11 03:47:15 -04:00
</ div >
2014-07-17 23:40:16 -04:00
2014-08-25 11:58:15 -04:00
< ul class = " filter-links " >
< li >< a href = " # " data - sort = " featured " >< ? php _ex ( 'Featured' , 'themes' ); ?> </a></li>
< li >< a href = " # " data - sort = " popular " >< ? php _ex ( 'Popular' , 'themes' ); ?> </a></li>
< li >< a href = " # " data - sort = " new " >< ? php _ex ( 'Latest' , 'themes' ); ?> </a></li>
2015-11-04 16:49:26 -05:00
< li >< a href = " # " data - sort = " favorites " >< ? php _ex ( 'Favorites' , 'themes' ); ?> </a></li>
2014-07-17 23:40:16 -04:00
</ ul >
2016-09-21 13:54:28 -04:00
< button type = " button " class = " button drawer-toggle " aria - expanded = " false " >< ? php _e ( 'Feature Filter' ); ?> </button>
2014-07-17 23:40:16 -04:00
2017-05-08 11:59:44 -04:00
< form class = " search-form " ></ form >
2014-08-25 11:58:15 -04:00
2015-11-04 16:49:26 -05:00
< div class = " favorites-form " >
< ? php
2016-03-30 14:36:26 -04:00
$action = 'save_wporg_username_' . get_current_user_id ();
if ( isset ( $_GET [ '_wpnonce' ] ) && wp_verify_nonce ( wp_unslash ( $_GET [ '_wpnonce' ] ), $action ) ) {
$user = isset ( $_GET [ 'user' ] ) ? wp_unslash ( $_GET [ 'user' ] ) : get_user_option ( 'wporg_favorites' );
update_user_meta ( get_current_user_id (), 'wporg_favorites' , $user );
} else {
$user = get_user_option ( 'wporg_favorites' );
}
2015-11-04 16:49:26 -05:00
?>
< p class = " install-help " >< ? php _e ( 'If you have marked themes as favorites on WordPress.org, you can browse them here.' ); ?> </p>
< p >
2015-12-16 17:30:27 -05:00
< label for = " wporg-username-input " >< ? php _e ( 'Your WordPress.org username:' ); ?> </label>
2016-03-30 14:36:26 -04:00
< input type = " hidden " id = " wporg-username-nonce " name = " _wpnonce " value = " <?php echo esc_attr( wp_create_nonce( $action ) ); ?> " />
2015-11-04 16:49:26 -05:00
< input type = " search " id = " wporg-username-input " value = " <?php echo esc_attr( $user ); ?> " />
2016-09-28 15:54:28 -04:00
< input type = " button " class = " button favorites-form-submit " value = " <?php esc_attr_e( 'Get Favorites' ); ?> " />
2015-11-04 16:49:26 -05:00
</ p >
</ div >
2014-08-25 11:58:15 -04:00
< div class = " filter-drawer " >
< div class = " buttons " >
2016-09-21 13:54:28 -04:00
< button type = " button " class = " apply-filters button " >< ? php _e ( 'Apply Filters' ); ?> <span></span></button>
< button type = " button " class = " clear-filters button " aria - label = " <?php esc_attr_e( 'Clear current filters' ); ?> " >< ? php _e ( 'Clear' ); ?> </button>
2014-07-17 23:40:16 -04:00
</ div >
2014-03-20 00:20:15 -04:00
< ? php
2020-05-14 08:50:08 -04:00
// Use the core list, rather than the .org API, due to inconsistencies
// and to ensure tags are translated.
$feature_list = get_theme_feature_list ( false );
2014-03-20 00:20:15 -04:00
foreach ( $feature_list as $feature_name => $features ) {
2015-10-19 18:04:25 -04:00
echo '<fieldset class="filter-group">' ;
2014-03-20 00:20:15 -04:00
$feature_name = esc_html ( $feature_name );
2015-10-19 18:04:25 -04:00
echo '<legend>' . $feature_name . '</legend>' ;
echo '<div class="filter-group-feature">' ;
2014-03-20 00:20:15 -04:00
foreach ( $features as $feature => $feature_name ) {
$feature = esc_attr ( $feature );
2015-10-19 18:04:25 -04:00
echo '<input type="checkbox" id="filter-id-' . $feature . '" value="' . $feature . '" /> ' ;
2018-01-15 14:27:53 -05:00
echo '<label for="filter-id-' . $feature . '">' . $feature_name . '</label>' ;
2014-03-20 00:20:15 -04:00
}
echo '</div>' ;
2015-10-19 18:04:25 -04:00
echo '</fieldset>' ;
2014-03-20 00:20:15 -04:00
}
?>
2016-09-21 13:54:28 -04:00
< div class = " buttons " >
< button type = " button " class = " apply-filters button " >< ? php _e ( 'Apply Filters' ); ?> <span></span></button>
< button type = " button " class = " clear-filters button " aria - label = " <?php esc_attr_e( 'Clear current filters' ); ?> " >< ? php _e ( 'Clear' ); ?> </button>
</ div >
2014-08-25 11:58:15 -04:00
< div class = " filtered-by " >
2014-04-01 18:20:14 -04:00
< span >< ? php _e ( 'Filtering by:' ); ?> </span>
< div class = " tags " ></ div >
2016-09-21 13:54:28 -04:00
< button type = " button " class = " button-link edit-filters " >< ? php _e ( 'Edit Filters' ); ?> </button>
2014-04-01 18:20:14 -04:00
</ div >
2014-03-11 03:47:15 -04:00
</ div >
</ div >
2016-06-17 16:47:28 -04:00
< h2 class = " screen-reader-text hide-if-no-js " >< ? php _e ( 'Themes list' ); ?> </h2>
2015-04-02 22:32:28 -04:00
< div class = " theme-browser content-filterable " ></ div >
2014-04-07 23:57:15 -04:00
< div class = " theme-install-overlay wp-full-overlay expanded " ></ div >
2015-04-02 22:32:28 -04:00
2017-10-16 14:14:48 -04:00
< p class = " no-themes " >< ? php _e ( 'No themes found. Try a different search.' ); ?> </p>
2014-03-11 03:47:15 -04:00
< span class = " spinner " ></ span >
2013-11-23 17:37:10 -05:00
< ? php
2014-03-11 03:47:15 -04:00
if ( $tab ) {
2014-11-30 06:42:24 -05:00
/**
* Fires at the top of each of the tabs on the Install Themes page .
*
* The dynamic portion of the hook name , `$tab` , refers to the current
2017-08-22 07:52:48 -04:00
* theme installation tab . Possible values are 'dashboard' , 'search' , 'upload' ,
2014-11-30 06:42:24 -05:00
* 'featured' , 'new' , or 'updated' .
*
* @ since 2.8 . 0
*
* @ param int $paged Number of the current page of results being viewed .
*/
2014-03-11 03:47:15 -04:00
do_action ( " install_themes_ { $tab } " , $paged );
}
2013-11-23 17:37:10 -05:00
?>
2009-02-11 18:10:11 -05:00
</ div >
2014-03-11 03:47:15 -04:00
< script id = " tmpl-theme " type = " text/template " >
< # if ( data.screenshot_url ) { #>
< div class = " theme-screenshot " >
< img src = " { { data.screenshot_url }} " alt = " " />
</ div >
< # } else { #>
< div class = " theme-screenshot blank " ></ div >
< # } #>
< span class = " more-details " >< ? php _ex ( 'Details & Preview' , 'theme' ); ?> </span>
Update/Install: Shiny Updates v2.
Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.
Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.
Built from https://develop.svn.wordpress.org/trunk@37714
git-svn-id: http://core.svn.wordpress.org/trunk@37680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-15 12:37:29 -04:00
< div class = " theme-author " >
< ? php
2019-09-02 20:41:05 -04:00
/* translators: %s: Theme author name. */
Update/Install: Shiny Updates v2.
Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.
Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.
Built from https://develop.svn.wordpress.org/trunk@37714
git-svn-id: http://core.svn.wordpress.org/trunk@37680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-15 12:37:29 -04:00
printf ( __ ( 'By %s' ), '{{ data.author }}' );
?>
</ div >
2014-03-11 03:47:15 -04:00
2017-10-19 14:10:47 -04:00
< div class = " theme-id-container " >
< h3 class = " theme-name " > {{ data . name }} </ h3 >
< div class = " theme-actions " >
< # if ( data.installed ) { #>
2020-05-18 08:32:10 -04:00
< # if ( data.compatible_wp && data.compatible_php ) { #>
< ? php
/* translators: %s: Theme name. */
$aria_label = sprintf ( _x ( 'Activate %s' , 'theme' ), '{{ data.name }}' );
?>
< # if ( data.activate_url ) { #>
< a class = " button button-primary activate " href = " { { data.activate_url }} " aria - label = " <?php echo esc_attr( $aria_label ); ?> " >< ? php _e ( 'Activate' ); ?> </a>
< # } #>
< # if ( data.customize_url ) { #>
< a class = " button load-customize " href = " { { data.customize_url }} " >< ? php _e ( 'Live Preview' ); ?> </a>
< # } else { #>
< button class = " button preview install-theme-preview " >< ? php _e ( 'Preview' ); ?> </button>
< # } #>
2017-10-19 14:10:47 -04:00
< # } else { #>
2020-05-18 08:32:10 -04:00
< ? php
/* translators: %s: Theme name. */
$aria_label = sprintf ( _x ( 'Cannot Activate %s' , 'theme' ), '{{ data.name }}' );
?>
< # if ( data.activate_url ) { #>
< a class = " button button-primary disabled " aria - label = " <?php echo esc_attr( $aria_label ); ?> " >< ? php _ex ( 'Cannot Activate' , 'theme' ); ?> </a>
< # } #>
< # if ( data.customize_url ) { #>
< a class = " button disabled " >< ? php _e ( 'Live Preview' ); ?> </a>
< # } else { #>
< button class = " button disabled " >< ? php _e ( 'Preview' ); ?> </button>
< # } #>
2017-10-19 14:10:47 -04:00
< # } #>
Update/Install: Shiny Updates v2.
Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.
Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.
Built from https://develop.svn.wordpress.org/trunk@37714
git-svn-id: http://core.svn.wordpress.org/trunk@37680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-15 12:37:29 -04:00
< # } else { #>
2020-05-18 12:03:09 -04:00
< # if ( data.compatible_wp && data.compatible_php ) { #>
< ? php
/* translators: %s: Theme name. */
$aria_label = sprintf ( __ ( 'Install %s' ), '{{ data.name }}' );
?>
< a class = " button button-primary theme-install " data - name = " { { data.name }} " data - slug = " { { data.id }} " href = " { { data.install_url }} " aria - label = " <?php echo esc_attr( $aria_label ); ?> " >< ? php _e ( 'Install' ); ?> </a>
< button class = " button preview install-theme-preview " >< ? php _e ( 'Preview' ); ?> </button>
< # } else { #>
< ? php
/* translators: %s: Theme name. */
$aria_label = sprintf ( __ ( 'Cannot Install %s' ), '{{ data.name }}' );
?>
< a class = " button button-primary disabled " data - name = " { { data.name }} " aria - label = " <?php echo esc_attr( $aria_label ); ?> " >< ? php _ex ( 'Cannot Install' , 'theme' ); ?> </a>
< button class = " button disabled " >< ? php _e ( 'Preview' ); ?> </button>
< # } #>
Update/Install: Shiny Updates v2.
Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.
Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.
Built from https://develop.svn.wordpress.org/trunk@37714
git-svn-id: http://core.svn.wordpress.org/trunk@37680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-15 12:37:29 -04:00
< # } #>
2017-10-19 14:10:47 -04:00
</ div >
2014-03-11 03:47:15 -04:00
</ div >
2014-04-07 19:04:15 -04:00
< # if ( data.installed ) { #>
Update/Install: Shiny Updates v2.
Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.
Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.
Built from https://develop.svn.wordpress.org/trunk@37714
git-svn-id: http://core.svn.wordpress.org/trunk@37680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-15 12:37:29 -04:00
< div class = " notice notice-success notice-alt " >< p >< ? php _ex ( 'Installed' , 'theme' ); ?> </p></div>
2014-04-07 19:04:15 -04:00
< # } #>
2014-03-11 03:47:15 -04:00
</ script >
< script id = " tmpl-theme-preview " type = " text/template " >
< div class = " wp-full-overlay-sidebar " >
< div class = " wp-full-overlay-header " >
Update/Install: Shiny Updates v2.
Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.
Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.
Built from https://develop.svn.wordpress.org/trunk@37714
git-svn-id: http://core.svn.wordpress.org/trunk@37680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-15 12:37:29 -04:00
< button class = " close-full-overlay " >< span class = " screen-reader-text " >< ? php _e ( 'Close' ); ?> </span></button>
2018-04-29 13:04:22 -04:00
< button class = " previous-theme " >< span class = " screen-reader-text " >< ? php _e ( 'Previous theme' ); ?> </span></button>
< button class = " next-theme " >< span class = " screen-reader-text " >< ? php _e ( 'Next theme' ); ?> </span></button>
Update/Install: Shiny Updates v2.
Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.
Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.
Built from https://develop.svn.wordpress.org/trunk@37714
git-svn-id: http://core.svn.wordpress.org/trunk@37680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-15 12:37:29 -04:00
< # if ( data.installed ) { #>
2020-05-18 12:03:09 -04:00
< # if ( data.compatible_wp && data.compatible_php ) { #>
< a class = " button button-primary activate " href = " { { data.activate_url }} " >< ? php _e ( 'Activate' ); ?> </a>
< # } else { #>
< a class = " button button-primary disabled " >< ? php _ex ( 'Cannot Activate' , 'theme' ); ?> </a>
< # } #>
Update/Install: Shiny Updates v2.
Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.
Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.
Built from https://develop.svn.wordpress.org/trunk@37714
git-svn-id: http://core.svn.wordpress.org/trunk@37680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-15 12:37:29 -04:00
< # } else { #>
2020-05-18 12:03:09 -04:00
< # if ( data.compatible_wp && data.compatible_php ) { #>
< a href = " { { data.install_url }} " class = " button button-primary theme-install " data - name = " { { data.name }} " data - slug = " { { data.id }} " >< ? php _e ( 'Install' ); ?> </a>
< # } else { #>
< a class = " button button-primary disabled " >< ? php _ex ( 'Cannot Install' , 'theme' ); ?> </a>
< # } #>
Update/Install: Shiny Updates v2.
Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.
Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.
Built from https://develop.svn.wordpress.org/trunk@37714
git-svn-id: http://core.svn.wordpress.org/trunk@37680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-15 12:37:29 -04:00
< # } #>
2014-03-11 03:47:15 -04:00
</ div >
< div class = " wp-full-overlay-sidebar-content " >
< div class = " install-theme-info " >
< h3 class = " theme-name " > {{ data . name }} </ h3 >
Update/Install: Shiny Updates v2.
Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.
Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.
Built from https://develop.svn.wordpress.org/trunk@37714
git-svn-id: http://core.svn.wordpress.org/trunk@37680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-15 12:37:29 -04:00
< span class = " theme-by " >
< ? php
2019-09-02 20:41:05 -04:00
/* translators: %s: Theme author name. */
Update/Install: Shiny Updates v2.
Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.
Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.
Built from https://develop.svn.wordpress.org/trunk@37714
git-svn-id: http://core.svn.wordpress.org/trunk@37680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-15 12:37:29 -04:00
printf ( __ ( 'By %s' ), '{{ data.author }}' );
?>
</ span >
< img class = " theme-screenshot " src = " { { data.screenshot_url }} " alt = " " />
< div class = " theme-details " >
< # if ( data.rating ) { #>
< div class = " theme-rating " >
{{{ data . stars }}}
2019-03-21 18:02:51 -04:00
< a class = " num-ratings " href = " { { data.reviews_url }} " >
< ? php
2019-09-02 20:41:05 -04:00
/* translators: %s: Number of ratings. */
2019-03-21 18:02:51 -04:00
echo sprintf ( __ ( '(%s ratings)' ), '{{ data.num_ratings }}' );
?>
</ a >
Update/Install: Shiny Updates v2.
Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.
Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.
Built from https://develop.svn.wordpress.org/trunk@37714
git-svn-id: http://core.svn.wordpress.org/trunk@37680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-15 12:37:29 -04:00
</ div >
< # } else { #>
< span class = " no-rating " >< ? php _e ( 'This theme has not been rated yet.' ); ?> </span>
< # } #>
< div class = " theme-version " >
< ? php
2019-09-02 20:41:05 -04:00
/* translators: %s: Theme version. */
Update/Install: Shiny Updates v2.
Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.
Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.
Built from https://develop.svn.wordpress.org/trunk@37714
git-svn-id: http://core.svn.wordpress.org/trunk@37680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-15 12:37:29 -04:00
printf ( __ ( 'Version: %s' ), '{{ data.version }}' );
?>
2015-01-07 18:17:22 -05:00
</ div >
Update/Install: Shiny Updates v2.
Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.
Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.
Built from https://develop.svn.wordpress.org/trunk@37714
git-svn-id: http://core.svn.wordpress.org/trunk@37680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-15 12:37:29 -04:00
< div class = " theme-description " > {{{ data . description }}} </ div >
</ div >
2014-03-11 03:47:15 -04:00
</ div >
</ div >
Update/Install: Shiny Updates v2.
Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.
Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.
Built from https://develop.svn.wordpress.org/trunk@37714
git-svn-id: http://core.svn.wordpress.org/trunk@37680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-15 12:37:29 -04:00
< div class = " wp-full-overlay-footer " >
2016-09-28 15:54:28 -04:00
< button type = " button " class = " collapse-sidebar button " aria - expanded = " true " aria - label = " <?php esc_attr_e( 'Collapse Sidebar' ); ?> " >
Update/Install: Shiny Updates v2.
Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.
Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.
Built from https://develop.svn.wordpress.org/trunk@37714
git-svn-id: http://core.svn.wordpress.org/trunk@37680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-15 12:37:29 -04:00
< span class = " collapse-sidebar-arrow " ></ span >
< span class = " collapse-sidebar-label " >< ? php _e ( 'Collapse' ); ?> </span>
</ button >
2016-03-05 17:07:25 -05:00
</ div >
2014-03-11 03:47:15 -04:00
</ div >
Update/Install: Shiny Updates v2.
Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.
Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.
Built from https://develop.svn.wordpress.org/trunk@37714
git-svn-id: http://core.svn.wordpress.org/trunk@37680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-15 12:37:29 -04:00
< div class = " wp-full-overlay-main " >
< iframe src = " { { data.preview_url }} " title = " <?php esc_attr_e( 'Preview' ); ?> " ></ iframe >
2014-03-11 03:47:15 -04:00
</ div >
</ script >
2009-02-11 18:10:11 -05:00
< ? php
Update/Install: Shiny Updates v2.
Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.
Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.
Built from https://develop.svn.wordpress.org/trunk@37714
git-svn-id: http://core.svn.wordpress.org/trunk@37680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-15 12:37:29 -04:00
wp_print_request_filesystem_credentials_modal ();
wp_print_admin_notice_templates ();
2020-02-06 01:33:11 -05:00
require_once ABSPATH . 'wp-admin/admin-footer.php' ;