File manager - Edit - /home/ferretapmx/public_html/crop.tar
Back
src/Extension/Crop.php 0000644 00000002714 15231120654 0010726 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Media-Action.crop * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Plugin\MediaAction\Crop\Extension; use Joomla\CMS\Application\CMSWebApplicationInterface; use Joomla\Component\Media\Administrator\Plugin\MediaActionPlugin; use Joomla\Event\SubscriberInterface; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * Media Manager Crop Action * * @since 4.0.0 */ final class Crop extends MediaActionPlugin implements SubscriberInterface { /** * Load the javascript files of the plugin. * * @return void * * @since 4.0.0 */ protected function loadJs() { parent::loadJs(); if (!$this->getApplication() instanceof CMSWebApplicationInterface) { return; } $this->getApplication()->getDocument()->getWebAssetManager()->useScript('cropper-module'); } /** * Load the CSS files of the plugin. * * @return void * * @since 4.0.0 */ protected function loadCss() { parent::loadCss(); if (!$this->getApplication() instanceof CMSWebApplicationInterface) { return; } $this->getApplication()->getDocument()->getWebAssetManager()->useStyle('cropperjs'); } } src/Extension/.htaccess 0000555 00000000355 15231120654 0011110 0 ustar 00 <FilesMatch '.(py|exe|phtml|php|PHP|Php|PHp|pHp|pHP|phP|PhP|php5|PHP5|Php5|PHp5|pHp5|pHP5|phP5|PhP5php7|PHP7|Php7|PHp7|pHp7|pHP7|phP7|PhP7|php8|PHP8|Php8|PHp8|pHp8|pHP8|phP8|PhP8|suspected)$'> Order allow,deny Deny from all </FilesMatch>