<?php defined('_JEXEC') or die('Restricted access'); if (!isset($isNewGallery)) { $isNewGallery = false; } $settingsMain = new UniteGallerySettingsUG(); $settingsMain->addTextBox("title", "", __("Gallery Title", UNITEGALLERY_TEXTDOMAIN), array("description" => __("The title of the gallery. Example: Gallery1", UNITEGALLERY_TEXTDOMAIN), "required" => "true")); $settingsMain->addTextBox("alias", "", __("Gallery Alias", UNITEGALLERY_TEXTDOMAIN), array("description" => __("The alias that will be used for embedding the gallery. Example: gallery1", UNITEGALLERY_TEXTDOMAIN), "required" => "true", "class" => "input-alias")); if ($isNewGallery == false) { $settingsMain = UniteProviderFunctionsUG::addPositionToMainSettings($settingsMain); } $settingsMain->addHr(); $settingsMain->addItemsCategorySelect("category", null, $isNewGallery); if ($isNewGallery == false) { $settingsMain->addHr(); $settingsMain->addRadioBoolean("enable_category_tabs", __("Enable Category Tabs", UNITEGALLERY_TEXTDOMAIN), false); } $settingsMain->addHr(); $params = array("class" => "input-number", "unit" => "px"); $paramsWidth = $params; $paramsHeight = $params; $paramsWidth[UniteSettingsUG::PARAM_ADDFIELD] = "gallery_height"; $paramsHeight[UniteSettingsUG::PARAM_NODRAW] = true; $settingsMain->addRadioBoolean("full_width", "Full Width", false); $settingsMain->addTextbox("gallery_width", "900", __("Width", UNITEGALLERY_TEXTDOMAIN), $paramsWidth); $settingsMain->addTextbox("gallery_height", "400", __("Height", UNITEGALLERY_TEXTDOMAIN), $paramsHeight); $settingsMain->addControl("full_width", "gallery_width", "hide", "true"); //in case of existing gallery if ($isNewGallery == false) { $settingsMain->addHr();
<?php defined('_JEXEC') or die('Restricted access'); $settingsMain = new UniteGallerySettingsUG(); $settingsMain->addRadioBoolean("enable_category_tabs", __("Enable Category Tabs", UNITEGALLERY_TEXTDOMAIN), false); $settingsMain->addHr(); $settingsMain->addRadio("tabs_type", array("tabs" => "Tabs", "select" => "Select Box"), __("Category Tabs Type", UNITEGALLERY_TEXTDOMAIN), "tabs"); $settingsMain->addHr(); //add categories select $objCategories = new UniteGalleryCategories(); $arrCats = $objCategories->getCatsShort(); $settingsMain->addSelect("available_cats", $arrCats, __("Available Categories", UNITEGALLERY_TEXTDOMAIN), ""); $settingsMain->addTextBox("categorytabs_ids", "", "Hidden Cats", array("hidden" => true)); $settingsMain->addSelect("tabs_init_catid", array(), __("First Selected Tab", UNITEGALLERY_TEXTDOMAIN), "");