Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Navigacija
Parašė Noyz· 2012 Vas. 20 17:02:28
#1
Kaip pašalint tuos šūdus prie navigacijos? :D
Parašė Noyz· 2012 Vas. 20 18:02:57
#2
negi niekas nežinot?
Parašė MaFetas· 2012 Vas. 20 19:02:44
#3
Pirmiausia nereikia rašinėti iš eilės žinučių ir nereikės užsipisinėti... Yra mygtukas 'KELTI' bei 'REDAGUOTI' esamą pranešimą.
O dėl šios navigacijos tai ištrink
".THEME_BULLET." jei naudoji standartinę fusion'o navigacijos panelę (css_navigation_panel)
Redagavo MaFetas· 2012 Vas. 20 19:02:15
Parašė Noyz· 2012 Vas. 21 20:02:32
#4
Man nereikia pašalint bulletų, man reikia tuos kitus rutuliukus, kur patys pirmi rutuliai nuo kairės. :d
Parašė MaFetas· 2012 Vas. 21 21:02:42
#5
Nu žiūrint kokią navigaciją naudoji aš tai ne aiškiaregis, įdėk kodą žiūrėsim kur kas sudėliota...
Parašė Noyz· 2012 Vas. 22 16:02:14
#6
Paprasta css_navigation_panel... Kai parsisiunčiau fusion'ą tokia buvo.
Code:
<?php
/*-------------------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
+--------------------------------------------------------+
| Filename: navigation_panel.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
$list_open = false;
openside($locale['global_001']);
$result = dbquery(
"SELECT link_name, link_url, link_window, link_visibility FROM ".DB_SITE_LINKS."
WHERE link_position='1' OR link_position='2' ORDER BY link_order"
);
if (dbrows($result)) {
$i = 0;
echo "<div id='navigation'>\n";
while($data = dbarray($result)) {
$li_class = ""; $i++;
if (checkgroup($data['link_visibility'])) {
if ($data['link_name'] != "---" && $data['link_url'] == "---") {
if ($list_open) { echo "</ul>\n"; $list_open = false; }
echo "<h2>".parseubb($data['link_name'], "b|i|u|color|img")."</h2>\n";
} else if ($data['link_name'] == "---" && $data['link_url'] == "---") {
if ($list_open) { echo "</ul>\n"; $list_open = false; }
echo "<hr class='side-hr' />\n";
} else {
if (!$list_open) { echo "<ul>\n"; $list_open = true; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if ($i == 1) { $li_class = "first-link"; }
if (START_PAGE == $data['link_url']) { $li_class .= ($li_class ? " " : "")."current-link"; }
if (preg_match("!^(ht|f)tp(s)?://!i", $data['link_url'])) {
echo "<li".($li_class ? " class='".$li_class."'" : "").">\n";
echo "<a href='".$data['link_url']."'".$link_target." class='side'>".THEME_BULLET."\n";
echo "<span>".parseubb($data['link_name'], "b|i|u|color|img")."</span></a></li>\n";
} else {
echo "<li".($li_class ? " class='".$li_class."'" : "").">\n";
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='side'>".THEME_BULLET."\n";
echo "<span>".parseubb($data['link_name'], "b|i|u|color|img")."</span></a></li>\n";
}
}
}
}
if ($list_open) { echo "</ul>\n"; }
echo "</div>\n";
} else {
echo $locale['global_002'];
}
closeside();
?>
Parašė Arvydas· 2012 Vas. 22 19:02:56
#7
<?php
/*-------------------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
+--------------------------------------------------------+
| Filename: navigation_panel.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
$list_open = false;
openside($locale['global_001']);
$result = dbquery(
"SELECT link_name, link_url, link_window, link_visibility FROM ".DB_SITE_LINKS."
WHERE link_position='1' OR link_position='2' ORDER BY link_order"
);
if (dbrows($result)) {
$i = 0;
echo "<div id='navigation'>\n";
while($data = dbarray($result)) {
$li_class = ""; $i++;
if (checkgroup($data['link_visibility'])) {
if ($data['link_name'] != "---" && $data['link_url'] == "---") {
if ($list_open) { echo "</ul>\n"; $list_open = false; }
echo "<h2>".parseubb($data['link_name'], "b|i|u|color|img")."</h2>\n";
} else if ($data['link_name'] == "---" && $data['link_url'] == "---") {
if ($list_open) { echo "</ul>\n"; $list_open = false; }
echo "<hr class='side-hr' />\n";
} else {
if (!$list_open) { echo "<ul>\n"; $list_open = true; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if ($i == 1) { $li_class = "first-link"; }
if (START_PAGE == $data['link_url']) { $li_class .= ($li_class ? " " : "")."current-link"; }
if (preg_match("!^(ht|f)tp(s)?://!i", $data['link_url'])) {
echo "<a href='".$data['link_url']."'".$link_target." class='side'>".THEME_BULLET."\n";
echo "<span>".parseubb($data['link_name'], "b|i|u|color|img")."</span></a>\n";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='side'>".THEME_BULLET."\n";
echo "<span>".parseubb($data['link_name'], "b|i|u|color|img")."</span></a>\n";
}
}
}
}
if ($list_open) { echo "</ul>\n"; }
echo "</div>\n";
} else {
echo $locale['global_002'];
}
closeside();
?>
Bandyk, neatsakau už veikimą, pasidaryk kopiją. :)
Parašė AivarasZs· 2012 Vas. 22 19:02:55
#8
Manau būtu paprasčiau svetainės dizaino style.css nustatyti ul { list-style:none; } . Nežinau ar veiksmingą bet verta pabandyti. :)