/** * put top menu with some view */ public function putTopMenu($view) { $viewGalleries = HelperUG::getGalleriesView(); $viewItems = HelperUG::getItemsView(); $activeGalleries = ""; $activeItems = ""; switch ($view) { default: case GlobalsUG::VIEW_GALLERIES: $activeGalleries = "class='active'"; break; case GlobalsUG::VIEW_ITEMS: $activeItems = "class='active'"; break; } ?> <div class="top_menu_wrapper"> <ul class="unite-top-main-menu"> <li <?php echo $activeGalleries; ?> ><a class="unite-button-secondary" href="<?php echo $viewGalleries; ?> "><?php _e("Gallery List", UNITEGALLERY_TEXTDOMAIN); ?> </a></li> <li <?php echo $activeItems; ?> ><a class="unite-button-secondary" href="<?php echo $viewItems; ?> "><?php _e("Edit Items", UNITEGALLERY_TEXTDOMAIN); ?> </a></li> </ul> </div> <?php }
?> </th> </tr> </thead> <tbody> <?php foreach ($arrGalleries as $gallery) { $id = $gallery->getID(); $typeTitle = $gallery->getTypeTitle(); $isTypeExists = $gallery->isTypeExists(); $showTitle = $gallery->getShowTitle(); $title = $gallery->getTitle(); $alias = $gallery->getAlias(); $shortCode = $gallery->getShortcode(); $editLink = HelperUG::getGalleryView($id); $editItemsLink = HelperUG::getItemsView($id); $previewLink = HelperUG::getPreviewView($id); $showTitle = UniteFunctionsUG::getHtmlLink($editLink, $showTitle); ?> <tr> <td><?php echo $id; ?> <span id="slider_title_<?php echo $id; ?> " style="display:none"><?php echo $title; ?> </span></td> <td><?php