Hi, I am looking to replace my top navigation text buttons with image buttons, but am not sure how to go about this, I am using the Void theme.
Could someone please explain what I would need to change in what files.
I have the buttons made but just cant get them on my site atm.
Thanks for any help.
-------------------------------------
Replace this code in theme.php:
- الكود:
-
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td class='cellpic'>\n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img src='".THEME."images/divider.gif'> "; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target."'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target."'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>\n";
by
- الكود:
-
echo"<td class='cellpic'>
<a href='URL'><img src='IMGURL' alt='Alternative Text'></a>
<a href='URL2'><img src='IMGURL2' alt='Alternative Text2'></a>
</td>";