View Single Post
  #11  
Old 03-11-2014, 02:41 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: XC5 Homepage layout

Quote:
I could not get it to work after updating the cahce the css did not appear in the homepage, do you have the full Content.php file please.

Yes, sure. It will look like this:
Code:
<?php namespace XLite\Module\Tony\HomePageWithoutSidebar\View; class Content extends \XLite\View\Content implements \XLite\Base\IDecorator { protected function isSidebarFirstVisible() { if ('main' == $this->getTarget()) { $return = false; } else { $return = parent::isSidebarFirstVisible(); } return $return; } public function getJSFiles() { $result = parent::getJSFiles(); if ('main' == $this->getTarget()) { $result[] = 'modules/Tony/HomePageWithoutSidebar/css/css.css'; } return $result; } }

Please do not forget to add the following CSS file:
skins/default/en/modules/Tony/HomePageWithoutSidebar/css/css.css
Reply With Quote