Skip to content

Commit

Permalink
Update description and advanced tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzo1987 committed Aug 21, 2020
1 parent a181b4a commit ff9ab41
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 18 deletions.
56 changes: 41 additions & 15 deletions mod_joomlalabs_imagecomparisonslider_module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<authorUrl>https://joomlalabs.com</authorUrl>
<copyright>Copyright (C) 2015 - 2020 Joomla!LABS. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<version>1.0.0</version>
<version>1.0.1</version>
<description>MOD_JOOMLALABS_IMAGECOMPARISONSLIDER_MODULE_XML_DESCRIPTION</description>

<files>
Expand Down Expand Up @@ -37,15 +37,15 @@
<field
name="left_alt"
type="text"
label="MOD_JOOMLALABS_IMAGECOMPARISONSLIDER_MODULE_LEFT_IMAGE"
description="MOD_JOOMLALABS_IMAGECOMPARISONSLIDER_MODULE_LEFT_IMAGE_DESCRIPTION"
label="MOD_JOOMLALABS_IMAGECOMPARISONSLIDER_MODULE_LEFT_IMAGE_ALT"
description="MOD_JOOMLALABS_IMAGECOMPARISONSLIDER_MODULE_LEFT_IMAGE_ALT_DESCRIPTION"
size="30"
/>
<field
name="left_caption"
type="text"
label="MOD_JOOMLALABS_IMAGECOMPARISONSLIDER_MODULE_LEFT_IMAGE"
description="MOD_JOOMLALABS_IMAGECOMPARISONSLIDER_MODULE_LEFT_IMAGE_DESCRIPTION"
label="MOD_JOOMLALABS_IMAGECOMPARISONSLIDER_MODULE_LEFT_IMAGE_CAPTION"
description="MOD_JOOMLALABS_IMAGECOMPARISONSLIDER_MODULE_LEFT_IMAGE_CAPTION_DESCRIPTION"
size="30"
/>
<field
Expand All @@ -57,30 +57,56 @@
<field
name="right_alt"
type="text"
label="MOD_JOOMLALABS_IMAGECOMPARISONSLIDER_MODULE_RIGHT_IMAGE"
description="MOD_JOOMLALABS_IMAGECOMPARISONSLIDER_MODULE_RIGHT_IMAGE_DESCRIPTION"
label="MOD_JOOMLALABS_IMAGECOMPARISONSLIDER_MODULE_RIGHT_IMAGE_ALT"
description="MOD_JOOMLALABS_IMAGECOMPARISONSLIDER_MODULE_RIGHT_IMAGE_ALT_DESCRIPTION"
size="30"
/>
<field
name="right_caption"
type="text"
label="MOD_JOOMLALABS_IMAGECOMPARISONSLIDER_MODULE_RIGHT_IMAGE"
description="MOD_JOOMLALABS_IMAGECOMPARISONSLIDER_MODULE_RIGHT_IMAGE_DESCRIPTION"
label="MOD_JOOMLALABS_IMAGECOMPARISONSLIDER_MODULE_RIGHT_IMAGE_CAPTION"
description="MOD_JOOMLALABS_IMAGECOMPARISONSLIDER_MODULE_RIGHT_IMAGE_CAPTION_DESCRIPTION"
size="30"
/>
</fieldset>
<fieldset name="advanced">
<field
name="layout"
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
class="custom-select"
/>
<field
name="moduleclass_sfx"
type="text"
type="textarea"
label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL"
description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC" />
rows="3"
/>
<field
name="mymodulelayout"
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
name="cache"
type="list"
label="COM_MODULES_FIELD_CACHING_LABEL"
default="1"
filter="integer"
validate="options"
>
<option value="1">JGLOBAL_USE_GLOBAL</option>
<option value="0">COM_MODULES_FIELD_VALUE_NOCACHING</option>
</field>
<field
name="cache_time"
type="number"
label="COM_MODULES_FIELD_CACHE_TIME_LABEL"
default="900"
filter="integer"
/>
<field
name="cachemode"
type="hidden"
default="static"
>
<option value="static"></option>
</field>
</fieldset>
</fields>
</config>
Expand Down
4 changes: 1 addition & 3 deletions tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@

defined('_JEXEC') or die;

use Joomla\CMS\Factory;

$document = Factory::getDocument();
$document = $app->getDocument();
$document->addStyleSheet('/modules/mod_joomlalabs_imagecomparisonslider_module/src/imagecomparisonslider.css');
$document->addScript('/modules/mod_joomlalabs_imagecomparisonslider_module/src/imagecomparisonslider.js');

Expand Down

0 comments on commit ff9ab41

Please sign in to comment.