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


PHP WebPage::getSingleByName方法代码示例

本文整理汇总了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;
开发者ID:Mojolagbe2014,项目名称:mojotiesiaigurupu,代码行数:6,代码来源:page-properties.php

示例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 -->
开发者ID:Mojolagbe2014,项目名称:mojoimipakiti,代码行数:31,代码来源:bread-crumb.php

示例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">
开发者ID:Mojolagbe2014,项目名称:mojotiesiaigurupu,代码行数:31,代码来源:events.php

示例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';
开发者ID:Mojolagbe2014,项目名称:mojotiesiaigurupu,代码行数:31,代码来源:403.php


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