mirror of
https://github.com/e107inc/e107.git
synced 2025-07-15 20:16:21 +02:00
mediapicker() mediaselector-preview-empty css class added.
This commit is contained in:
@ -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 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';
|
$parms['class'] = 'btn btn-sm btn-default';
|
||||||
|
|
||||||
@ -1488,6 +1488,7 @@ class e_form
|
|||||||
$parms['title'] = LAN_ADD;
|
$parms['title'] = LAN_ADD;
|
||||||
$editIcon = $this->mediaUrl($cat, $tp->toGlyph('fa-plus', array('fw'=>1)), $name_id,$parms);
|
$editIcon = $this->mediaUrl($cat, $tp->toGlyph('fa-plus', array('fw'=>1)), $name_id,$parms);
|
||||||
$previewIcon = '';
|
$previewIcon = '';
|
||||||
|
$previewClass = 'mediaselector-preview mediaselector-preview-empty';
|
||||||
|
|
||||||
// @todo drag-n-drop upload code in here.
|
// @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);
|
$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>";
|
$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 .= $preview; // image, video. audo tag etc.
|
||||||
|
|
||||||
$ret .= '</div><div class="overlay">
|
$ret .= '</div><div class="overlay">
|
||||||
|
Reference in New Issue
Block a user