Skip to content

Commit

Permalink
better names, prepare for media manager changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko committed Aug 29, 2017
1 parent ee77762 commit 962f566
Show file tree
Hide file tree
Showing 7 changed files with 310 additions and 537 deletions.
23 changes: 12 additions & 11 deletions layouts/joomla/form/field/media.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,21 @@
. '&fieldid={field-media-id}&path=' . $folder);
?>
<joomla-field-media class="field-media-wrapper"
basepath="<?php echo JUri::root(); ?>"
rootfolder="<?php echo ComponentHelper::getParams('com_media')->get('file_path', 'images'); ?>"
type="image" <? // @TODO add this attribute to the field in order to use it for all media types ?>
base-path="<?php echo JUri::root(); ?>"
root-folder="<?php echo ComponentHelper::getParams('com_media')->get('file_path', 'images'); ?>"
url="<?php echo $url; ?>"
modalcont=".modal"
modalwidth="100%"
modalheight="400px"
modal-container=".modal"
modal-width="100%"
modal-height="400px"
input=".field-media-input"
buttonselect=".button-select"
buttonclear=".button-clear"
buttonsaveselected=".button-save-selected"
button-select=".button-select"
button-clear=".button-clear"
button-save-selected=".button-save-selected"
preview="<?php echo $showPreview; ?>"
previewcontainer=".field-media-preview"
previewwidth="<?php echo $previewWidth; ?>"
previewheight="<?php echo $previewHeight; ?>"
preview-container=".field-media-preview"
preview-width="<?php echo $previewWidth; ?>"
preview-height="<?php echo $previewHeight; ?>"
>
<?php
// Render the modal
Expand Down

0 comments on commit 962f566

Please sign in to comment.