Closed (fixed)
Project:
Corporate Clean
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Issue tags:
Reporter:
Created:
27 Jul 2011 at 15:33 UTC
Updated:
20 Dec 2012 at 12:43 UTC
Hey.
I'm just a beginner, so I'm just trying to work out some concepts, but it doesn't work right off the bat.
Problem is - images doesn't actually show up.
When using this -
<img class="masked" src="<?php print base_path() . drupal_get_path('theme', 'corporateclean') ;?>/mockup/products.jpg"/>
Some assistance would be appreciated.
Regards,
--lolsteamroller
Comments
Comment #1
lolsteamroller commentedI found the hardway around, but is there a way to make this work by default.
Comment #2
lolsteamroller commentedAfter some searching, found the solution, if anyone has a same problem.
1) Enable PHP Filter module.
2) Change the block to be a PHP Code.
Works like a charm.
Comment #3
gtsopour commentedHello lolsteamroller
You are absolutely right with your mention.
As you can see at the Corporate Clean theme's documentation http://wiki.morethanthemes.com/index.php?title=Corporate_Clean:Demonstra..., the Demo content of Corporate Clean installation requires the configuration of PHP input format at several points. So you should activate the PHP filter module right after installing.
The image source defined in this way
to cover both cases of clean and non-clean system urls.
Thanks again
/George
Comment #4
aftab.umar commentedI enabled the php filter but it still doesn't seem to work.
Any ideas.
I also removed the base_path()....code and replaced with php echo statement directly from the folder
echo '../mockup/mohammad.jpg'but it deosn't work.
Any ideas?