本文整理汇总了PHP中util::escapeAttrHTML方法的典型用法代码示例。如果您正苦于以下问题:PHP util::escapeAttrHTML方法的具体用法?PHP util::escapeAttrHTML怎么用?PHP util::escapeAttrHTML使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类util
的用法示例。
在下文中一共展示了util::escapeAttrHTML方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
?>
</a></p>
<?php
} elseif ($productsList->content != '') {
?>
<p><?php
echo $productsList->content;
?>
… <a href="<?php
echo html::escapeHTML($productsList->url);
?>
"
title="<?php
echo util::escapeAttrHTML(sprintf(__('m_catalog_more_details_on_%s'), $productsList->title));
?>
"><?php
_e('m_catalog_more_details');
?>
</a></p>
<?php
}
?>
<?php
}
# fin Okatea : affichage texte tronqué
?>
示例2: _e
"
class="icon table"><?php
_e('m_estimate_list_show_details');
?>
</a></li>
<li><a href="module.php?m=estimate&action=delete&estimate_id=<?php
echo $rsEstimates->id;
?>
"
onclick="return window.confirm('<?php
echo html::escapeJS(__('m_estimate_list_delete_confirm'));
?>
')"
title="<?php
echo util::escapeAttrHTML(sprintf(__('m_estimate_list_delete_%s'), $rsEstimates->id));
?>
"
class="icon delete"><?php
_e('c_c_action_Delete');
?>
</a></li>
</ul>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
示例3: printf
title="<?php
printf(__('c_a_config_navigation_manage_items_menu_%s'), util::escapeAttrHTML($rsMenus->title));
?>
"
class="icon application_view_list"><?php
_e('c_a_config_navigation_manage_items');
?>
</a>
</li>
<li>
<a href="configuration.php?action=navigation&do=item&menu_id=<?php
echo $rsMenus->id;
?>
"
title="<?php
printf(__('c_a_config_navigation_add_item_to_%s'), util::escapeAttrHTML($rsMenus->title));
?>
"
class="icon application_add"><?php
_e('c_a_config_navigation_add_item');
?>
</a>
</li>
</ul>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
示例4: _e
class="icon pencil"><?php
_e('c_c_action_edit');
?>
</a>
</li>
<li>
<a href="module.php?m=estimate&action=accessories&delete_accessory=<?php
echo $rsAccessories->id;
?>
"
onclick="return window.confirm('<?php
echo html::escapeJS(__('m_estimate_estimate_accessory_delete_confirm'));
?>
')"
title="<?php
printf(__('c_c_action_Delete_%s'), util::escapeAttrHTML($rsAccessories->title));
?>
"
class="icon delete"><?php
_e('c_c_action_delete');
?>
</a>
</li>
</ul>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
示例5:
<?php
# début Okatea : affichage texte tronqué
if ($okt->pages->config->insert_truncat_char > 0) {
?>
<p><?php
echo $rsInsertPage->content;
?>
…</p>
<p class="read-more-link-wrapper"><a href="<?php
echo html::escapeHTML($rsInsertPage->url);
?>
"
title="<?php
echo util::escapeAttrHTML(sprintf(__('m_pages_read_more_of_%s'), $rsInsertPage->title));
?>
"
class="read-more-link" rel="nofollow"><?php
_e('m_pages_read_more');
?>
</a></p>
<?php
}
# fin Okatea : affichage texte tronqué
?>
<?php
# début Okatea : affichage texte pas tronqué
示例6:
<?php
# début Okatea : affichage texte tronqué
if ($okt->news->config->insert_truncat_char > 0) {
?>
<p><?php
echo $rsInsertPosts->content;
?>
…</p>
<p class="read-more-link-wrapper"><a href="<?php
echo html::escapeHTML($rsInsertPosts->url);
?>
"
title="<?php
echo util::escapeAttrHTML(sprintf(__('m_news_read_more_of_%s'), $rsInsertPosts->title));
?>
"
class="read-more-link" rel="nofollow"><?php
_e('m_news_read_more');
?>
</a></p>
<?php
}
# fin Okatea : affichage texte tronqué
?>
<?php
# début Okatea : affichage texte pas tronqué
示例7:
?>
" title="<?php
echo util::escapeAttrHTML($rsPost->title);
?>
, image <?php
echo $i;
?>
" class="modal" rel="news-images">
<img src="<?php
echo $image['square_url'];
?>
" <?php
echo $image['square_attr'];
?>
alt="<?php
echo util::escapeAttrHTML(isset($image['alt'][$okt->user->language]) ? $image['alt'][$okt->user->language] : $rsPost->title);
?>
" /></a>
<?php
}
?>
<?php
}
# fin Okatea : boucle sur les images
?>
</p><!-- #post-images -->
<?php
}
示例8: sprintf
if ($rsCategories->num_total > 0) {
$sNumPosts = sprintf(__('m_news_cats_%s_total_%s'), $sNumPosts, $rsCategories->num_total);
}
if ($rsCategories->num_posts == 0) {
$sDeleteLink = ' - <a href="module.php?m=news&action=categories&delete=' . $rsCategories->id . '" ' . 'class="icon delete" ' . 'onclick="return window.confirm(\'' . html::escapeJS(__('m_news_cats_delete_confirm')) . '\')">' . __('c_c_action_Delete') . '</a></p>';
} else {
$sDeleteLink = ' - <span class="disabled icon delete"></span>' . __('c_c_action_Delete');
}
echo '<p><strong>' . html::escapeHTML($rsCategories->title) . '</strong> - ' . $sNumPosts . '</p>';
echo '<p>';
if ($rsCategories->active) {
echo '<a href="module.php?m=news&action=categories&switch_status=' . $rsCategories->id . '" ' . 'class="icon tick">' . __('c_c_action_visible') . '</a>';
} else {
echo '<a href="module.php?m=news&action=categories&switch_status=' . $rsCategories->id . '" ' . 'class="icon cross">' . __('c_c_action_hidden_fem') . '</a>';
}
echo ' - <a href="module.php?m=news&action=categories&do=edit&category_id=' . $rsCategories->id . '" ' . 'title="' . util::escapeAttrHTML(sprintf(__('m_news_cats_edit_%s'), $rsCategories->title)) . '" ' . 'class="icon pencil">' . __('c_c_action_Edit') . '</a>';
echo $sDeleteLink . '</p>';
$level = $rsCategories->level;
}
if ($ref_level - $level < 0) {
echo str_repeat('</li></ul>', -($ref_level - $level));
}
?>
</div><!-- #rubriques_lists -->
<?php
}
?>
<?php
示例9:
?>
" title="<?php
echo util::escapeAttrHTML($product->title);
?>
, image <?php
echo $i;
?>
" class="modal" rel="product-images">
<img src="<?php
echo $image['square_url'];
?>
" <?php
echo $image['square_attr'];
?>
alt="<?php
echo util::escapeAttrHTML(isset($image['alt']) ? $image['alt'] : $product->title);
?>
" /></a>
<?php
}
?>
<?php
}
# fin Okatea : boucle sur les images
?>
</p><!-- #product-images -->
<?php
}
示例10: _e
<h3><?php
_e('Dev');
?>
</h3>
<p><?php
echo html::escapeHTML($aDevVersion['version']);
?>
</p>
</a>
<?php
} else {
?>
<h3><?php
_e('Dev');
?>
</h3>
<p><abbr title="<?php
echo util::escapeAttrHTML(__('currently no release'));
?>
">-</abbr></p>
<?php
}
?>
</div>
<p class="github"><a href="https://github.com/okateadotorg/okatea"><?php
_e('View sources on GitHub');
?>
</a></p>
</div>
示例11:
}
?>
<?php
if ($rsPosts->isDeletable()) {
?>
<li><a href="module.php?m=news&action=delete&post_id=<?php
echo $rsPosts->id;
?>
"
onclick="return window.confirm('<?php
echo html::escapeJS(__('m_news_list_post_delete_confirm'));
?>
')"
title="<?php
echo util::escapeAttrHTML(sprintf(__('m_news_list_delete_%s'), $rsPosts->title));
?>
"
class="icon delete"><?php
_e('c_c_action_Delete');
?>
</a></li>
<?php
}
?>
</ul>
</td>
</tr>
<?php
}
?>
示例12:
title="<?php
echo util::escapeAttrHTML($rsEvent->title);
?>
, image <?php
echo $i;
?>
" class="modal" rel="images">
<img src="<?php
echo $image['square_url'];
?>
"
<?php
echo $image['square_attr'];
?>
alt="<?php
echo util::escapeAttrHTML(isset($image['alt']) ? $image['alt'] : $rsEvent->title);
?>
" /></a>
<?php
}
?>
<?php
}
# fin Okatea : boucle sur les images
?>
</p><!-- #diary-images -->
<?php
}
示例13:
<?php
# début Okatea : ce template étend le template principal "main"
$this->extend('main');
# fin Okatea : ce template étend le template principal "main"
?>
<div id="global">
<header>
<div id="head">
<div class="title"><a href="<?php
echo util::escapeAttrHTML($okt->page->getBaseUrl());
?>
"><?php
echo html::escapeHTML(util::getSiteTitle());
?>
</a></div>
<div class="description"><?php
echo html::escapeHTML(util::getSiteDescription());
?>
</div>
</div><!-- #head -->
<ul id="access-links">
<li><a href="#main"><?php
_e('c_c_go_to_content');
?>
</a></li>
<li><a href="#main-navigation"><?php
_e('c_c_go_to_menu');
示例14: isset
<span class="lang-switcher-buttons"></span></label>
<?php
echo form::text(array('p_images_alt_' . $i . '[' . $aLanguage['code'] . ']', 'p_images_alt_' . $i . '_' . $aLanguage['code']), 40, 255, isset($aCurImageAlt[$aLanguage['code']]) ? html::escapeHTML($aCurImageAlt[$aLanguage['code']]) : '');
?>
</p>
<?php
}
?>
<p><a href="<?php
echo $aPageData['images'][$i]['img_url'];
?>
" rel="pages_images"
title="<?php
echo util::escapeAttrHTML(sprintf(__('m_pages_page_image_title_attr_%s'), $aPageData['locales'][$okt->user->language]['title'], $i));
?>
"
class="modal"><img src="<?php
echo $sCurImageUrl;
?>
"
<?php
echo $sCurImageAttr;
?>
alt="" /></a></p>
<p><a href="module.php?m=pages&action=edit&post_id=<?php
echo $aPageData['post']['id'];
?>
&delete_image=<?php
示例15:
echo $aPartnerLogoInfos['img_url'];
?>
"
title="<?php
echo util::escapeAttrHTML($rsPartners->name);
?>
"
class="modal" rel="partner-logo"><img src="<?php
echo $logo_url;
?>
"
<?php
echo $logo_attr;
?>
alt="<?php
echo util::escapeAttrHTML(isset($aPartnerLogoInfos['alt']) ? $aPartnerLogoInfos['alt'] : 'Logo ' . $rsPartners->name);
?>
" /></a>
</div>
<?php
}
# fin Okatea : affichage logo
?>
<?php
# début Okatea : affichage du nom
?>
<h3 class="partner-name"><?php
echo html::escapeHTML($rsPartners->name);
?>
</h3>