I am hoping someone can help with what I hope is a simple solution.
Is it possible to get the following code working on the front page script?
- Code: Select all
[[ if in_array('big-chief-studios', $category) ]] [[image file="2015-01/main_banner_bigchief-custom.png" ]] [[ /if ]]
[[ if in_array('default', $category) ]] [[image file="2015-01/main_banner_dwafo-custom.png" ]] [[ /if ]]
[[ if in_array('character-options', $category) ]] [[image file="2015-01/main_banner_characteroptions-custom.png" ]] [[ /if ]]
[[ if in_array('rubbertoe-replicas', $category) ]] [[image file="2015-01/main_banner_rubbertoe-custom.png" ]] [[ /if ]]
[[ if in_array('titan-merchandise', $category) ]] [[image file="2015-01/main_banner_titan-custom.png" ]] [[ /if ]]<br>
I have tried a few things but struggling.
Also, how do you adjust the left margin on nivoslider and is there a way to get the nivoslider to link to articles, even better with a way to grab the image file from the article to display?
- Code: Select all
[[ if tag_exists('nivoslider') ]]
[[nivoslider
path = "pivotx/templates/phoenix/slides"
cssFile = "pivotx/templates/phoenix/css/style.css"
orderby = "date_asc"
caption = 1
animSpeed = 500
pauseTime = 3000
startSlide = 0
effect = "random"
directionNav = 1
directionNavHide = 1
controlNav = 1
controlNavThumbs = 0
controlNavThumbsFromRel = 0
controlNavThumbsSearch = ".jpg"
controlNavThumbsReplace = "_thumb.jpg"
keyboardNav = 1
pauseOnHover = 1
manualAdvance = 0
captionOpacity = 0.8
prevText = "Prev"
nextText = "Next"
]]
[[ else ]]
<div id="sliderwarning" class="warning">
<p>The 'Nivo Slider' extension has not been installed, or is not active. Without this extension, you will not be able to enjoy the full awesomeness of this theme, although it will work just fine.</p>
<p>Please <a href="http://extensions.pivotx.net">install the extension</a>, or edit <em>_sub_header.tpl</em> in the template directory to remove this message.</p>
</div>
[[ /if ]]
Many thanks for any help received,
Justin