Просмотр исходного кода

hide shorten button if shortenbydefault

remove shorten url button if $SHORTENBYDEFAULT is true
zmweske 2 месяцев назад
Родитель
Сommit
484eadc88b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      tpl/bootstrap5.php

+ 1 - 1
tpl/bootstrap5.php

@@ -449,7 +449,7 @@ if (!empty($URLSHORTENER)) :
 								<?php if ($SHORTENBYDEFAULT) : ?>
 								data-autoshorten="true"
 								<?php endif; ?>
-								type="button" class="btn btn-primary btn-block d-flex justify-content-center align-items-center gap-1"
+								type="button" class="btn btn-primary btn-block d-flex justify-content-center align-items-center gap-1<?php echo $SHORTENBYDEFAULT ? ' hidden' : ''; ?>"
 						>
 							<svg width="16" height="16" fill="currentColor" aria-hidden="true"><use href="img/bootstrap-icons.svg#send" /></svg> <?php echo I18n::_('Shorten URL'), PHP_EOL; ?>
 						</button>