*/ /** * This ItemAdd plugin adds items uploaded from the web browser. * * @package Remote * @subpackage UserInterface */ class ItemAddGalleryRemote extends ItemAddPlugin { /** * @see ItemAdd:loadTemplate */ function loadTemplate(&$template, &$form, $item) { if ($form['formName'] != 'ItemAddGalleryRemote') { $form['formName'] = 'ItemAddGalleryRemote'; } $ItemAddGalleryRemote = array(); $template->setVariable('ItemAddGalleryRemote', $ItemAddGalleryRemote); return array(null, 'modules/remote/templates/ItemAddGalleryRemote.tpl', 'modules_remote'); } /** * @see ItemAddPlugin::getTitle */ function getTitle() { list ($ret, $module) = GalleryCoreApi::loadPlugin('module', 'remote'); if ($ret) { return array($ret->wrap(__FILE__, __LINE__), null); } return array(null, $module->translate('Gallery Remote')); } /** * @see ItemAddPlugin::isAppropriate */ function isAppropriate() { list ($ret, $showItemAdd) = GalleryCoreApi::getPluginParameter('module', 'remote', 'showItemAdd'); if ($ret) { return array($ret->wrap(__FILE__, __LINE__), null); } return array(null, $showItemAdd); } } ?>