Przeglądaj źródła

hide shorten button if shortenbydefault

remove shorten url button if $SHORTENBYDEFAULT is true
zmweske 2 miesięcy temu
rodzic
commit
484eadc88b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tpl/bootstrap5.php

+ 1 - 1
tpl/bootstrap5.php

@@ -449,7 +449,7 @@ if (!empty($URLSHORTENER)) :
 								<?php if ($SHORTENBYDEFAULT) : ?>
 								<?php if ($SHORTENBYDEFAULT) : ?>
 								data-autoshorten="true"
 								data-autoshorten="true"
 								<?php endif; ?>
 								<?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; ?>
 							<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>
 						</button>