/** * Draws the standard footer * */ public static function footer() { $v = EcrHtml::getVersionFromCHANGELOG('com_easycreator'); //-- If the version contains a hyphen, it must be a snapshot - color orange. $color = false === strpos($v, '-') ? 'green' : 'orange'; $version = '<strong style="color: ' . $color . ';">' . $v . '</strong>'; ?> <div class="ecrFooter"> <span class="img icon16-easycreator">EasyCreator</span> <?php echo $version; ?> is made and partially Copyright © 2008 - 2015 by <a href="https://github.com/elkuku" class="external">El KuKu</a> and <a href="https://github.com/elkuku/EasyCreator/graphs/contributors" class="external"> Others </a> <br/> <small><em style="color: silver;"><span class="img icon16-joomla"></span> EasyCreator is not affiliated with or endorsed by the <a href="http://joomla.org" class="external">Joomla! Project</a>. It is not supported or warranted by the <a href="http://joomla.org" class="external">Joomla! Project</a> or <a href="http://opensourcematters.org/" class="external">Open Source Matters</a>.<br/> <a href="http://www.joomla.org/about-joomla/the-project/conditional-use-logos.html" class="external">The Joomla! logo</a> is used under a limited license granted by <a href="http://opensourcematters.org/" class="external">Open Source Matters</a> the trademark holder in the United States and other countries.</em></small> </div> <?php if (defined('ECR_DEBUG') && ECR_DEBUG) { EcrDebugger::printSysVars('get'); EcrDebugger::printSysVars('post'); } echo "\n" . '<!-- EasyCreator END -->' . "\n"; }
/** * Format a filename for a package file. * * @param EcrProjectBase $project The project * @param string $format The format to use * * @return string */ public static function formatFileName(EcrProjectBase $project, $format) { $vcsRev = EcrHtml::getVersionFromCHANGELOG($project->comName, true); preg_match('%\\*DATETIME(.*?)\\*%', $format, $matches); if ($matches && isset($matches[1])) { $format = str_replace($matches[0], date($matches[1]), $format); } $format = str_replace('*VCSREV*', $vcsRev, $format); $format = str_replace('*VERSION*', $project->version, $format); return $format; }