ability to disable the qr code. fixes #427

This commit is contained in:
Claude 2017-09-29 14:17:36 +02:00
parent cf2b0e3731
commit 9013ec4b15
4 changed files with 14 additions and 0 deletions

View File

@ -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
*

View File

@ -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)){ ?>

View File

@ -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>

View File

@ -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>