本文整理汇总了PHP中echo_h函数的典型用法代码示例。如果您正苦于以下问题:PHP echo_h函数的具体用法?PHP echo_h怎么用?PHP echo_h使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了echo_h函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: echo_h
<?php
if (!isset($id)) {
$id = 'ngg-image-' . $index;
}
?>
<div id="<?php
echo_h($id);
?>
" class="<?php
echo_h($class);
?>
" <?php
if (isset($image->style)) {
echo $image->style;
}
?>
>
示例2: foreach
<?php
foreach ($size_list as $size) {
?>
<option
<?php
selected($size, $size);
?>
value="<?php
echo_h($size);
?>
"><?php
echo_h($size);
?>
</option>
<?php
}
?>
</select>
<?php
} else {
echo "<i>No default sizes present.</i>";
}
?>
<p class="description"><?php
echo_h($size_list_help);
?>
</p>
</td>
</tr>
</table>
示例3: echo_h
<?php
echo_h($mediarss_activated_no);
?>
</label>
<input
id='mediarss_activated_no'
type="radio"
name="misc_settings[useMediaRSS]"
value="0"
<?php
checked(FALSE, $mediarss_activated ? TRUE : FALSE);
?>
/>
<p class="description">
<?php
echo_h($mediarss_activated_help);
?>
</p>
</td>
</tr>
<tr>
<td class='column1'>
<?php
echo $cache_label;
?>
</td>
<td>
<input type='submit'
name="action_proxy"
class="button delete button-secondary"
data-proxy-value="cache"
示例4: esc_attr
?>
' class='<?php
print !empty($hidden) ? 'hidden' : '';
?>
'>
<td>
<label for='<?php
echo esc_attr($display_type_name);
?>
_alt_view_link_text' class='tooltip'>
<?php
echo_h($alt_view_link_text_label);
?>
<span>
<?php
echo_h($tooltip);
?>
</span>
</label>
</td>
<td>
<input type='text'
id='<?php
echo esc_attr($display_type_name);
?>
_alt_view_link_text'
name='<?php
echo esc_attr($display_type_name);
?>
[alternative_view_link_text]'
class='alt_view_link_text'
示例5: esc_attr
<tr>
<td class="column1">
<label for="watermark_image_url"
title="<?php
echo esc_attr($watermark_image_text);
?>
"
class="tooltip">
<?php
echo_h($image_url_label);
?>
</label>
</td>
<td>
<input
type="text"
name="watermark_options[wmPath]"
id="watermark_image_url"
value="<?php
echo esc_attr($watermark_image_url);
?>
"
/>
</td>
</tr>
示例6: esc_attr
<tr>
<td>
<label for='<?php
echo esc_attr($display_type_name);
?>
_gallery_width'
class="tooltip"
title="<?php
echo $gallery_dimensions_tooltip;
?>
">
<?php
echo_h($gallery_dimensions_label);
?>
</label>
</td>
<td>
<label for='<?php
echo esc_attr($display_type_name);
?>
_gallery_width'>w</label>
<input type='number'
id='<?php
echo esc_attr($display_type_name);
?>
_gallery_width'
name='<?php
echo esc_attr($display_type_name);
?>
[gallery_width]'
class='nextgen_settings_field_width_and_height'
示例7: echo_h
?>
</span> <span class="nextgen_logo_sub"><?php
echo_h('Gallery');
?>
</span></div>
<ul>
<?php
foreach ($tabs as $id => $tab_params) {
?>
<li>
<a href='#<?php
echo esc_attr($id);
?>
'>
<?php
echo_h($tab_params['title']);
?>
</a>
</li>
<?php
}
?>
</ul>
<?php
reset($tabs);
foreach ($tabs as $id => $tab_params) {
?>
<div class="main_menu_tab" id="<?php
echo esc_attr($id);
?>
"><?php
示例8: echo_h
?>
<?php
echo $msg;
?>
<?php
}
?>
<?php
}
?>
<?php
if ($success and empty($errors)) {
?>
<div class='success updated'>
<p><?php
echo_h($success);
?>
</p>
</div>
<?php
}
?>
<form method="POST" action="<?php
echo nextgen_esc_url($_SERVER['REQUEST_URI']);
?>
">
<?php
if (isset($form_header)) {
?>
<?php
echo $form_header . "\n";
示例9: trim
$thumb_url = $storage->get_thumb_url($image);
$thumb_size = $storage->get_thumb_dimensions($image);
$width = $thumb_size['width'];
$height = $thumb_size['height'];
//$image_title = $image->description;
$image_title = trim($image->description);
if ($image_title == null) {
$image_title = $image->alttext;
}
//if (strlen($image_title) >= 25)
//$image_title = substr_replace($image_title, '...', 15, -10);
if (strlen($image_title) >= 50) {
$image_title = substr_replace($image_title, '...', 35, -10);
}
?>
<track>
<title><![CDATA[<?php
echo_h($image_title);
?>
]]></title>
<location><![CDATA[<?php
echo esc_url($image_url);
?>
]]></location>
</track>
<?php
}
?>
</trackList>
</playlist>
示例10: esc_attr
<tr>
<td>
<label for='<?php
echo esc_attr($display_type_name);
?>
_image_dimensions'>
<?php
echo_h($dimensions_label);
?>
</label>
</td>
<td>
<label for='<?php
echo esc_attr($display_type_name);
?>
_width'>w</label>
<input type='number'
id='<?php
echo esc_attr($display_type_name);
?>
_width'
name='<?php
echo esc_attr($display_type_name);
?>
[width]'
class='nextgen_settings_field_width_and_height'
placeholder='<?php
_e('Width');
?>
'
min='1'
示例11: esc_attr
<tr>
<td colspan="2">
<a href="#"
id="lightbox_library_advanced_toggle"
data-hidden_label="<?php
echo esc_attr(_('(Show Advanced Settings)'));
?>
"
data-active_label="<?php
echo esc_attr(_('(Hide Advanced Settings)'));
?>
"
data-currently-hidden='true'>
<?php
echo_h(_("(Show Advanced Settings)"));
?>
</a>
</td>
</tr>
<?php
foreach ($adv_fields as $name => $form) {
?>
<tbody class="lightbox_library_advanced_settings hidden" id="lightbox_library_<?php
print $name;
?>
_advanced">
<?php
echo $form;
?>
示例12: esc_attr
?>
<media:thumbnail width="<?php
echo esc_attr($width);
?>
" height="<?php
echo esc_attr($height);
?>
" url="<?php
echo esc_url($thumb_url);
?>
"/>
<?php
if (isset($tagnames)) {
?>
<media:keywords><![CDATA[<?php
echo_h($tagnames);
?>
]]></media:keywords>
<?php
}
?>
<media:copyright><![CDATA[<?php
echo_h($copyright);
?>
]]></media:copyright>
</item>
<?php
}
?>
</channel>
</rss>
示例13: esc_attr
<td colspan="2">
<a
id="watermark_customization"
href="#"
class="nextgen_advanced_toggle_link"
hidden_label="<?php
echo esc_attr($hidden_label);
?>
"
active_label="<?php
echo esc_attr($active_label);
?>
"
>
<?php
echo_h($hidden_label);
?>
</a>
</td>
</tr>
<?php
foreach ($watermark_fields as $source_name => $fields) {
?>
<tbody class="hidden" id="watermark_<?php
echo esc_attr($source_name);
?>
_source">
<?php
echo $fields;
?>
</tbody>
示例14: esc_attr
</label>
<input
id="max_related_images"
type="text"
name="image_options[maxImages]"
value="<?php
echo esc_attr($max_related_images);
?>
"
/>
</td>
</tr>
<tr>
<td>
<label for="related_images_heading">
<?php
echo_h($related_images_heading_label);
?>
</label>
</td>
<td>
<input id="related_images_heading" type="text" name="image_options[relatedHeading]"
value="<?php
echo esc_attr($related_images_heading);
?>
"/>
</td>
</tr>
</tbody>
</table>
示例15: esc_attr
<select name='<?php
echo esc_attr($display_type_name);
?>
[template]'
id='<?php
echo esc_attr($display_type_name);
?>
_template>'
class='ngg_thumbnail_template ngg_settings_template'>
<option value=''> </option>
<?php
foreach ($templates as $file => $label) {
?>
<option value="<?php
echo $file;
?>
" <?php
selected($chosen_file, $file, TRUE);
?>
><?php
echo_h($label);
?>
</option>
<?php
}
?>
</select>
</div>
</td>
</tr>