'themefurnace',
);
// Set the $request array.
$request = array(
'body' => array(
'action' => 'query_themes',
'request' => serialize( (object)$args )
)
);
$themes = mediaphase_get_themes( $request );
$active_theme = wp_get_theme()->get( 'Name' );
// For currently active theme.
foreach ( $themes->themes as $theme ) {
if ( $active_theme == $theme->name ) {
?>
name . ':' . __( 'Current theme', 'mediaphase' ); ?>
Customize
$theme->slug,
);
// Set the $request array.
$request = array(
'body' => array(
'action' => 'theme_information',
'request' => serialize( (object)$args )
)
);
$theme_details = mediaphase_get_themes( $request );
?>
name; ?>
slug )->exists() ) { ?>
' . number_format( $theme_details->downloaded ) . ' Downloads';
// Set the install url for the theme.
$install_url = add_query_arg( array(
'action' => 'install-theme',
'theme' => $theme->slug,
), self_admin_url( 'update.php' ) );
?>