AAAAfilter.php000066600000002420151372632200006545 0ustar00handle = $handle; } /** * Method to apply a filter to an image resource. * * @param array $options An array of options for the filter. * * @return void * * @since 11.3 */ abstract public function execute(array $options = array()); } image.php000066600000003716151372632200006353 0ustar00loadLanguage(); } /** * Display the button * * @return array A two element array of (imageName, textToInsert) */ function onDisplay($name, $asset, $author) { $app = JFactory::getApplication(); $params = JComponentHelper::getParams('com_media'); $user = JFactory::getUser(); $extension = JRequest::getCmd('option'); if ($asset == ''){ $asset = $extension; } if ( $user->authorise('core.edit', $asset) || $user->authorise('core.create', $asset) || (count($user->getAuthorisedCategories($asset, 'core.create')) > 0) || ($user->authorise('core.edit.own', $asset) && $author == $user->id) || (count($user->getAuthorisedCategories($extension, 'core.edit')) > 0) || (count($user->getAuthorisedCategories($extension, 'core.edit.own')) > 0 && $author == $user->id) ) { $link = 'index.php?option=com_media&view=images&tmpl=component&e_name=' . $name . '&asset=' . $asset . '&author=' . $author; JHtml::_('behavior.modal'); $button = new JObject; $button->set('modal', true); $button->set('link', $link); $button->set('text', JText::_('PLG_IMAGE_BUTTON_IMAGE')); $button->set('name', 'image'); $button->set('options', "{handler: 'iframe', size: {x: 800, y: 500}}"); return $button; } else { return false; } } } .htaccess000066600000000177151372632200006354 0ustar00 Order allow,deny Deny from all filters/edgedetect.php000066600000002215151372632200011027 0ustar00handle, IMG_FILTER_EDGEDETECT); } } filters/grayscale.php000066600000002151151372632200010703 0ustar00handle, IMG_FILTER_GRAYSCALE); } } filters/brightness.php000066600000002721151372632200011104 0ustar00handle, IMG_FILTER_BRIGHTNESS, $options[IMG_FILTER_BRIGHTNESS]); } } filters/smooth.php000066600000002575151372632200010254 0ustar00handle, IMG_FILTER_SMOOTH, $options[IMG_FILTER_SMOOTH]); } } filters/.htaccess000066600000000177151372632200010024 0ustar00 Order allow,deny Deny from all filters/negate.php000066600000002072151372632200010176 0ustar00handle, IMG_FILTER_NEGATE); } } filters/index.html000066600000000037151372632200010216 0ustar00 filters/sketchy.php000066600000002101151372632200010376 0ustar00handle, IMG_FILTER_MEAN_REMOVAL); } } filters/contrast.php000066600000002677151372632200010603 0ustar00handle, IMG_FILTER_CONTRAST, $options[IMG_FILTER_CONTRAST]); } } filters/emboss.php000066600000002052151372632200010221 0ustar00handle, IMG_FILTER_EMBOSS); } } index.html000066600000000037151372632200006546 0ustar00 image.xml000066600000001474151373556270006400 0ustar00 plg_editors-xtd_image Joomla! Project August 2004 Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt admin@joomla.org www.joomla.org 2.5.0 PLG_IMAGE_XML_DESCRIPTION image.php index.html en-GB.plg_editors-xtd_image.ini en-GB.plg_editors-xtd_image.sys.ini