public function executeEmbed() { $culture = $this->getCulture(); if ($this->getRequestParameter('edit') == 'true') { if (!$this->checkEditorCredential()) { $this->CMS_error_msg = 'You need the editor credential to edit this content'; return; } $page = sfSimpleCMSPagePeer::retrieveBySlug($this->slug, $culture); } else { $page = sfSimpleCMSPagePeer::retrievePublicBySlug($this->slug, $culture); } if (!$page) { $this->CMS_error_msg = sprintf('The page %s does not exist in culture %c', $this->slug, $culture); return; } $this->page = $page; $this->culture = $culture; $this->getRequest()->setAttribute('culture', $culture); $this->templatePath = sfLoader::getTemplatePath('sfSimpleCMS', $this->page->getTemplate() . 'Template.php'); sfConfig::set('app_sfSimpleCMS_disable_editor_toolbar', true); }
<?php decorate_with(sfLoader::getTemplatePath('default', 'defaultLayout.php')); ?> <div class="sfTMessageContainer sfTAlert"> <?php echo image_tag('/sf/sf_default/images/icons/tools48.png', array('alt' => 'website unavailable', 'class' => 'sfTMessageIcon', 'size' => '48x48')); ?> <div class="sfTMessageWrap"> <h1>We're Sorry!<br />The Metadata Registry is briefly unavailable</h1> <h5>This website has been temporarily disabled. Please try again later.</h5> </div> </div>