Hi there!
I just made my own template and I'm trying to solve two last issues I found.
First:In the menu, I'd like to have the possibility to have an image ( like an arrow ) that indicates if a link has sublinks. If so, when I click the link, the arrow pointing right, must point down ( and then the links will follow, as show_menu already do ).
Of course, if a link has no sublink, no arrow should be displayed.
Just like that:
Link 1 ( arrow [arrow points either right or down, depending if I already clicked on Link 1)
- Sublink 1
- Sublink 2
Link 2
Link 3
Second:In my template I got an area just below the header, divided into two parts: on the left I display the menu and on the right I used this (
http://workshop.rs/projects/coin-slider/ ) slideshow script to show some images.
With plain html everything works fine, however after setting up the index.php of the template for WB, something is not working right. In fact, first of all, images are not showing at all ( but the slideshow works ), and then if I try to make a search, the slideshow stops working ( and images are showed one after the other without any style ) and I think it's due to the fact that I had to add some php code ( <?php echo TEMPLATE_DIR; ?> ) between the image tags to retrive the correct final link of the image ( the problem also shows if I make a non-default page e.g bakery page ):
<div id="navigationContent">
<div id="menu">
<?php show_menu(2); ?>
<?php if(SHOW_SEARCH) { ?>
<div id="searchBoxContainer">
<div id="searchBoxCornerLeft"></div>
<form name="search" action="<?php echo WB_URL; ?>/search/index.php" method="get">
<input type="text" id="searchBox" name="string" value="Cerca" />
<input type="image" src="<?php echo TEMPLATE_DIR;?>/img/searchBoxSubmit_img.png" name="searchBoxSubmit" value="<?php echo $TEXT['SEARCH']; ?>" id="searchBoxSubmit" />
</form>
<div id="searchBoxCornerRight"></div>
</div>
<?php } ?>
</div>
<div id="slideshow" class="coin-slider">
<a href="<?php echo TEMPLATE_DIR;?>/img/EU001.jpg" target="_blank"><img alt="img1" src="<?php echo TEMPLATE_DIR;?>/img/EU001.jpg"/><span>Wine 1</span></a>
<a href="<?php echo TEMPLATE_DIR;?>/img/EU001.jpgEU0017.jpg" target="_blank"><img alt="img2" src="<?php echo TEMPLATE_DIR;?>/img/EU017.jpg"/><span>Wine 2</span></a>
<a href="<?php echo TEMPLATE_DIR;?>/img/EU0035.jpg" target="_blank"><img alt="img3" src="<?php echo TEMPLATE_DIR;?>/img/EU035.jpg"/><span>Wine 3</span></a>
</div>
</div>
This is the same part, plain html only:
<div id="navigationContent">
<div id="menu">
<ul><li><a href="#">Home</a></li>
<li><a href="#">Prodotti</a></li>
<li><a href="#">Chi siamo</a></li>
<li><a href="#">Contatti</a></li>
</ul>
<div id="searchBoxContainer">
<div id="searchBoxCornerLeft"></div>
<form action="#">
<input type="text" id="searchBox" name="searchBox" value="Cerca" />
<input type="image" src="img/searchBoxSubmit_img.png" name="searchBoxSubmit" value="" id="searchBoxSubmit" />
</form>
<div id="searchBoxCornerRight"></div>
</div>
</div>
<div id="slideshow" class="coin-slider">
<a href="#" target="_blank"><img alt="img1" src="img/EU001.jpg"/><span>Wine 1</span></a>
<a href="#" target="_blank"><img alt="img2" src="img/EU017.jpg"/><span>Wine 2</span></a>
<a href="#" target="_blank"><img alt="img3" src="img/EU035.jpg"/><span>Wine 3</span></a>
</div>
</div>
Hope someone will be able to help me!
Thanks in advance!