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


PHP ThemeHelper::esc_attr方法代码示例

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


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

示例1: esc_html_e

</h5>
					<span class="to-legend"><?php 
esc_html_e('Select one of the available posts types and enter additional details about it (if needed).', THEME_DOMAIN);
?>
</span>
					<div class="to-clear-fix">
						<select name="<?php 
ThemeHelper::getFormName('post_type');
?>
" id="<?php 
ThemeHelper::getFormName('post_type');
?>
">
<?php 
foreach ($this->data['dictionary']['postType'] as $index => $value) {
    echo '<option value="' . ThemeHelper::esc_attr($index) . '" ' . ThemeHelper::selectedIf($this->data['option']['post_type'], $index, false) . '>' . ThemeHelper::esc_html($value[0]) . '</option>';
}
?>
						</select>
					</div>
				</li>
				<li>
					<h5><?php 
esc_html_e('Preambule', THEME_DOMAIN);
?>
</h5>
					<span class="to-legend"><?php 
esc_html_e('Enter preambule (the top part of the post, e.g: video, audio, image slider etc.) of the post. You can use shortcodes in this field.', THEME_DOMAIN);
?>
</span>
					<div class="to-clear-fix">
开发者ID:phanhoanglong2610,项目名称:anc_gvn,代码行数:31,代码来源:meta_box_post.php

示例2: esc_html_e

		<ul class="to-form-field-list">
			<li>
				<h5><?php 
esc_html_e('404 error page', THEME_DOMAIN);
?>
</h5>
				<span class="to-legend"><?php 
esc_html_e('Get settings for 404 page from selected page.', THEME_DOMAIN);
?>
</span>
				<div class="to-clear-fix">
					<select name="<?php 
ThemeHelper::getFormName('page_404_page_id');
?>
" id="<?php 
ThemeHelper::getFormName('page_404_page_id');
?>
">
<?php 
foreach ($this->data['dictionary']['page'] as $value) {
    echo '<option value="' . ThemeHelper::esc_attr($value->ID) . '" ' . ThemeHelper::selectedIf($this->data['option']['page_404_page_id'], $value->ID, false) . '>' . ThemeHelper::esc_html($value->post_title) . '</option>';
}
?>
					</select>
				</div>
			</li>
		</ul>
开发者ID:slavai,项目名称:sadick,代码行数:27,代码来源:general_page.php

示例3: esc_html_e

esc_html_e('Line height', THEME_DOMAIN);
?>
</h5>
				<span class="to-legend"><?php 
esc_html_e('Line height with selected unit.', THEME_DOMAIN);
?>
</span>
				<div>
					<input type="text" name="<?php 
ThemeHelper::getFormName('font_h3_line_height');
?>
" id="<?php 
ThemeHelper::getFormName('font_h3_line_height');
?>
" value="<?php 
echo ThemeHelper::esc_attr($this->data['option']['font_h3_line_height']);
?>
" maxlength="255"/>
				</div>
			</li>
		</ul>

		<script type="text/javascript">
			jQuery(document).ready(function($)
			{
				var element=$('.to').themeOptionElement();;
				element.createGoogleFontAutocomplete('#<?php 
ThemeHelper::getFormName('font_h3_family_google');
?>
');
				element.createSlider('#<?php 
开发者ID:slavai,项目名称:sadick,代码行数:31,代码来源:font_header_h3.php

示例4: esc_html_e

		<ul class="to-form-field-list">
			<li>
				<h5><?php 
esc_html_e('Automatic excerpt length', THEME_DOMAIN);
?>
</h5>
				<span class="to-legend"><?php 
esc_html_e('Number of words in automatic excerpt.', THEME_DOMAIN);
?>
</span>
				<div>
					<input type="text" name="<?php 
ThemeHelper::getFormName('comment_automatic_excerpt_length');
?>
" id="<?php 
ThemeHelper::getFormName('comment_automatic_excerpt_length');
?>
" value="<?php 
echo ThemeHelper::esc_attr($this->data['option']['comment_automatic_excerpt_length']);
?>
" maxlength="3"/>
				</div>
			</li>
		</ul>
开发者ID:phanhoanglong2610,项目名称:anc_gvn,代码行数:24,代码来源:general_comment_list.php

示例5: bloginfo

<?php 
}
?>
				<link rel="pingback" href="<?php 
bloginfo('pingback_url');
?>
" />
				<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php 
bloginfo('rss2_url');
?>
" />
<?php 
if ($Validation->isNotEmpty(ThemeOption::getOption('favicon_url'))) {
    ?>
				<link rel="shortcut icon" href="<?php 
    echo ThemeHelper::esc_attr(ThemeOption::getOption('favicon_url'));
    ?>
" />
<?php 
}
wp_head();
?>
			</head>

			<body <?php 
body_class($Theme->getFooterStickyClass());
?>
>
				
				<?php 
echo $Menu->create();
开发者ID:phanhoanglong2610,项目名称:anc_gvn,代码行数:31,代码来源:header.php

示例6: esc_html_e

?>
</span>
					<input type="text" name="<?php 
ThemeHelper::getFormName('fancybox_image_speed_next');
?>
" id="<?php 
ThemeHelper::getFormName('fancybox_image_speed_next');
?>
" value="<?php 
echo ThemeHelper::esc_attr($this->data['option']['fancybox_image_speed_next']);
?>
" maxlength="5"/>
				</div>			
				<div>
					<span class="to-legend-field"><?php 
esc_html_e('Previous:', THEME_DOMAIN);
?>
</span>
					<input type="text" name="<?php 
ThemeHelper::getFormName('fancybox_image_speed_previous');
?>
" id="<?php 
ThemeHelper::getFormName('fancybox_image_speed_previous');
?>
" value="<?php 
echo ThemeHelper::esc_attr($this->data['option']['fancybox_image_speed_previous']);
?>
" maxlength="5"/>
				</div>			
			</li>
		</ul>
开发者ID:phanhoanglong2610,项目名称:anc_gvn,代码行数:31,代码来源:plugin_fancybox_image.php

示例7: esc_html_e

esc_html_e('Footer layout', THEME_DOMAIN);
?>
</h5>
					<span class="to-legend"><?php 
esc_html_e('Select layout of widgets in footer. This option works only if this widget area is selected as sidebar in footer.', THEME_DOMAIN);
?>
</span>
					<div class="to-clear-fix">
						<select name="<?php 
ThemeHelper::getFormName('widget_area_footer_layout');
?>
" id="<?php 
ThemeHelper::getFormName('widget_area_footer_layout');
?>
">
<?php 
foreach ($this->data['dictionary']['layout'] as $index => $value) {
    echo '<option value="' . ThemeHelper::esc_attr($index) . '" ' . ThemeHelper::selectedIf($this->data['option']['widget_area_footer_layout'], $index, false) . '>' . ThemeHelper::esc_html($index) . '</option>';
}
?>
						</select>
					</div>
				</li>
			</ul>
		</div>
		<script type="text/javascript">
			jQuery(document).ready(function($)
			{	
				$('.to').themeOptionElement({init:true});
			});
		</script>
开发者ID:slavai,项目名称:sadick,代码行数:31,代码来源:meta_box_widget_area.php

示例8: foreach

?>
					</span>
					<div class="to-checkbox-button">
<?php 
$i = 0;
foreach ($this->data['dictionary']['postCategory'] as $index => $value) {
    $i++;
    ?>
						<input type="checkbox" name="<?php 
    ThemeHelper::getFormName('post_category[]');
    ?>
" id="<?php 
    ThemeHelper::getFormName('post_category_' . $i);
    ?>
" value="<?php 
    echo ThemeHelper::esc_attr($index);
    ?>
" <?php 
    ThemeHelper::checkedIf($this->data['option']['post_category'], $index);
    ?>
/>
						<label for="<?php 
    ThemeHelper::getFormName('post_category_' . $i);
    ?>
"><?php 
    echo ThemeHelper::esc_html($value);
    ?>
</label>
<?php 
}
?>
开发者ID:phanhoanglong2610,项目名称:anc_gvn,代码行数:31,代码来源:meta_box_page.php

示例9: esc_html_e

					<?php 
esc_html_e('Sets the width and height of the background image.', THEME_DOMAIN);
?>
<br/>
					<?php 
esc_html_e('Sets the width and height of the background image in percent of the parent element.', THEME_DOMAIN);
?>
<br/>
					<?php 
esc_html_e('The first value sets the width, the second value sets the height. If only one value is given, the second is set to "auto".', THEME_DOMAIN);
?>
<br/>
				</span>
				<div>
					<input type="text" value="<?php 
echo ThemeHelper::esc_attr($this->data['option']['header_background_image_size_2']);
?>
" id="<?php 
ThemeHelper::getFormName('header_background_image_size_2');
?>
" name="<?php 
ThemeHelper::getFormName('header_background_image_size_2');
?>
"/>
				</div>
			</li>				
		</ul>
		<script type="text/javascript">
			jQuery(document).ready(function($) 
			{
				var element=$('.to').themeOptionElement();;
开发者ID:slavai,项目名称:sadick,代码行数:31,代码来源:general_main.php

示例10: esc_html_e

esc_html_e('Favicon', THEME_DOMAIN);
?>
</h5>
				<span class="to-legend"><?php 
esc_html_e('Enter URL of favicon.', THEME_DOMAIN);
?>
<br/></span>
				<div class="to-clear-fix">
					<input type="text" name="<?php 
ThemeHelper::getFormName('favicon_url');
?>
" id="<?php 
ThemeHelper::getFormName('favicon_url');
?>
" class="to-float-left" value="<?php 
echo ThemeHelper::esc_attr($this->data['option']['favicon_url']);
?>
" />
					<input type="button" name="<?php 
ThemeHelper::getFormName('favicon_url_browse');
?>
" id="<?php 
ThemeHelper::getFormName('favicon_url_browse');
?>
" class="to-button-browse to-button" value="<?php 
esc_attr_e('Browse', THEME_DOMAIN);
?>
"/>
				</div>
			</li>
		</ul>
开发者ID:phanhoanglong2610,项目名称:anc_gvn,代码行数:31,代码来源:general_favicon.php

示例11: esc_html_e

</h5>
				<span class="to-legend"><?php 
esc_html_e('Select top menu.', THEME_DOMAIN);
?>
</span>
				<div class="to-clear-fix">
					<select name="<?php 
ThemeHelper::getFormName('menu_top_woocommerce');
?>
" id="<?php 
ThemeHelper::getFormName('menu_top_woocommerce');
?>
">
<?php 
foreach ($this->data['dictionary']['menu-1'] as $index => $value) {
    echo '<option value="' . ThemeHelper::esc_attr($index) . '" ' . ThemeHelper::selectedIf($this->data['option']['menu_top_woocommerce'], $index, false) . '>' . ThemeHelper::esc_html($value[0]) . '</option>';
}
?>
					</select>
				</div>
			</li>				
		</ul>
		<script type="text/javascript">
			jQuery(document).ready(function($) 
			{
				var element=$('.to').themeOptionElement();;
				element.bindBrowseMedia('#<?php 
ThemeHelper::getFormName('header_background_image_src_woocommerce_browse');
?>
');
			});
开发者ID:phanhoanglong2610,项目名称:anc_gvn,代码行数:31,代码来源:plugin_woocommerce.php

示例12: esc_html_e

echo ThemeHelper::esc_attr($this->data['option']['go_to_page_top_animation_duration']);
?>
" maxlength="5"/>
				</div>
			</li>
			<li>
				<h5><?php 
esc_html_e('Easing', THEME_DOMAIN);
?>
</h5>
				<span class="to-legend"><?php 
esc_html_e('Easing method of animation.', THEME_DOMAIN);
?>
</span>
				<div class="to-clear-fix">
					<select name="<?php 
ThemeHelper::getFormName('go_to_page_top_animation_easing');
?>
" id="<?php 
ThemeHelper::getFormName('go_to_page_top_animation_easing');
?>
">
<?php 
foreach ($this->data['dictionary']['easingType'] as $index => $value) {
    echo '<option value="' . ThemeHelper::esc_attr($index) . '" ' . ThemeHelper::selectedIf($this->data['option']['go_to_page_top_animation_easing'], $index, false) . '>' . ThemeHelper::esc_html($value[0]) . '</option>';
}
?>
					</select>
				</div>
			</li>
		</ul>
开发者ID:slavai,项目名称:sadick,代码行数:31,代码来源:general_go_top_top.php

示例13: esc_html_e

?>
</label>
					</div>
				</li>
				<li>
					<h5><?php 
esc_html_e('Page background color', THEME_DOMAIN);
?>
</h5>
					<span class="to-legend"><?php 
esc_html_e('Page background color in HEX.', THEME_DOMAIN);
?>
</span>
					<div>
						<input type="text" class="to-color-picker" value="<?php 
echo ThemeHelper::esc_attr($this->data['option']['page_background_color']);
?>
" id="<?php 
ThemeHelper::getFormName('page_background_color');
?>
" name="<?php 
ThemeHelper::getFormName('page_background_color');
?>
" maxlength="11"/>
					</div>
				</li>	
			</ul>
		</div>
		<script type="text/javascript">
			jQuery(document).ready(function($)
			{	
开发者ID:slavai,项目名称:sadick,代码行数:31,代码来源:meta_box_general.php

示例14: esc_html_e

?>
"/>
					</div>
				</li>
				<li>
					<h5><?php 
esc_html_e('Subheader text color', THEME_DOMAIN);
?>
</h5>
					<span class="to-legend"><?php 
esc_html_e('Subheader text color in HEX.', THEME_DOMAIN);
?>
</span>
					<div>
						<input type="text" class="to-color-picker" value="<?php 
echo ThemeHelper::esc_attr($this->data['option']['header_subheader_text_color']);
?>
" id="<?php 
ThemeHelper::getFormName('header_subheader_text_color');
?>
" name="<?php 
ThemeHelper::getFormName('header_subheader_text_color');
?>
" maxlength="11"/>
					</div>
				</li>				
			</ul>
		</div>
		<script type="text/javascript">
			jQuery(document).ready(function($)
			{	
开发者ID:annguyenit,项目名称:HawaiiEducation,代码行数:31,代码来源:meta_box_header.php

示例15: foreach

?>
</span>
				<div class="to-checkbox-button">
<?php 
$i = 0;
foreach ($this->data['dictionary']['user'] as $value) {
    $i++;
    ?>
					<input type="checkbox" name="<?php 
    ThemeHelper::getFormName('maintenance_mode_user_id[]');
    ?>
" id="<?php 
    ThemeHelper::getFormName('maintenance_mode_user_id_' . $i);
    ?>
" value="<?php 
    echo ThemeHelper::esc_attr($value->data->ID);
    ?>
" <?php 
    ThemeHelper::checkedIf($this->data['option']['maintenance_mode_user_id'], $value->data->ID);
    ?>
/>
					<label for="<?php 
    ThemeHelper::getFormName('maintenance_mode_user_id_' . $i);
    ?>
"><?php 
    echo ThemeHelper::esc_html($value->data->display_name);
    ?>
</label>
<?php 
}
?>
开发者ID:slavai,项目名称:sadick,代码行数:31,代码来源:plugin_maintenance_mode.php


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