<?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");
Beispiel #2
0
<?php

/**
 * @package Unite Gallery
 * @author UniteCMS.net / Valiano
 * @copyright (C) 2012 Unite CMS, All Rights Reserved. 
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 * */
defined('_JEXEC') or die('Restricted access');
require HelperGalleryUG::getPathHelperTemplate("header");
?>

	<?php 
if ($isGalleryPage == true) {
    $selectedGalleryTab = "items";
    require HelperGalleryUG::getPathHelperTemplate("gallery_edit_tabs");
}
?>

	<div class="content_wrapper">
			
		<div id="galleryw" class="gallery_wrapper unselectable">
			<table class="layout_table" width="100%" cellpadding="0" cellspacing="0">
				<tr id="ug_row_content" class="ug_row_content">
					<td class="cell_cats" width="220px" valign="top">
						<div id="categories_wrapper" class="categories_wrapper unselectable">
						 	<div class="gallery_title">
						 		<?php 
_e("Categories", UNITEGALLERY_TEXTDOMAIN);
?>
 
<?php

/**
 * @package Unite Gallery
 * @author UniteCMS.net / Valiano
 * @copyright (C) 2012 Unite CMS, All Rights Reserved. 
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 * */
defined('_JEXEC') or die('Restricted access');
require HelperGalleryUG::getPathHelperTemplate("header");
?>
			
			
		<?php 
if (empty($arrGalleries)) {
    ?>
		<div>
			<?php 
    _e("No Galleries Found", UNITEGALLERY_TEXTDOMAIN);
    ?>
		</div>			
		<?php 
} else {
    ?>
	
	<table class='unite_table_items'>
		<thead>
			<tr>
				<th width='3%'><?php 
    _e("ID", UNITEGALLERY_TEXTDOMAIN);
    ?>
<?php

defined('_JEXEC') or die('Restricted access');
$galleryID = GlobalsUGGallery::$galleryID;
//add codemirror scripts
HelperUG::addScriptAbsoluteUrl(GlobalsUG::$urlPlugin . "js/codemirror/codemirror.js", "codemirror_js");
HelperUG::addScriptAbsoluteUrl(GlobalsUG::$urlPlugin . "js/codemirror/css.js", "codemirror_cssjs");
HelperUG::addScriptAbsoluteUrl(GlobalsUG::$urlPlugin . "js/codemirror/javascript.js", "codemirror_jsjs");
HelperUG::addStyleAbsoluteUrl(GlobalsUG::$urlPlugin . "js/codemirror/codemirror.css", "codemirror_css");
//enable advanced tab if disabled
$showAdvanced = GlobalsUGGallery::$gallery->getParam("show_advanced_tab");
$showAdvanced = UniteFunctionsUG::strToBool($showAdvanced);
if ($showAdvanced == false) {
    GlobalsUGGallery::$gallery->updateParam("show_advanced_tab", "true");
}
require GlobalsUG::$pathHelpersSettings . "advancedtab_main.php";
require GlobalsUG::$pathHelpersSettings . "advancedtab_params.php";
$outputMain = new UniteSettingsProductUG();
$outputParams = new UniteSettingsProductSidebarUG();
$galleryTitle = GlobalsUGGallery::$gallery->getTitle();
$headerTitle = $galleryTitle . __(" - [advanced 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);
$linkExport = HelperUG::getUrlAjaxActions("export_gallery_settings", "galleryid={$galleryID}");
require HelperGalleryUG::getPathHelperTemplate("gallery_advanced");
defined('_JEXEC') or die('Restricted access');
require HelperGalleryUG::getPathHelperTemplate("header");
?>

		
		<div class="settings_panel">
		
			<div class="settings_panel_left">
				<div class="settings_panel_left_inner settings_panel_box">
					<?php 
$outputMain->draw("form_gallery_main", true);
?>
										
					<?php 
require HelperGalleryUG::getPathHelperTemplate("gallery_new_buttons");
?>
										
				</div>
				
			</div>
			
			<div class="settings_panel_right">
				<?php 
//$outputParams->draw("form_gallery_params",true);
?>
			</div>
			
			<div class="unite-clear"></div>				
		</div>