| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/valence/plugins/system/aimycanonical/fields/ |
Upload File : |
<?php
/*
* Copyright (c) 2020-2024 Aimy Extensions, Netzum Sorglos Software GmbH
*
* https://www.aimy-extensions.com/
*
* License: GNU GPLv2, see LICENSE.txt within distribution and/or
* https://www.aimy-extensions.com/software-license.html
*/
defined( '_JEXEC' ) or die(); use Joomla\CMS\Form\FormField; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Factory; class JFormFieldProOnlyNotice extends FormField { protected $type = 'proonlynotice'; public function getInput() { HTMLHelper::_( 'jquery.framework' ); $doc = Factory::getDocument(); $doc->addScriptDeclaration( 'jQuery(document).ready(function($)' . '{' . '$(".control-group")' . '.find(' . '"fieldset.aimy-pro-feature, div.aimy-pro-feature"' . ')' . '.each(function()' . '{' . 'var $this = $(this);' . '$this.find("input,textarea,select,label")' . '.attr("disabled", "disabled")' . '.unbind()' . '.click(function(){return false;});' . '$this.addClass("pro-only-opt")' . '.parent().append(' . '$( "<div></div>" )' . '.addClass("pro-only")' . '.html(' . '$( "<a></a>" ).attr({' . 'href: "https://www.aimy-extensions.com/joomla/canonical.html",' . 'target: "_blank",' . 'rel: "noopener"' . '})' . '.text("' . Text::_( 'AIMY_CNCL_PRO_FEATURE' ) . '")' . ')' . ');' . '});' . '});' ); $doc->addStyleDeclaration( '.pro-only' . '{' . 'font-size: 0.9em;' . 'font-style: italic;' . 'font-color: #333;' . 'padding: 2px 0;' . '}' . '.pro-only-opt *[disabled="disabled"]' . '{' . 'opacity: 0.5;' . '}' . 'fieldset .pro-only a[target="_blank"]::before' . '{' . 'padding-right: 4px;' . '}' ); return ''; } public function getLabel() { return ''; } }