<?php
/**
 * This Software is the property of Y-SQUARE GbR
 * and is protected by copyright law - it is NOT Freeware.
 *
 * Any unauthorized use of this software without a valid license
 * is a violation of the license agreement and will be prosecuted
 * by civil and criminal law.
 *
 * Inhaber: Daniela Baumgartner & Thorsten Schneider
 * Alle Rechte vorbehalten
 *
 * @version 2.1.0
 * @author Y-SQUARE GbR <info@y-square.de>
 * @copyright (C) 2024, Y-SQUARE GbR
 * @see http://www.y-square.de
 */

/**
 * Y-SQUARE Prequel Text
 */
$ys_prequel = "<style>.listitemfloating .logo {display:inline-block; width:15px; height:15px; line-height: 16px;
 text-align: center; background-color: #000; color:#FFF;} h1 .logo {display:inline-block; width:31px; height:31px;
  line-height: 31px; text-align: center; background-color: #000; color:#FFF;}
  </style><span class=\"logo\">Y</span> <b>[Y-SQUARE]</b> ";

/**
 * Metadata version
 */
$sMetadataVersion = '2.1';

/**
 * Module information
 */
$aModule = [
    'id'          => 'ys_shipcloud',
    'title'       => $ys_prequel . 'Shipcloud Connector',
    'description' => 'Offizielles Shipcloud Modul für Oxid',
    'thumbnail'   => 'logo.png',
    'version'     => '2.1.0',
    'author'      => 'Y-SQUARE GbR',
    'url'         => 'http://www.y-square.de',
    'email'       => 'info@y-square.de',
    'extend'      => [
        \OxidEsales\Eshop\Core\Email::class   => YSquare\Shipcloud\Core\Email::class,
        \OxidEsales\Eshop\Core\Session::class => \YSquare\Shipcloud\Core\Session::class,
    ],
    'controllers' => [
        'ShipcloudAdmin'           => YSquare\Shipcloud\Application\Controller\Admin\ShipcloudAdmin::class,
        'ShipcloudPackageTemplate' => YSquare\Shipcloud\Application\Controller\Admin\ShipcloudPackageTemplate::class,
        'ShipcloudOrder'           => YSquare\Shipcloud\Application\Controller\Admin\ShipcloudOrder::class,
        'ShipcloudFormController'  => YSquare\Shipcloud\Application\Controller\Admin\ShipcloudFormController::class,
        'ShipcloudAddress'         => YSquare\Shipcloud\Application\Controller\Admin\ShipcloudAddress::class,
        'ShipcloudAddressList'     => YSquare\Shipcloud\Application\Controller\Admin\ShipcloudAddressList::class,
        'ShipcloudAddressForm'     => YSquare\Shipcloud\Application\Controller\Admin\ShipcloudAddressForm::class,
    ],
    'events'      => [
        'onActivate'   => '\YSquare\Shipcloud\Core\Events::onActivate',
        'onDeactivate' => '\YSquare\Shipcloud\Core\Events::onDeactivate'
    ],
    'templates'   => [
        'shipcloud_main.tpl'                       => 'ysquare/ys_shipcloud/Application/views/admin/shipcloud_main.tpl',
        // phpcs:ignore Generic.Files.LineLength.TooLong
        'shipcloud_package_template.tpl'           => 'ysquare/ys_shipcloud/Application/views/admin/shipcloud_package_template.tpl',
        // phpcs:ignore Generic.Files.LineLength.TooLong
        'shipcloud_package_template_formgroup.tpl' => 'ysquare/ys_shipcloud/Application/views/admin/shipcloud_package_template_formgroup.tpl',
        // phpcs:ignore Generic.Files.LineLength.TooLong
        'shipcloud_order.tpl'                      => 'ysquare/ys_shipcloud/Application/views/admin/shipcloud_order.tpl',
        // phpcs:ignore Generic.Files.LineLength.TooLong
        'shipcloud_order_form.tpl'                 => 'ysquare/ys_shipcloud/Application/views/admin/shipcloud_order_form.tpl',
        // phpcs:ignore Generic.Files.LineLength.TooLong
        'shipcloud_address.tpl'                    => 'ysquare/ys_shipcloud/Application/views/admin/shipcloud_address.tpl',
        // phpcs:ignore Generic.Files.LineLength.TooLong
        'shipcloud_address_list.tpl'               => 'ysquare/ys_shipcloud/Application/views/admin/shipcloud_address_list.tpl',
        // phpcs:ignore Generic.Files.LineLength.TooLong
        'shipcloud_address_form.tpl'               => 'ysquare/ys_shipcloud/Application/views/admin/shipcloud_address_form.tpl',
    ],
    'blocks'      => [
        [
            'template' => 'email/html/ordershipped.tpl',
            'block'    => 'email_html_ordershipped_orderarticles',
            'file'     => 'Application/views/blocks/email_html_ordershipped_orderarticles.tpl',
        ],
        [
            'template' => 'email/html/ordershipped.tpl',
            'block'    => 'email_html_ordershipped_shipmenttrackingurl',
            'file'     => 'Application/views/blocks/email_html_ordershipped_shipmenttrackingurl.tpl',
        ]
    ],
    'settings'    => []
];