| 20 | | <?php // The Apostrophe ?> |
| 21 | | <div class="a-global-toolbar-apostrophe"> |
| 22 | | <?php echo link_to(__('Apostrophe Now', null, 'apostrophe'),'@homepage', array('id' => 'the-apostrophe')) ?> |
| 23 | | <ul class="a-global-toolbar-buttons a-controls"> |
| | 14 | <li><?php echo link_to(__('Apostrophe Now', null, 'apostrophe'),'@homepage', array('id' => 'the-apostrophe')) ?></li> |
| 25 | | <?php foreach ($buttons as $button): ?> |
| 26 | | <?php if ($button->getTargetEnginePage()): ?> |
| 27 | | <?php aRouteTools::pushTargetEnginePage($button->getTargetEnginePage()) ?> |
| 28 | | <?php endif ?> |
| 29 | | <li><?php echo link_to(__($button->getLabel(), null, 'apostrophe'), $button->getLink(), array('class' => 'a-btn icon ' . $button->getCssClass())) ?></li> |
| 30 | | <?php endforeach ?> |
| | 16 | <?php foreach ($buttons as $button): ?> |
| | 17 | <?php if ($button->getTargetEnginePage()): ?><?php aRouteTools::pushTargetEnginePage($button->getTargetEnginePage()) ?><?php endif ?> |
| | 18 | <li><?php echo link_to(__($button->getLabel(), null, 'apostrophe'), $button->getLink(), array('class' => 'a-btn icon ' . $button->getCssClass())) ?></li> |
| | 19 | <?php endforeach ?> |
| 38 | | <?php // Remove the Add Page Button if we have reached our max depth, max peers, or if it is an engine page ?> |
| 39 | | <?php $maxPageLevels = (sfConfig::get('app_a_max_page_levels'))? sfConfig::get('app_a_max_page_levels') : 0; ?><?php // Your Site Tree can only get so deep ?> |
| 40 | | <?php $maxChildPages = (sfConfig::get('app_a_max_children_per_page'))? sfConfig::get('app_a_max_children_per_page') : 0; ?><?php // Your Site Tree can only get so wide ?> |
| 41 | | <?php if (!(($maxPageLevels && ($page->getLevel() == $maxPageLevels)) || ($maxChildPages && (count($page->getChildren()) == $maxChildPages)) || strlen($page->getEngine()))): ?> |
| 42 | | <li><?php include_component('a', 'createPage', array('page' => $page, 'edit' => $page->userHasPrivilege('edit'))); ?></li> |
| 43 | | <?php endif ?> |
| | 27 | <?php // Remove the Add Page Button if we have reached our max depth, max peers, or if it is an engine page ?> |
| | 28 | <?php $maxPageLevels = (sfConfig::get('app_a_max_page_levels'))? sfConfig::get('app_a_max_page_levels') : 0; ?><?php // Your Site Tree can only get so deep ?> |
| | 29 | <?php $maxChildPages = (sfConfig::get('app_a_max_children_per_page'))? sfConfig::get('app_a_max_children_per_page') : 0; ?><?php // Your Site Tree can only get so wide ?> |
| | 30 | <?php if (!(($maxPageLevels && ($page->getLevel() == $maxPageLevels)) || ($maxChildPages && (count($page->getChildren()) == $maxChildPages)) || strlen($page->getEngine()))): ?> |
| | 31 | <li><?php include_component('a', 'createPage', array('page' => $page, 'edit' => $page->userHasPrivilege('edit'))); ?></li> |
| | 32 | <?php endif ?> |