#LOCAL("InputNavBarAlias", "")#IF(#DEFINED(#INPUT.NavBarAlias))#SET("InputNavBarAlias", #INPUT.NavBarAlias)#ENDIF #LOCAL("Orientation", "LeftRight")#IF(#InputNavBarAlias EQ "Left" OR #InputNavBarAlias EQ "Right") #SET("Orientation", "UpDown")#ENDIF #IF(#InputNavBarAlias EQ "" AND (#NavBarElement.NavBar.Alias EQ "Left" OR #NavBarElement.NavBar.Alias EQ "Right"))#SET("Orientation", "UpDown")#ENDIF #IF(#Orientation EQ "UpDown") #BLOCK("CachedInclude", #Object, "SF.CategoriesLinkList-Vertical" . #CacheIncludesNames) #IF(#COUNT(#Shop.Categories.ContentObjectsInNavigation) > 0) #ENDIF #ENDBLOCK #ELSIF(#INPUT.IsEditorModeEnabled AND #INPUT.IsEditorNavElements OR #INPUT.IsEditorModeEnabled) #REM#ENDREM #BLOCK("CachedInclude", #Object, "SF.CategoriesLinkList-Horizontal" . #CacheIncludesNames) #LOOP(#Shop.Categories.ContentObjectsInNavigation) #LOCAL("MyCategoryID", #ID)#LOCAL("CategoryInCategory", 0)#LOCAL("ViewNotAllowed", NOT #FUNCTION("ISACTIONALLOWED", "View")) #WITH(#XPATH("/")) #LOOP(#PathFromSite) #REM #ENDREM #IF(#MyCategoryID == #ID)#SET("CategoryInCategory", 1)#ENDIF #ENDLOOP #ENDWITH #LOOP(#Categories) #REM #ENDREM #IF(#ItemNo == 0) #LOOP(#PathFromSite) #IF(#MyCategoryID == #ID)#SET("CategoryInCategory", 1)#ENDIF #ENDLOOP #ENDIF #ENDLOOP #IF(#Class.Alias EQ "Link") #IF(#DEFINED(#URL)) #ELSE #ENDIF #ELSE #ENDIF #ENDLOCAL#ENDLOCAL#ENDLOCAL #ENDLOOP #ENDBLOCK #ELSE #REM#ENDREM #BLOCK("CachedInclude", #Object, "SF.CategoriesLinkList-Horizontal" . #CacheIncludesNames) #IF(#COUNT(#Shop.Categories.ContentObjectsInNavigation) > 0) #ENDIF #ENDBLOCK #ENDIF #ENDLOCAL#ENDLOCAL