upload.php 853 B

123456789101112131415161718192021222324
  1. <?php
  2. use yii\widgets\ActiveForm;
  3. /* @var $this yii\web\View */
  4. \common\modules\theme\backend\assets\ThemeAsset::register($this);
  5. $this->title = '添加主题';
  6. $this->params['breadcrumbs'][] = $this->title;
  7. ?>
  8. <div class="upload-theme row">
  9. <p class="install-help">如果您有.zip格式的主题,可以在这里通过上传的方式安装。</p>
  10. <p class="install-help">请确保压缩包名和主题名保持一致。比如:basic.zip里边是basic主题</p>
  11. <?php $form = ActiveForm::begin(["options"=>["class"=>"wp-upload-form clearfix","enctype"=>"multipart/form-data"]])?>
  12. <?php echo $form->field($model, "themezip",["options"=>["class"=>"pull-left"]])->fileInput()->label(false);?>
  13. <input type="submit"
  14. name="install-theme-submit" id="install-theme-submit" class="button"
  15. value="现在安装" />
  16. <?php ActiveForm::end();?>
  17. </div>