-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17da016
commit 0718f27
Showing
6 changed files
with
451 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
runway-framework/framework/includes/theme-updater/bulk_extension_upgrader_skin.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php | ||
|
||
class Bulk_Extension_Upgrader_Skin extends Bulk_Upgrader_Skin { | ||
|
||
public $theme_info = array(); // Theme_Upgrader::bulk() will fill this in. | ||
|
||
public function __construct( $args = array() ) { | ||
|
||
parent::__construct( $args ); | ||
|
||
} | ||
|
||
public function add_strings() { | ||
|
||
parent::add_strings(); | ||
$this->upgrader->strings['skin_before_update_header'] = __( 'Updating Extension %1$s (%2$d/%3$d)', 'runway' ); | ||
|
||
} | ||
|
||
public function before( $title = '' ) { | ||
|
||
parent::before( $this->theme_info->display( 'Name' ) ); | ||
|
||
} | ||
|
||
public function after( $title = '' ) { | ||
|
||
parent::after( $this->theme_info->display( 'Name' ) ); | ||
|
||
} | ||
|
||
public function bulk_footer() { | ||
|
||
parent::bulk_footer(); | ||
$update_actions = array( | ||
'themes_page' => '<a href="' . self_admin_url( 'themes.php' ) . '" title="' . esc_attr__( 'Go to themes page', 'runway' ) . | ||
'" target="_parent">' . __( 'Return to Themes page', 'runway' ) . '</a>', | ||
'updates_page' => '<a href="' . self_admin_url( 'update-core.php' ) . '" title="' . esc_attr__( 'Go to WordPress Updates page', 'runway ') . | ||
'" target="_parent">' . __('Return to WordPress Updates', 'runway') . '</a>' | ||
); | ||
if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) ) { | ||
unset( $update_actions['themes_page'] ); | ||
} | ||
|
||
$update_actions = apply_filters( 'update_bulk_theme_complete_actions', $update_actions, $this->theme_info ); | ||
if ( ! empty( $update_actions ) ) { | ||
$this->feedback( implode( ' | ', (array) $update_actions ) ); | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
<?php | ||
|
||
class Theme_Updater_Object extends Runway_Object { | ||
|
||
} | ||
?> |
Oops, something went wrong.