
Originally Posted by
admise78
I have classified site. The below link displays the main categories horizontally at the bottom of the site. I would to accomplish the same thing with name of countries, having the countries name horizontally listed at the footer as well. here's the code below...
please help!!!
Code:
<div style="margin:0 15px 0 15px;" class="box-head ac">
You shouldn't have multiple classes and instyles within the same tag. You might as well give it a proper name and go from there.
Code:
<p class="mt10 bot_link b">
Don't use what looks like gibberish names. I would axe the class and simply define the CSS this way
Code:
#mainCat p {
CSS goes here....
}
Code:
<span class="blue-heading">Categories : </span>
Since I get the impression this is a header, treat it as so.
Code:
<h3>Categories : </h3>
Code:
h3 {
display:inline;
Other CSS....
}
Code:
<?php $cat_Arr_fotter=main_cat_array();
I assume you mean #cat_Arr_footer. You need to create a function for the countries. Sub in the array $country_array.
Code:
foreach($cat_Arr_fotter as $keyfoot=>$valfoot){
Sub in the array $country_array.
Code:
$html_link_foot=SITE_WS_PATH."/".GetValidFileName(Rec_display_formate($cat_Arr_fotter[$i]['catName']))."-".$cat_Arr_fotter[$i]['catId'].".htm";
While this is a mess, it should be easy to sub in county versions of the cat stuff.
Code:
?>
<a href="<?=$html_link_foot;?>" class="link">
<?=ucfirst($cat_Arr_fotter[$i]'catName']);?>
</a>
| <? $i++; } ?>
</p>
Again, it should be easy to sub in the country info. Note, you missed starting the PHP code with "<?php."
Bookmarks