Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence du fichier layouts/joomla/form/field/media.php

Espaces de nommage

 Joomla\Admin
 

Variables

 $attr = ''
 
switch($preview) if($showPreview) $url
 
 $doc = Factory::getDocument()
 
 $wam = $doc->getWebAssetManager()
 
 $modalHTML
 
if(count($doc->getScriptOptions('media-picker'))===0) base path
 

Documentation des variables

◆ $attr

$attr = ''

◆ $doc

$doc = Factory::getDocument()

◆ $modalHTML

$modalHTML
Valeur initiale :
= HTMLHelper::_(
'bootstrap.renderModal',
'imageModal_' . $id,
[
'url' => $url,
'title' => Text::_('JLIB_FORM_CHANGE_IMAGE'),
'closeButton' => true,
'height' => '100%',
'width' => '100%',
'modalWidth' => '80',
'bodyHeight' => '60',
'footer' => '<button type="button" class="btn btn-success button-save-selected">' . Text::_('JSELECT') . '</button>'
. '<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">' . Text::_('JCANCEL') . '</button>',
]
)
$id
Definition: com_modules/tmpl/module/edit_assignment.php:93
switch($preview) if($showPreview) $url
Definition: layouts/joomla/form/field/media.php:109

◆ $url

$url
Valeur initiale :
= ($readonly ? ''
: ($link ?: 'index.php?option=com_media&view=media&tmpl=component&mediatypes=' . $mediaTypes
. '&asset=' . $asset . '&author=' . $authorId)
. '&fieldid={field-media-id}&path=' . $folder)
$folder
Definition: mod_random_image.php:17
$link
Definition: administrator/components/com_menus/tmpl/items/modal.php:35
empty($onchange) ? null if($required) if(strtoupper($value)==='NOW') $readonly
Definition: layouts/joomla/form/field/calendar.php:93
if($tmpl=='component') $mediaTypes
Definition: administrator/components/com_media/tmpl/file/default.php:46

◆ $wam

$wam = $doc->getWebAssetManager()

◆ path

string $preview The preview image relative path
Valeur initiale :
="<?php echo Uri::root(); ?>"
root-folder="<?php echo ComponentHelper::getParams('com_media')->get('file_path', 'images'); ?>"
url="<?php echo $url; ?>"
modal-container=".modal"
modal-width="100%"
modal-height="400px"
input=".field-media-input"
button-select=".button-select"
button-clear=".button-clear"
button-save-selected=".button-save-selected"
preview="static"
preview-container=".field-media-preview"
preview-width="<?php echo $previewWidth; ?>"
preview-height="<?php echo $previewHeight; ?>"
supported-extensions="<?php echo str_replace('"', '&quot
$wa usePreset('template.atum.' .($this->direction==='rtl' ? 'rtl' :'ltr')) -> useStyle('template.active.language') ->useStyle('template.user') ->addInlineStyle(':root template active template active template atum rtl rtl ltr viewport width
Definition: error_full.php:73
clear($clause=null)
Definition: PostgresqlQueryBuilder.php:246
if($class) if($size) if($required) if(! $readonly) if(! $readonly)< joomla-field-user class="field-user-wrapper" url="<?php echo (string) $uri; ?> modal
Definition: layouts/joomla/form/field/user.php:114

Référencé par Uri\__construct(), FormattedtextLogger\__construct(), RouterViewConfiguration\__construct(), FormattedtextLogger\__destruct(), Uri\__toString(), Stream\_stream_open(), Stream\_stream_read(), Stream\_stream_stat(), Stream\_stream_write(), FormattedtextLogger\addEntry(), TagTable\check(), Menu\check(), DumpCompletionCommand\configure(), InstalledModel\getPath(), LanguagesModel\getPath(), PlgSampledataMultilang\getPath(), FormattedtextLogger\initFile(), Image\loadFile(), MenusHelper\loadPreset(), PlgButtonReadmore\onDisplay(), Uri\parseUri(), Nested\rebuildPath(), AbstractUri\render(), RouterViewConfiguration\setName(), RouterViewConfiguration\setParent(), Uri\setPath(), et Uri\withPath().