Added display of CakePHP version to the default layout

Refs https://github.com/cakephp/cakephp/issues/2077#issuecomment-26377120
This commit is contained in:
Marc Würth 2013-10-16 02:07:59 +02:00
parent 5a394c379a
commit ae00916753
2 changed files with 8 additions and 2 deletions

View file

@ -18,6 +18,7 @@
*/ */
$cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework'); $cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework');
$cakeVersion = __d('cake_dev', 'CakePHP %s', Configure::version())
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
@ -52,9 +53,12 @@ $cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework
<?php echo $this->Html->link( <?php echo $this->Html->link(
$this->Html->image('cake.power.gif', array('alt' => $cakeDescription, 'border' => '0')), $this->Html->image('cake.power.gif', array('alt' => $cakeDescription, 'border' => '0')),
'http://www.cakephp.org/', 'http://www.cakephp.org/',
array('target' => '_blank', 'escape' => false) array('target' => '_blank', 'escape' => false, 'id' => 'cake-powered')
); );
?> ?>
<p>
<?php echo $cakeVersion; ?>
</p>
</div> </div>
</div> </div>
<?php echo $this->element('sql_dump'); ?> <?php echo $this->element('sql_dump'); ?>

View file

@ -107,11 +107,13 @@ p {
#footer { #footer {
clear: both; clear: both;
padding: 6px 10px; padding: 6px 10px;
text-align: right;
} }
#header a, #footer a { #header a, #footer a {
color: #fff; color: #fff;
} }
#cake-powered {
float: right;
}
/** containers **/ /** containers **/
div.form, div.form,