Skip to content

Commit

Permalink
Fix personal config page style
Browse files Browse the repository at this point in the history
  • Loading branch information
kookxiang committed Feb 11, 2016
1 parent 394b93b commit 26745ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion admin/profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@

<section id="change-password">
<h3><?php _e('密码修改'); ?></h3>
<?php Typecho_Widget::widget('Widget_Users_Profile')->personalFormList(); ?>
<?php Typecho_Widget::widget('Widget_Users_Profile')->passwordForm()->render(); ?>
</section>

<br>
<section id="personal-form-list">
<?php Typecho_Widget::widget('Widget_Users_Profile')->personalFormList(); ?>
</section>
</div>
</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion var/Widget/Users/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ public function personalForm($pluginName, $className, $pluginFileName, &$group)

$form->addItem(new Typecho_Widget_Helper_Form_Element_Hidden('do', NULL, 'personal'));
$form->addItem(new Typecho_Widget_Helper_Form_Element_Hidden('plugin', NULL, $pluginName));
$form->addItem(new Typecho_Widget_Helper_Form_Element_Submit(NULL, NULL, _t('保存设置')));
$submit = new Typecho_Widget_Helper_Form_Element_Submit('submit', NULL, _t('保存设置'));
$submit->input->setAttribute('class', 'btn primary');
$form->addItem($submit);
return $form;
}

Expand Down

0 comments on commit 26745ed

Please sign in to comment.