<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header navbar-right">
<span class="hidden-lg hidden-md" style="padding:8px; color:gray; font-size:20px;">
תפריט
</span>
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#toggle" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse navbar-right" id="toggle">
<ul class="nav navbar-nav">
<li><a href="cart.php">עגלת קניות <span class="glyphicon glyphicon-shopping-cart"></span>
<span class="badge badge-error">0</span>
</a></li>
<li><a href="journalism.php">קטעי עיתונות</a></li>
<li><a href="qna.php">שאלות נפוצות</a></li>
</ul>
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">ערכות מומלצות<span class="caret"></span></a>
<ul class="dropdown-menu">
<li class='text-right'><a href='kits.php?id=1'>עור רפווי וקמטים</a></li>
... (omitted for brevity)
</li>
<li><a href="index.php">ראשי</a></li>
</li>
</ul>
</div>
</div>
</div>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header navbar-right">
<span class="hidden-lg hidden-md" style="padding:8px; color:gray; font-size:20px;">
תפריט
</span>
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#toggle" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse navbar-right" id="toggle">
<ul class="nav navbar-nav">
<li><a href="cart.php">עגלת קניות <span class="glyphicon glyphicon-shopping-cart"></span>
<?php if(isset($_SESSION['cart']) && $_SESSION['cart'] ): ?> <span class="badge badge-right"><?php echo count($_SESSION['cart']) ?></span>
<?php else: ?> <span class="badge badge-error">0</span>
<?php endif; ?>
</a></li>
<li><a href="journalism.php">קטעי עיתונות</a></li>
<li><a href="qna.php">שאלות נפוצות</a></li>
</ul>
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">ערכות מומלצות<span class="caret"></span></a>
<ul class="dropdown-menu">
<?php
$kits = get_kits();
if($kits)
foreach($kits as $kit)
echo "<li class='text-right'><a href='kits.php?id=".$kit->get_id()."'>".$kit->get_name()."</a></li>
<li role='separator' class='divider' style='background-color:darkgray;'></li>";
?>
</ul>
<li><a href="thestorybehind.php">הסיפור שמאוחרי המותג</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">מוצרים<span class="caret"></span></a>
<ul class="dropdown-menu">
<?php
$products = get_products();
foreach($products as $prod)
echo "<li class='text-right'><a href='product.php?id=".$prod->get_id()."'>".$prod->get_name()."</a></li>
<li role='separator' class='divider' style='background-color:darkgray;'></li>";
?>
</ul>
</li>
<li><a href="index.php">ראשי</a></li>
</li>
</ul>
</div>
</div>
</div>
I encountered an issue with this code on mobile devices where the navigation links are displayed in the wrong order. Instead of showing 'link 1 | link 2 | link 3', it displays them as 'link 3 link 2 link 1', which is not desired. This issue occurs when viewing the navbar on a mobile device and needs to be addressed.