/**
  * Update the theme from uploaded zip file
  */
 public function zip_theme_update()
 {
     require_once WOLF_FRAMEWORK_DIR . '/classes/class-update-zip.php';
     if (class_exists('Wolf_Update_Zip')) {
         $wolf_do_theme_update_zip = new Wolf_Update_Zip();
         $wolf_do_theme_update_zip->do_update_zip();
     }
 }
示例#2
0
		<?php 
        // Child
        ?>
		<p><?php 
        _e('If you didn\'t make any changes to the theme files, you are free to overwrite them with the new files without risk of losing your theme settings.', 'wolf');
        ?>
</p>
		<p><?php 
        printf(__('If you want to edit the theme files it is recommended to create a <a href="%s" target="_blank">child theme</a>.', 'wolf'), 'http://codex.wordpress.org/Child_Themes');
        ?>
</p>
		<br>
		<?php 
        if (class_exists('Wolf_Update_Zip')) {
            $wolf_do_theme_update_zip = new Wolf_Update_Zip();
            $wolf_do_theme_update_zip->update_zip_form();
        }
        ?>

 		<?php 
        // FTP instruction
        ?>
		<h4><?php 
        _e('Update through FTP', 'wolf');
        ?>
</h4>
		<p><?php 
        printf(__('Extract the zip\'s contents, find the <strong>%1$s</strong> theme folder, and upload the new files using your FTP client to the %2$s folder. This will overwrite the old files.', 'wolf'), $parent_theme, '<code>' . $content_folder . '</code>');
        ?>
</p>