From 4f7f6c7da1942c3372c27687c2afa761b989a0ba Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Fri, 5 Sep 2014 13:21:55 +0000 Subject: [PATCH] --- framework/application/Bootstrap.php | 346 +++++++----------- framework/application/configs/settings.ini | 155 ++++++++ framework/application/forms/Categories.php | 52 +-- framework/application/models/Casestudy.php | 41 +++ framework/application/models/Categorie.php | 13 + framework/application/models/Domaine.php | 7 + framework/application/models/Realisation.php | 37 ++ framework/application/models/Tag.php | 7 + framework/application/models/Technologie.php | 7 + .../views/scripts/common/footer.phtml | 102 +++--- .../views/scripts/common/header.phtml | 52 +-- less/admin.less | 55 +-- less/common.less | 135 +++---- less/footer.less | 262 +++++++------ less/header.less | 77 ++-- less/home.less | 329 +++++++++-------- 16 files changed, 920 insertions(+), 757 deletions(-) create mode 100644 framework/application/models/Casestudy.php create mode 100644 framework/application/models/Categorie.php create mode 100644 framework/application/models/Domaine.php create mode 100644 framework/application/models/Realisation.php create mode 100644 framework/application/models/Tag.php create mode 100644 framework/application/models/Technologie.php diff --git a/framework/application/Bootstrap.php b/framework/application/Bootstrap.php index c73615c..d49f5a3 100644 --- a/framework/application/Bootstrap.php +++ b/framework/application/Bootstrap.php @@ -2,218 +2,138 @@ class Bootstrap extends CubeIT_Bootstrap { - protected function _initMinimum() { - parent::_initMinimum(); - // If a project with html display (don't activate by default for web services apps - $this->bootstrap('doctype'); - $this->bootstrap('scripts'); - } - - protected function _initScripts() { - parent::_initScripts(); - $this->getView()->headLink()->appendStylesheet('/css/fonts/fonts.css'); - $this->getView()->headScript()->addTagHandler(); - } - - protected function _initRouter($initCms = true) { - $router = parent::_initRouter($initCms); - return $router; - } - - /** - * - * @param \Doctrine\DBAL\Schema\Schema $schema - * @param array $options - */ - protected function _defineSchema(&$schema, $options) { - parent::_defineSchema($schema, $options); - - // Users - $user = $schema->createTable('user'); - $user->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => true)); - $user->setPrimaryKey(array('id')); - $user->addColumn('username', 'string', array('length' => 64)); - $user->addUniqueIndex(array('username')); - $user->addColumn('password', 'string', array('length' => 255)); - $user->addColumn('role', 'string', array('length' => 32)); - - // Categories - $categories = $schema->createTable('categories'); - $categories->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => true)); - $categories->setPrimaryKey(array('id')); - $categories->addColumn('name', 'string', array('length' => 64)); - - // Domaines - $tags = $schema->createTable('domaines'); - $tags->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => true)); - $tags->setPrimaryKey(array('id')); - $tags->addColumn('name', 'string', array('length' => 64)); - - // Technologies - $tags = $schema->createTable('technologies'); - $tags->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => true)); - $tags->setPrimaryKey(array('id')); - $tags->addColumn('name', 'string', array('length' => 64)); - - // Tags - $tags = $schema->createTable('tags'); - $tags->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => true)); - $tags->setPrimaryKey(array('id')); - $tags->addColumn('name', 'string', array('length' => 64)); - - // Casestudies - $casestudies = $schema->createTable('casestudies'); - $casestudies->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => true)); - $casestudies->setPrimaryKey(array('id')); - $casestudies->addColumn('titre', 'text'); - $casestudies->addColumn('description', 'text'); - $casestudies->addColumn('url', 'text'); - $casestudies->addColumn('visuel', 'string', array('length' => 128)); - $casestudies->addColumn('visuel_detail', 'string', array('length' => 128)); - $casestudies->addColumn('legende', 'text'); - $casestudies->addColumn('couleur', 'text'); - $casestudies->addColumn('blocs', 'text'); - $casestudies->addColumn('categories', 'text'); - $casestudies->addColumn('domaines', 'text'); - $casestudies->addColumn('technologies', 'text'); - $casestudies->addColumn('tags_secondaires', 'text'); - $casestudies->addColumn('online', 'boolean'); - $casestudies->addColumn('propulse', 'boolean'); - $casestudies->addColumn('annee', 'text'); - - // Réalisations - $realisations = $schema->createTable('realisations'); - $realisations->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => true)); - $realisations->setPrimaryKey(array('id')); - $realisations->addColumn('titre', 'text'); - $realisations->addColumn('legende', 'text'); - $realisations->addColumn('agence', 'text'); - $realisations->addColumn('description', 'text'); - $realisations->addColumn('url', 'text'); - $realisations->addColumn('visuel', 'string', array('length' => 128)); - $realisations->addColumn('visuel_detail', 'text'); - $realisations->addColumn('categories', 'text'); - $realisations->addColumn('domaines', 'text'); - $realisations->addColumn('technologies', 'text'); - $realisations->addColumn('tags_secondaires', 'text'); - $realisations->addColumn('online', 'boolean'); - $realisations->addColumn('annee', 'text'); - } - - protected function _initAcl() { - $acl = parent::_initAcl(); - return $acl; - } - - protected function _makeNavigationOnePage(&$navigation, $r, $t, $isAdmin, $locale = false) { - $page = parent::_makeNavigationOnePage($navigation, $r, $t, $isAdmin, $locale); - - if (!$page) { - return; - } - - if ($page->getTemplate() == 'casestudies') { - $this->addStudiesPages($page, $locale); - } - - if ($page->getTemplate() == 'realisations') { - $this->addRealisationsPages($page, $locale); - } - } - - /** - * - * @param CubeIT_Navigation_Page_Locale $page - */ - protected function addRealisationsPages($page, $locale) { - - $datas = $this->getCMSDatasOfNavigationPage($page); - $db = Zend_Db_Table::getDefaultAdapter(); - $s = $db->select()->from('realisations') - ->order('id ASC'); - $q = $s->query(); - - while ($r = $q->fetch()) { - $r = CubeIT_Util_Cms::unserialize($r, $locale); - if ($r->titre == '') { - continue; - } - $p = new CubeIT_Navigation_Page_Locale(); - $p->setController('Realisations'); - $p->setId($page->getId() . '/' . $r->id); - $p->setAutoUri($r, $datas['seourl_rea'], $page->getLocale()); - $p->setSitemap(true); - $p->setEditable(false); - - if ($r->online != 1) - $p->setOnline(false); - - $p->setDomain($page->getDomain()); - $p->setLabel($r->titre); - $p->setParams(array('realisation_id' => $r->id)); - $page->addPage($p); - } - } - - /** - * - * @param CubeIT_Navigation_Page_Locale $page - */ - protected function addStudiesPages($page, $locale) { - $datas = $this->getCMSDatasOfNavigationPage($page); - $db = Zend_Db_Table::getDefaultAdapter(); - $s = $db->select()->from('casestudies') - ->order('id ASC'); - $q = $s->query(); - - while ($r = $q->fetch()) { - $r = CubeIT_Util_Cms::unserialize($r, $locale); - if ($r->titre == '') { - continue; - } - $p = new CubeIT_Navigation_Page_Locale(); - $p->setController('Studies'); - $p->setId($page->getId() . '/' . $r->id); - $p->setAutoUri($r, $datas['seourl_stu'], $page->getLocale()); - $p->setSitemap(true); - $p->setEditable(false); - $p->setParams(array('casestudy_id' => $r->id)); - - if ($r->online != 1) - $p->setOnline(false); - - $p->setDomain($page->getDomain()); - $p->setLabel($r->titre); - $page->addPage($p); - } - } - - /** - * - * @return array - */ - public function getCMSTemplates() { - - $templates = parent::getCMSTemplates(); - - $templates['Agence'] = array("agence" => "L'agence"); - $templates['Realisations'] = array('realisations' => 'Réalisations'); - $templates['Casestudies'] = array('casestudies' => 'Case-Studies'); - $templates['CasestudiesDetail'] = array('casestudies_detail' => 'Case-Studies (détail)'); - $templates['Expertises'] = array('expertises' => 'Expertises'); - $templates['Contact'] = array('contact' => 'Contact'); - $templates['Mentions'] = array('mentions' => 'Mentions légales'); - - return $templates; - } - - public function run() { - // run have to be the last call of bootstrap - parent::run(); - } - - function __destroy() { - endProfile(); - } + protected function _initMinimum() { + parent::_initMinimum(); + // If a project with html display (don't activate by default for web services apps + $this->bootstrap('doctype'); + $this->bootstrap('scripts'); + } + + protected function _initScripts() { + parent::_initScripts(); + $this->getView()->headLink()->appendStylesheet('/css/fonts/fonts.css'); + $this->getView()->headScript()->addTagHandler(); + } + + protected function _initRouter($initCms = true) { + $router = parent::_initRouter($initCms); + return $router; + } + + protected function _initAcl() { + $acl = parent::_initAcl(); + return $acl; + } + + protected function _makeNavigationOnePage(&$navigation, $r, $t, $isAdmin, $locale = false) { + $page = parent::_makeNavigationOnePage($navigation, $r, $t, $isAdmin, $locale); + + if (!$page) { + return; + } + + if ($page->getTemplate() == 'casestudies') { + $this->addStudiesPages($page, $locale); + } + + if ($page->getTemplate() == 'realisations') { + $this->addRealisationsPages($page, $locale); + } + } + + /** + * + * @param CubeIT_Navigation_Page_Locale $page + */ + protected function addRealisationsPages($page, $locale) { + + $datas = $this->getCMSDatasOfNavigationPage($page); + $db = Zend_Db_Table::getDefaultAdapter(); + $s = $db->select()->from('realisations') + ->order('id ASC'); + $q = $s->query(); + + while ($r = $q->fetch()) { + $r = CubeIT_Util_Cms::unserialize($r, $locale); + if ($r->titre == '') { + continue; + } + $p = new CubeIT_Navigation_Page_Locale(); + $p->setController('Realisations'); + $p->setId($page->getId() . '/' . $r->id); + $p->setAutoUri($r, $datas['seourl_rea'], $page->getLocale()); + $p->setSitemap(true); + $p->setEditable(false); + + if ($r->online != 1) + $p->setOnline(false); + + $p->setDomain($page->getDomain()); + $p->setLabel($r->titre); + $p->setParams(array('realisation_id' => $r->id)); + $page->addPage($p); + } + } + + /** + * + * @param CubeIT_Navigation_Page_Locale $page + */ + protected function addStudiesPages($page, $locale) { + $datas = $this->getCMSDatasOfNavigationPage($page); + $db = Zend_Db_Table::getDefaultAdapter(); + $s = $db->select()->from('casestudies') + ->order('id ASC'); + $q = $s->query(); + + while ($r = $q->fetch()) { + $r = CubeIT_Util_Cms::unserialize($r, $locale); + if ($r->titre == '') { + continue; + } + $p = new CubeIT_Navigation_Page_Locale(); + $p->setController('Studies'); + $p->setId($page->getId() . '/' . $r->id); + $p->setAutoUri($r, $datas['seourl_stu'], $page->getLocale()); + $p->setSitemap(true); + $p->setEditable(false); + $p->setParams(array('casestudy_id' => $r->id)); + + if ($r->online != 1) + $p->setOnline(false); + + $p->setDomain($page->getDomain()); + $p->setLabel($r->titre); + $page->addPage($p); + } + } + + /** + * + * @return array + */ + public function getCMSTemplates() { + + $templates = parent::getCMSTemplates(); + + $templates['Agence'] = array("agence" => "L'agence"); + $templates['Realisations'] = array('realisations' => 'Réalisations'); + $templates['Casestudies'] = array('casestudies' => 'Case-Studies'); + $templates['CasestudiesDetail'] = array('casestudies_detail' => 'Case-Studies (détail)'); + $templates['Expertises'] = array('expertises' => 'Expertises'); + $templates['Contact'] = array('contact' => 'Contact'); + $templates['Mentions'] = array('mentions' => 'Mentions légales'); + + return $templates; + } + + public function run() { + // run have to be the last call of bootstrap + parent::run(); + } + + function __destroy() { + endProfile(); + } } diff --git a/framework/application/configs/settings.ini b/framework/application/configs/settings.ini index bf3746a..d46c1f4 100644 --- a/framework/application/configs/settings.ini +++ b/framework/application/configs/settings.ini @@ -1 +1,156 @@ [production] +tags = "" +longTitle.fr = "Cubedesigners" +longTitle.en = "" +description.fr = "" +description.en = "" +contact.fr.bloc = "Pour toute information, +un email unique : [contact@cubedesigners.com|mailto:contact@cubedesigners.com] +l’agence concernée vous répondra dans les plus brefs délais." +contact.fr.bureaux.0.coordonnees.nom = "Agence de Paris" +contact.fr.bureaux.0.coordonnees.adresse = "46 Rue de la Clef" +contact.fr.bureaux.0.coordonnees.code_postal = "75005" +contact.fr.bureaux.0.coordonnees.ville = "Paris" +contact.fr.bureaux.0.coordonnees.pays = "FR" +contact.fr.bureaux.0.coordonnees.tel = "(+33) 1 44 24 18 53" +contact.fr.bureaux.0.coordonnees.fax = "(+33) 1 83 64 34 71" +contact.fr.bureaux.0.coordonnees.icon.0 = "52dfd1dd-pointeur.png" +contact.fr.bureaux.0.map.zoom = 15 +contact.fr.bureaux.0.map.googleLink = "https://maps.google.com/maps?q=46+Rue+de+la+Clef,Paris,France" +contact.fr.bureaux.0.map.centre.adresse = "46 Rue de la Clef" +contact.fr.bureaux.0.map.centre.code_postal = "75005" +contact.fr.bureaux.0.map.centre.ville = "Paris" +contact.fr.bureaux.0.map.centre.pays = "FR" +contact.fr.bureaux.0.markers.0.nom = "Agence de Paris" +contact.fr.bureaux.0.markers.0.adresse = "46 Rue de la Clef" +contact.fr.bureaux.0.markers.0.code_postal = "75005" +contact.fr.bureaux.0.markers.0.ville = "Paris" +contact.fr.bureaux.0.markers.0.pays = "FR" +contact.fr.bureaux.0.markers.0.tel = "(+33) 1 44 24 18 53" +contact.fr.bureaux.0.markers.0.fax = "(+33) 1 83 64 34 71" +contact.fr.bureaux.0.markers.0.icon.0 = "52dfd1dd-pointeur.png" +contact.fr.bureaux.1.coordonnees.nom = "Agence de Montpellier" +contact.fr.bureaux.1.coordonnees.adresse = "12 Bis Rue du Général Maurin" +contact.fr.bureaux.1.coordonnees.code_postal = "34000" +contact.fr.bureaux.1.coordonnees.ville = "Montpellier" +contact.fr.bureaux.1.coordonnees.pays = "FR" +contact.fr.bureaux.1.coordonnees.tel = "(+33) 4 67 02 71 47" +contact.fr.bureaux.1.coordonnees.fax = "(+33) 4 67 02 71 47" +contact.fr.bureaux.1.coordonnees.icon.0 = "52dfd1dd-pointeur.png" +contact.fr.bureaux.1.map.zoom = 15 +contact.fr.bureaux.1.map.googleLink = "https://maps.google.com/maps?q=12+Bis+Rue+du+G%C3%A9n%C3%A9ral+Maurin,Montpellier,France" +contact.fr.bureaux.1.map.centre.adresse = "12 Bis Rue du Général Maurin" +contact.fr.bureaux.1.map.centre.code_postal = "34000" +contact.fr.bureaux.1.map.centre.ville = "Montpellier" +contact.fr.bureaux.1.map.centre.pays = "FR" +contact.fr.bureaux.1.markers.0.nom = "Agence de Montpellier" +contact.fr.bureaux.1.markers.0.adresse = "12 Bis Rue du Général Maurin" +contact.fr.bureaux.1.markers.0.code_postal = "34000 " +contact.fr.bureaux.1.markers.0.ville = "Montpellier" +contact.fr.bureaux.1.markers.0.pays = "FR" +contact.fr.bureaux.1.markers.0.tel = "(+33) 4 67 02 71 47" +contact.fr.bureaux.1.markers.0.fax = "(+33) 4 67 02 71 47" +contact.fr.bureaux.1.markers.0.icon.0 = "52dfd1dd-pointeur.png" +contact.en.bloc = "" +contact.en.bureaux.0.coordonnees.nom = "" +contact.en.bureaux.0.coordonnees.adresse = "" +contact.en.bureaux.0.coordonnees.code_postal = "" +contact.en.bureaux.0.coordonnees.ville = "" +contact.en.bureaux.0.coordonnees.pays = "FR" +contact.en.bureaux.0.coordonnees.tel = "" +contact.en.bureaux.0.coordonnees.fax = "" +contact.en.bureaux.0.coordonnees.icon = false +contact.en.bureaux.0.map.zoom = 0 +contact.en.bureaux.0.map.googleLink = "" +contact.en.bureaux.0.map.centre.adresse = "" +contact.en.bureaux.0.map.centre.code_postal = "" +contact.en.bureaux.0.map.centre.ville = "" +contact.en.bureaux.0.map.centre.pays = "FR" +contact.en.bureaux.0.markers.0.nom = "" +contact.en.bureaux.0.markers.0.adresse = "" +contact.en.bureaux.0.markers.0.code_postal = "" +contact.en.bureaux.0.markers.0.ville = "" +contact.en.bureaux.0.markers.0.pays = "FR" +contact.en.bureaux.0.markers.0.tel = "" +contact.en.bureaux.0.markers.0.fax = "" +contact.en.bureaux.0.markers.0.icon = false +contact.en.bureaux.0.markers.1.nom = "" +contact.en.bureaux.0.markers.1.adresse = "" +contact.en.bureaux.0.markers.1.code_postal = "" +contact.en.bureaux.0.markers.1.ville = "" +contact.en.bureaux.0.markers.1.pays = "FR" +contact.en.bureaux.0.markers.1.tel = "" +contact.en.bureaux.0.markers.1.fax = "" +contact.en.bureaux.0.markers.1.icon = false +contact.en.bureaux.1.coordonnees.nom = "" +contact.en.bureaux.1.coordonnees.adresse = "" +contact.en.bureaux.1.coordonnees.code_postal = "" +contact.en.bureaux.1.coordonnees.ville = "" +contact.en.bureaux.1.coordonnees.pays = "FR" +contact.en.bureaux.1.coordonnees.tel = "" +contact.en.bureaux.1.coordonnees.fax = "" +contact.en.bureaux.1.coordonnees.icon = false +contact.en.bureaux.1.map.zoom = 0 +contact.en.bureaux.1.map.googleLink = "" +contact.en.bureaux.1.map.centre.adresse = "" +contact.en.bureaux.1.map.centre.code_postal = "" +contact.en.bureaux.1.map.centre.ville = "" +contact.en.bureaux.1.map.centre.pays = "FR" +contact.en.bureaux.1.markers.0.nom = "" +contact.en.bureaux.1.markers.0.adresse = "" +contact.en.bureaux.1.markers.0.code_postal = "" +contact.en.bureaux.1.markers.0.ville = "" +contact.en.bureaux.1.markers.0.pays = "FR" +contact.en.bureaux.1.markers.0.tel = "" +contact.en.bureaux.1.markers.0.fax = "" +contact.en.bureaux.1.markers.0.icon = false +contact.en.bureaux.1.markers.1.nom = "" +contact.en.bureaux.1.markers.1.adresse = "" +contact.en.bureaux.1.markers.1.code_postal = "" +contact.en.bureaux.1.markers.1.ville = "" +contact.en.bureaux.1.markers.1.pays = "FR" +contact.en.bureaux.1.markers.1.tel = "" +contact.en.bureaux.1.markers.1.fax = "" +contact.en.bureaux.1.markers.1.icon = false +actus.fr.actualites.0.date = "2013-11-21 00:00:00" +actus.fr.actualites.0.texte = "Cubedesigners réalise le graphisme de l’exposition Mars pour la Cité de l’espace." +actus.fr.actualites.1.date = "2013-07-16 00:00:00" +actus.fr.actualites.1.texte = "Nous sommes fiers de vous présenter la boutique Fnac Disney Infinity !" +actus.fr.actualites.2.date = "2013-07-07 00:00:00" +actus.fr.actualites.2.texte = "Hercules lance la webcam HD Twist, design Cubedesigners. une webcam mini au pied original : flexible, en silicone tendre, elle se fixe partout !" +actus.en.actualites.0.date = "2014-01-20 12:19:32" +actus.en.actualites.0.texte = "" +actus.en.actualites.1.date = "2014-01-20 12:19:32" +actus.en.actualites.1.texte = "" +actus.en.actualites.2.date = "2014-01-20 12:19:32" +actus.en.actualites.2.texte = "" +actus.en.actualites.3.date = "2014-01-20 12:19:32" +actus.en.actualites.3.texte = "" +actus.en.actualites.4.date = "2014-01-20 12:19:32" +actus.en.actualites.4.texte = "" +followus.fr.reseauxsociaux.0.titre = "Facebook" +followus.fr.reseauxsociaux.0.url = "https://fr-fr.facebook.com/Cubedesigners" +followus.fr.reseauxsociaux.0.picto.0 = "52fa1da5-picto-fb.svg" +followus.fr.reseauxsociaux.1.titre = "Twitter" +followus.fr.reseauxsociaux.1.url = "https://twitter.com/Cubedesigners" +followus.fr.reseauxsociaux.1.picto.0 = "52fa1dad-picto-tw.svg" +followus.fr.reseauxsociaux.2.titre = "Google Plus" +followus.fr.reseauxsociaux.2.url = "https://plus.google.com/108505338910338279554" +followus.fr.reseauxsociaux.2.picto.0 = "52fa1db5-picto-gplus.svg" +followus.fr.reseauxsociaux.3.titre = "Pinterest" +followus.fr.reseauxsociaux.3.url = "https://www.pinterest.com/" +followus.fr.reseauxsociaux.3.picto.0 = "52fa1dbc-picto-pi.svg" +followus.en.reseauxsociaux.0.titre = "" +followus.en.reseauxsociaux.0.url = "" +followus.en.reseauxsociaux.0.picto = false +followus.en.reseauxsociaux.1.titre = "" +followus.en.reseauxsociaux.1.url = "" +followus.en.reseauxsociaux.1.picto = false +followus.en.reseauxsociaux.2.titre = "" +followus.en.reseauxsociaux.2.url = "" +followus.en.reseauxsociaux.2.picto = false +followus.en.reseauxsociaux.3.titre = "" +followus.en.reseauxsociaux.3.url = "" +followus.en.reseauxsociaux.3.picto = false +copyright.fr = "Copyright © Cubedesigners. Tous droits réservés" +copyright.en = "" diff --git a/framework/application/forms/Categories.php b/framework/application/forms/Categories.php index 6c95605..e05c388 100644 --- a/framework/application/forms/Categories.php +++ b/framework/application/forms/Categories.php @@ -1,26 +1,26 @@ -setLabel('#'); - $this->addElement($id); - - $name = new Zend_Form_Element_Text('name'); - $name->setLabel(__('Nom')); - $this->addElement($name); - - $this->setListTitle(__('Categories')) - ->setNewTitle(__('Créer une catégorie')) - ->setEditTitle(sprintf(__("Edition de la catégorie « %s »"), '$name')) - ->setBaseTable('categories') - ->setIdColumn('id') - ->setTitleColumn('name'); - } - -} - -?> +setLabel('#'); + $this->addElement($id); + + $name = new Zend_Form_Element_Text('name'); + $name->setLabel(__('Nom')); + $this->addElement($name); + + $this->setListTitle(__('Categories')) + ->setNewTitle(__('Créer une catégorie')) + ->setEditTitle(sprintf(__("Edition de la catégorie « %s »"), '$name')) + ->setBaseTable('categories') + ->setIdColumn('id') + ->setTitleColumn('name'); + } + +} + +?> diff --git a/framework/application/models/Casestudy.php b/framework/application/models/Casestudy.php new file mode 100644 index 0000000..eb52b70 --- /dev/null +++ b/framework/application/models/Casestudy.php @@ -0,0 +1,41 @@ +addColumn('titre', 'text'); + $casestudies->addColumn('description', 'text'); + $casestudies->addColumn('url', 'text'); + $casestudies->addColumn('visuel', 'string', array('length' => 128)); + $casestudies->addColumn('visuel_detail', 'string', array('length' => 128)); + $casestudies->addColumn('legende', 'text'); + $casestudies->addColumn('couleur', 'text'); + $casestudies->addColumn('blocs', 'text'); + $casestudies->addColumn('categories', 'text'); + $casestudies->addColumn('domaines', 'text'); + $casestudies->addColumn('technologies', 'text'); + $casestudies->addColumn('tags_secondaires', 'text'); + $casestudies->addColumn('online', 'boolean'); + $casestudies->addColumn('propulse', 'boolean'); + $casestudies->addColumn('annee', 'text'); + } + +} diff --git a/framework/application/models/Categorie.php b/framework/application/models/Categorie.php new file mode 100644 index 0000000..1358788 --- /dev/null +++ b/framework/application/models/Categorie.php @@ -0,0 +1,13 @@ +addColumn('name', 'string', array('length' => 64)); + } + +} diff --git a/framework/application/models/Domaine.php b/framework/application/models/Domaine.php new file mode 100644 index 0000000..816d56d --- /dev/null +++ b/framework/application/models/Domaine.php @@ -0,0 +1,7 @@ +addColumn('titre', 'text'); + $realisations->addColumn('legende', 'text'); + $realisations->addColumn('agence', 'text'); + $realisations->addColumn('description', 'text'); + $realisations->addColumn('url', 'text'); + $realisations->addColumn('visuel', 'string', array('length' => 128)); + $realisations->addColumn('visuel_detail', 'text'); + $realisations->addColumn('categories', 'text'); + $realisations->addColumn('domaines', 'text'); + $realisations->addColumn('technologies', 'text'); + $realisations->addColumn('tags_secondaires', 'text'); + $realisations->addColumn('online', 'boolean'); + $realisations->addColumn('annee', 'text'); + } + +} diff --git a/framework/application/models/Tag.php b/framework/application/models/Tag.php new file mode 100644 index 0000000..eeded7a --- /dev/null +++ b/framework/application/models/Tag.php @@ -0,0 +1,7 @@ +headLink()->appendStylesheet('/less/footer.less'); - -$mentions_page = $this->navigation()->getContainer()->findOneById($this->localeDefault() . '/7'); -$mentions = '/'; -if (!is_null($mentions_page)) { - $mentions = $mentions_page->getHref(); -} -?> -