Your IP : 216.73.216.85


Current Path : /home/smartconb/www/armencom33/administrator/components/com_sobipro/field/
Upload File :
Current File : /home/smartconb/www/armencom33/administrator/components/com_sobipro/field/image.xml

<?xml version="1.0" encoding="utf-8"?>
<!--
 @package: SobiPro multi-directory component with content construction support

 @author
 Name: Sigrid Suski & Radek Suski, Sigsiu.NET GmbH
 Email: sobi[at]sigsiu.net
 Url: https://www.Sigsiu.NET

 @copyright Copyright (C) 2006 - 2023 Sigsiu.NET GmbH (https://www.sigsiu.net). All rights reserved.
 @license GNU/GPL Version 3
 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3
 as published by the Free Software Foundation, and under the additional terms according section 7 of GPL v3.
 See https://www.gnu.org/licenses/gpl.html and https://www.sigsiu.net/licenses.

 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

 @modified 19 April 2023 by Sigrid Suski
-->

<definition>
	<header>
		<file type="script" filename="adm.tabs"/>
		<file type="script" filename="adm.fields.image"/>
	</header>

	<toolbar title="FM.SITE_TITLE" subtitle="{'field.add':'FM.ADD_FIELD','field.edit':'FM.FIELD_FULLINFO'}" class="field image">
		<buttons icon="globe" class="btn" buttons="languages-list" label="TB.LANGUAGES"/>
		<button task="field.apply" type="apply" invert-condition="trim" colour="save">
			<button type="save" task="field.save" colour="save"/>
			<button type="duplicate" task="field.clone" colour="save"/>
		</button>
		<button type="exit" task="field.cancel" colour="exit"/>
		<button type="help" target="_blank"/>
	</toolbar>

	<body disable-menu="true">
		<div class="row">
			<div class="col-lg-12 sp-main-area">
				<message id="spctrl-message"/>
				<tabs invert-condition="trim">
					<tab label="FMN.FIELD_GENERAL">
						<fieldset>
							<field type="toggle" name="field.enabled" value="field.enabled" label="ENABLED" prefix="yes_no"/>
						</fieldset>
						<fieldset>
							<field type="text" name="field.name" value="field.name" label="FMN.FIELD_LABEL" width="5" maxlength="255" required="true" translatable="true"/>
							<field type="text" name="field.nid" value="field.nid" label="FM.ALIAS" width="5" placeholder="FM.LABEL_PLACEHOLDER_ALIAS"/>
							<field type="text" name="field.cssClass" value="field.cssClass" label="FM.CSS_CLASS" width="6"/>
							<field type="textarea" name="field.notice" value="field.notice" label="FM.NOTICES" editor="false" width="8" rows="3" style=""/>
						</fieldset>
						<fieldset label="FM.FIELD_TYPE">
							<field type="output" value="type" label="FMN.FIELD_TYPE" class="badge rounded-pill bg-secondary"/>
							<field type="output" value="field.version" label="VERSION" class="badge rounded-pill bg-secondary"/>
						</fieldset>

						<legend class="text-muted small">
							<param icon="fas fa-star dk-sup" value="ENTRY_REQUIRED_MESSAGE" parse="true"/>
							<param icon="fas fa-globe dk-sup" condition="multilingual" value="ENTRY_TRANSLATABLE_MESSAGE" parse="true"/>
						</legend>
					</tab>

					<tab label="FMN.FIELD_ENTRYINPUT">
						<fieldset>
							<field type="select" name="field.bsWidth" selected="field.bsWidth" label="FMN.FIELD_WIDTH" width="2">
								<values>
									<option value="1" label="1"/>
									<option value="2" label="2"/>
									<option value="3" label="3"/>
									<option value="4" label="4"/>
									<option value="5" label="5"/>
									<option value="6" label="6"/>
									<option value="7" label="7"/>
									<option value="8" label="8"/>
									<option value="9" label="9"/>
									<option value="10" label="10"/>
									<option value="11" label="11"/>
									<option value="12" label="12"/>
								</values>
							</field>
							<field type="textarea" name="field.description" value="field.description" label="FM.DESCRIPTION" editor="false" width="8" rows="4" style=""
							       translatable="true"/>
							<field type="select" label="TP.CONFIG.ENTRY_HELPPOSITION" name="field.helpposition" selected="field.helpposition" width="3">
								<values>
									<option value="popup" label="TP.CONFIG.ENTRY_HELPPOSITION_POPUP"/>
									<option value="above" label="TP.CONFIG.ENTRY_HELPPOSITION_ABOVE"/>
									<option value="below" label="TP.CONFIG.ENTRY_HELPPOSITION_BELOW"/>
									<option value="right" label="TP.CONFIG.ENTRY_HELPPOSITION_RIGHT"/>
								</values>
							</field>
							<field type="toggle" name="field.showEditLabel" value="field.showEditLabel" label="FM.SHOW_LABEL" prefix="yes_no"/>
							<field type="text" name="field.cssClassEdit" value="field.cssClassEdit" label="FM.CSS_CLASS" width="6"/>
							<field invert-condition="category-field" type="toggle" name="field.adminField" value="field.adminField" label="FMN.ADM_FIELD" prefix="yes_no"/>
							<field invert-condition="category-field" type="toggle" name="field.required" value="field.required" label="FMN.IS_REQUIRED" prefix="yes_no"/>
						</fieldset>
						<fieldset label="FMN.FIELD_ENTRYINPUT_IMAGE">
							<field type="text" name="field.maxSize" value="field.maxSize" label="FMN.IMG.MAX_FILE_SIZE" maxlength="10" width="4">
								<add where="after">
									<call function="Sobi::Txt">
										<param>FMN.LENGTH_BYTES</param>
									</call>
								</add>
							</field>
							<field type="text" name="field.savePath" value="field.savePath" label="FMN.IMG.IMAGE_SAVE_PATH" maxlength="150" width="8"/>
							<field type="toggle" name="field.keepOrg" value="field.keepOrg" label="FMN.IMG.KEEP_ORG" prefix="yes_no"/>
							<field type="toggle" name="field.detectTransparency" value="field.detectTransparency" label="FMN.IMG.DETECT_TRANSPARENCY" prefix="yes_no"/>
							<field type="toggle" name="field.crop" value="field.crop" label="FM.IMG.CROP_IMG" prefix="yes_no"/>
							<field type="toggle" name="field.convert" value="field.convert" label="FM.IMG.CONVERT_IMG" prefix="yes_no"/>
						</fieldset>
						<fieldset label="FMN.FIELD_ENTRYINPUT_DVIMAGE">
							<field type="text" name="field.imageName" value="field.imageName" label="FM.FIELD_IMAGE_NAME" maxlength="100" width="6"/>
							<field type="toggle" name="field.resize" value="field.resize" label="FM.IMG.RESIZE_IMG" prefix="yes_no"/>
							<field type="text" name="field.resizeWidth" value="field.resizeWidth" label="FM.IMG.RESIZEWIDTH_TO" maxlength="5" width="2">
								<add where="after">
									<text>px</text>
								</add>
							</field>
							<field type="text" name="field.resizeHeight" value="field.resizeHeight" label="FM.IMG.RESIZEHEIGHT_TO" maxlength="5" width="2">
								<add where="after">
									<text>px</text>
								</add>
							</field>
						</fieldset>
						<fieldset label="FMN.FIELD_ENTRYINPUT_THUMB">
							<field type="toggle" name="field.generateThumb" value="field.generateThumb" label="FM.IMG.CREATE_THUMB" prefix="yes_no"/>
							<field type="text" name="field.thumbName" value="field.thumbName" label="FM.FIELD_IMAGE_NAME" maxlength="100" width="6"/>
							<field type="text" name="field.thumbWidth" value="field.thumbWidth" label="FM.IMG.RESIZEWIDTH_TO" maxlength="5" width="2">
								<add where="after">
									<text>px</text>
								</add>
							</field>
							<field type="text" name="field.thumbHeight" value="field.thumbHeight" label="FM.IMG.RESIZEHEIGHT_TO" maxlength="5" width="2">
								<add where="after">
									<text>px</text>
								</add>
							</field>
						</fieldset>
						<fieldset label="FMN.FIELD_ENTRYINPUT_ALT">
							<field type="toggle" name="field.ownAltText" value="field.ownAltText" label="FMN.IMAGE.OWN_ALT" data-spctrl="alt-custom" prefix="yes_no"/>
							<div data-spctrl="alt-custom-no">
								<field type="text" name="field.altPattern" value="field.altPattern" label="FMN.IMAGE.ALT_PATTERN" maxlength="150" width="4" translatable="true"/>
							</div>
							<div data-spctrl="alt-custom-yes">
								<field type="toggle" name="field.floatOwnAltText" value="field.floatOwnAltText" label="FM.FIELD.ALT_FLOAT+*" prefix="yes_no"/>
								<field type="text" name="field.altMaxLength" value="field.altMaxLength" label="FMN.IMAGE.ALT_MAX_LENGTH" maxlength="10" width="2">
									<add where="after">
										<call function="Sobi::Txt">
											<param>FMN.LENGTH_CHAR</param>
										</call>
									</add>
								</field>
							</div>
						</fieldset>
						<fieldset invert-condition="category-field" label="FMN.FIELD_ENTRYINPUT_EDITS">
							<field type="toggle" name="field.editable" value="field.editable" label="FMN.IS_EDITABLE" prefix="yes_no"/>
							<field type="text" name="field.editLimit" value="field.editLimit" label="FM.EDIT_LIMITS" width="2"/>
						</fieldset>
						<fieldset invert-condition="category-field" label="FMN.FIELD_ENTRYINPUT_PAYMENT">
							<field type="toggle" name="field.isFree" value="field.isFree" label="FM.FOR_FREE" prefix="yes_no"/>
							<field type="text" name="field.fee" value="field.fee" label="FMN.FIELD_FEE" width="2">
								<add where="after">
									<call function="Sobi::Cfg">
										<param>payments.currency</param>
										<param>EUR</param>
									</call>
								</add>
							</field>
						</fieldset>

						<legend class="text-muted small">
							<param value="FM.FIELD.HINT.FLOAT" parse="true"/>
							<param icon="fas fa-globe dk-sup" condition="multilingual" value="ENTRY_TRANSLATABLE_MESSAGE" parse="true"/>
						</legend>
					</tab>

					<tab label="FMN.FIELD_ENTRYVIEW">
						<fieldset>
							<field invert-condition="category-field" type="select" name="field.showIn" selected="field.showIn" label="FMN.AVAILABLE_IN" width="3">
								<values>
									<option value="both" label="FM.BOTH_OPT"/>
									<option value="details" label="FM.DETAILS_VIEW_OPT"/>
									<option value="vcard" label="FM.V_CARD_OPT"/>
									<option value="hidden" label="FM.HIDDEN_OPTION"/>
								</values>
							</field>
							<field type="text" name="field.itemprop" label="FMN.ITEMPROP" width="4"/>
							<field type="toggle" name="field.withLabel" value="field.withLabel" label="FM.SHOW_LABEL" prefix="yes_no"/>
							<field type="text" name="field.cssClassView" value="field.cssClassView" label="FM.CSS_CLASS" width="6"/>
							<field condition="category-field" type="select" name="field.inCategory" selected="field.inCategory" label="FM.IMG.SHOW_IN_CATEGORY" width="4">
								<values>
									<option value="thumb" label="FM.IMG.THUMBAIL_OPT"/>
									<option value="image" label="FM.IMG.IMAGE_OPT"/>
									<option value="original" label="FM.IMG.ORGINAL_OPT"/>
								</values>
							</field>

							<field invert-condition="category-field" type="select" name="field.inVcard" selected="field.inVcard" label="FM.IMG.SHOW_IN_V_CARD" width="3">
								<values>
									<option value="thumb" label="FM.IMG.THUMBAIL_OPT"/>
									<option value="image" label="FM.IMG.IMAGE_OPT"/>
									<option value="original" label="FM.IMG.ORGINAL_OPT"/>
								</values>
							</field>
							<field invert-condition="category-field" type="select" name="field.inDetails" selected="field.inDetails" label="FM.IMG.SHOW_IN_DETAILS_VIEW" width="3">
								<values>
									<option value="thumb" label="FM.IMG.THUMBAIL_OPT"/>
									<option value="image" label="FM.IMG.IMAGE_OPT"/>
									<option value="original" label="FM.IMG.ORGINAL_OPT"/>
								</values>
							</field>
							<field condition="category-field" type="select" name="field.float" selected="field.float" label="FM.IMG.FLOAT" width="2">
								<values>
									<option value="" label="FM.IMG.FLOAT_NO_OPT"/>
									<option value="right" label="FM.IMG.FLOAT_RIGHT_OPT"/>
									<option value="left" label="FM.IMG.FLOAT_LEFT_OPT"/>
								</values>
							</field>
							<field invert-condition="category-field" type="select" name="field.thumbFloat" selected="field.thumbFloat" label="FM.IMG.THUMB_FLOAT" width="2">
								<values>
									<option value="" label="FM.IMG.FLOAT_NO_OPT"/>
									<option value="right" label="FM.IMG.FLOAT_RIGHT_OPT"/>
									<option value="left" label="FM.IMG.FLOAT_LEFT_OPT"/>
								</values>
							</field>
							<field invert-condition="category-field" type="select" name="field.imageFloat" selected="field.imageFloat" label="FM.IMG.IMG_FLOAT" width="2">
								<values>
									<option value="" label="FM.IMG.FLOAT_NO_OPT"/>
									<option value="right" label="FM.IMG.FLOAT_RIGHT_OPT"/>
									<option value="left" label="FM.IMG.FLOAT_LEFT_OPT"/>
								</values>
							</field>
						</fieldset>
					</tab>
				</tabs>
				<div class="sp-feature" condition="trim">
					<file filename="about.information.info" type="html" translatable="true" start-path="administrator"/>
				</div>
			</div>
		</div>
	</body>

	<config>
		<action value="index.php"/>
		<hidden>
			<field name="option" default="com_sobipro"/>
			<field name="field.fieldType" default="image"/>
			<field name="sp-language" default=""/>
			<field name="task" default=""/>
			<field name="method" default="xhr"/>
			<field name="format" default="raw"/>
		</hidden>
	</config>
</definition>