Closed (fixed)
Project:
Corporate Clean
Version:
7.x-1.4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
24 Apr 2012 at 10:10 UTC
Updated:
4 Jan 2014 at 02:05 UTC
Jump to comment: Most recent
Using the block code quoted at the end of this page: http://wiki.morethanthemes.com/index.php?title=Corporate_Clean:Demonstra... throws this error: Notice: Undefined variable: is_front in eval() (line 2 of /var/www/html/modules/php/php.module(80) : eval()'d code).
The error is in the second line of code on the wiki.
Comments
Comment #1
dkgiles commentedSolved by removing the second line:
if ($is_front):and second last line of the code on the wiki:
endif;Comment #2
gtsopour commentedHello dkgiles,
This code already exists in page.tpl.php. Futhermore, general utility variable $is_front is valid for Drupal 7 inside page.tpl.php http://api.drupal.org/api/drupal/modules!system!page.tpl.php/7
Where did you try to place this code? If you tried to place this code inside a block, then you are right with your mention. You should place inside your block only the slideshow implementation code from
<!--slideshow-->to<!--EOF:slider-controls-wrapper-->The block code quoted at the end of this page explains only the slideshow HTML mark up.
In any case thank you for your report.
Thanks
/George