improve image source label for Moodpics
This commit is contained in:
parent
fc587be483
commit
ca6af3fe92
4 changed files with 43 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
|||
<?php if(!is_null($medium)) : ?>
|
||||
<img src="<?=$medium['url']?>" <?php if(!empty($medium['title'])) : ?>title="<?=$medium['title']?>"<?php endif ?> <?php if(!empty($medium['description'])) : ?>alt="<?=$medium['description']?>"<?php endif ?>/>
|
||||
<?php if(!empty($medium['sourcelabel']) || !empty($medium['sourceurl'])) : ?>
|
||||
<?php $label = (!empty($medium['sourcelabel'])) ? $medium['sourcelabel'] : substr($medium['sourceurl'], 0, 30).'…'; ?>
|
||||
<?php $label = (!empty($medium['sourcelabel'])) ? $medium['sourcelabel'] : \hhu\z\Utils::urlToLabel($medium['sourceurl']); ?>
|
||||
<span class="source">
|
||||
<?=_('Image source')?>:
|
||||
<?php if(!empty($medium['sourceurl'])): ?>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<?php if(!is_null($medium)) : ?>
|
||||
<img src="<?=$medium['url']?>" <?php if(!empty($medium['title'])) : ?>title="<?=$medium['title']?>"<?php endif ?> <?php if(!empty($medium['description'])) : ?>alt="<?=$medium['description']?>"<?php endif ?>/>
|
||||
<?php if(!empty($medium['sourcelabel']) || !empty($medium['sourceurl'])) : ?>
|
||||
<?php $label = (!empty($medium['sourcelabel'])) ? $medium['sourcelabel'] : substr($medium['sourceurl'], 0, 30).'…'; ?>
|
||||
<?php $label = (!empty($medium['sourcelabel'])) ? $medium['sourcelabel'] : \hhu\z\Utils::urlToLabel($medium['sourceurl']); ?>
|
||||
<span class="source">
|
||||
<?=_('Image source')?>:
|
||||
<?php if(!empty($medium['sourceurl'])): ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue