Adding static images to theme In page.tpl.php, I add some static images by using :

$bolo = path_to_theme() . '/images/bolo.gif';
....
&lt;img src="&lt;?php print $bolo ?&gt;" alt="bolo" width="71" height="125"&gt;


How I can do the same by using a preprocess function (like theme_image() for example) in template.php and calling the (image)variable in page.tpl.php ?
It seems easy, but I can't perform it.
Thanks

Bolo
You can to use hook_prorocess_page for this.

In the theme's template.php file, add the following function (make sure it doesn't exist. if so, append the function content to the existing file)

function THEMENAME_preprocess_page(&amp;$vars) {
  $image = ... // Generate your image's img tag here, optionally wrap with some DIVs.
  $vars['my_image'] = $image;
}


Now, you can access this variable as $my_image.