diff --git a/plugins/content/confirmconsent/confirmconsent.php b/plugins/content/confirmconsent/confirmconsent.php index 0149f62828ad8..8e3298b600ee2 100644 --- a/plugins/content/confirmconsent/confirmconsent.php +++ b/plugins/content/confirmconsent/confirmconsent.php @@ -9,13 +9,8 @@ defined('_JEXEC') or die; -use Joomla\CMS\Factory; -use Joomla\CMS\HTML\HTMLHelper; -use Joomla\CMS\Language\Associations; use Joomla\CMS\Language\Text; use Joomla\CMS\Plugin\CMSPlugin; -use Joomla\CMS\Router\Route; -use Joomla\CMS\Uri\Uri; /** * The Joomla Core confirm consent plugin @@ -32,14 +27,6 @@ class PlgContentConfirmConsent extends CMSPlugin */ protected $app; - /** - * The Database object. - * - * @var JDatabaseDriver - * @since 3.9.0 - */ - protected $db; - /** * Load the language file on instantiation. * @@ -78,37 +65,17 @@ public function onContentPrepareForm(JForm $form, $data) } // Get the consent box Text & the selected privacyarticle - $consentboxLabel = Text::_('PLG_CONTENT_CONFIRMCONSENT_CONSENTBOX_LABEL'); $consentboxText = (string) $this->params->get('consentbox_text', Text::_('PLG_CONTENT_CONFIRMCONSENT_FIELD_NOTE_DEFAULT')); $privacyArticle = $this->params->get('privacy_article', false); - // When we have a article let's add the modal and make the title clickable - if ($privacyArticle) - { - $modalName = 'privacyArticle'; - $modalParams['title'] = $consentboxLabel; - $modalParams['url'] = $this->getAssignedArticleUrl($privacyArticle); - $modalParams['height'] = 800; - $modalParams['width'] = "100%"; - echo HTMLHelper::_('bootstrap.renderModal', 'modal-' . $modalName, $modalParams); - - $attribs['data-toggle'] = 'modal'; - - $consentboxLabel = HTMLHelper::_( - 'link', - '#modal-' . $modalName, - $consentboxLabel, - $attribs - ); - } - $form->load('