forked from joomla-extensions/boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2.4.0 - Library updates and general improvements
- Loading branch information
1 parent
e3a2cfd
commit a8297e7
Showing
27 changed files
with
7,271 additions
and
9,300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ RELEASE_VERSION=1.0.0 | |
LICENSE=GNU General Public License version 2 or later; see LICENSE.txt | ||
LICENSE_CODE=GNU/GPLv2 www.gnu.org/licenses/gpl-2.0.html | ||
|
||
AUTHOR=Andrea Gentil - Anibal Sanchez | ||
AUTHOR=Extly, CB | ||
AUTHOR_URL=https://www.extly.com | ||
AUTHOR_EMAIL=[email protected] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ RELEASE_VERSION=1.0.0 | |
LICENSE=GNU General Public License version 2 or later; see LICENSE.txt | ||
LICENSE_CODE=GNU/GPLv2 www.gnu.org/licenses/gpl-2.0.html | ||
|
||
AUTHOR=Andrea Gentil - Anibal Sanchez | ||
AUTHOR=Extly, CB | ||
AUTHOR_URL=https://www.extly.com | ||
[email protected] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/sh | ||
|
||
# A handy bash script to be executed only once on the extension-specific directories | ||
|
||
## Replace | ||
test -d component && build/replace_once_folder.sh component | ||
test -d file && build/replace_once_folder.sh file | ||
test -d library && build/replace_once_folder.sh library | ||
test -d modules && build/replace_once_folder.sh modules | ||
test -d package && build/replace_once_folder.sh package | ||
test -d plugins && build/replace_once_folder.sh plugins | ||
test -d template && build/replace_once_folder.sh template | ||
|
||
test -d build/templates && build/replace_once_folder.sh build/templates | ||
test -d build/translations && build/replace_once_folder.sh build/translations | ||
|
||
## Rename | ||
test -d component && build/rename_once_folder.sh component | ||
test -d file && build/rename_once_folder.sh file | ||
test -d library && build/rename_once_folder.sh library | ||
test -d modules && build/rename_once_folder.sh modules | ||
test -d package && build/rename_once_folder.sh package | ||
test -d plugins && build/rename_once_folder.sh plugins | ||
test -d template && build/rename_once_folder.sh template | ||
|
||
test -d build/templates && build/rename_once_folder.sh build/templates | ||
test -d build/translations && build/rename_once_folder.sh build/translations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<extension type="module" version="3.8" client="administrator" method="upgrade"> | ||
<name>mod_[EXTENSION_ALIAS]</name> | ||
<version>[RELEASE_VERSION]</version> | ||
<creationDate>[DATE]</creationDate> | ||
|
||
[MANIFEST_COPYRIGHT] | ||
|
||
<description>MOD_[TRANSLATION_KEY]_XML_DESCRIPTION</description> | ||
<files> | ||
<filename module="mod_[EXTENSION_ALIAS]">mod_[EXTENSION_ALIAS].php</filename> | ||
<folder>tmpl</folder> | ||
<filename>mod_[EXTENSION_ALIAS].xml</filename> | ||
</files> | ||
<languages> | ||
<language tag="en-GB">language/en-GB/en-GB.mod_[EXTENSION_ALIAS].ini</language> | ||
<language tag="en-GB">language/en-GB/en-GB.mod_[EXTENSION_ALIAS].sys.ini</language> | ||
</languages> | ||
<!-- Update servers --> | ||
<updateservers> | ||
<server type="extension" priority="1" name="[EXTENSION_NAME]">[EXTENSION_CDN]/update-mod_[EXTENSION_ALIAS].xml</server> | ||
</updateservers> | ||
<config> | ||
<fields name="params"> | ||
<fieldset name="basic"> | ||
<field name="domain" type="url" label="MOD_[TRANSLATION_KEY]_URL_LABEL" description="MOD_[TRANSLATION_KEY]_URL_DESCRIPTION" hint="https://www.example.com" filter="url" validate="url" /> | ||
</fieldset> | ||
<fieldset name="advanced"> | ||
<field name="moduleclass_sfx" type="text" label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL" description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC" /> | ||
</fieldset> | ||
</fields> | ||
</config> | ||
</extension> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
<extension type="component" version="3.8.0" method="upgrade"> | ||
<name>com_foo</name> | ||
<version>1.0.0</version> | ||
<creationDate>2018-11-24</creationDate> | ||
<creationDate>2019-06-10</creationDate> | ||
|
||
<author>Andrea Gentil - Anibal Sanchez</author> | ||
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>https://www.extly.com</authorUrl> | ||
<copyright>Copyright (c)2007-2018 Andrea Gentil - Anibal Sanchez All rights reserved.</copyright> | ||
<copyright>Copyright (c)2007-2019 Andrea Gentil - Anibal Sanchez All rights reserved.</copyright> | ||
<license>GNU/GPLv2 www.gnu.org/licenses/gpl-2.0.html</license> | ||
|
||
<description> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* @package Foo Name | ||
* | ||
* @author Andrea Gentil - Anibal Sanchez <[email protected]> | ||
* @copyright Copyright (c)2007-2018 Andrea Gentil - Anibal Sanchez All rights reserved. | ||
* @copyright Copyright (c)2007-2019 Andrea Gentil - Anibal Sanchez All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
* @link https://www.extly.com | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
<extension type="file" version="3.8.0" method="upgrade"> | ||
<name>file_foo</name> | ||
<version>1.0.0</version> | ||
<creationDate>2018-11-24</creationDate> | ||
<creationDate>2019-06-10</creationDate> | ||
|
||
<author>Andrea Gentil - Anibal Sanchez</author> | ||
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>https://www.extly.com</authorUrl> | ||
<copyright>Copyright (c)2007-2018 Andrea Gentil - Anibal Sanchez All rights reserved.</copyright> | ||
<copyright>Copyright (c)2007-2019 Andrea Gentil - Anibal Sanchez All rights reserved.</copyright> | ||
<license>GNU/GPLv2 www.gnu.org/licenses/gpl-2.0.html</license> | ||
|
||
<description><![CDATA[ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,12 @@ | |
<name>Foo Name Library</name> | ||
<libraryname>foo</libraryname> | ||
<version>1.0.0</version> | ||
<creationDate>2018-11-24</creationDate> | ||
<creationDate>2019-06-10</creationDate> | ||
|
||
<author>Andrea Gentil - Anibal Sanchez</author> | ||
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>https://www.extly.com</authorUrl> | ||
<copyright>Copyright (c)2007-2018 Andrea Gentil - Anibal Sanchez All rights reserved.</copyright> | ||
<copyright>Copyright (c)2007-2019 Andrea Gentil - Anibal Sanchez All rights reserved.</copyright> | ||
<license>GNU/GPLv2 www.gnu.org/licenses/gpl-2.0.html</license> | ||
|
||
<description> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
/** | ||
* @package [EXTENSION_NAME] | ||
* | ||
* @author [AUTHOR] <[AUTHOR_EMAIL]> | ||
* @copyright [COPYRIGHT] | ||
* @license [LICENSE] | ||
* @link [AUTHOR_URL] | ||
*/ | ||
|
||
use Joomla\CMS\Helper\ModuleHelper; | ||
|
||
defined('_JEXEC') or die; | ||
|
||
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx')); | ||
|
||
require ModuleHelper::getLayoutPath('mod_foo', $params->get('layout', 'default')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
/** | ||
* @package [EXTENSION_NAME] | ||
* | ||
* @author [AUTHOR] <[AUTHOR_EMAIL]> | ||
* @copyright [COPYRIGHT] | ||
* @license [LICENSE] | ||
* @link [AUTHOR_URL] | ||
*/ | ||
|
||
defined('_JEXEC') or die; | ||
|
||
// Access to module parameters | ||
$domain = $params->get('domain', 'https://www.joomla.org'); | ||
?> | ||
|
||
<a href="<?php echo $domain; ?>"> | ||
<?php echo 'Hello!'; ?> | ||
</a> |
Oops, something went wrong.