SiteLinks - e107inc/e107v1 GitHub Wiki


title: SiteLinks permalink: /SiteLinks/

{SITELINKS=flat} does not do anything anymore. Nor does {SITELINKS=menu}. Since many people still believe that it does do something I wrote this up.

Here is the results for the search for "flat" in e107 source.


Found 'flat' in e107_adminhtmlareahtmlarea.js' : line 288 // handlers to emulate nice flat toolbar buttons This is for text areas and has nothing to do with sitelinks


Found 'flat' in e107_handlershtmlareahtmlarea.js' : line 530 // handlers to emulate nice flat toolbar buttons This is for text areas and has nothing to do with sitelinks


Found 'flat' in e107_languagesEnglishadminlan_upload.php' : line 35 define("UPLLAN_31", "Flatfile"); This is a language file and has nothing to do with sitelinks


Found 'flat' in e107_pluginsclock_menuclock_menu.php' : line 22 if(!$clock_flat){ This has to do with the clock plugin and has nothing to do with sitelinks


Found 'flat' in e107_pluginssearch_menusearch_menu.php' : line 23 if($searchflat){ echo $text; }else{ $ns -> tablerender(LAN_180." ".SITENAME, " ".$text." "); } This has to do with seach plugin and has nothign to do with sitelinks


Found 'flat' in e107_themestemplatesheader_default.php' : line 191 & 202 $searchflat = TRUE; $clock_flat = TRUE; This has to do with the clock and search plugins and nothing to do with sitelinks

Every other case is in a theme either because it was made when flat did something or becuase people did not know that it did nothing.

So now lets look at a test theme:

$caption $text "; } ?> I don't care how many times you change SITELINKS=flat or menu or nothing it will not do anything. The important code is: define(PRELINK, ""); define(POSTLINK, ""); define(LINKSTART, "| "); define(LINKEND, " |"); define(LINKDISPLAY, 2); // 1 - FLAT, 2 - MENU define(LINKALIGN, "center"); If you want a flat menu you change LINKDISPLAY to 1 and make sure there are no line breaks in the others. If you want a menu then set LINKDISPLAY to 2 and put in a linebreak at LINKEND or whatever. And to be honest, LINKDISPLAY does not make it flat or not, it just puts it in a menu if set to 2 and does not encase it if set to 1. The true flatness comes form whether you have a linebreak in one of the other parameters (LINKSTART or LINKEND). [Category:Theming](/Category:Theming "wikilink") [Category:Sitelinks](/Category:Sitelinks "wikilink") [Category:HOWTOs](/Category:HOWTOs "wikilink") [Category:FAQ](/Category:FAQ "wikilink")
⚠️ **GitHub.com Fallback** ⚠️