當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。