<?php

/*
 * @name        JMY CMS
 * @link        https://jmy.su/
 * @copyright   Copyright (C) 2012-2025 JMY LTD
 * @license     LICENSE.txt (see attached file)
 * @version     VERSION.txt (see attached file)
 * @author      Komarov Ivan
 * @edited      Orlov Alexsey
 */

if (!defined('ACCESS')) {
    header('Location: /');
    exit;
}
global $core, $lang;
$module_array['news'] = array(
    'name' => $lang['panel_menu_news_manager'],
    'icon' => 'glyphicon glyphicon-fire',
    'desc' => $lang['news_desc'],
    'subAct' => array(
        $lang['news'] => '',
        $lang['tags'] => 'tags',
        $lang['xfields_add_cut'] => '../../xfields',
    ),
    'dropAct' => array(
        $lang['news'] => 'add',
        $lang['tags'] => 'tags_add',
        $lang['xfields_add_cut'] => 'xfields_add',
    ),
    'confAct' => array(
        $lang['config'] => 'config',
    )
);

$component_array['moderation']['subAct'] = array_merge($component_array['moderation']['subAct'], array($lang['news'] => 'mod/news'));
$toconfig['news'] = array
(
    'name' => $lang['news'],
    'description' => $lang['news_desc'],
    'icon' => 'media/cats/news.png',
    'link' => 'module/news/config',
    'param' => 'news_conf'
);
