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,72 @@
<?php
/**
* @package Conditions
* @version 24.11.1459
*
* @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 RegularLabs\Library\ActionLogPlugin as RL_ActionLogPlugin;
use RegularLabs\Library\Document as RL_Document;
use RegularLabs\Library\Extension as RL_Extension;
use RegularLabs\Library\Language as RL_Language;
defined('_JEXEC') or die;
if ( ! is_file(JPATH_LIBRARIES . '/regularlabs/regularlabs.xml')
|| ! class_exists('RegularLabs\Library\Parameters')
|| ! class_exists('RegularLabs\Library\DownloadKey')
|| ! class_exists('RegularLabs\Library\ActionLogPlugin')
)
{
return;
}
if ( ! RL_Document::isJoomlaVersion(4))
{
RL_Extension::disable('conditions', 'plugin', 'actionlog');
return;
}
if (true)
{
class PlgActionlogConditions extends RL_ActionLogPlugin
{
public $name = 'CONDITIONS';
public $alias = 'conditions';
public function __construct(&$subject, array $config = [])
{
parent::__construct($subject, $config);
$this->addItem('com_conditions', 'item', 'CON_ITEM');
}
public function onContentAfterSave($context, $table, $isNew, $data = [])
{
if ($context !== 'com_conditions.condition')
{
return;
}
parent::onContentAfterSave($context, $table, $isNew, $data);
}
public function onConditionAfterMap($data)
{
RL_Language::load($data->extension);
$item = $this->getItem($data->extension);
$item->title = $data->item_name;
$item->id = $data->item_id;
$this->option = $data->extension;
parent::onContentAfterSave($item->context, $item, false);
$this->option = 'com_conditions';
}
}
}

View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<extension version="4" type="plugin" group="actionlog" method="upgrade">
<name>PLG_ACTIONLOG_CONDITIONS</name>
<description>PLG_ACTIONLOG_CONDITIONS_DESC</description>
<version>24.11.1459</version>
<creationDate>November 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>
<files>
<file plugin="conditions">conditions.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_system_conditions"/>
<field name="@jcompatibility" type="JCompatibility" extension="REGULAR_LABS_LIBRARY"/>
<field name="@license" type="License" extension="CONDITIONS"/>
<field name="@version" type="Version" extension="CONDITIONS"/>
<field name="@dependency" type="Dependency" label="CON_THE_COMPONENT" file="/administrator/components/com_conditions/conditions.xml"/>
<field name="@header" type="Header" label="CONDITIONS" description="CONDITIONS_DESC"/>
<field name="@note__settings" type="Note" class="rl-alert alert alert-info rl-alert-light" text="CON_SETTINGS,&lt;a href=&quot;index.php?option=com_conditions&quot; target=&quot;_blank&quot;&gt;,&lt;/a&gt;"/>
</fieldset>
</fields>
</config>
</extension>

View File

@ -0,0 +1,21 @@
;; @package Conditions
;; @version 24.11.1459
;;
;; @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_ACTIONLOG_CONDITIONS="Action Log - Regular Labs - Conditions"
PLG_ACTIONLOG_CONDITIONS_DESC="Record the actions of users for Conditions"
CONDITIONS="Conditions"
CONDITIONS_DESC="With Conditions you can replace whatever you want in your entire site."
CON_SETTINGS="Please see the [[%1:start link%]]Conditions component[[%2:end link%]] for settings."
CON_THE_COMPONENT="the Conditions component"
CON_THE_SYSTEM_PLUGIN="the Conditions system plugin"
CON_ITEM="Conditions set"

View File

@ -0,0 +1,13 @@
;; @package Conditions
;; @version 24.11.1459
;;
;; @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_ACTIONLOG_CONDITIONS="Action Log - Regular Labs - Conditions"
PLG_ACTIONLOG_CONDITIONS_DESC="Record the actions of users for Conditions"
CONDITIONS="Conditions"