From 52ed9b21f5086e6559d4fd7d141219513c23ee68 Mon Sep 17 00:00:00 2001 From: LouisGac Date: Thu, 21 Dec 2017 11:39:09 +0100 Subject: [PATCH] Dev: added container to vanilla --- installer/create-database.php | 14 +++++++------- themes/survey/vanilla/config.xml | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) mode change 100644 => 100755 installer/create-database.php mode change 100644 => 100755 themes/survey/vanilla/config.xml diff --git a/installer/create-database.php b/installer/create-database.php old mode 100644 new mode 100755 index 39cf8e4b9cd..165f1e41323 --- a/installer/create-database.php +++ b/installer/create-database.php @@ -786,7 +786,7 @@ function createDatabase($oDB){ 'files_css' => '{"add":["css/ajaxify.css","css/theme.css","css/custom.css"]}', 'files_js' => '{"add":["scripts/theme.js","scripts/ajaxify.js","scripts/custom.js"]}', 'files_print_css' => '{"add":["css/print_theme.css"]}', - 'options' => '{"ajaxmode":"on","brandlogo":"on","brandlogofile":"./files/logo.png","font":"noto"}', + 'options' => '{"ajaxmode":"on","brandlogo":"on","container":"on","brandlogofile":"./files/logo.png","font":"noto"}', 'cssframework_name' => 'bootstrap', 'cssframework_css' => '{}', 'cssframework_js' => '', @@ -810,7 +810,7 @@ function createDatabase($oDB){ ] ); $oDB->createCommand()->createIndex('{{idx1_tutorials}}', '{{tutorials}}', 'name', true); - + $oDB->createCommand()->insert('{{tutorials}}', array( 'tid' => 1, 'name' => 'firstStartTour', @@ -821,12 +821,12 @@ function createDatabase($oDB){ 'settings' => json_encode(array( 'keyboard' => false, 'template' => "

", - 'onShown' => "(function(tour){ console.ls.log($('#notif-container').children()); $('#notif-container').children().remove(); })", + 'onShown' => "(function(tour){ console.ls.log($('#notif-container').children()); $('#notif-container').children().remove(); })", 'onStart' => "(function(){var domaintobe=LS.data.baseUrl+(LS.data.urlFormat == 'path' ? '/admin/index' : '?r=admin/index'); if(window.location.href!=domaintobe){window.location.href=domaintobe;} })" )), 'permission' => 'survey', 'permission_grade' => 'create' - + )); //tutorial user mapping @@ -835,9 +835,9 @@ function createDatabase($oDB){ 'uid' => 'int DEFAULT NULL', 'taken' => 'boolean DEFAULT 1', )); - + $oDB->createCommand()->addPrimaryKey('{{map_tutorial_users_pk}}', '{{map_tutorial_users}}', ['uid','tid']); - + //tutorial entry groups $oDB->createCommand()->createTable('{{tutorial_entry_relation}}', array( 'teid' => 'int NOT NULL', @@ -1116,7 +1116,7 @@ function createDatabase($oDB){ 'teid' => 18, 'ordering' => 18, 'title' => 'The title of your question', - 'content' => + 'content' => "This code is normally not shown to your participants, still it is necessary and has to be unique for the survey.".'
' ."This code is also the name of the variable that will be exported to SPSS or Excel." .'

'."Please type in a code that consists only of letters and numbers, and doesn't start with a number.".'

', diff --git a/themes/survey/vanilla/config.xml b/themes/survey/vanilla/config.xml old mode 100644 new mode 100755 index 992d1cf4640..bb09497b0e2 --- a/themes/survey/vanilla/config.xml +++ b/themes/survey/vanilla/config.xml @@ -51,7 +51,8 @@ on off - fadeInRight + on + fadeInRight on ./files/logo.png noto