From 9013ec4b156fd2415551324fae4e6c1e5fa54619 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 29 Sep 2017 14:17:36 +0200 Subject: [PATCH] ability to disable the qr code. fixes #427 --- htdocs/application/config/stikked.php.dist | 8 ++++++++ htdocs/themes/bootstrap/views/view/view.php | 2 ++ htdocs/themes/default/views/view/view.php | 2 ++ htdocs/themes/stikkedizr/views/view/view.php | 2 ++ 4 files changed, 14 insertions(+) diff --git a/htdocs/application/config/stikked.php.dist b/htdocs/application/config/stikked.php.dist index 683f7ee..c8779e9 100644 --- a/htdocs/application/config/stikked.php.dist +++ b/htdocs/application/config/stikked.php.dist @@ -54,6 +54,14 @@ $config['db_prefix'] = ''; */ $config['theme'] = 'default'; +/** + * Display QR code + * + * Whether or not to display the QR code + * +*/ +$config['qr_enabled'] = true; + /** * JavaScript-Editor * diff --git a/htdocs/themes/bootstrap/views/view/view.php b/htdocs/themes/bootstrap/views/view/view.php index f93596f..39f7fc4 100644 --- a/htdocs/themes/bootstrap/views/view/view.php +++ b/htdocs/themes/bootstrap/views/view/view.php @@ -25,7 +25,9 @@ if(isset($insert)){
+config->item('qr_enabled')) { ?> +
diff --git a/htdocs/themes/default/views/view/view.php b/htdocs/themes/default/views/view/view.php index 0a88311..9604ca2 100644 --- a/htdocs/themes/default/views/view/view.php +++ b/htdocs/themes/default/views/view/view.php @@ -45,7 +45,9 @@ if(isset($insert)){
+config->item('qr_enabled')) { ?> +
diff --git a/htdocs/themes/stikkedizr/views/view/view.php b/htdocs/themes/stikkedizr/views/view/view.php index 3feb83f..f5ee807 100644 --- a/htdocs/themes/stikkedizr/views/view/view.php +++ b/htdocs/themes/stikkedizr/views/view/view.php @@ -44,7 +44,9 @@ if(isset($insert)){
+config->item('qr_enabled')) { ?> +