1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 21:21:54 +02:00

mediapicker() mediaselector-preview-empty css class added.

This commit is contained in:
Cameron 2018-07-26 14:06:45 -07:00
parent bd98b2303e
commit baf570071e

@ -1479,7 +1479,7 @@ class e_form
$ret = "<div class='mediaselector-container e-tip well well-small ".$class."' {$title} style='position:relative;vertical-align:top;margin-right:25px; display:inline-block; width:".$width."px;min-height:".$height."px;'>";
$ret .= "<div id='{$name_id}_prev' class='mediaselector-preview'>";
$parms['class'] = 'btn btn-sm btn-default';
@ -1488,6 +1488,7 @@ class e_form
$parms['title'] = LAN_ADD;
$editIcon = $this->mediaUrl($cat, $tp->toGlyph('fa-plus', array('fw'=>1)), $name_id,$parms);
$previewIcon = '';
$previewClass = 'mediaselector-preview mediaselector-preview-empty';
// @todo drag-n-drop upload code in here.
}
@ -1495,8 +1496,11 @@ class e_form
{
$editIcon = $this->mediaUrl($cat, $tp->toGlyph('fa-edit', array('fw'=>1)), $name_id,$parms);
$previewIcon = "<a title='".LAN_PREVIEW."' class='btn btn-sm btn-default btn-secondary e-modal' data-modal-caption='".LAN_PREVIEW."' href='".$previewURL."'>".$tp->toGlyph('fa-search', array('fw'=>1))."</a>";
$previewClass = 'mediaselector-preview';
}
$ret .= "<div id='{$name_id}_prev' class='".$previewClass."'>";
$ret .= $preview; // image, video. audo tag etc.
$ret .= '</div><div class="overlay">