From: vincent@cubedesigners.com Date: Tue, 26 Jan 2016 13:14:31 +0000 (+0000) Subject: #ccgm update cms, adapt web video X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=7349bbac11fa183d3571d3f801be15857fb1cb9c;p=ccgm.git #ccgm update cms, adapt web video --- diff --git a/framework/application/Bootstrap.php b/framework/application/Bootstrap.php index bd7204b..5cc08ac 100644 --- a/framework/application/Bootstrap.php +++ b/framework/application/Bootstrap.php @@ -32,14 +32,6 @@ class Bootstrap extends CubeIT_Bootstrap { */ protected function _defineSchema(&$schema, $options) { parent::_defineSchema($schema, $options); - - $user = $schema->createTable('user'); - $user->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => true)); - $user->setPrimaryKey(array('id')); - $user->addColumn('username', 'string', array('length' => 32)); - $user->addUniqueIndex(array('username')); - $user->addColumn('password', 'string', array('length' => 256)); - $user->addColumn('role', 'string', array('length' => 32)); } protected function _initAcl() { diff --git a/framework/application/configs/application.ini b/framework/application/configs/application.ini index e86d0d2..1e2c183 100644 --- a/framework/application/configs/application.ini +++ b/framework/application/configs/application.ini @@ -1,5 +1,5 @@ [base] -dev = false +dev = true minify.js = true minify.css = true @@ -21,7 +21,7 @@ session.domain=.ccgm.fr session.adapter = cache database.adapter = pdo_mysql -database.params.host = mysql51-56.pro +database.params.host = ccgmzwgfweb.mysql.db database.params.username = ccgmzwgfweb database.params.password = 6vr7TbBC database.params.dbname = ccgmzwgfweb diff --git a/framework/application/controllers/IndexController.php b/framework/application/controllers/IndexController.php index 1c01282..9a03b46 100644 --- a/framework/application/controllers/IndexController.php +++ b/framework/application/controllers/IndexController.php @@ -4,7 +4,6 @@ class IndexController extends CubeIT_Controller_IndexController { public function pageAction() { $this->view->showbreadcrubms = $this->view->showsidebar = $this->view->showtopimage = true; - $this->view->contentWidth = 769; $res = parent::pageAction(); diff --git a/framework/application/views/helpers/Rightbar.php b/framework/application/views/helpers/Rightbar.php index 0239cf9..ccf7a94 100644 --- a/framework/application/views/helpers/Rightbar.php +++ b/framework/application/views/helpers/Rightbar.php @@ -8,7 +8,7 @@ class CCGM_View_Helper_Rightbar extends Zend_View_Helper_Abstract { } $s = $this->view->sidebar; - if (trim($s['text']) == '' && trim($s['text2']) == '' && !count($s['image'])) { + if (trim($s['text']) == '' && trim($s['text2']) == '' && ($s['image']=='' || !count($s['image'])) ) { return; } diff --git a/framework/application/views/scripts/common/content.phtml b/framework/application/views/scripts/common/content.phtml index 5ba51d0..dbf6f7a 100644 --- a/framework/application/views/scripts/common/content.phtml +++ b/framework/application/views/scripts/common/content.phtml @@ -1,4 +1,5 @@ contentWidth = 769; $content = $this->layout()->content . "\n"; @@ -15,19 +16,18 @@ if (isset($this->currentPage) && $this->currentPage->getTemplate() == 'home') { } - $c = $this->topimage(); - $c.='
'; - $c.=$this->bcrumbs(); + $c .= '
'; + $c .= $this->bcrumbs(); if ($this->showsidebar) { - $c.='
'; + $c .= '
'; } - $c.=$content; + $c .= $content; if ($this->showsidebar) { - $c.=$leftbar; - $c.='
'; + $c .= $leftbar; + $c .= '
'; } - $c.='
'; + $c .= '
'; } echo '
'; diff --git a/framework/application/views/scripts/templates/text.phtml b/framework/application/views/scripts/templates/text.phtml index 33716e7..c161a14 100644 --- a/framework/application/views/scripts/templates/text.phtml +++ b/framework/application/views/scripts/templates/text.phtml @@ -1,3 +1,7 @@ +contentWidth = 662; +?> +
ul{ - >li:hover,>li.active{ - background-image:url(../images/arrow-nav-1.svg); - background-position:9px 7px; + > ul { + > li:hover, > li.active { + background-image: url(../images/arrow-nav-1.svg); + background-position: 9px 7px; background-color: #57c1e6; } - >li{ - >a{ - padding:7px 0 11px 39px; - color:#fff; - display:block; + > li { + > a { + padding: 7px 0 11px 39px; + color: #fff; + display: block; } - >ul{ - overflow:hidden; - border:0; - color:#035277; - font:13px; - background-color:#f3fafd; - margin:0 -1px -1px; - overflow:hidden; + > ul { + overflow: hidden; + border: 0; + color: #035277; + font: 13px; + background-color: #f3fafd; + margin: 0 -1px -1px; + overflow: hidden; - &:first-child{padding: 0 0 20px 0;} + &:first-child { + padding: 0 0 20px 0; + } - >li{ - >a{ - font-weight:300; - display:block; + > li { + > a { + font-weight: 300; + display: block; padding: 10px 15px 10px 39px; } }