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

lolsteamroller’s picture

I found the hardway around, but is there a way to make this work by default.

lolsteamroller’s picture

Status: Needs review » Closed (fixed)

After 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.

gtsopour’s picture

Assigned: Unassigned » gtsopour
Issue tags: +corporate, +Corporate Theme, +Corporate Clean Theme

Hello 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

<img class="masked" src="<?php print base_path() . drupal_get_path('theme', 'corporateclean') ;?>/mockup/products.jpg"/>

to cover both cases of clean and non-clean system urls.

Thanks again
/George

aftab.umar’s picture

I 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?