PHP 8.1.33
Preview: crop.php Size: 933 B
/home/jambtst2015/public_html/ida.com.ng/plugins/media-action/crop/crop.php

<?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
 */

defined('_JEXEC') or die;

use Joomla\CMS\Factory;

/**
 * Media Manager Crop Action
 *
 * @since  4.0.0
 */
class PlgMediaActionCrop extends \Joomla\Component\Media\Administrator\Plugin\MediaActionPlugin
{
	/**
	 * Load the javascript files of the plugin.
	 *
	 * @return  void
	 *
	 * @since   4.0.0
	 */
	protected function loadJs()
	{
		parent::loadJs();

		Factory::getApplication()->getDocument()->getWebAssetManager()->useScript('cropperjs');
	}

	/**
	 * Load the CSS files of the plugin.
	 *
	 * @return  void
	 *
	 * @since   4.0.0
	 */
	protected function loadCss()
	{
		parent::loadCss();

		Factory::getApplication()->getDocument()->getWebAssetManager()->useStyle('cropperjs');
	}
}

Directory Contents

Dirs: 1 × Files: 2

Name Size Perms Modified Actions
form DIR
- drwxr-xr-x 2024-11-22 17:53:12
Edit Download
933 B lrw-r--r-- 2024-11-22 17:53:12
Edit Download
819 B lrw-r--r-- 2024-11-22 17:53:12
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).