本文整理汇总了PHP中Area::setBlockWrapperStart方法的典型用法代码示例。如果您正苦于以下问题:PHP Area::setBlockWrapperStart方法的具体用法?PHP Area::setBlockWrapperStart怎么用?PHP Area::setBlockWrapperStart使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Area
的用法示例。
在下文中一共展示了Area::setBlockWrapperStart方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: t
<?php
} else {
?>
<p><?php
echo t("This user hasn't won any badges.");
?>
</p>
<?php
}
?>
<?php
$a = new Area('Main');
//$a->setAttribute('profile', $profile);
$a->setBlockWrapperStart('<div class="ccm-profile-body-item">');
$a->setBlockWrapperEnd('</div>');
$a->display($c);
?>
</div>
</div>
<script type="text/javascript">
$(function() {
$(".launch-tooltip").tooltip({
placement: 'bottom'
});
});
</script>
示例2: Area
<main id="main" class="wrapper">
<div class="content">
<div class="left-col">
<?php
// default and main content area - AKA left-col
$a = new Area('Main');
$a->display($c);
// if attribute checked - include some tab content elements
if (!$hide_product_tabs) {
$a = new Area('Technical tab content');
$a->setBlockWrapperStart('<div id="tech-tabs-to-move">');
$a->setBlockWrapperEnd('</div>');
$a->display($c);
$a = new Area('Glass tab content');
$a->setBlockWrapperStart('<div id="glass-tabs-to-move">');
$a->setBlockWrapperEnd('</div>');
$a->display($c);
}
?>
</div> <!-- .left-col -->
<div class="right-col sidebar">
<?php
// only show child nav if attribute NOT set in page properties
$hide_child_nav = $c->getCollectionAttributeValue('hide_child_nav');
if (!$hide_child_nav) {
$a = new GlobalArea('Product child pages');
$a->setBlockWrapperStart('<nav class="child-nav" id="child-nav">');
$a->setBlockWrapperEnd('</nav>');
if ($c->getMasterCollectionID() != $c->getCollectionID()) {
示例3: Area
</div>
</div>
<div id="flavours" class="content-2">
<div class="heading">
<?php
$a = new Area('Flavours Title');
$a->display($c);
?>
</div>
<div class="img-text-content">
<div class="flavour-slick">
<?php
$a = new Area('Flavours Content');
$a->setBlockWrapperStart('<div class="each-flavour">');
$a->setBlockWrapperEnd('</div>');
$a->display($c);
?>
</div>
</div>
</div>
<div id="wholesale" class="content-extra">
<div class="img-text-content">
<div class="img-content visible-xs visible-sm">
<img src="<?php
echo $view->getThemePath();
?>
/images/content/contact-us-content.png" class="img-responsive">
示例4: Area
$a->display($c);
?>
</div> <!-- .left-col -->
<div class="right-col sidebar">
<?php
/* $a = new GlobalArea('Product child pages');
$a->setBlockWrapperStart('<nav class="child-nav" id="child-nav">');
$a->setBlockWrapperEnd('</nav>');
if ($c->getMasterCollectionID() != $c->getCollectionID()) {
$a->disableControls();
}
$a->display();*/
?>
<?php
$as = new Area('Sidebar');
$a->setBlockWrapperStart('<div>');
$a->setBlockWrapperEnd('</div>');
$as->display($c);
?>
</div> <!-- .right-col -->
</div> <!-- .content -->
<div class="content">
<div class="col">
<?php
$as = new GlobalArea('Lower Full width');
$as->display($c);
?>
</div> <!-- .right-col -->
</div> <!-- .content -->
</main>
</div> <!-- #main-container -->