<?php 
    echo link_to($a_blog_post->getTitle(), 'a_blog_post', $a_blog_post);
    ?>
</h3>
<ul class="a-blog-item-meta">
  <li class="date"><?php 
    echo aDate::pretty($a_blog_post['published_at']);
    ?>
</li>
  <li class="author"><?php 
    echo __('Posted By:', array(), 'apostrophe_blog');
    ?>
 <?php 
    echo $a_blog_post->getAuthor();
    ?>
</li>   
</ul>
<?php 
}
?>

<?php 
a_area('blog-body', array('edit' => $edit, 'toolbar' => 'basic', 'slug' => $a_blog_post->Page->slug, 'allowed_types' => array('aRichText', 'aSlideshow', 'aVideo', 'aPDF'), 'type_options' => array('aRichText' => array('tool' => 'Main'), 'aSlideshow' => array("width" => 480, "flexHeight" => true, 'resizeType' => 's', 'constraints' => array('minimum-width' => 480)), 'aVideo' => array('width' => 480, 'flexHeight' => true, 'resizeType' => 's'), 'aPDF' => array('width' => 480, 'flexHeight' => true, 'resizeType' => 's'))));
?>

<?php 
a_area('blog-sidebar', array('edit' => $edit, 'toolbar' => 'basic', 'slug' => $a_blog_post->Page->slug, 'allowed_types' => array('aRichText', 'aSlideshow', 'aVideo', 'aPDF'), 'type_options' => array('aRichText' => array('tool' => 'Main'), 'aSlideshow' => array("width" => 180, "flexHeight" => true, 'resizeType' => 's', 'constraints' => array('minimum-width' => 180)), 'aVideo' => array('width' => 180, 'flexHeight' => true, 'resizeType' => 's'), 'aPDF' => array('width' => 180, 'flexHeight' => true, 'resizeType' => 's'))));
?>

<?php 
include_partial('aBlog/addThis', array('aBlogPost' => $a_blog_post));
Пример #2
0
	</div>
<?php 
end_slot();
?>

<div id="a-blog-main" class="a-blog-main clearfix">
  
	<div class="a-ui a-blog-heading">
		<?php 
$page ? $slots = $page->getArea('blog-heading') : ($slots = array());
?>
		<?php 
if (count($slots) || $page->userHasPrivilege('edit')) {
    ?>
	  	<?php 
    a_area('blog-heading', array('areaLabel' => a_('Add Events Heading'), 'allowed_types' => array('aRichText', 'aSlideshow', 'aSmartSlideshow')));
    ?>
		<?php 
}
?>
 		<?php 
include_partial('aBlog/filters', array('type' => a_('event'), 'typePlural' => a_('events'), 'url' => 'aEvent/index', 'count' => $pager->count(), 'params' => $params));
?>
	</div>

  <?php 
if ($pager->haveToPaginate()) {
    ?>
  	<?php 
    include_partial('aBlog/pager', array('max_per_page' => $max_per_page, 'pager' => $pager, 'pagerUrl' => url_for('aEvent/index?' . http_build_query($params['pagination']))));
    ?>
Пример #3
0
<?php

// Reasonable Defaults
$name = isset($name) ? $sf_data->getRaw('name') : 'body';
$width = isset($width) ? $sf_data->getRaw('width') : 480;
$toolbar = isset($toolbar) ? $sf_data->getRaw('toolbar') : 'Sidebar';
// Array of all slots we enable
$slots = isset($slots) ? $sf_data->getRaw('slots') : array('aRichText', 'aVideo', 'aSlideshow', 'aSmartSlideshow', 'aFile', 'aAudio', 'aFeed', 'aButton', 'aBlog', 'aEvent', 'aText', 'aRawHTML');
?>

<?php 
a_area($name, array('allowed_types' => $slots, 'type_options' => array('aRichText' => array('tool' => $toolbar), 'aVideo' => array('width' => $width, 'height' => false, 'resizeType' => 's', 'flexHeight' => true, 'title' => false, 'description' => false), 'aSlideshow' => array('width' => $width, 'height' => false, 'resizeType' => 's', 'flexHeight' => true, 'constraints' => array('minimum-width' => $width), 'arrows' => true, 'interval' => false, 'random' => false, 'title' => false, 'description' => false, 'credit' => false, 'position' => false, 'itemTemplate' => 'slideshowItem', 'allowed_variants' => array('normal', 'autoplay')), 'aSmartSlideshow' => array('width' => $width, 'height' => false, 'resizeType' => 's', 'flexHeight' => true, 'constraints' => array('minimum-width' => $width), 'arrows' => true, 'interval' => false, 'random' => false, 'title' => false, 'description' => false, 'credit' => false, 'position' => false, 'itemTemplate' => 'slideshowItem'), 'aFile' => array(), 'aAudio' => array('width' => $width, 'title' => true, 'description' => true, 'download' => true, 'playerTemplate' => 'default'), 'aFeed' => array('posts' => 5, 'links' => true, 'dateFormat' => false, 'itemTemplate' => 'aFeedItem'), 'aButton' => array('width' => $width, 'flexHeight' => true, 'resizeType' => 's', 'constraints' => array('minimum-width' => $width), 'rollover' => true, 'title' => true, 'description' => false), 'aBlog' => array('slideshowOptions' => array('width' => $width, 'height' => 320)), 'aEvent' => array('slideshowOptions' => array('width' => 340, 'height' => 220)), 'aText' => array('multiline' => false), 'aRawHTML' => array())));
Пример #4
0
</h3>
	<h3><a href="/"><?php 
    echo a_('Go Home.');
    ?>
</a></h3>
<?php 
}
?>

<?php 
// Display some help information to admins so they know they can customize the Error404 page
if ($sf_user->hasCredential('admin')) {
    ?>
	<div class="a-help">
		<?php 
    echo a_('You can customize the error404 page by adding your own content below.');
    ?>
	</div>
<?php 
}
?>
	

<?php 
// Only display this area if there is content in it OR if the user is logged-in & admin.
// Note: The sandbox pages.yml fixtures pre-populate an 'en' RichText slot with a 404 message.
if (count($slots) || $sf_user->hasCredential('admin')) {
    ?>
	<?php 
    a_area('body', array('slug' => '/admin/error404', 'allowed_types' => array('aRichText', 'aVideo', 'aSlideshow'), 'type_options' => array('aRichText' => array('tool' => 'Main'), 'aVideo' => array('width' => 480, 'height' => false, 'resizeType' => 's', 'flexHeight' => true, 'title' => false, 'description' => false), 'aSlideshow' => array('width' => 480, 'height' => false, 'resizeType' => 's', 'flexHeight' => true, 'constraints' => array('minimum-width' => 480), 'arrows' => true, 'interval' => false, 'random' => false, 'title' => false, 'description' => false, 'credit' => false, 'position' => false, 'itemTemplate' => 'slideshowItem'), 'aSmartSlideshow' => array('width' => 480, 'height' => false, 'resizeType' => 's', 'flexHeight' => true, 'constraints' => array('minimum-width' => 480), 'arrows' => true, 'interval' => false, 'random' => false, 'title' => false, 'description' => false, 'credit' => false, 'position' => false, 'itemTemplate' => 'slideshowItem'), 'aFile' => array(), 'aAudio' => array('width' => 480, 'title' => true, 'description' => true, 'download' => true, 'playerTemplate' => 'default'), 'aFeed' => array('posts' => 5, 'links' => true, 'dateFormat' => false, 'itemTemplate' => 'aFeedItem'), 'aButton' => array('width' => 480, 'flexHeight' => true, 'resizeType' => 's', 'constraints' => array('minimum-width' => 480), 'rollover' => true, 'title' => true, 'description' => false), 'aBlog' => array('slideshowOptions' => array('width' => 480, 'height' => 320)), 'aEvent' => array('slideshowOptions' => array('width' => 340, 'height' => 220)), 'aEventSingle' => array('slideshowOptions' => array('width' => 340, 'height' => 220)), 'aText' => array('multiline' => true), 'aRawHTML' => array())));
}
Пример #5
0
	<?php 
    if (!$page->hasChildren()) {
        ?>
		<?php 
        slot('a-subnav', '');
        ?>
		<?php 
        slot('body_class');
        ?>
a-default no-sidebar<?php 
        end_slot();
        ?>
	
	<?php 
    }
    ?>
	
<?php 
}
?>

<?php 
a_area('body', array('allowed_types' => array('aRichText', 'aSlideshow', 'aVideo', 'aImage', 'aFeed', 'aPDF', 'aButton', 'aText', 'aRawHTML'), 'type_options' => array('aRichText' => array('tool' => 'Main'), 'aSlideshow' => array("width" => 480, "flexHeight" => true), 'aVideo' => array('width' => 480, 'flexHeight' => true, 'resizeType' => 's'), 'aImage' => array('width' => 480, 'flexHeight' => true, 'resizeType' => 's'), 'aFeed' => array(), 'aButton' => array('width' => 480, 'flexHeight' => true, 'resizeType' => 's'), 'aPDF' => array('width' => 480, 'flexHeight' => true, 'resizeType' => 's'))));
?>
	
<?php 
a_area('sidebar', array('allowed_types' => array('aRichText', 'aSlideshow', 'aVideo', 'aImage', 'aFeed', 'aPDF', 'aButton', 'aText', 'aRawHTML'), 'type_options' => array('aRichText' => array('tool' => 'Sidebar'), 'aSlideshow' => array('width' => 200, 'flexHeight' => true, 'resizeType' => 's'), 'aVideo' => array('width' => 200, 'flexHeight' => true, 'resizeType' => 's'), 'aImage' => array('width' => 200, 'flexHeight' => true, 'resizeType' => 's'), 'aFeed' => array(), 'aButton' => array('width' => 200, 'flexHeight' => true, 'resizeType' => 's'), 'aPDF' => array('width' => 200, 'flexHeight' => true, 'resizeType' => 's'))));
?>

<?php 
slot('a-search', '');
Пример #6
0
<?php

use_helper('a');
slot('body_class');
?>
a-default<?php 
end_slot();
?>

<?php 
a_area('body', array('allowed_types' => array('aRichText', 'aVideo', 'aSlideshow', 'aSmartSlideshow', 'aFile', 'aAudio', 'aFeed', 'aButton', 'aText', 'aRawHTML'), 'type_options' => array('aRichText' => array('tool' => 'Main'), 'aVideo' => array('width' => 480, 'height' => false, 'resizeType' => 's', 'flexHeight' => true, 'title' => false, 'description' => false), 'aSlideshow' => array('width' => 480, 'height' => false, 'resizeType' => 's', 'flexHeight' => true, 'constraints' => array('minimum-width' => 480), 'arrows' => true, 'interval' => false, 'random' => false, 'title' => false, 'description' => false, 'credit' => false, 'position' => false, 'itemTemplate' => 'slideshowItem'), 'aSmartSlideshow' => array('width' => 480, 'height' => false, 'resizeType' => 's', 'flexHeight' => true, 'constraints' => array('minimum-width' => 480), 'arrows' => true, 'interval' => false, 'random' => false, 'title' => false, 'description' => false, 'credit' => false, 'position' => false, 'itemTemplate' => 'slideshowItem'), 'aFile' => array(), 'aAudio' => array('width' => 480, 'title' => true, 'description' => true, 'download' => true, 'playerTemplate' => 'default'), 'aFeed' => array('posts' => 5, 'links' => true, 'dateFormat' => false, 'itemTemplate' => 'aFeedItem'), 'aButton' => array('width' => 480, 'flexHeight' => true, 'resizeType' => 's', 'constraints' => array('minimum-width' => 480), 'rollover' => true, 'title' => true, 'description' => false), 'aText' => array('multiline' => true), 'aRawHTML' => array())));
?>
	
<?php 
a_area('sidebar', array('allowed_types' => array('aRichText', 'aVideo', 'aSlideshow', 'aSmartSlideshow', 'aFile', 'aAudio', 'aFeed', 'aButton', 'aText', 'aRawHTML'), 'type_options' => array('aRichText' => array('tool' => 'Sidebar'), 'aSlideshow' => array('width' => 200, 'height' => false, 'resizeType' => 's', 'flexHeight' => true, 'constraints' => array('minimum-width' => 200), 'arrows' => true, 'interval' => false, 'random' => false, 'title' => false, 'description' => false, 'credit' => false, 'position' => false, 'itemTemplate' => 'slideshowItem'), 'aSmartSlideshow' => array('width' => 200, 'height' => false, 'resizeType' => 's', 'flexHeight' => true, 'constraints' => array('minimum-width' => 200), 'arrows' => true, 'interval' => false, 'random' => false, 'title' => false, 'description' => false, 'credit' => false, 'position' => false, 'itemTemplate' => 'slideshowItem'), 'aVideo' => array('width' => 200, 'flexHeight' => true, 'resizeType' => 's'), 'aFeed' => array('posts' => 5, 'links' => true, 'dateFormat' => false, 'itemTemplate' => 'aFeedItem'), 'aAudio' => array('width' => 200, 'title' => true, 'description' => true, 'download' => true, 'playerTemplate' => 'default'), 'aButton' => array('width' => 200, 'flexHeight' => true, 'resizeType' => 's', 'constraints' => array('minimum-width' => 200), 'rollover' => true, 'title' => true, 'description' => false), 'aText' => array('multiline' => true), 'aRawHTML' => array())));
Пример #7
0
<?php

a_area('inset-' . $name . '-' . $permid, array('slug' => isset($areaOptions['slug']) ? $areaOptions['slug'] : null, 'edit' => isset($areaOptions['edit']) ? $areaOptions['edit'] : null, 'allowed_types' => array('aRichText', 'aVideo', 'aSlideshow', 'aSmartSlideshow', 'aFile', 'aAudio', 'aFeed', 'aButton', 'aBlog', 'aEvent', 'aText', 'aRawHTML'), 'type_options' => array('aRichText' => array('tool' => 'Sidebar'), 'aVideo' => array('width' => $areaOptions['width'], 'height' => $areaOptions['height'], 'resizeType' => $areaOptions['resizeType'], 'flexHeight' => $areaOptions['flexHeight'], 'title' => false, 'description' => false), 'aSlideshow' => array('width' => $areaOptions['width'], 'height' => $areaOptions['height'], 'resizeType' => $areaOptions['resizeType'], 'flexHeight' => $areaOptions['flexHeight'], 'constraints' => array('minimum-width' => $areaOptions['width']), 'arrows' => true, 'interval' => false, 'random' => false, 'title' => false, 'description' => false, 'credit' => false, 'position' => false, 'itemTemplate' => 'slideshowItem'), 'aSmartSlideshow' => array('width' => $areaOptions['width'], 'height' => $areaOptions['height'], 'resizeType' => $areaOptions['resizeType'], 'flexHeight' => $areaOptions['flexHeight'], 'constraints' => array('minimum-width' => $areaOptions['width']), 'arrows' => true, 'interval' => false, 'random' => false, 'title' => false, 'description' => false, 'credit' => false, 'position' => false, 'itemTemplate' => 'slideshowItem'), 'aFile' => array(), 'aAudio' => array('width' => $areaOptions['width'], 'title' => true, 'description' => true, 'download' => true, 'playerTemplate' => 'default'), 'aFeed' => array('posts' => 5, 'links' => true, 'dateFormat' => false, 'itemTemplate' => 'aFeedItem'), 'aButton' => array('width' => $areaOptions['width'], 'flexHeight' => $areaOptions['flexHeight'], 'resizeType' => $areaOptions['resizeType'], 'constraints' => array('minimum-width' => $areaOptions['width']), 'rollover' => true, 'title' => true, 'description' => false), 'aBlog' => array('slideshowOptions' => array('width' => $areaOptions['width'], 'height' => $areaOptions['height'])), 'aEvent' => array('slideshowOptions' => array('width' => $areaOptions['width'], 'height' => $areaOptions['height'])), 'aText' => array('multiline' => true), 'aRawHTML' => array())));
Пример #8
0
<?php 
slot('a-subnav');
?>
	<div class="a-subnav-wrapper blog">
		<div class="a-subnav-inner">
	    <?php 
include_component('aBlog', 'sidebar', array('params' => $params, 'dateRange' => $dateRange, 'categories' => $blogCategories));
?>
	  </div> 
	</div>
<?php 
end_slot();
?>

<?php 
a_area('blog-header', array('allowed_types' => array('aRichText'), 'type_options' => array('aRichText' => array('tool' => 'Main'))));
?>

<div id="a-blog-main" class="a-blog-main">
  <?php 
if ($sf_params->get('year')) {
    ?>
  <h2><?php 
    echo $sf_params->get('day');
    ?>
 <?php 
    echo $sf_params->get('month') ? date('F', strtotime(date('Y') . '-' . $sf_params->get('month') . '-01')) : '';
    ?>
 <?php 
    echo $sf_params->get('year');
    ?>