Files
AlexBa16 27903eed4a init
2026-06-08 15:29:52 +02:00

73 lines
2.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<extension type="plugin" group="media-action" method="upgrade">
<name>plg_media-action_crop</name>
<author>Joomla! Project</author>
<creationDate>2017-01</creationDate>
<copyright>(C) 2017 Open Source Matters, Inc.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
<version>4.0.0</version>
<description>PLG_MEDIA-ACTION_CROP_XML_DESCRIPTION</description>
<namespace path="src">Joomla\Plugin\MediaAction\Crop</namespace>
<files>
<folder>form</folder>
<folder plugin="crop">services</folder>
<folder>src</folder>
</files>
<languages>
<language tag="en-GB">language/en-GB/plg_media-action_crop.ini</language>
<language tag="en-GB">language/en-GB/plg_media-action_crop.sys.ini</language>
</languages>
<config>
<fields name="params">
<fieldset name="basic">
<field
name="aspect_ratios"
type="subform"
label="PLG_MEDIA-ACTION_CROP_ASPECT_RATIOS_LABEL"
description="PLG_MEDIA-ACTION_CROP_ASPECT_RATIOS_DESC"
multiple="true"
layout="joomla.form.field.subform.repeatable-table"
default='{"aspect_ratios0":{"label":"1:1","value":"1","group":""},"aspect_ratios1":{"label":"5:4","value":"5/4","group":"landscape"},"aspect_ratios2":{"label":"4:3","value":"4/3","group":"landscape"},"aspect_ratios3":{"label":"3:2","value":"3/2","group":"landscape"},"aspect_ratios4":{"label":"16:9","value":"16/9","group":"landscape"},"aspect_ratios5":{"label":"4:5","value":"4/5","group":"portrait"},"aspect_ratios6":{"label":"3:4","value":"3/4","group":"portrait"},"aspect_ratios7":{"label":"2:3","value":"2/3","group":"portrait"},"aspect_ratios8":{"label":"9:16","value":"9/16","group":"portrait"}}'
>
<form>
<field
name="label"
type="text"
label="PLG_MEDIA-ACTION_CROP_RATIO_LABEL_LABEL"
description="PLG_MEDIA-ACTION_CROP_RATIO_LABEL_DESC"
required="true"
filter="string"
/>
<field
name="value"
type="text"
label="PLG_MEDIA-ACTION_CROP_RATIO_VALUE_LABEL"
description="PLG_MEDIA-ACTION_CROP_RATIO_VALUE_DESC"
required="true"
pattern="([1-9]\d*/[1-9]\d*|[1-9]\d*)"
filter="string"
hint="9/16"
class="input-small"
size="10"
maxlength="10"
/>
<field
name="group"
type="list"
label="PLG_MEDIA-ACTION_CROP_RATIO_GROUP_LABEL"
description="PLG_MEDIA-ACTION_CROP_RATIO_GROUP_DESC"
default=""
>
<option value="">PLG_MEDIA-ACTION_CROP_RATIO_GROUP_NONE</option>
<option value="landscape">PLG_MEDIA-ACTION_CROP_PARAM_LANDSCAPE</option>
<option value="portrait">PLG_MEDIA-ACTION_CROP_PARAM_PORTRAIT</option>
</field>
</form>
</field>
</fieldset>
</fields>
</config>
</extension>