From 921a7731863a9ff1a69ece05e32e95f7ff70dc1d Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 12 Sep 2024 15:11:02 +0000 Subject: [PATCH] wait #7079 @0.75 --- framework/application/configs/application.ini | 3 ++- framework/application/forms/CMS/Sub/Exemples/Fluidbook.php | 5 +++++ framework/application/models/Reference.php | 2 ++ framework/application/views/helpers/Exemples.php | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/framework/application/configs/application.ini b/framework/application/configs/application.ini index e93c371..c57d993 100644 --- a/framework/application/configs/application.ini +++ b/framework/application/configs/application.ini @@ -29,7 +29,8 @@ database.params.username = root database.params.password = FB8qVD7R0jqsXYNR database.params.dbname = fluidbook-v3 -seo.universalAnalytics = UA-4339912-2 +;seo.universalAnalytics = UA-4339912-2 +seo.googleTagManager = GTM-5BQBGS48 seo.google = google93c0129ef18a399d.html seo.bing = 8986457D1D126C38A815027C839372DC diff --git a/framework/application/forms/CMS/Sub/Exemples/Fluidbook.php b/framework/application/forms/CMS/Sub/Exemples/Fluidbook.php index 44f6431..9af34ad 100644 --- a/framework/application/forms/CMS/Sub/Exemples/Fluidbook.php +++ b/framework/application/forms/CMS/Sub/Exemples/Fluidbook.php @@ -16,6 +16,11 @@ class Fluidbook_Form_CMS_Sub_Exemples_Fluidbook extends CubeIT_Form_List_Model { $text->setLabel('Texte'); $this->addElementLocalized($text, false); + $title = new CubeIT_Form_Element_Text('button_text'); + $title->setTranslate(false); + $title->setLabel('Bouton (si différent du texte par défaut)'); + $this->addElementLocalized($title, false); + $date = new CubeIT_Form_Element_Date('date'); $date->setLabel('Date'); $date->setPrecision(CubeIT_Date::DAY); diff --git a/framework/application/models/Reference.php b/framework/application/models/Reference.php index e372a85..a199299 100644 --- a/framework/application/models/Reference.php +++ b/framework/application/models/Reference.php @@ -15,6 +15,7 @@ class Fluidbook_Model_Reference extends CubeIT_Model_Data_Table protected $categories; protected $featured_categories; protected $homeimage; + protected $button_text; protected $_types = array('categories' => 'list', 'featured_categories' => 'list', 'title' => 'json', 'text' => 'json', 'image' => 'json', 'homeimage' => 'json', 'fluidbook_id' => 'json', 'fluidbook_page' => 'json'); @@ -32,6 +33,7 @@ class Fluidbook_Model_Reference extends CubeIT_Model_Data_Table $table->addColumn('homeimage', 'string', array('length' => 64)); $table->addColumn('categories', 'string', array('length' => 64)); $table->addColumn('featured_categories', 'string', array('length' => 64)); + $table->addColumn('button_text', 'text'); return $table; } diff --git a/framework/application/views/helpers/Exemples.php b/framework/application/views/helpers/Exemples.php index b441c4b..6cfa69c 100644 --- a/framework/application/views/helpers/Exemples.php +++ b/framework/application/views/helpers/Exemples.php @@ -142,7 +142,7 @@ class Fluidbook_View_Helper_Exemples extends CubeIT_View_Helper_Abstract $res = ''; if ($url && $url != '-') { - $res = $this->linkTruePopupFullscreen(__('Voir le Fluidbook'), $url, array('class' => 'button', 'data-event' => array('category' => 'exemple', 'action' => 'see', 'label' => $f->getTitle()))); + $res = $this->linkTruePopupFullscreen($f->getButtonText() ?: __('Voir le Fluidbook'), $url, array('class' => 'button', 'data-event' => array('category' => 'exemple', 'action' => 'see', 'label' => $f->getTitle()))); } if ($category == 3) { $firstCat = 0; -- 2.39.5