<?php } ?> <li> <?php // We want to eliminate jQuery helpers, but writing this link as raw HTML is tricky because ?> <?php // of the need to quote the title option right. And link_to doesn't like '#' as a URL. So we use ?> <?php // content_tag, Symfony's lower-level helper for outputting any tag and its content programmatically ?> <?php echo content_tag('a', '<span class="icon"></span>' . (isset($label) ? a_($label) : a_("Edit")), array('href' => '#edit-slot-' . $pageid . '-' . $name . '-' . $permid, 'id' => "a-slot-edit-{$pageid}-{$name}-{$permid}", 'class' => isset($class) ? $class : 'a-btn icon a-edit', 'title' => isset($title) ? $title : a_('Edit'))); ?> <?php a_js_call('apostrophe.slotEnableEditButton(?, ?, ?, ?, ?)', $pageid, $name, $permid, url_for($slot->type . 'Slot/ajaxEditView'), aTools::getRealUrl()); ?> </li> <?php if ($controlsSlot) { ?> <?php end_slot(); ?> <?php }
?> <?php echo link_to('<span class="icon"></span>' . a_get_option($options, 'chooseLabel', a_('Choose Images')), 'aMedia/select', array('query_string' => http_build_query(array_merge($options['constraints'], array("multiple" => true, "aMediaIds" => implode(",", $itemIds), "type" => "image", "label" => a_get_option($options, 'browseLabel', a_('You are creating a slideshow of images.')), "after" => url_for("aSlideshowSlot/edit") . "?" . http_build_query(array("slot" => $name, "slug" => $slug, "permid" => $permid, "noajax" => 1))))), 'class' => 'a-btn icon a-media a-inject-actual-url')); ?> <?php aRouteTools::popTargetEnginePage('aMedia'); ?> </li> <?php include_partial('a/variant', array('pageid' => $pageid, 'name' => $name, 'permid' => $permid, 'slot' => $slot)); ?> <?php end_slot(); ?> <?php } ?> <?php if (count($items)) { ?> <?php include_component('aSlideshowSlot', $options['slideshowTemplate'], array('items' => $items, 'id' => $id, 'options' => $options)); } else { ?> <?php include_partial('aImageSlot/placeholder', array('placeholderText' => a_("Choose Photos"), 'options' => $options)); }
<?php // Compatible with sf_escaping_strategy: true $form = isset($form) ? $sf_data->getRaw('form') : null; $embed = isset($embed) ? $sf_data->getRaw('embed') : null; $dimensions = isset($dimensions) ? $sf_data->getRaw('dimensions') : null; $item = isset($item) ? $sf_data->getRaw('item') : null; ?> <?php use_helper('a'); ?> <h4 class="a-slot-edit-title"><?php echo a_('Inset Area Body'); ?> </h4> <div class="a-form-row a-hidden"> <?php echo $form->renderHiddenFields(); ?> </div> <?php if ($options['value']) { echo $form['value']->render(); echo $form['value']->renderError(); } ?>
?> <?php // it is less useful if all of your locations are 'room 150', etc. with no further ?> <?php // information. Naturally full addresses work best ?> <li class="post-location a-ui"> <?php echo aString::firstLine($aEvent['location']); ?> <?php if (sfConfig::get('app_events_google_maps', true)) { ?> <?php echo a_button(a_('Google Maps'), url_for('http://maps.google.com/maps?' . http_build_query(array('q' => preg_replace('/\\s+/', ' ', $aEvent['location'])))), array('no-bg', 'alt', 'icon', 'a-google-maps')); ?> <?php } ?> </li> <?php } ?> <?php /* Events generally don't display the author, but you can if necessary. ?> <li class="post-author"> <span class="a-blog-item-meta-label"><?php echo __('Posted By:', array(), 'apostrophe') ?></span> <?php echo ($aEvent->getAuthor()->getName()) ? $aEvent->getAuthor()->getName() : $aEvent->getAuthor() ?> </li>
protected function fillExcel(PHPExcel $excel, aPollPoll $poll, aPollBaseForm $fields_form, aPollAnswerForm $answer_form) { // loading helpers sfContext::getInstance()->getConfiguration()->loadHelpers('a'); // file properties $excel->getProperties()->setCreator("Buddies Sàrl")->setLastModifiedBy($this->getUser()->getGuardUser()->getName())->setTitle(sprintf('Poll %s answers export', $this->poll->getTitle()))->setSubject(sprintf('Poll %s answers export', $this->poll->getTitle()))->setDescription('Export generated at ' . date('l d F Y H:i:s')); // Header $names = array(a_('Id'), a_('Posted from'), a_('Submission language'), a_('Submission date')); $excel->setActiveSheetIndex(0); $column = 'A'; $row = 1; $font = 'Arial'; $font_size = 10; // aPollAnswer fields foreach ($names as $name) { $cell = $column . $row; $excel->getActiveSheet()->setCellValue($cell, $name); $excel->getActiveSheet()->getColumnDimension($column)->setAutoSize(true); $excel->getActiveSheet()->getStyle($cell)->getFont()->setName($font); $excel->getActiveSheet()->getStyle($cell)->getFont()->setSize($font_size); $excel->getActiveSheet()->getStyle($cell)->getFont()->setBold(true); $column++; } // aPollAnswerField fields foreach ($fields_form->getFieldsToSave() as $field) { $cell = $column . $row; $excel->getActiveSheet()->setCellValue($cell, $fields_form->getWidget($field)->getLabel()); $excel->getActiveSheet()->getColumnDimension($column)->setAutoSize(true); $excel->getActiveSheet()->getStyle($cell)->getFont()->setName($font); $excel->getActiveSheet()->getStyle($cell)->getFont()->setSize($font_size); $excel->getActiveSheet()->getStyle($cell)->getFont()->setBold(true); $column++; } // answers $answer_fields_to_report = array('id', 'remote_address', 'culture', 'created_at'); $row = 1; foreach ($poll->getAnswers() as $answer) { $column = 'A'; $row++; foreach ($answer_fields_to_report as $field) { $cell = $column . $row; $excel->getActiveSheet()->setCellValue($cell, aPollToolkit::renderFormFieldValue($answer_form, $answer_form[$field], $answer->get($field))); $excel->getActiveSheet()->getStyle($cell)->getFont()->setName($font); $excel->getActiveSheet()->getStyle($cell)->getFont()->setSize($font_size); $column++; } // building array of answer fields $answer_fields = $answer->getFields(); $fields = array(); foreach ($answer_fields as $field) { $fields[$field->getName()] = $field->getValue(); } // writing values to excel foreach ($fields_form->getFieldsToSave() as $name) { $cell = $column . $row; if (isset($fields[$name])) { $fields_form_field = $fields_form[$name]; $excel->getActiveSheet()->setCellValue($cell, aPollToolkit::renderFormFieldValue($fields_form, $fields_form_field, $fields[$name])); $excel->getActiveSheet()->getStyle($cell)->getFont()->setName($font); $excel->getActiveSheet()->getStyle($cell)->getFont()->setSize($font_size); } $column++; } } $excel->setActiveSheetIndex(0); return $excel; }
<?php use_helper('a', 'Date'); ?> <li class="a-admin-action-new"><?php echo a_js_button(a_('New Post'), array('big', 'icon', 'a-add', 'a-blog-new-post-button'), 'a-blog-new-post-button'); ?> <div class="a-ui a-options a-blog-admin-new-ajax dropshadow"> <?php include_component('aBlogAdmin', 'newPost'); ?> </div> </li> <?php if (sfConfig::get('app_aBlog_disqus_enabled', true) && sfConfig::get('app_aBlog_disqus_shortname')) { ?> <li><?php echo link_to('Comments', 'http://' . sfConfig::get('app_aBlog_disqus_shortname') . '.disqus.com', array('class' => 'a-btn big')); ?> </li> <?php }
} else { ?> <input type="image" src="/apostrophePlugin/images/a-special-blank.gif" class="submit a-search-submit" value="Search Pages" alt="Search" title="Search"/> <?php } ?> </div> <?php /* Removed the cancel button because everyone kept clicking cancel instead of search. If you want to get back to media click the media heading. ?> <div class="a-form-row cancel" id="a-media-video-add-by-embed-form-submit"> <?php echo link_to('<span class="icon"></span>'.a_("Cancel"), 'aMedia/resume', array("class" => "a-btn icon a-cancel")) ?> </div> <?php //*/ ?> </form> </div> <?php if (isset($pager)) { ?> <?php include_partial('aMedia/videoSearch', array('url' => $url, 'pager' => $pager, 'service' => $service)); ?> <?php } ?> </div> <?php a_js_call('apostrophe.selfLabel(?)', array('selector' => '#a-media-search-services .a-search-field', 'title' => a_('Search')));
?> <?php $catClass = ""; foreach ($a_event->getCategories() as $category) { $catClass .= " category-" . aTools::slugify($category); } ?> <div class="a-blog-item event <?php echo $a_event->getTemplate(); echo $catClass != '' ? $catClass : ''; ?> "> <?php if ($a_event->userHasPrivilege('edit')) { ?> <ul class="a-ui a-controls a-blog-post-controls"> <li> <?php echo a_button(a_('Edit'), url_for('a_event_admin_edit', $a_event), array('a-btn', 'icon', 'a-edit', 'lite', 'alt', 'no-label')); ?> </li> </ul> <?php } ?> <?php include_partial('aEvent/' . $a_event->getTemplate(), array('a_event' => $a_event, 'edit' => false)); ?> </div>
private function i18nDummy() { a_('No Author'); }
<div class="a-form-row by-type title"> <?php $w = $form['title_or_tag']; ?> <input type="radio" id="<?php echo $w->renderId(); ?> -title" name="<?php echo $w->renderName(); ?> " value="title" <?php echo $w->getValue() === "title" ? 'checked' : ''; ?> /> <h4><label for="<?php echo $w->renderId(); ?> -title"><?php echo a_('By Title'); ?> </label></h4> <div class="a-form-row blog-posts"> <?php echo $form['blog_posts']->render(); ?> </div> </div> </div> <?php a_js_call('aBlog.slotEditView(?)', array('formName' => $form->getName(), 'autocompleteUrl' => url_for("aBlogAdmin/search"), 'class' => 'blog-posts', 'selfLabelSelector' => '#' . $w->renderId() . '-title', 'debug' => false));
?> <?php // Tom: Just a quick note about this -- Enabling the delete button for singleton slot works, it just clears out the value for that slot instead of deleting the slot. ?> <li> <?php $delete_button_style = sfConfig::get('app_a_delete_button_style', 'no-label'); ?> <?php $delete_button_id = "a-slot-{$pageid}-{$name}-{$permid}-delete-button"; ?> <?php echo a_js_button(a_('Delete'), array('icon', 'a-delete', 'alt', $delete_button_style), $delete_button_id, a_('Delete Slot')); ?> <?php a_js_call('apostrophe.areaEnableDeleteSlotButton(?)', array('pageId' => $page->id, 'name' => $name, 'permid' => $permid, 'buttonId' => $delete_button_id, 'confirmPrompt' => a_('Are you sure you want to delete this slot?'), "url" => url_for("a/deleteSlot?" . http_build_query(array("id" => $page->id, "name" => $name, "permid" => $permid))))); ?> </li> <?php } ?> </ul> <?php } ?> <?php // End Slot Controls ?>
"> <?php foreach ($week as $eventDate => $event) { ?> <?php $day_class = date('m', strtotime($eventDate)) == date('m', strtotime($calendar['month'])) ? ' current-month' : ' not-current-month'; ?> <?php $day_class .= date('mdy', strtotime($eventDate)) == date('mdy') ? ' today' : ''; ?> <?php $day_class .= date('d', strtotime($eventDate)) == $sf_request->getParameter('day') ? ' selected' : ''; ?> <?php $day_title = date('mdy', strtotime($eventDate)) == date('mdy') ? a_('Today') : ''; ?> <td class="day day-<?php echo $d; echo $day_class; ?> " title="<?php echo $day_title; ?> "> <?php if (count($event)) { ?> <a href="<?php echo url_for(aUrl::addParams($filtersWithoutDate, array('year' => date('Y', strtotime($eventDate)), 'month' => date('m', strtotime($eventDate)), 'day' => date('d', strtotime($eventDate)))));
<?php slot('body_class'); ?> a-blog <?php echo $sf_params->get('module'); ?> <?php echo $sf_params->get('action'); end_slot(); ?> <?php slot('a-subnav'); ?> <div class="a-ui a-subnav-wrapper blog clearfix"> <div class="a-subnav-inner"> <?php include_component('aBlog', 'sidebar', array('params' => $params, 'dateRange' => $dateRange, 'info' => $info, 'url' => 'aEvent/index', 'searchLabel' => a_('Search Events'), 'newLabel' => a_('New Event'), 'newModule' => 'aEventAdmin', 'newComponent' => 'newEvent', 'url' => 'aEvent/index', 'calendar' => $calendar)); ?> </div> </div> <?php end_slot(); ?> <div id="a-blog-main" class="a-blog-main clearfix"> <?php echo include_partial('aEvent/post', array('a_event' => $aEvent, 'preview' => $preview)); ?> </div>
<?php $fields = $configuration->getFormFilterFields($filters); ?> <?php if ($appliedFilters) { ?> <?php echo a_('You are viewing events'); ?> <?php } else { ?> <?php echo a_('You are viewing all events'); ?> <?php } ?> <?php $n = 1; foreach ($appliedFilters as $name => $values) { ?> <?php $field = $fields[$name]; ?> <?php echo $field->getConfig('label', $name);
if ($sf_params->get('module') != 'aFeedback') { use_helper('a'); ?> <div class="a-feedback-footer clearfix" id="a-feedback-footer"> <?php echo a_js_button(a_('Submit a Bug Report'), array('a-link', 'a-feedback'), 'a-feedback-link'); ?> <div class="a-feedback-form-container clearfix" id="a-feedback-form-container"> <?php include_partial('aFeedback/feedback', array('form' => new aFeedbackForm(), 'feedbackSubmittedBy' => false, 'failed' => false)); ?> </div> <?php if ($reportSubmittedBy = $sf_user->getFlash('reportSubmittedBy')) { ?> <div class="a-feedback-submitted clearfix"><span class="submitted-by"><?php echo $reportSubmittedBy; ?> </span> – <?php echo a_('Thank you for submitting a bug report.'); ?> </div> <?php } ?> </div> <?php a_js_call('aFeedback.feedbackForm(?)', array('url' => url_for('aFeedback/feedback') . "?" . http_build_query(array('section' => $_SERVER['REQUEST_URI'])))); }
<?php use_helper('a'); ?> <?php echo a_('Poll "%name%": new user submission', array('%name%' => $poll->getTitle()));
<dt><?php echo a_('Email title template'); ?> </dt> <dd><?php echo aPollToolkit::getNotificationEmailTitlePartial($name); ?> </dd> <dt><?php echo a_('Email body template'); ?> </dt> <dd><?php echo aPollToolkit::getNotificationEmailBodyPartial($name); ?> </dd> <dt><?php echo a_('Display a security captcha?'); ?> </dt> <dd><?php echo aPollToolkit::getCaptchaDoDisplay($name) == true ? a_('Yes') : a_('No'); ?> </dd> </dl>
<h5 class="a-account-preview-description"><?php echo $description; ?> </h5> <ul class="a-account-preview-recent"> <?php foreach ($results['results'] as $result) { ?> <li><?php echo $service->embed($result['id'], aMediaTools::getOption('video_account_preview_width'), aMediaTools::getOption('video_account_preview_height')); ?> </li> <?php } ?> </ul> <div class="a-account-preview-confirm"> <p class="a-help">Add this account so that all new media associated with it will automatically be added to the media repository on an ongoing basis.</p> <ul class="a-ui a-controls"> <li><?php echo a_js_button(a_('Add This Account'), array('big', 'icon', 'a-add'), 'a-account-preview-ok'); ?> </li> <li><?php echo a_js_button(a_('Cancel'), array('icon', 'a-cancel', 'big', 'alt'), 'a-account-preview-cancel'); ?> </li> </ul> </div>
$permid = isset($permid) ? $sf_data->getRaw('permid') : null; $slot = isset($slot) ? $sf_data->getRaw('slot') : null; ?> <?php include_partial('a/simpleEditWithVariants', array('pageid' => $page->id, 'name' => $name, 'permid' => $permid, 'slot' => $slot, 'page' => $page, 'label' => a_get_option($options, 'editLabel', a_('Choose Events')))); ?> <?php if (count($aBlogPosts)) { ?> <?php foreach ($aBlogPosts as $aBlogPost) { ?> <?php $options['slideshowOptions']['idSuffix'] = 'aBlogSlot-' . $permid . '-' . $slot . '-' . $aBlogPost->getId(); ?> <?php include_partial('aEventSingleSlot/post', array('options' => $options, 'aBlogItem' => $aBlogPost)); ?> <?php } } else { ?> <h4><?php echo a_('There are no events that match the criteria you have specified.'); ?> </h4> <?php }
<?php include_component($editModule, "editView", array("name" => $name, "type" => $type, "permid" => $permid, "options" => $options, "updating" => $updating, "validationData" => $validationData)); ?> <ul class="a-ui a-controls"> <li> <?php // We need an id, not a name. Fix Jake's "I can't edit anything" bug ?> <?php echo a_anchor_submit_button(a_('Save'), array('a-save', 'a-show-busy'), null, 'a-slot-form-submit-' . $id); ?> </li> <li> <?php echo a_js_button(a_('Cancel'), array('icon', 'a-cancel', 'alt'), 'a-slot-form-cancel-' . $id); ?> </li> </ul> </form> <?php a_js_call('apostrophe.slotEnableForm(?)', array('slot-form' => '#a-slot-form-' . $id, 'slot-content' => '#a-slot-content-' . $id, 'url' => url_for($type . 'Slot/edit') . '?' . http_build_query(array('slot' => $name, 'permid' => $permid, 'slug' => $slug)))); } ?> <?php if ($editable) { ?>
function a_js_cancel_button($label = null, $classes = array(), $id = null) { if (is_null($label)) { $label = a_('Cancel'); } $classes[] = 'a-cancel'; return a_js_button($label, $classes, $id); }
<?php // I adjusted the wording here to avoid saying "click on" as sometimes there is an explicit select button etc. ?> <h4> <?php echo __('Use the browsing and searching features to locate the %type% you want, then click to select it.', array('%type%' => __($type, null, 'apostrophe')), 'apostrophe'); ?> <?php if ($limitSizes) { ?> <?php // separately I18N the plural ?> <?php echo __('Only appropriately sized %typeplural% are shown.', array('%typeplural%' => __($type . 's', null, 'apostrophe')), 'apostrophe'); ?> <?php } ?> </h4> </div> </div> <ul class="a-ui a-controls"> <li><?php echo a_button(a_('Cancel'), url_for("aMedia/selectCancel"), array('icon', 'a-cancel', 'big', 'a-select-cancel')); ?> </li> </ul> </div>
?> </li> <ul> <li><?php echo a_('Server time:'); ?> <?php echo format_datetime(time()); ?> </li> <li><?php echo a_('Publication dates: from %date_from% to %date_to%', array('%date_from%' => $poll->getPublishedFrom() ? format_datetime($poll->getPublishedFrom()) : 'unlimited', '%date_to%' => $poll->getPublishedTo() ? format_datetime($poll->getPublishedTo()) : 'unlimited')); ?> </li> </ul> <li><?php echo a_('You already submitted an answer and the poll is configured to not display twice. (see app.yml)'); ?> </li> <ul> <li><?php echo a_('Setting: %setting%', array('%setting%' => true == aPollToolkit::getPollAllowMultipleSubmissions($poll) ? a_('Multiple submissions allowed') : a_('Only one answer allowed'))); ?> </li> </ul> </ul> <?php echo a_('Change these parameters in %link%', array('%link%' => link_to('poll\'s admin', '@a_poll_poll_admin_edit?id=' . $poll->getId()))); ?> </div>
echo url_for('aFeedback/feedback'); ?> " method="post" enctype="multipart/form-data" id="a-feedback-form" class="a-ui a-feedback-form clearfix"> <?php echo $form; ?> <div class="a-form-row submit"> <ul class="a-ui a-controls"> <li> <?php echo a_submit_button('Submit Feedback'); ?> </li> <li> <?php echo a_button('<span class="icon"></span>' . a_('Cancel'), $form['section']->getValue() ? $form['section']->getValue() : '#cancel', array('icon a-cancel'), 'a-feedback-form-cancel-button'); ?> </li> </ul> </div> </form> <?php if ($sf_request->isXmlHttpRequest()) { ?> <?php include_partial('a/globalJavascripts'); }
<?php echo $form['title']->render(array('class' => 'big')); ?> </div> <?php echo $form['title']->renderError(); ?> </div> <div class="a-form-row"> <ul class="a-ui a-controls"> <li><?php echo a_anchor_submit_button(a_('Create'), array('a-show-busy')); ?> </li> <li><?php echo a_js_button(a_('Cancel'), array('icon', 'a-cancel', 'a-options-cancel', 'alt')); ?> </li> </ul> </div> </form> <?php a_js_call('aBlogEnableNewForm()'); a_js_call('apostrophe.menuToggle(?)', array('button' => '.a-blog-new-post-button', 'classname' => 'a-options-open', 'overlay' => false, 'focus' => '#a_blog_new_post_title')); ?> <?php a_js_call('apostrophe.selfLabel(?)', array('selector' => '#a_blog_new_post_title', 'title' => a_('Title'), 'persistentLabel' => true));
<?php // Compatible with sf_escaping_strategy: true $form = isset($form) ? $sf_data->getRaw('form') : null; $embed = isset($embed) ? $sf_data->getRaw('embed') : null; $dimensions = isset($dimensions) ? $sf_data->getRaw('dimensions') : null; $item = isset($item) ? $sf_data->getRaw('item') : null; ?> <?php use_helper('a'); ?> <h4 class="a-slot-edit-title"><?php echo a_('Inset Image Slot'); ?> </h4> <div class="a-form-row a-hidden"> <?php echo $form->renderHiddenFields(); ?> </div> <?php if ($item) { ?> <div class="a-form-row image"> <label for="a-button-edit-view-<?php echo $pageid . '-' . $name . '-' . $permid; ?>
<?php $type = $count != 1 ? $typePlural : $type; ?> <?php echo a_('You are viewing %count% %type% %filters%', array('%count%' => $count, '%type%' => $type, '%filters%' => implode(' ', $filters))); ?> <?php } else { ?> <?php if ($count) { ?> <?php echo a_('You are viewing all %type%', array('%type%' => $typePlural)); ?> <?php } else { ?> <?php echo a_('There are no %type%', array('%type%' => $typePlural)); ?> <?php } ?> <?php } ?> </h3> </div>
<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'])))); ?> <?php } ?> <?php foreach ($pager->getResults() as $a_event) {
<?php // Compatible with sf_escaping_strategy: true $editable = isset($editable) ? $sf_data->getRaw('editable') : null; $feed = isset($feed) ? $sf_data->getRaw('feed') : null; $invalid = isset($invalid) ? $sf_data->getRaw('invalid') : null; $name = isset($name) ? $sf_data->getRaw('name') : null; $pageid = isset($pageid) ? $sf_data->getRaw('pageid') : null; $permid = isset($permid) ? $sf_data->getRaw('permid') : null; $options = isset($options) ? $sf_data->getRaw('options') : null; $slot = isset($slot) ? $sf_data->getRaw('slot') : null; $url = isset($url) ? $sf_data->getRaw('url') : null; use_helper('a'); if ($editable) { include_partial('a/simpleEditWithVariants', array('name' => $name, 'permid' => $permid, 'pageid' => $pageid, 'slot' => $slot, 'label' => a_get_option($options, 'editLabel', a_('Edit')))); } if (!isset($url)) { ?> <p class="aFeedSelect"><?php echo __('Click Edit to select a feed URL.', null, 'apostrophe'); ?> </p> <?php } elseif ($invalid) { ?> <?php include_partial('aFeedSlot/invalid'); } else { ?> <ul class="a-feed"> <?php
</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()))); }