Beispiel #1
0
	public function delete() {
		if ($this->getStackType() == self::ST_TYPE_GLOBAL_AREA) {
			GlobalArea::deleteByName($this->getStackName());
		}

		parent::delete();
		$db = Loader::db();
		$db->Execute('delete from Stacks where cID = ?', array($this->getCollectionID()));
	}
Beispiel #2
0
?>
                <?php 
$this->inc('elements/facebook.php');
?>

            </nav>
        </div>
    </div>

    <div id="global_content" class="inpage_content">

        <!-- ------------------ BLOC TEXTE ------------------ -->
        <section>
            <div class="container inpage_content_container inpage_content_container--text">
                <?php 
$ga = new GlobalArea('Bread Crump');
$ga->display($c);
?>
                <?php 
$a = new Area('content');
$a->display($c);
?>
            </div>
        </section>
        <?php 
$this->inc('elements/contact.php');
?>
    </div>

    <?php 
$this->inc('elements/footer_content.php');
Beispiel #3
0
$this->inc('elements/header.php');
$u = new User();
if (Config::get('c5hub.fundamental.general.sticky_footer') == true && !$u->isRegistered()) {
    $stickyFooter = ' c5h-sticky-footer-content';
}
?>

<main class="clearfix<?php 
echo $stickyFooter;
?>
">
	<div class="main-wrap">
		<div class="row">
			<div class="small-12 medium-4 large-3 columns">
				<?php 
$a = new GlobalArea('Sidebar Global');
$a->display();
$a = new Area('Sidebar');
$a->display($c);
?>
			</div>		
			<div class="small-12 medium-8 large-9 columns">
				<?php 
$a = new Area('Main');
$a->display($c);
?>
			</div>
		</div>
	</div>
</main>
?>
		                    <li><a href="<?php 
echo DIR_REL;
?>
/services/time-attendance">Time &amp; Attendance</a></li>
		                    	<?php 
$a = new GlobalArea('Time Attendance Pagelist');
$a->display($c);
$a->setBlockLimit(1);
?>
		                    <li><a href="<?php 
echo DIR_REL;
?>
/services/group-benefits">Group Benefits</a></li>
		                    	<?php 
$a = new GlobalArea('Group Benefits Pagelist');
$a->display($c);
$a->setBlockLimit(1);
?>
				        </ul>
			        </div>
			        <br />
					<?php 
$this->inc('elements/income_tax_quote.php');
?>
			    </div>
			</div>
	     </div>
	</section>
<?php 
$this->inc('elements/footer.php');
Beispiel #5
0
	<?php 
    }
    ?>
</div>
<?php 
}
?>

<?php 
$abf = new GlobalArea('Branding Full');
$abftb = $abf->getTotalBlocksInArea();
$abl = new GlobalArea('Branding Left');
$abltb = $abl->getTotalBlocksInArea();
$abc = new GlobalArea('BrandingCenter');
$abctb = $abc->getTotalBlocksInArea();
$abr = new GlobalArea('Branding Right');
$abrtb = $abr->getTotalBlocksInArea();
?>


<?php 
if ($abftb > 0 || $abltb > 0 || $abrtb > 0 || $abctb > 0 || $c->isEditMode()) {
    ?>
<div class="branding clearfix">
	<?php 
    if ($abftb > 0 || $c->isEditMode()) {
        echo '<div class="row">';
        echo '	<div class="small-12 columns">';
        $abf->display();
        echo '	</div>';
        echo '</div>';
Beispiel #6
0
						<?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()) {
            $a->disableControls();
        }
        $a->display();
    }
    // only show sibling nav if attribute NOT set in page properties
    $hide_sibling_nav = $c->getCollectionAttributeValue('hide_sibling_nav');
    if (!$hide_sibling_nav) {
        $a = new GlobalArea('Product sibling 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 -->
Beispiel #7
0
?>
/images/logo.svg" width="288"></a>

					<div class="header-cta">
						<div class="quote-btn" id="quote-btn"><a href="#"><img src="<?php 
echo $this->getThemePath();
?>
/images/button.png"></a></div>
						<div class="contact-number" id="contact-number"><a href="#">Call 01603 408 804</a></div>
					</div>
				</div>
			</header>
			<div class="wrapper">
				<div class="content">
					<?php 
$a = new GlobalArea('Product nav');
$a->setBlockWrapperStart('<nav class="product-nav" id="product-nav">');
$a->setBlockWrapperEnd('</nav>');
if ($c->getMasterCollectionID() != $c->getCollectionID()) {
    $a->disableControls();
}
//$a->display();
?>
				</div>
			</div>
		</div>
		<?php 
// IF home page
$p = Page::getCurrentPage();
if (is_object($p) && $p instanceof Page && !$p->isError() && $p->getCollectionID() == HOME_CID) {
    //this clear enough?
Beispiel #8
0
					<div class="row">	
						<?php 
$a = new GlobalArea('Footer Left');
$blocks = $a->getTotalBlocksInArea();
if ($blocks > 0 || $c->isEditMode()) {
    echo '<div class="small-12 medium-6 large-6 columns">';
    $a->display();
    echo '</div>';
} else {
    echo '<div class="small-12 medium-6 large-6 columns">';
    $this->inc('elements/copyright.php');
    echo '</div>';
}
?>
						<?php 
$a = new GlobalArea('Footer Right');
$blocks = $a->getTotalBlocksInArea();
if ($blocks > 0 || $c->isEditMode()) {
    echo '<div class="small-12 medium-6 large-6 columns">';
    $a->display();
    echo '</div>';
} else {
    echo '<div class="small-12 medium-6 large-6 columns">';
    $this->inc('elements/signin.php');
    echo '</div>';
}
?>
					</div>					
				</div><!-- END .c5h-footer-bottom-wrap -->
			</footer>
Beispiel #9
0
?>
<header>
	<?php 
$blocks = $c->getBlocks('Header Intro Content');
if (count($blocks) > 0 || $c->isEditMode()) {
    ?>
	<div id="header-intro-content">
	<?php 
} else {
    ?>
	<div id="header-intro-content" class="no-blocks">    
	<?php 
}
?>
		<?php 
$a = new GlobalArea("Header Intro Content");
// in order to keep general users from editing stuff in global areas
// this check is added. It could also check if the user is in a
// particular group.
$u = new User();
if (!$u->isSuperUser()) {
    $a->disableControls();
}
// global areas do not need $c passed in
$a->display();
?>
	</div>
	<h1 id="page-title">
		<?php 
$a = new Area("Page Title - Plain Text HTML Blocks Only");
$a->display($c);
Beispiel #10
0
<?php

defined('C5_EXECUTE') or die("Access Denied.");
?>

		<div id="footer-container" class="container">
			<footer class="wrapper">
				<div class="content">
					<div class="left">
					<?php 
$a = new GlobalArea('Footer nav');
$a->setBlockWrapperStart('<nav class="footer-nav">');
$a->setBlockWrapperEnd('</nav>');
if ($c->getMasterCollectionID() != $c->getCollectionID()) {
    $a->disableControls();
}
$a->display();
?>
					</div>
					<div class="right">
						<div class="item">
							<div class="sponsors"><?php 
/*
								<p>Sponsors for:</p>
								<a href="#"><img src="<?php echo $this->getThemePath(); ?>/images/lotus.png"></a>*/
?>
							</div>
							<div class="social">
								<p>You can find us on:</p>
								<a href="#"><img src="<?php 
echo $this->getThemePath();
Beispiel #11
0
         $a->setBlockWrapperEnd('</nav>');
     } else {
         $a->setBlockWrapperStart('<nav class="sibling-responsive-nav" id="sibling-responsive-nav">');
         $a->setBlockWrapperEnd('</nav>');
     }
     //$a->setBlockWrapperStart('<nav class="sibling-responsive-nav" id="sibling-responsive-nav">');
     //$a->setBlockWrapperEnd('</nav>');
     if ($c->getMasterCollectionID() != $c->getCollectionID()) {
         $a->disableControls();
     }
     $a->display();
 }
 // only show responsive navs if attribute is set or not in page properties
 $resp_show_child_nav = $c->getCollectionAttributeValue('resp_show_child_nav');
 if ($resp_show_child_nav) {
     $a = new GlobalArea('Child pages Responsive nav');
     $bi_fold_menu_type = $c->getCollectionAttributeValue('bi_fold_menu_type');
     // add class if bi-fold parent page
     if ($bi_fold_menu_type) {
         $a->setBlockWrapperStart('<nav class="child-responsive-nav bi-fold-nav" id="child-responsive-nav">');
         $a->setBlockWrapperEnd('</nav>');
     } else {
         $a->setBlockWrapperStart('<nav class="child-responsive-nav" id="child-responsive-nav">');
         $a->setBlockWrapperEnd('</nav>');
     }
     if ($c->getMasterCollectionID() != $c->getCollectionID()) {
         $a->disableControls();
     }
     $a->display();
 }
 /*
<?php

defined('C5_EXECUTE') or die("Access Denied.");
$this->inc('elements/header_top.php');
$headerTitle = new GlobalArea('Header Title');
$headerTitleBlocks = $headerTitle->getTotalBlocksInArea();
$displayHeaderTitle = $headerTitleBlocks > 0 || $c->isEditMode();
$headerNavigation = new GlobalArea('Header Navigation');
$headerNavigationBlocks = $headerNavigation->getTotalBlocksInArea();
$displayHeaderNavigation = $headerNavigationBlocks > 0 || $c->isEditMode();
$headerSearch = new GlobalArea('Header Search');
$headerSearchBlocks = $headerSearch->getTotalBlocksInArea();
$displayHeaderSearch = $headerSearchBlocks > 0 || $c->isEditMode();
?>

<header class="title-bar" role="banner">
    <nav class="row">
        <?php 
if ($displayHeaderTitle) {
    $headerTitle->display();
}
if ($displayHeaderNavigation) {
    $headerNavigation->display();
}
if ($displayHeaderSearch) {
    $headerSearch->display();
}
?>
    </nav>
</header>
<?php

defined('C5_EXECUTE') or die("Access Denied.");
$this->inc('elements/header_top.php');
?>

<header>
    <?php 
$a = new GlobalArea('Header');
$a->enableGridContainer();
$a->setCustomTemplate('autonav', 'topbar.php');
$a->display($c);
?>
</header>
Beispiel #14
0
							<?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 -->
		</div>
<?php 
$this->inc('elements/quote.php');
$this->inc('elements/footer.php');
Beispiel #15
0
               <nav id="footer-main-nav">
                    <?php 
$a7 = new GlobalArea("Footer Nav");
$u = new User();
if (!$u->isSuperUser()) {
    $a7->disableControls();
}
$a7->setBlockLimit(1);
$a7->display();
?>
                    <div class="clearfix"></div>
               </nav>
          </div>
		<div id="footer-column-1" class="footer-column">
			<?php 
$a7 = new GlobalArea("Footer Message");
$u = new User();
if (!$u->isSuperUser()) {
    $a7->disableControls();
}
$a7->setBlockLimit(1);
$a7->display();
?>
			</div>
          <div class="clearfix"></div>
     </div>
     <div class="clearfix"></div>
</div>
<div class="clearfix"></div>
</div>
<?php