get_template_vars("MainObjPreserve"); $bookmarks = $smarty->get_template_vars('bookmarks'); if (isset($bookmarks) && isset($bookmarks['count']) && $bookmarks['count'] > 0) { $zakladki = true; } else { $bookmarks = array('data' => array()); $zakladki = false; } // if ($smarty->get_template_vars('MainObjPreserve')->GetId() != 0) { $login_f = true; // } else { // $login_f = false; // } $firstBookmark = $params; $firstBookmark['content'] = $content; $useUrl = false; if ($zakladki) { if ($bookmarks['useUrl']) { $useUrl = true; $bcont = $firstBookmark['content']; } if (isset($firstBookmark['headerTitle'])) { $headerTitleAll = $firstBookmark['headerTitle']; } $display = 'none'; } else { $bookmarks['data'][] = $firstBookmark; $display = 'block'; } //Usuwamy treść zakładek, żeby się więcej razy nie pojawiała //Utils::ArrayDisplay($bookmarks); $smarty->clear_assign('bookmarks'); $headerShown =''; if(isset($params['hidden']) && $params['hidden'] == true ){ $headerShown = 'style="display:none"'; } $className=''; if(isset($params['className'])){ $className = ' '.$params['className'].' menuTab'; } $content = ''; $header = '




'.
'
';
if (!isset($addScript)) {
$content .= '';
}
$content .= '
'.
'