Jump to content

unexpacted error when adding additional social media


DanielH

Recommended Posts

Hi,

Trying to add additional social media to the ireview3 template parameters.php and get an error: Error: syntax error, unexpected ';': syntax error, unexpected ';'           when adding ($ireviewTemplate->getParam('parlerIcon') to line 361 by changing this:

$showSocialMediaIcons = ($ireviewTemplate->getParam('twitterIcon') || $ireviewTemplate->getParam('facebookIcon') || $ireviewTemplate->getParam('googlePlusIcon') || $ireviewTemplate->getParam('youtubeIcon') || $ireviewTemplate->getParam('linkedinIcon') || $ireviewTemplate->getParam('pinterestIcon') || $ireviewTemplate->getParam('instagramIcon') || $ireviewTemplate->getParam('rssIcon')) ? '1' : '0';

to

$showSocialMediaIcons = ($ireviewTemplate->getParam('parlerIcon') || ($ireviewTemplate->getParam('twitterIcon') || $ireviewTemplate->getParam('facebookIcon') || $ireviewTemplate->getParam('googlePlusIcon') || $ireviewTemplate->getParam('youtubeIcon') || $ireviewTemplate->getParam('linkedinIcon') || $ireviewTemplate->getParam('pinterestIcon') || $ireviewTemplate->getParam('instagramIcon') || $ireviewTemplate->getParam('rssIcon')) ? '1' : '0';


Have also added corresponding code to templateDetails.xml and social_media_icons.php but the same error is present with or without the additional code in these two files.

Added icons to ireview3/images and css to custom.css

 

Thanks

Daniel

Link to comment
×
×
  • Create New...