PHP Classes

File: admin/menu.php

Recommend this page to a friend!
  Classes of Michael Beck   XOOPS PHP About Page   admin/menu.php   Download  
File: admin/menu.php
Role: Example script
Content type: text/plain
Description: Example script
Class: XOOPS PHP About Page
Show the about page in a site managed using XOOPS
Author: By
Last change:
Date: 2 years ago
Size: 1,737 bytes
 

Contents

Class file image Download
<?php
/*
 * You may not change or alter any portion of this comment or credits of
 * supporting developers from this source code or any supporting source code
 * which is considered copyrighted (c) material of the original comment or
 * credit authors.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.
 */

/**
 * Display the Administration About page
 *
 * @package module\About\admin
 * @copyright The XOOPS Co.Ltd. http://www.xoops.com.cn
 * @copyright https://xoops.org 2001-2017 XOOPS Project
 * @license GNU GPL 2 or later (https://www.gnu.org/licenses/gpl-2.0.html)
 * @since 1.0.0
 * @author Mengjue Shao <magic.shao@gmail.com>
 * @author Susheng Yang <ezskyyoung@gmail.com>
 */

use Xmf\Module\Admin;
use
XoopsModules\About;
use
XoopsModules\About\Helper;

/** @var Helper $helper */

require_once dirname(__DIR__) . '/include/common.php';

$helper = Helper::getInstance();
$helper->loadLanguage('common');
$helper->loadLanguage('feedback');

$pathIcon32 = Admin::menuIconPath('');
if (
is_object($helper->getModule())) {
   
$pathModIcon32 = $helper->getModule()->getInfo('modicons32');
}

$adminmenu = [
    [
       
'title' => _MI_ABOUT_HOME,
       
'link' => 'admin/index.php',
       
'icon' => Xmf\Module\Admin::menuIconPath('home.png'),
    ],
    [
       
'title' => _MI_ABOUT_PAGE,
       
'link' => 'admin/admin.page.php',
       
'icon' => Xmf\Module\Admin::menuIconPath('manage.png'),
    ],
    [
       
'title' => _MI_ABOUT_ABOUT,
       
'link' => 'admin/about.php',
       
'icon' => Xmf\Module\Admin::menuIconPath('about.png'),
    ],
];