$smarty->assign("help_contents", searchlist($index, search($index, $_POST['search_string']), 10)); $header = "<!-- headers.tpl-->" . $smarty->fetch(get_template_path('headers.tpl')); /* I don't know why, but we must use utf8_encode to avoid dispplay errors */ $display = $header . $smarty->fetch(get_template_path('help.tpl')); echo $display; } elseif (empty($helpdir) || $helpdir == "/") { /* Generate Index and display it */ $smarty->assign("help_contents", genIndex()); $header = "<!-- headers.tpl-->" . $smarty->fetch(get_template_path('headers.tpl')); /* I don't know why, but we must use utf8_encode to avoid dispplay errors */ $display = utf8_encode($header . $smarty->fetch(get_template_path('help.tpl'))); echo $display; } elseif (is_dir($helpdir) && ($fp = opendir($helpdir))) { /* Readfile gets the content of the requested file, * parse it, rework links images and so on */ $index = readfiles($helpdir, $prefix, $suffix, false, $helpobject['file']); $lastresults = session::global_get('lastresults'); /* if this page is result from a search, mark the search strings */ if (isset($_GET['mark'])) { $matches = $lastresults[preg_replace("/^.*\\//i", "", $helpobject['currentplug'])][$helpobject['file']]; $index[$helpobject['file']]['content'] = markup_page($index[$helpobject['file']]['content'], $matches); } /* Display the help contents */ $smarty->assign("help_contents", $index[$helpobject['file']]['content']); $header = "<!-- headers.tpl-->" . $smarty->fetch(get_template_path('headers.tpl')); /* I don't know why, but we must use utf8_encode to avoid dispplay errors */ $smarty->assign("backward", $back); $smarty->assign("forward", $for); $display = utf8_encode($header . $smarty->fetch(get_template_path('help.tpl'))); echo $display; } else {
<h3 class="menusubtitle"><img src="imgs/down.png" width="20" height="20" alt="down arrow" /> Pizza <img src="imgs/down.png" width="20" height="20" alt="down arrow" /></h3> <div> <?php $dir = "imgs/menu/pizza/"; readfiles($dir); ?> <p>Freshly made italian style pizzas. <strong>Note:</strong> All pizzas except vegetarian have yellow cheese topping! Not all pizzas are listed above! </p> </div> <!--======================================= --> <h3 class="menusubtitle"><img src="imgs/down.png" width="20" height="20" alt="down arrow" /> Desserts <img src="imgs/down.png" width="20" height="20" alt="down arrow" /></h3> <div> <?php $dir = "imgs/menu/desserts/"; readfiles($dir); ?> <p>Traditional Bulgarian home-made Biscuit cake and Salami cake(biscuits,cocoa,nuts and Bulgarian delight),pancakes and ice cream! </p> </div> <hr /> <!-- ============================================ FULL MENU ==================================================== <h3 class="menusubtitle" id="fullmenu" onClick="ga('send', 'event', 'Click', 'GoTo', 'ClickMenu');"><img src="imgs/down.png" width="20" height="20" alt="down arrow" />FULL FOOD MENU<img src="imgs/down.png" width="20" height="20" alt="down arrow" /></h3> <div id="textmenu"> <h4>Salads</h4> <table> <tr><td>Shopska</td> <td>£4,80</td></tr> <tr><td>Shepherds</td> <td>£4,80 </td></tr> <tr><td>Village style salad</td> <td>£5,80</td></tr> <tr><td>RAZIADKA</td> <td>£4,80</td></tr> <tr><td>Bolyarska</td> <td>£5,50</td></tr>