Просмотр файла Bluerdek440_by_BEPDuKT/pages/mainmenu.php

Размер файла: 3.74Kb
<?

/**
 * @package     JohnCMS
 * @link        http://johncms.com
 * @copyright   Copyright (C) 2008-2011 JohnCMS Community
 * @license     LICENSE.txt (see attached file)
 * @version     VERSION.txt (see attached file)
 * @author      http://johncms.com/about
 */

defined('_IN_JOHNCMS') or die('Error: restricted access');

$mp = new mainpage();

/*
-----------------------------------------------------------------
Блок информации
-----------------------------------------------------------------
*/
echo '<div class="phdr"><div class="phdr-l">' . $lng['information'] . '</div></div>';
echo $mp->news;
echo '<div class="menu"><img class="middle" src="' . $set['homeurl'] . '/theme/' . $set_user['skin'] . '/images/icon.png" alt=""/>&nbsp;<a href="news/index.php">' . $lng['news_archive'] . '</a> (' . $mp->newscount . ')</div>' .
    '<div class="menu"><img class="middle" src="' . $set['homeurl'] . '/theme/' . $set_user['skin'] . '/images/icon.png" alt=""/>&nbsp;<a href="pages/faq.php">' . $lng['information'] . ', FAQ</a></div>';

/*
-----------------------------------------------------------------
Блок общения
-----------------------------------------------------------------
*/
echo '<div class="phdr"><div class="phdr-l">' . $lng['dialogue'] . '</div></div>';
// Ссылка на гостевую
if ($set['mod_guest'] || $rights >= 7)
    echo '<div class="menu"><img class="middle" src="' . $set['homeurl'] . '/theme/' . $set_user['skin'] . '/images/icon.png" alt=""/>&nbsp;<a href="guestbook/index.php">' . $lng['guestbook'] . '</a> (' . counters::guestbook() . ')</div>';
// Ссылка на Форум
if ($set['mod_forum'] || $rights >= 7)
    echo '<div class="menu"><img class="middle" src="' . $set['homeurl'] . '/theme/' . $set_user['skin'] . '/images/icon.png" alt=""/>&nbsp;<a href="forum/">' . $lng['forum'] . '</a> (' . counters::forum() . ')</div>';

/*
-----------------------------------------------------------------
Блок полезного
-----------------------------------------------------------------
*/    
echo '<div class="phdr"><div class="phdr-l">' . $lng['useful'] . '</div></div>';
// Ссылка на загрузки
if ($set['mod_down'] || $rights >= 7)
    echo '<div class="menu"><img class="middle" src="' . $set['homeurl'] . '/theme/' . $set_user['skin'] . '/images/icon.png" alt=""/>&nbsp;<a href="download/">' . $lng['downloads'] . '</a> (' . counters::downloads() . ')</div>';
// Ссылка на библиотеку
if ($set['mod_lib'] || $rights >= 7)
    echo '<div class="menu"><img class="middle" src="' . $set['homeurl'] . '/theme/' . $set_user['skin'] . '/images/icon.png" alt=""/>&nbsp;<a href="library/">' . $lng['library'] . '</a> (' . counters::library() . ')</div>';
// Ссылка на библиотеку
if ($set['mod_gal'] || $rights >= 7)
    echo '<div class="menu"><img class="middle" src="' . $set['homeurl'] . '/theme/' . $set_user['skin'] . '/images/icon.png" alt=""/>&nbsp;<a href="gallery/">' . $lng['gallery'] . '</a> (' . counters::gallery() . ')</div>';
if ($user_id || $set['active']) {
    echo '<div class="phdr"><div class="phdr-l">' . $lng['community'] . '</div></div>' .
        '<div class="menu"><img class="middle" src="' . $set['homeurl'] . '/theme/' . $set_user['skin'] . '/images/icon.png" alt=""/>&nbsp;<a href="users/index.php">' . $lng['users'] . '</a> (' . counters::users() . ')</div>' .
        '<div class="menu"><img class="middle" src="' . $set['homeurl'] . '/theme/' . $set_user['skin'] . '/images/icon.png" alt=""/>&nbsp;<a href="users/album.php">' . $lng['photo_albums'] . '</a> (' . counters::album() . ')</div>';
}
echo '<div class="phdr"><div class="phdr-l"><a href="http://gazenwagen.com">Gazenwagen</a></div></div>';
?>