Blocks are pieces of HTML code that can be added to either :
They are all OFF by default and should be activated using the following syntax :
$pvw_conf['blocks_on']['TYPE']=array('BLOCK_NAME','BLOCK_NAME2');
Where :
The blocks will then be displayed in the order in which they are listed in the array. Example :
$pvw_conf['blocks_on']['home']=array('carousel','jumbo','custom1'); $pvw_conf['blocks_on']['foot']=array('boxes','custom2');
We have created a few blocks that allow you to quickly add popular features to your Home Page or Footer. Below is the list of the actually available blocks :
Apart from preset blocks, custom blocks allow you to create HTML content that you can insert among preset blocks. You'll need to define each custom block as follow :
$pvw_conf['blocks']['NAME']['content']='YOUR_HTML';
Where you'll need to replace :
Example:
$pvw_conf['blocks']['custom_news']['content']=' <div class="container"> <H2>Analoger Just Released!<H2> <a href="/products/p226-Analoger"><img src="/static/domain_name/img/analoger.jpg"></a> </div>';
Warning ! Like most languages, depending on the enclosing quote type, quotes or double quotes should be escaped from the php strings. (See php string. If you have many quotes to escape, using the heredoc syntax might be a smarter workaround.
If you dont like the way a preset block is set, you can use your own custom block to rebuild it at your convenience. You only need to: