本文整理汇总了PHP中Area::display方法的典型用法代码示例。如果您正苦于以下问题:PHP Area::display方法的具体用法?PHP Area::display怎么用?PHP Area::display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Area
的用法示例。
在下文中一共展示了Area::display方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Area
?>
<div class="spacer"></div>
<?php
if ($c->isEditMode()) {
?>
</div>
<?php
}
?>
<div id="header-area">
<div class="divider"></div>
<div id="header-area-inside">
<?php
$ah = new Area('Header');
$ah->display($c);
?>
</div>
<?php
if ($ah->getTotalBlocksInArea() > 0) {
?>
<div class="divider"></div>
<?php
}
?>
</div>
</div>
示例2: die
<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
$this->inc('elements/header.php');
?>
<div class="body gs960">
<div class="main">
<?php
$main = new Area('Main');
$main->display($c);
?>
<div class="gline">
<div class="unit size3of4">
<?php
$extra1 = new Area('Extra1');
$extra1->display($c);
?>
</div>
<div class="unit lastUnit size1of4">
<?php
$extra2 = new Area('Extra2');
$extra2->display($c);
?>
</div>
</div>
</div>
</div>
<?php
$this->inc('elements/footer.php');
示例3: Area
</a>
</h3>
<h4>
Posted by <?php
echo $author;
?>
on <?php
echo $date;
?>
</h4>
</div>
<div class="excerpt">
<?php
$a = new Area('Main');
$a->disableControls();
$a->display($cobj);
?>
</div>
<div class="ccm-spacer"></div>
<div class="meta">
<?php
echo $comments;
?>
<a href="<?php
echo $link;
?>
">Read full post »</a>
</div>
</div>
<hr class="blog-entry-divider"/>
<?php
示例4: die
<?php
defined('C5_EXECUTE') or die("Access Denied.");
$a2 = new Area('Poll');
$aBlocks = $a2->getAreaBlocksArray($c);
/*
$pollBlocks=array();
foreach($aBlocks as $bls){
if($bls->getBlockTypeHandle() != 'poll') continue;
$pollBlocks[]=$bls;
}
*/
if (count($aBlocks) > 0) {
?>
<div id="post-poll">
<div class="aux">
<?php
$a2->display($c, $aBlocks);
?>
</div>
</div>
<?php
}
示例5: t
<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
?>
<div class="foot">
<div class="inner gs960">
<?php
$footer = new Area('Footer');
$footer->display($c);
?>
<div class="mod credit">
<div class="inner">
<div class="hd"><h4>credit</h4></div>
<div class="bd">
<p class="copyright">
<span class="powered-by"><a href="http://www.concrete5.org" title="<?php
echo t('concrete5 open source CMS');
?>
"><?php
echo t('concrete5 Content Management');
?>
</a></span>
© <?php
echo date('Y');
?>
<a href="<?php
echo DIR_REL;
?>
/"><?php
示例6:
$pageHeader->display($c);
?>
</section>
<?php
if ($displayPageContent) {
?>
<section class="ui page content container">
<?php
$pageContent->display($c);
?>
</section>
<?php
}
?>
<?php
if ($displayPageFooter) {
?>
<section class="ui page footer container">
<?php
$pageFooter->display($c);
?>
</section>
<?php
}
?>
</main>
<?php
$this->inc('elements/footer.php');
示例7: Area
</div>
</section>
<section id="mainsk" class="b-main-sketches">
<div class="b-sketches-decoration"></div>
<div class="b-main-sketches-center">
<?php
$b = new Area('Блок галереи скетчей');
$b->display($c);
?>
</div>
</section>
<section id="book" class="b-book">
<div class="b-book-center">
<?php
$d = new Area('Блок книги');
$d->display($c);
?>
</div>
</section>
<section id="othersk" class="b-other-sketches">
<div class="b-sketches-decoration"></div>
<div class="b-other-sketches-center">
<?php
$e = new Area('Блок галереи других скетчей');
$e->display($c);
?>
</div>
</section>
<?php
$this->inc('elements/footer.php');
示例8: Area
* $pageBlocks = $page->getBlocks('Main');
* if (count($pageBlocks) > 0) {
* foreach ($pageBlocks as $pb) {
* if ($pb->btHandle == 'content') {
* $excerpt = $pb->getInstance()->getContent(); //NOTE: getContent() function is specific to the content block type -- it cannot be called on just any kind of block!
* if ($controller->truncateSummaries) {
* $excerpt = $th->shorten($excerpt, $controller->truncateChars); //Concrete5.4.2.1 and lower
* //$excerpt = $th->shortenTextWord($excerpt, $controller->truncateChars); //Concrete5.4.2.2 and higher
* }
* break;
* }
* }
* }
* echo $excerpt;
* ?>
*
*/
/*** Here comes the most important part of the template! The html from here down to the "endforeach" line is repeated for each page in the list... */
?>
<?php
$a = new Area('Glass tab content');
//change 'Main' to the name of the area you want to display
$a->disableControls();
$a->display($page);
?>
<?php
}
?>
</div>
示例9: display
public function display() {
$c = Page::getCurrentPage();
parent::getOrCreate($c, $this->arHandle, 1);
parent::display($c);
}
示例10: Area
<p><a href="#0"><img src="<?php echo $this->getThemePath(); ?>/<?php echo $this->getThemePath(); ?>/images/twitter-feed.jpg"></a></p>
<p>IDSystems<br />@IDSystems_UK</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam tincidunt risus convallis tellus fringilla, a condimentum nulla vulputate. </p>
</div>
</div>*/
?>
</div>
</div> <!-- .content -->
</main>
</div> <!-- #lower-01-main-container -->
<div id="lower-02-main-container" class="container">
<main id="lower-02-main" class="wrapper">
<div class="content">
<?php
$as = new Area('Systems');
$as->display($c);
?>
<ul class="callout-system-links">
<li><img src="<?php
echo $this->getThemePath();
?>
/images/systems/sys-02.png"></li>
<li><img src="<?php
echo $this->getThemePath();
?>
/images/systems/sys-01.png"></li>
<li><img src="<?php
echo $this->getThemePath();
?>
/images/systems/sys-03.png"></li>
<li><img src="<?php
示例11: die
<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
$this->inc('elements/header.php');
?>
<div class="body gs960">
<div class="main">
<?php
$main = new Area('Main');
$main->display($c);
?>
</div>
</div>
<?php
$this->inc('elements/footer.php');
示例12: defined
<? defined('C5_EXECUTE') or die("Access Denied."); ?>
<div class="row">
<div class="span14 offset1 columns">
<div class="ccm-pane">
<div class="ccm-pane-header"><h3><?php
echo $c->getCollectionName();
?>
</h3></div>
<div class="ccm-pane-body clearfix" id="ccm-stack-container">
<? $a = new Area(STACKS_AREA_NAME); $a->display($c); ?>
</div>
</div>
</div>
</div>
示例13: displayTableGrid
protected function displayTableGrid($rows = 3, $columns = 3, $c = NULL)
{
if (!$c) {
global $c;
}
if ($c->isEditMode()) {
$editMode = 'ccm-edit-mode';
}
if (!intval($rows)) {
$rows = 1;
}
if (!intval($columns)) {
$columns = 3;
}
$layoutNameClass = 'ccm-layout-name-' . TextHelper::camelcase($this->getAreaHandle()) . '-' . TextHelper::camelcase($this->getLayoutNameTxt()) . '-' . $this->getAreaNameNumber();
echo '<div id="ccm-layout-' . $this->layoutID . '" class="ccm-layout ccm-layout-table ' . $layoutNameClass . ' ' . $editMode . '">';
for ($i = 0; $i < $rows; $i++) {
echo '<div class="ccm-layout-row ccm-layout-row-' . ($i + 1) . '">';
$cumulativeWidth = 0;
for ($j = 0; $j < $columns; $j++) {
$colWidth = $columns == 1 ? '100%' : $this->getNextColWidth($j, $cumulativeWidth);
$cumulativeWidth += intval(str_replace(array('px', '%'), '', strtolower($colWidth)));
$columnn_id = 'ccm-layout-' . intval($this->layoutID) . '-col-' . ($j + 1);
if ($j == 0) {
$positionTag = 'first';
} elseif ($j == $columns - 1) {
$positionTag = 'last';
} else {
$positionTag = '';
}
echo '<div class="' . $columnn_id . ' ccm-layout-cell ccm-layout-col ccm-layout-col-' . ($j + 1) . ' ' . $positionTag . '" style="width:' . $colWidth . '">';
$a = new Area($this->getCellAreaHandle($this->getCellNumber()));
ob_start();
$a->display($c);
$areaHTML = ob_get_contents();
ob_end_clean();
if (strlen($areaHTML)) {
if (intval($this->spacing)) {
$areaHTML = '<div class="ccm-layout-col-spacing">' . $areaHTML . '</div>';
}
echo $areaHTML;
} else {
echo ' ';
}
echo '</div>';
}
echo '<div class="ccm-spacer"></div>';
echo '</div>';
}
echo '</div>';
}
示例14: defined
<?php defined('C5_EXECUTE') or die("Access Denied."); ?>
<div class="pageSection">
<?php $ai = new Area('Blog Post Header'); $ai->display($c); ?>
</div>
<div class="pageSection">
<h1><?php echo $c->getCollectionName(); ?></h1>
<p class="meta"><?php echo t('Posted by')?> <?php echo $c->getVersionObject()->getVersionAuthorUserName(); ?> on <?php echo $c->getCollectionDatePublic('F j, Y'); ?></p>
</div>
<div class="pageSection">
<?php $as = new Area('Main'); $as->display($c); ?>
</div>
<div class="pageSection">
<?php $a = new Area('Blog Post More'); $a->display($c); ?>
</div>
<div class="pageSection">
<?php $ai = new Area('Blog Post Footer'); $ai->display($c); ?>
</div>
示例15: t
</h1>
<p class="meta"><?php
echo t('Posted by %s on %s', $c->getVersionObject()->getVersionAuthorUserName(), Core::make('helper/date')->formatDate($c->getCollectionDatePublic(), true));
?>
</p>
</div>
<div class="pageSection">
<?php
$as = new Area('Main');
$as->display($c);
?>
</div>
<div class="pageSection">
<?php
$a = new Area('Blog Post More');
$a->display($c);
?>
</div>
<div class="pageSection">
<?php
$ai = new Area('Blog Post Footer');
$ai->display($c);
?>
</div>
</div>
<div class="spacer"> </div>
</div>
<?php
$this->inc('elements/footer.php');