|
(Replace all xsrc and xhref occurrences with src and href respectively, after you copy and paste the code blocks)
This modification is for V11.x .
Tired of those annoying commas in your sideboxes? Want to remove them? Here is an easy way:
Open /template/default/blocks/sidebox_listings.tpl
Find (line 25-26):
<td valign=top>
<a xhref="<?php echo $listing['link'];
?>"><b><u><?php echo $listing['firmname'];
?></u></b></a><span
class="text"><br><?php echo $listing['location_2']; ?>,
<?php echo $listing['location_1']; ?>, <?php echo
$listing['location_0']; ?></span><br><span
class=text_small_grey><?php echo $listing['business_short'];
?></span><br><span class=text_small_grey><?php
echo $listing['details']; ?></span><br><br>
</td>
Replace With:
<td valign=top>
<a xhref="<?php echo $listing['link'];
?>"><b><u><?php echo $listing['firmname'];
?></u></b></a><span class="text">
›<?php if ($listing['location_1'] == "") echo $listing['location_0'];
else if ($listing['location_2'] == "") echo $listing['location_1'];
else if ($listing['location_3'] == "") echo $listing['location_2'];
else echo $listing['location_3'];
?></span><br><br>
<span class=text_small_grey><?php echo $listing['details']; ?></span><br><br></td>
This modification finds the top level location available for the
listing and displays it. So if a listing does not have a country, it
will not place a comma for no reason.
|