本文整理匯總了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';