<?php
namespace Plugin\ItemShop;

define('__PATH_ITEMSHOP_ROOT__', __PATH_PLUGINS__.'itemshop/');
define('__ITEMSHOP_HOME__', __BASE_URL__.'shop/');

$extra_admincp_sidebar[] = array(
    'Arsenal Nexora', array(
        array('Configuración','itemshop&page=settings'),
        array('Catálogo','itemshop&page=items'),
        array('Nuevo ítem','itemshop&page=form'),
        array('Carga masiva','itemshop&page=bulk'),
        array('Colecciones','itemshop&page=collections'),
        array('Campañas','itemshop&page=campaigns'),
        array('Operaciones','itemshop&page=operations'),
        array('Analytics','itemshop&page=analytics'),
        array('Soporte','itemshop&page=support'),
        array('Entregas','itemshop&page=logs'),
        array('Datos de prueba','itemshop&page=logs&status=test'),
    )
);

$language = config('language_default', true);
$languageFile = __PATH_ITEMSHOP_ROOT__.'languages/'.$language.'/language.php';
if(!is_file($languageFile)) $languageFile = __PATH_ITEMSHOP_ROOT__.'languages/en/language.php';
if(!@include_once($languageFile)) throw new \Exception('No se pudo cargar el idioma de Arsenal Nexora.');
if(!@include_once(__PATH_ITEMSHOP_ROOT__.'classes/class.itemshop.php')) throw new \Exception('No se pudo cargar Arsenal Nexora.');
