芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/public_html/plugins/media-action/crop/crop.php
* @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'); } }