/** * @see sfTask */ protected function execute($arguments = array(), $options = array()) { $version = sfSympalConfig::getCurrentVersion(); $formattedVersion = $this->formatter->format($version, 'INFO'); $dir = $this->configuration->getPluginConfiguration('sfSympalPlugin')->getRootDir(); if (isset($options['check']) && $options['check']) { $upgrade = new sfSympalUpgradeFromWeb($this->configuration, $this->dispatcher, $this->formatter); if ($upgrade->hasNewVersion()) { $formattedVersion = $this->formatter->format($upgrade->getLatestVersion(), 'INFO'); $this->log(sprintf("\nSympal %s is available for download.\n", $formattedVersion)); $command = $this->formatter->format('./symfony sympal:upgrade --download-new', 'COMMENT'); $this->log(sprintf("Run %s to download the new version and upgrade.\n", $command)); } else { $this->log(sprintf("\nYou are up to date with Sympal %s (%s)\n", $formattedVersion, $dir)); } } else { $this->log(sprintf('Current Sympal version %s (%s)', $formattedVersion, $dir)); } }
public function getCurrentVersion() { return sfSympalConfig::getCurrentVersion(); }
<div id="sympal_ajax_loading"> Loading... </div> <div id="container"> <div id="content"> <?php echo get_sympal_flash(); ?> <?php echo $sf_content; ?> </div> <?php if ($sf_sympal_context->getSite() && $sf_user->isAuthenticated()) { ?> <div id="footer"> <p><?php echo __('Powered by %1% %2%', array('%1%' => link_to('Sympal', 'http://www.sympalphp.org', 'target=_BLANK'), '%2%' => sfSympalConfig::getCurrentVersion())); ?> .</p> </div> <?php } ?> </div> </body> </html>