<?php

defined('_JEXEC') or die('Restricted access');
/**
 * gets $action, $data , and working framework, so globals and helper works
 * response from helperUG
 */
switch ($action) {
    case "update_thumbpanel_defaults":
        UGCompactThemeHelper::updateThumbPanelDefaults($data);
        $urlRedirect = HelperGalleryUG::getUrlViewCurrentGallery();
        HelperUG::ajaxResponseSuccessRedirect("Position settings updated successfully", $urlRedirect);
        break;
    default:
        HelperUG::ajaxResponseError("wrong ajax action (Compact Theme): <b>{$action}</b> ");
        break;
}
    $classAdvanced .= " unite-tab-hidden";
}
if (!empty($classAdvanced)) {
    $classAdvanced = "class='{$classAdvanced}'";
}
global $ugMaxItems;
?>

<div class='settings_tabs'>
    <ul class="list-tabs-settings">
        <li <?php 
echo $classSettings;
?>
>
            <a href="<?php 
echo HelperGalleryUG::getUrlViewCurrentGallery();
?>
"><?php 
_e("Settings", UNITEGALLERY_TEXTDOMAIN);
?>
</a>
        </li>
        <li id="tab_categorytabs_settings" <?php 
echo $classCategoryTabs;
?>
 >
            <a href="<?php 
echo HelperGalleryUG::getUrlViewCategoryTabs();
?>
"><?php 
_e("Category Tabs Settings", UNITEGALLERY_TEXTDOMAIN);