当前位置: 首页>>代码示例>>PHP>>正文


PHP theme::option_form_name方法代码示例

本文整理汇总了PHP中theme::option_form_name方法的典型用法代码示例。如果您正苦于以下问题:PHP theme::option_form_name方法的具体用法?PHP theme::option_form_name怎么用?PHP theme::option_form_name使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在theme的用法示例。


在下文中一共展示了theme::option_form_name方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: printf

					<div class="ui toggle checkbox">
						<?php 
printf('<input type="checkbox" value="1" name="%1$s" %2$s>', theme::option_form_name('dev_notes'), theme::get_option('dev_notes') ? 'checked' : '');
?>
						<label>Enable Developer Notes</label>
					</div>
				</div>
				<div class="ui top attached secondary inverted segment">
					
					<h4 class="ui center aligned header">WordPress Theme Editor</h4>
				</div>
				<div class="ui bottom attached stacked segment">
					<strong>WARNING:</strong> Editing a theme via WordPress's file editor is <strong>very dangerious!</strong>
					<br><br>
					Modifying a theme's files without knowing the proper programming languages can often lead to your site going down.
					If you <i>must</i> edit this theme's files, it is highly recommended that you use an IDE.
					<br><br>
					<div class="field">
						<div class="ui toggle checkbox">
							<?php 
printf('<input type="checkbox" value="1" name="%1$s" %2$s>', theme::option_form_name('theme_editor'), theme::get_option('theme_editor') ? 'checked' : '');
?>
							<label>Allow Theme Editor</label>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
开发者ID:jw-psychopomp,项目名称:NewOrleansGlassworks-wordpress,代码行数:30,代码来源:theme-options-general.php

示例2: printf

<div class="ui three column doubling grid">
	<div class="column">
		<h4 class="ui center aligned top attached black inverted header">Mobile Meta</h4>
		<div class="ui bottom attached secondary segment">
			<div class="ui form">
				<div class="inline field">
					<div class="ui toggle checkbox">
						<?php 
printf('<input type="checkbox" value="1" name="%1$s" %2$s>', theme::option_form_name('mobile_meta'), theme::get_option('mobile_meta') ? 'checked' : '');
?>
						<label>Use Mobile Meta</label>
					</div>
				</div>
				<div class="field">
					<label>Recommended Mobile Screen Width (without the "px")</label>
					<?php 
printf('<input type="text" placeholder="450" name="%1$s" value="%2$s">', theme::option_form_name('mobile_size'), theme::get_option('mobile_size'));
?>
				</div>
			</div>
		</div>
	</div>
</div>
开发者ID:nemesiscodex,项目名称:Semantic-UI-WordPress,代码行数:23,代码来源:theme-options-meta-tags.php


注:本文中的theme::option_form_name方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。