Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Piatok, 19. apríl 2024

Súbor: [Platon] / Metafox / themes / default / functions.php (stiahnutie)

Revízia 1.4, Wed Sep 20 15:34:40 2006 UTC (17 years, 7 months ago) by nepto


Zmeny od 1.3: +3 -2 [lines]

Added global e-zin configuration attribute "description"

<?php

function ezin_tmpl_get_page_title() /* {{{ */
{
    global $ezin_cfg, $ezin_cgi, $ezin_lang;
    global $ezin_name, $ezin_description, $ezin_title;
    global $ezin_cgi_output, $ezin_cgi_input;
    global $section_name;
    if ($ezin_cgi_input == 'index') {
        return "$ezin_name -- $ezin_description";
    }
    $ezin_lang = $ezin_cgi['lang'];
    $ret = $ezin_name;
    switch (@$ezin_cgi_output) {
        case 'admin':
            $ret .= ' Administration';
            break;
        case 'notfound':
            $str = $ezin_lang == 'sk' ? 'Dokument nenĂĄjdenĂ˝' : 'Document Not Found';
            $whereareyou[''] = $str;
            $ret .= ": $str";
            break;
        case 'author':
            global $author_name;
            $str = $ezin_lang == 'sk' ? 'autor' : 'author';
            $whereareyou[''] = $author_name;
            $ret .= ": $str $author_name";
            break;
        case 'message':
        case 'message_selected_list':
        case 'message_full_list':
        case 'article':
            global $article_title, $article_atitle;
            if ($ezin_cgi_output == 'message') {
                $str = $ezin_lang == 'sk' ? 'pridaÂť novĂ˝ prĂ­spevok' : 'add new message';
                $ret .= ": $article_title ($str)";
            } else if ($ezin_cgi_output == 'message_selected_list') {
                $str = $ezin_lang == 'sk' ? 'výpis vybraných príspevkov' : 'selected message list';
                $ret .= ": $article_title ($str)";
            } else if ($ezin_cgi_output == 'message_full_list') {
                $str = $ezin_lang == 'sk' ? 'výpis príspevkov' : 'message list';
                $ret .= ": $article_title ($str)";
            } else {
                $ret .= ": $article_title";
            }
            break;
        case 'section':
            $ret .= ': ';
            $ret .= $ezin_lang == 'sk' ? 'sekcia' : 'section';
            $ret .= " $section_name";
            break;
    }
    $ret = strip_tags($ret);
    return $ret;
} /* }}} */

/* Modeline for ViM {{{
 * vim: set ts=4:
 * vim600: fdm=marker fdl=0 fdc=0:
 * }}} */

?>

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok