File manager - Edit - /home/opticamezl/www/newok/plugins/system/cookiespolicynotificationbar/elements/viewacceptancelogs.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('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Uri\Uri; use Joomla\CMS\Language\Text; use Joomla\CMS\Form\FormField; use Joomla\CMS\HTML\HTMLHelper; class JFormFieldviewacceptancelogs extends FormField { protected $type = 'viewacceptancelogs'; protected function getInput() { $html = ''; if (version_compare(JVERSION, '3.0', 'lt')) { // j25 $html .= '<div style="display: block;border: 2px solid red;clear: both;padding: 4px;">This "View Acceptance Logs" feature is not supported anymore in Joomla! 2.5</div>'; } elseif (version_compare(JVERSION, '4.0', 'lt')) { // j3 // load js Factory::getDocument()->addScript(Uri::root(true).'/plugins/system/cookiespolicynotificationbar/assets/js/admin.min.js'); // load the modal behavior to display the logs HTMLHelper::_('behavior.modal'); // View logs $modalParams = array( 'title' => ''.Text::_('PLG_SYSTEM_CPNB_ACCEPTANCE_LOGS_HEADING_IN_MODAL').'', 'closeButton' => true, 'height' => '400px', 'width' => '800px', 'bodyHeight' => '70', 'modalWidth' => '80', 'backdrop' => true, 'keyboard' => true, 'footer' => '<a role="button" class="btn btn-secondary" data-dismiss="modal" aria-hidden="true">' . Text::_('JLIB_HTML_BEHAVIOR_CLOSE') . '</a>' ); $modalBody = '<div class="container-fluid"><div class="row-fluid"><div class="cpnb-acceptance-logs-table" style="height:1200px">...</div></div></div>'; $html .= HTMLHelper::_('bootstrap.renderModal', 'modal-view-acceptance-logs', $modalParams, $modalBody); // Buttons: View Logs | Delete Logs $html .= '<div class="cpnb-acceptance-logs">'; $html .= '<h3>'.Text::_('PLG_SYSTEM_CPNB_VIEW_OR_DELETE_LOGS').'</h3>'; $html .= '<p>'; $html .= '<a href="#modal-view-acceptance-logs" role="button" class="btn btn-success cpnb-view-acceptance-logs-btn" data-toggle="modal"><strong>'.Text::_('PLG_SYSTEM_CPNB_VIEW_LOGS').'</strong></a>'; $html .= ' | '; $html .= '<a class="btn btn-danger cpnb-delete-acceptance-logs-btn" data-cpnb-delete-confirmation-msg="'.Text::_('PLG_SYSTEM_CPNB_SURE_FOR_DELETE').'"><strong>'.Text::_('PLG_SYSTEM_CPNB_DELETE_LOGS').'</strong></a>'; $html .= '</p>'; $html .= '<div class="cpnb-acceptance-logs-deleted"></div>'; $html .= '</div>'; } elseif (version_compare(JVERSION, '4.0', 'gt')) { // j4 $html .= '<div style="display: block;border: 2px solid red;clear: both;padding: 4px;">This "View Acceptance Logs" feature is not supported yet in Joomla! 4.x</div>'; } return $html; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings