e107 Styles

Core Shortcodes

Commonly used core theme shortcodes are listed below.

NameDescription
{---}Renders the main content of the current page.
{ CMENU=xxxxxx }Renders a specific custom menu item as defined in admin -> Pages/Menus. xxxxxx = menu name.
{ LOGO }The site's logo as defined in the admin preferences.
{ MENU=1 }Menu Area as allocated using the media-manager in admin. Add multiple areas by incrementing the numeric value.
{ MENU: type=xxxxxx }When xxxxxx is NOT a number, it will attempt to render a specific menu with the name xxxxxx. eg. { MENU=contact } will render e107_plugins/contact/contact_menu.php
{ NAVIGATION=main }Bootstrap-style navigation - generated from sitelinks category 'main'
{ SETSTYLE=xxxxxx }A special shortcode which is used to dynamically change the value of $style as used inside tablerender() to the value of xxxxxx.
{ SETIMAGE: w=x }A special shortcode which is used to dynamically change the size of avatars and other images. x= numerical value.
{ SITEDESCRIPTION }The description of the website as defined in the admin preferences.
{ SITEDISCLAIMER }The site disclaimer as defined in the admin preferences. Typically used in the footer of the site.
{ SITENAME }The name of the website as defined in the admin preferences.
{ WMESSAGE }Renders the welcome message as defined in admin-> Welcome Message.


Usage example:

$LAYOUT['default'] = "
    <header>{SITENAME}<header>
    <div>{NAVIGATION=main}</div>
    {SETSTYLE=menu}
    <div class='span2'>
    {MENU=1}
    {MENU=contact}
    </div>
    <div class='span10'>
    {SETSTYLE=default}
 
 {---}
 
    </div>
    <footer>{SITEDISCLAIMER}</footer>
";
 
function tablestyle($caption, $text, $mode='')
{
    global $style; // value defined by {SETSTYLE} shortcode. 
 
    switch($style) 
     {
        case 'menu': 
            echo "<h5>".$caption."</h5>";
            echo $text;
        break;
 
        default: 
            echo "<h2>".$caption."</h2>";
            echo $text;
        break;
    }
    
}

News

ShortcodeDescription
{ NEWS_ID }Unique ID for the current news item (news_id)
{ NEWS_TITLE }News Title
{ NEWS_SUMMARY }News item summary
{ NEWS_DATE }News Date
{ NEWS_BODY }News Body (main content)
{ NEWS_TAGS }New Keywords/Meta-Keywords
{ NEWS_URL }News URL (current URL)
{ NEWS_CATEGORY_NAME }News Category Name
{ NEWS_CATEGORY_DESCRIPTION }News Category Description
{ NEWS_CATEGORY_ICON }News Category Icon


Pages

(coming soon)

Támogatás

Üdvözöllek

Chatbox

Bejegyzés írásához be kell hogy jelentkezz. Amennyiben még nem regisztráltál az oldalra, ide kattintva megteheted.


  • Apofisz
    Apofisz  4 hónappal ezelőtt

    Nem probléma, majd keresek mást.

  • fizi
    fizi  4 hónappal ezelőtt

    Majd megkeresem és feltöltöm.

  • Apofisz
    Apofisz  4 hónappal ezelőtt

    Azt köszönöm szépen. Viszont a gamezone 14-et nem találom a letöltések között. Azt a galériában láttam csak egy képet róla.

  • fizi
    fizi  4 hónappal ezelőtt

    Használhatod, csak ez még az 1.x verzióhoz készült. Kicsit át kellene írni (nagyon), hogy megfelelően használható egyen a 2.x verzióhoz.

  • Apofisz
    Apofisz  5 hónappal ezelőtt

    Szia.
    Bocs itt érdeklödök de nem találtam más elérhetőségedet.
    Van nekem egy silkroad privát szerverem.
    Valaki mástól kaptam hozzá egy weboldalt, amit elköltöztetnék saját weboldalra. Ez meg is történt,de a vps-en kell hogy fusson a weboldal, webszerver alatt. Jelenleg az ideiglenesen kapott weboldal van átmásolva.
    Szóval szeretnék egy saját weboldal themet.
    e107 weboldalt többször is csináltam ahova theme sablont raktam fel,de ez kicsit más. Itt nincs e107 admin felület stb. Ez egy mmo játék és a Gamezone 14 sablon tetszene.
    Erről szeretnék érdeklödni,hogy ez mennyibe kerülne, illetve tudnám-e használni webszerveren ? Jó lenne ha az Aion játék neveket ki lehetne cserélni más névre benne.
    Előre is köszönöm a választ.


2024 Április

Nincs esmény ebben a hónapban.

H
K
S
C
P
S
V

Facebook

Keresés Fizi Themes

GoogleAdMenu

Rólunk mondták