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

dkgiles’s picture

Assigned: Unassigned » dkgiles
Status: Active » Closed (fixed)

Solved by removing the second line:
if ($is_front):

and second last line of the code on the wiki:
endif;

gtsopour’s picture

Assigned: dkgiles » gtsopour
Category: bug » support
Status: Closed (fixed) » Fixed
Issue tags: +corporate, +Corporate Theme, +Corporate Clean Theme, +CorporateClean

Hello 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

Automatically closed -- issue fixed for 2 weeks with no activity.