Ejemplo n.º 1
0
<?php

defined('_JEXEC') or die('Restricted access');
//require settings
$galleryID = GlobalsUGGallery::$galleryID;
//enable tabs if disabled
$enableTabs = GlobalsUGGallery::$gallery->getParam("enable_category_tabs");
$enableTabs = UniteFunctionsUG::strToBool($enableTabs);
if ($enableTabs == false) {
    GlobalsUGGallery::$gallery->updateParam("enable_category_tabs", "true");
}
require GlobalsUG::$pathHelpersSettings . "categorytab_main.php";
require GlobalsUG::$pathHelpersSettings . "categorytab_params.php";
$outputMain = new UniteSettingsProductUG();
$outputParams = new UniteSettingsProductSidebarUG();
$galleryTitle = GlobalsUGGallery::$gallery->getTitle();
$headerTitle = $galleryTitle . __(" - [settings]", UNITEGALLERY_TEXTDOMAIN);
$arrValues = GlobalsUGGallery::$gallery->getParams();
//set setting values from the slider
$settingsMain->setStoredValues($arrValues);
$settingsParams->setStoredValues($arrValues);
$outputMain->init($settingsMain);
$outputParams->init($settingsParams);
require HelperGalleryUG::getPathHelperTemplate("gallery_categorytabs");
 /**
  * 
  * get item data html for edit item
  */
 private function getItemSettingsHtml($objItem)
 {
     $settingsItem = $objItem->getObjSettings();
     $output = new UniteSettingsProductUG();
     $output->init($settingsItem);
     $output->setShowDescAsTips(true);
     $output->setShowSaps(false);
     ob_start();
     $output->draw("form_item_settings", true);
     $html = ob_get_contents();
     ob_clean();
     $response = array();
     $response["htmlSettings"] = $html;
     return $response;
 }