本文整理汇总了PHP中Typecho_Widget_Helper_Form::render方法的典型用法代码示例。如果您正苦于以下问题:PHP Typecho_Widget_Helper_Form::render方法的具体用法?PHP Typecho_Widget_Helper_Form::render怎么用?PHP Typecho_Widget_Helper_Form::render使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Typecho_Widget_Helper_Form
的用法示例。
在下文中一共展示了Typecho_Widget_Helper_Form::render方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
}
}
$submit = new Typecho_Widget_Helper_Form_Element_Submit(NULL, NULL, _t('保存设置'));
$submit->input->setAttribute('class', 'btn primary');
$form->addItem($submit);
$form->render();
} else {
$form = new Typecho_Widget_Helper_Form(Helper::url('ThemeShow/config.php'), Typecho_Widget_Helper_Form::POST_METHOD);
Typecho_Widget::widget('Widget_Themes_List')->to($themes);
$availableThemes = array();
while ($themes->next()) {
$availableThemes[$themes->name] = $themes->title;
}
$themeSel = new Typecho_Widget_Helper_Form_Element_Select('theme', $availableThemes, $options->theme, '主题名称');
$form->addInput($themeSel);
$submit = new Typecho_Widget_Helper_Form_Element_Submit(NULL, NULL, _t('配置此主题'));
$submit->input->setAttribute('class', 'btn primary');
$form->addItem($submit);
$form->render();
}
?>
</div>
</div>
</div>
</div>
<?php
include 'copyright.php';
include 'common-js.php';
include 'form-js.php';
include 'footer.php';