View Single Post
  #3  
Old 01-29-2014, 01:10 PM
 
bespoke bespoke is offline
 

Member
  
Join Date: Oct 2013
Posts: 17
 

Default Re: CSS file for new theme

This is my aview.php followed by my main.php

namespace XLite\Module\Bespoke\Bespokestore\View;
abstract class AView extends \XLite\View\AView implements \XLite\Base\IDecorator
{
protected function getThemeFiles()
{
$list = parent::getThemeFiles();
$list[static::RESOURCE_CSS][] = 'modules/Bespoke/Bespokestore/last.css';
return $list;
}
}

_______________________________
Now Main.php
_______________________________

<?php
namespace XLite\Module\Bespoke\Bespokestore;
/**
* Skin customization module
*
*/
abstract class Main extends \XLite\Module\AModule
{
/**
* Author name
*
* @return string
*/
public static function getAuthorName()
{
return 'Davey';
}

/**
* Module name
*
* @return string
*/
public static function getModuleName()
{
return 'Bespokestore';
}


/**
* Get module major version
*
* @return string
*/
public static function getMajorVersion()
{
return '5.0';
}

/**
* Module version
*
* @return string
*/
public static function getMinorVersion()
{
return '0';
}

/**
* Module description
*
* @return string
*/
public static function getDescription()
{
return 'Bespoke standard Theme';
}

/**
* Register the module skins.
*
* @return array
*/
public static function getSkins()
{
return array(
\XLite::CUSTOMER_INTERFACE => array(
'Bespokestore/customer',
),
\XLite::ADMIN_INTERFACE => array(
'Bespokestore/admin',
),
);
}
}
__________________
Thanks...

Rick Davey
Reply With Quote