File manager - Edit - /home/opticamezl/www/newok/plugins/system/cookiespolicynotificationbar/elements/w357frmrk.php
Back
<?php /* ====================================================== # Cookies Policy Notification Bar for Joomla! - v4.4.4 (pro version) # ------------------------------------------------------- # For Joomla! CMS (v4.x) # Author: Web357 (Yiannis Christodoulou) # Copyright: (©) 2014-2024 Web357. All rights reserved. # License: GNU/GPLv3, https://www.gnu.org/licenses/gpl-3.0.html # Website: https://www.web357.com # Demo: https://demo-joomla.web357.com/cookies-policy-notification-bar # Support: support@web357.com # Last modified: Monday 27 October 2025, 03:29:25 PM ========================================================= */ defined('JPATH_BASE') or die; use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\CMS\Plugin\PluginHelper; use Joomla\CMS\Form\FormField; class JFormFieldw357frmrk extends FormField { protected $type = 'w357frmrk'; protected function getLabel() { return ''; // No label required } protected function getInput() { // Check if the Web357 Framework plugin is enabled if (!PluginHelper::isEnabled('system', 'web357framework')) { Factory::getApplication()->enqueueMessage(Text::_('WEB357FRAMEWORK_PLUGIN_IS_REQUIRED'), 'error'); return ''; // Exit if the plugin is not enabled } // Define the path to the Web357 Framework class file $web357FrameworkClassFile = JPATH_PLUGINS . '/system/web357framework/web357framework.class.php'; // Check if the Web357 Framework class file exists if (is_file($web357FrameworkClassFile)) { // Require the Web357 Framework class file require_once $web357FrameworkClassFile; // Instantiate the Web357 Framework helper class $w357FrameworkHelper = new Web357FrameworkHelperClass; // Run the API key checker method $w357FrameworkHelper->apikeyChecker(); } else { // Enqueue an error message if the file does not exist Factory::getApplication()->enqueueMessage(Text::_('WEB357FRAMEWORK_PLUGIN_IS_REQUIRED'), 'error'); } return ''; // Return empty as no additional input is required } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0 |
proxy
|
phpinfo
|
Settings