本文整理汇总了PHP中WebPage::getSingleByName方法的典型用法代码示例。如果您正苦于以下问题:PHP WebPage::getSingleByName方法的具体用法?PHP WebPage::getSingleByName怎么用?PHP WebPage::getSingleByName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WebPage
的用法示例。
在下文中一共展示了WebPage::getSingleByName方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: stripslashes
<?php
$thisPage->title = StringManipulator::trimStringToFullWord(62, stripslashes(strip_tags(WebPage::getSingleByName($dbObj, 'title', CURRENT_PAGE))) . ' - ' . WEBSITE_AUTHOR);
$thisPage->description = StringManipulator::trimStringToFullWord(150, trim(stripslashes(strip_tags(WebPage::getSingleByName($dbObj, 'description', CURRENT_PAGE)))));
$thisPage->keywords = WebPage::getSingleByName($dbObj, 'keywords', CURRENT_PAGE);
$thisPage->author = WEBSITE_AUTHOR;
示例2: strip_tags
?>
themes/education/skins/education/images/bg_over.png); background-repeat: repeat-x; background-position: center top; background-color:#1eaace;">
<div class="content_wrap">
<div class="breadcrumbs">
<a class="breadcrumbs_item home" href="<?php
echo SITE_URL;
?>
">Home</a><span class="breadcrumbs_delimiter"></span>
<?php
if ($refName != 'home') {
?>
<a class="breadcrumbs_item home" href="<?php
echo $referer;
?>
"><?php
echo strip_tags(WebPage::getSingleByName($dbObj, 'title', $refName));
?>
</a><span class="breadcrumbs_delimiter"></span><?php
}
?>
<span class="breadcrumbs_item current"><?php
echo StringManipulator::trimStringToFullWord(20, explode(" - ", $thisPage->title)[0]);
?>
</span>
</div>
<h2 class="page_title"><?php
echo explode(" - ", $thisPage->title)[0];
?>
</h2>
</div>
</div> <!-- /.page_top_breadcrumbs -->
示例3: stripslashes
<div class="container">
<div class="row">
<div class="col-md-8 col-sm-8">
<h1><?php
echo stripslashes(strip_tags(WebPage::getSingleByName($dbObj, 'title', CURRENT_PAGE)));
?>
</h1>
</div>
<div class="pathway col-md-4 col-sm-4 hidden-xs text-right">
<div class="breadcrumbs" xmlns:v="http://rdf.data-vocabulary.org/#">
<a href="<?php
echo SITE_URL;
?>
index" rel="v:url" property="v:title">Home</a> \
<span typeof="v:Breadcrumb"> <a rel="v:url" property="v:title" href="#"><?php
echo stripslashes(strip_tags(WebPage::getSingleByName($dbObj, 'title', CURRENT_PAGE)));
?>
</a></span>
</div><!-- .breadcrumbs -->
</div>
</div><!--/row-->
</div><!--/container-->
</div>
<!--/page-heading-->
<?php
include 'includes/sidebar-top.php';
?>
<!--/Top sidebar-->
<div id="body" >
<div class="container">
示例4: stripslashes
<div id="content" class="col-md-4 col-md-offset-4" role="main">
<article class="single-page-content text-center">
<span class="main-color-1-border banner-404">
<span class="main-color-2"><?php
echo stripslashes(strip_tags(WebPage::getSingleByName($dbObj, 'name', CURRENT_PAGE)));
?>
</span>
</span>
<br />
<div class="content-text-404">
<p><?php
echo stripslashes(strip_tags(WebPage::getSingleByName($dbObj, 'title', CURRENT_PAGE)));
?>
</p>
<p><?php
echo stripslashes(strip_tags(WebPage::getSingleByName($dbObj, 'description', CURRENT_PAGE)));
?>
</p>
</div>
</article>
</div><!--/content-->
</div><!--/row-->
</div><!--/content-pad-3x-->
</div><!--/container-->
</div><!--/body-->
<?php
include 'includes/sidebar-bottom.php';
?>
<?php
include 'includes/footer.php';