aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaude <longneck@scratchbook.ch>2017-09-29 14:17:36 +0200
committerClaude <longneck@scratchbook.ch>2017-09-29 14:17:36 +0200
commit9013ec4b156fd2415551324fae4e6c1e5fa54619 (patch)
tree77494860a49d09f14a5924f60d92af2ad6be8ed0
parentcf2b0e373155f0b5c298fcbc0f9c3690e33dc109 (diff)
downloadstikked-fit-9013ec4b156fd2415551324fae4e6c1e5fa54619.tar.gz
stikked-fit-9013ec4b156fd2415551324fae4e6c1e5fa54619.tar.bz2
stikked-fit-9013ec4b156fd2415551324fae4e6c1e5fa54619.zip
ability to disable the qr code. fixes #427
-rw-r--r--htdocs/application/config/stikked.php.dist8
-rw-r--r--htdocs/themes/bootstrap/views/view/view.php2
-rw-r--r--htdocs/themes/default/views/view/view.php2
-rw-r--r--htdocs/themes/stikkedizr/views/view/view.php2
4 files changed, 14 insertions, 0 deletions
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
@@ -55,6 +55,14 @@ $config['db_prefix'] = '';
$config['theme'] = 'default';
/**
+ * Display QR code
+ *
+ * Whether or not to display the QR code
+ *
+*/
+$config['qr_enabled'] = true;
+
+/**
* JavaScript-Editor
*
* Which editor to use
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)){
<?php if(isset($inreply)){?><div class="detail by"><?php echo lang('paste_isareply'); ?> <a href="<?php echo $inreply['url']?>"><?php echo $inreply['title']; ?></a> <?php echo strtolower(lang('paste_from')); ?> <?php echo $inreply['name']; ?>
<?php } ?>
<div class="qr">
+<?php if($this->config->item('qr_enabled')) { ?>
<img src="<?php echo site_url('view/qr/' . $pid ); ?>">
+<?php } ?>
</div>
<?php if($seg3 != 'diff'){ ?>
<?php if(isset($inreply)){ ?>
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)){
</span>
</div>
<div class="qr">
+<?php if($this->config->item('qr_enabled')) { ?>
<img src="<?php echo site_url('view/qr/' . $pid); ?>">
+<?php } ?>
</div>
</div>
</div>
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)){
<?php } ?>
</div>
<div class="col-4 col-sm-12 col-lg-4">
+<?php if($this->config->item('qr_enabled')) { ?>
<img src="<?php echo site_url('view/qr/' . $pid ); ?>">
+<?php } ?>
</div>
</div>
</div>

© 2014-2024 Faster IT GmbH | imprint | privacy policy