Files
newwalls.pl/modules/mailchimppro/controllers/admin/AdminMailchimpProCustomersController.php
2024-12-17 13:43:22 +01:00

39 lines
961 B
PHP

<?php
/**
* PrestaChamps
*
* NOTICE OF LICENSE
*
* This source file is subject to the Commercial License
* you can't distribute, modify or sell this code
*
* DISCLAIMER
*
* Do not edit or add to this file
* If you need help please contact leo@prestachamps.com
*
* @author Mailchimp
* @copyright PrestaChamps
* @license commercial
*/
/**
* Class AdminMailchimpProCustomersController
*/
class AdminMailchimpProCustomersController extends \PrestaChamps\MailchimpPro\Controllers\BaseMCObjectController
{
public $entityPlural = 'customers';
public $entitySingular = 'customer';
public function initContent()
{
$this->addCSS($this->module->getLocalPath() . 'views/css/main.css');
if (\Shop::getContext() !== \Shop::CONTEXT_SHOP) {
$this->content = '';
$this->warnings[] = $this->module->l('Please select a shop');
} else {
parent::initContent();
}
}
}