From ae00916753f41de9e36480a56f4bac3b155f6675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=BCrth?= Date: Wed, 16 Oct 2013 02:07:59 +0200 Subject: [PATCH] Added display of CakePHP version to the default layout Refs https://github.com/cakephp/cakephp/issues/2077#issuecomment-26377120 --- app/View/Layouts/default.ctp | 6 +++++- app/webroot/css/cake.generic.css | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/View/Layouts/default.ctp b/app/View/Layouts/default.ctp index c612f5c7b..7a8e71788 100644 --- a/app/View/Layouts/default.ctp +++ b/app/View/Layouts/default.ctp @@ -18,6 +18,7 @@ */ $cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework'); +$cakeVersion = __d('cake_dev', 'CakePHP %s', Configure::version()) ?> @@ -52,9 +53,12 @@ $cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework Html->link( $this->Html->image('cake.power.gif', array('alt' => $cakeDescription, 'border' => '0')), 'http://www.cakephp.org/', - array('target' => '_blank', 'escape' => false) + array('target' => '_blank', 'escape' => false, 'id' => 'cake-powered') ); ?> +

+ +

element('sql_dump'); ?> diff --git a/app/webroot/css/cake.generic.css b/app/webroot/css/cake.generic.css index 9bdf5307a..39e0e7a54 100644 --- a/app/webroot/css/cake.generic.css +++ b/app/webroot/css/cake.generic.css @@ -107,11 +107,13 @@ p { #footer { clear: both; padding: 6px 10px; - text-align: right; } #header a, #footer a { color: #fff; } +#cake-powered { + float: right; +} /** containers **/ div.form,