primo commit

This commit is contained in:
2024-12-17 17:34:10 +01:00
commit e650f8df99
16435 changed files with 2451012 additions and 0 deletions

View File

@ -0,0 +1,19 @@
<?php
/**
* @package Articles Field
* @version 4.3.2
*
* @author Peter van Westen <info@regularlabs.com>
* @link https://regularlabs.com
* @copyright Copyright © 2024 Regular Labs All Rights Reserved
* @license GNU General Public License version 2 or later
*/
use Bluecoder\Component\Jfilters\Administrator\Model\Filter\Option\Collection as JfiltersCollection;
use RegularLabs\Library\Document as RL_Document;
use RegularLabs\Library\Extension as RL_Extension;
use RegularLabs\Library\FieldsPlugin;
defined('_JEXEC') or die;
// Only used in Pro version

View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<extension version="4" type="plugin" group="fields" method="upgrade">
<name>PLG_FIELDS_ARTICLESLINKED</name>
<description>PLG_FIELDS_ARTICLESLINKED_DESC</description>
<version>4.3.2</version>
<creationDate>October 2024</creationDate>
<author>Regular Labs (Peter van Westen)</author>
<authorEmail>info@regularlabs.com</authorEmail>
<authorUrl>https://regularlabs.com</authorUrl>
<copyright>Copyright © 2024 Regular Labs - All Rights Reserved</copyright>
<license>GNU General Public License version 2 or later</license>
<namespace path="src">RegularLabs\Plugin\Fields\ArticlesLinked</namespace>
<scriptfile>script.install.php</scriptfile>
<files>
<file plugin="articleslinked">articleslinked.php</file>
<folder>language</folder>
</files>
<config>
<fields name="params" addfieldprefix="RegularLabs\Library\Form\Field">
<fieldset name="basic">
<field name="@load_language_regularlabs" type="LoadLanguage" extension="plg_system_regularlabs"/>
<field name="@load_language" type="LoadLanguage" extension="plg_fields_articles"/>
<field name="@license" type="License" extension="ARTICLESFIELD"/>
<field name="@version" type="Version" extension="ARTICLESFIELD"/>
<field name="@header" type="Header" label="ARTICLESFIELD" description="ARTICLESFIELD_DESC" url="https://regularlabs.com/articlesfield"/>
<field name="@notice" type="OnlyPro" label=""/>
</fieldset>
</fields>
</config>
</extension>

View File

@ -0,0 +1,14 @@
;; @package Articles Field
;; @version 3.6.1
;;
;; @author Peter van Westen <info@regularlabs.com>
;; @link http://regularlabs.com
;; @copyright Copyright © 2021 Regular Labs All Rights Reserved
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
;;
;; @translate Want to help with translations? See: https://regularlabs.com/translate
; PLG_FIELDS_ARTICLESLINKED="Fields - Regular Labs - Articles (Linked)"
PLG_FIELDS_ARTICLESLINKED_DESC="Artikler felt - forbind andre artikler til dit indholds element"
; PLG_FIELDS_ARTICLESLINKED_LABEL="Articles - Linked (%s)"

View File

@ -0,0 +1,12 @@
;; @package Articles Field
;; @version 3.6.1
;;
;; @author Peter van Westen <info@regularlabs.com>
;; @link http://regularlabs.com
;; @copyright Copyright © 2021 Regular Labs All Rights Reserved
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
;;
;; @translate Want to help with translations? See: https://regularlabs.com/translate
; PLG_FIELDS_ARTICLESLINKED="Fields - Regular Labs - Articles (Linked)"
PLG_FIELDS_ARTICLESLINKED_DESC="Artikler felt - forbind andre artikler til dit indholds element"

View File

@ -0,0 +1,16 @@
;; @package Articles Field
;; @version 4.3.2
;;
;; @author Peter van Westen <info@regularlabs.com>
;; @link https://regularlabs.com
;; @copyright Copyright © 2024 Regular Labs All Rights Reserved
;; @license GNU General Public License version 2 or later
;;
;; @translate Want to help with translations? See: https://regularlabs.com/translate
PLG_FIELDS_ARTICLESLINKED="Fields - Regular Labs - Articles (Linked)"
PLG_FIELDS_ARTICLESLINKED_DESC="Articles Field - connect other articles to your content item"
PLG_FIELDS_ARTICLESLINKED_LABEL="Articles - Linked (%s)"
FLDA_THE_MAIN_FIELD_PLUGIN="the main Articles Field plugin"

View File

@ -0,0 +1,12 @@
;; @package Articles Field
;; @version 4.3.2
;;
;; @author Peter van Westen <info@regularlabs.com>
;; @link https://regularlabs.com
;; @copyright Copyright © 2024 Regular Labs All Rights Reserved
;; @license GNU General Public License version 2 or later
;;
;; @translate Want to help with translations? See: https://regularlabs.com/translate
PLG_FIELDS_ARTICLESLINKED="Fields - Regular Labs - Articles (Linked)"
PLG_FIELDS_ARTICLESLINKED_DESC="Articles Field - connect other articles to your content item"

View File

@ -0,0 +1,14 @@
;; @package Articles Field
;; @version 3.6.1
;;
;; @author Peter van Westen <info@regularlabs.com>
;; @link http://regularlabs.com
;; @copyright Copyright © 2021 Regular Labs All Rights Reserved
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
;;
;; @translate Want to help with translations? See: https://regularlabs.com/translate
; PLG_FIELDS_ARTICLESLINKED="Fields - Regular Labs - Articles (Linked)"
PLG_FIELDS_ARTICLESLINKED_DESC="Artiklite väli - ühenda teised artiklid oma sisuga"
; PLG_FIELDS_ARTICLESLINKED_LABEL="Articles - Linked (%s)"

View File

@ -0,0 +1,12 @@
;; @package Articles Field
;; @version 3.6.1
;;
;; @author Peter van Westen <info@regularlabs.com>
;; @link http://regularlabs.com
;; @copyright Copyright © 2021 Regular Labs All Rights Reserved
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
;;
;; @translate Want to help with translations? See: https://regularlabs.com/translate
; PLG_FIELDS_ARTICLESLINKED="Fields - Regular Labs - Articles (Linked)"
PLG_FIELDS_ARTICLESLINKED_DESC="Artiklite väli - ühenda teised artiklid oma sisuga"

View File

@ -0,0 +1,14 @@
;; @package Articles Field
;; @version 3.6.1
;;
;; @author Peter van Westen <info@regularlabs.com>
;; @link http://regularlabs.com
;; @copyright Copyright © 2021 Regular Labs All Rights Reserved
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
;;
;; @translate Want to help with translations? See: https://regularlabs.com/translate
; PLG_FIELDS_ARTICLESLINKED="Fields - Regular Labs - Articles (Linked)"
PLG_FIELDS_ARTICLESLINKED_DESC="Artikelveld - verbind andere artikelen met je inhoud"
; PLG_FIELDS_ARTICLESLINKED_LABEL="Articles - Linked (%s)"

View File

@ -0,0 +1,12 @@
;; @package Articles Field
;; @version 3.6.1
;;
;; @author Peter van Westen <info@regularlabs.com>
;; @link http://regularlabs.com
;; @copyright Copyright © 2021 Regular Labs All Rights Reserved
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
;;
;; @translate Want to help with translations? See: https://regularlabs.com/translate
; PLG_FIELDS_ARTICLESLINKED="Fields - Regular Labs - Articles (Linked)"
PLG_FIELDS_ARTICLESLINKED_DESC="Artikelveld - verbind andere artikelen met je inhoud"

View File

@ -0,0 +1,14 @@
;; @package Articles Field
;; @version 3.6.1
;;
;; @author Peter van Westen <info@regularlabs.com>
;; @link http://regularlabs.com
;; @copyright Copyright © 2021 Regular Labs All Rights Reserved
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
;;
;; @translate Want to help with translations? See: https://regularlabs.com/translate
; PLG_FIELDS_ARTICLESLINKED="Fields - Regular Labs - Articles (Linked)"
PLG_FIELDS_ARTICLESLINKED_DESC="Campo Artigos - conecta outros artigos para o seu item de conteúdo"
; PLG_FIELDS_ARTICLESLINKED_LABEL="Articles - Linked (%s)"

View File

@ -0,0 +1,12 @@
;; @package Articles Field
;; @version 3.6.1
;;
;; @author Peter van Westen <info@regularlabs.com>
;; @link http://regularlabs.com
;; @copyright Copyright © 2021 Regular Labs All Rights Reserved
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
;;
;; @translate Want to help with translations? See: https://regularlabs.com/translate
; PLG_FIELDS_ARTICLESLINKED="Fields - Regular Labs - Articles (Linked)"
PLG_FIELDS_ARTICLESLINKED_DESC="Campo Artigos - conecta outros artigos para o seu item de conteúdo"

View File

@ -0,0 +1,14 @@
;; @package Articles Field
;; @version 3.6.1
;;
;; @author Peter van Westen <info@regularlabs.com>
;; @link http://regularlabs.com
;; @copyright Copyright © 2021 Regular Labs All Rights Reserved
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
;;
;; @translate Want to help with translations? See: https://regularlabs.com/translate
; PLG_FIELDS_ARTICLESLINKED="Fields - Regular Labs - Articles (Linked)"
PLG_FIELDS_ARTICLESLINKED_DESC="文章字段 - 将其他文章与您的内容项目相关联"
; PLG_FIELDS_ARTICLESLINKED_LABEL="Articles - Linked (%s)"

View File

@ -0,0 +1,12 @@
;; @package Articles Field
;; @version 3.6.1
;;
;; @author Peter van Westen <info@regularlabs.com>
;; @link http://regularlabs.com
;; @copyright Copyright © 2021 Regular Labs All Rights Reserved
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
;;
;; @translate Want to help with translations? See: https://regularlabs.com/translate
; PLG_FIELDS_ARTICLESLINKED="Fields - Regular Labs - Articles (Linked)"
PLG_FIELDS_ARTICLESLINKED_DESC="文章字段 - 将其他文章与您的内容项目相关联"

View File

@ -0,0 +1,55 @@
<?php
/**
* @package Articles Field
* @version 4.3.2
*
* @author Peter van Westen <info@regularlabs.com>
* @link https://regularlabs.com
* @copyright Copyright © 2024 Regular Labs All Rights Reserved
* @license GNU General Public License version 2 or later
*/
defined('_JEXEC') or die;
use Joomla\CMS\Filesystem\File as JFile;
use Joomla\CMS\Filesystem\Folder as JFolder;
class PlgFieldsArticlesLinkedInstallerScript
{
public function postflight($install_type, $adapter)
{
if ( ! in_array($install_type, ['install', 'update']))
{
return true;
}
self::deleteJoomla3Files();
return true;
}
private static function delete($files = [])
{
foreach ($files as $file)
{
if (is_dir($file))
{
JFolder::delete($file);
}
if (is_file($file))
{
JFile::delete($file);
}
}
}
private static function deleteJoomla3Files()
{
self::delete(
[
JPATH_SITE . '/plugins/fields/articleslinked/fields',
]
);
}
}