Pass a logo to image module How do I pass the logo on my theme to the image module to create different sizes? I'm using domain access to I can't use

&lt;?php print theme('image_style', array('style_name' =&gt; 'thumbnail', 'path' =&gt;'public://new_ctrl_logo_front1_1.jpg')); ?&gt;


as I'm using domain access and using one theme for use on multiple sites. I found this code on another form that works on my theme and need to know if I can pass an image style through it.

&lt;?php
if (theme_get_setting('toggle_logo')) {
$image = array(
'path' =&gt; theme_get_setting('logo'),
'alt' =&gt; 'my logo',
);
print theme('image', $image);}?&gt; 


Thanks for helping,
Gregory S.
Update

If one needs to obtain "JUST" the filename for theme logo for the active theme for any given domain in a domain access environment (as the OP found he needed to do), then the following code provides the image file name for the theme logo as $img_file.

$global $base_url;
img_path = theme_get_setting('logo'); 
$str_to_remove = $base_url . '/sites/default/files/'; 
$img_file = str_replace($str_to_remove, '', $img_path);


Original

Pass "theme_get_setting('logo')" as the path for the first php script?

&lt;?php print theme('image_style', array('style_name' =&gt; 'thumbnail', 'path' =&gt; theme_get_setting('logo'))); ?&gt; 


or rather - an amalgamation of the two - 

if (theme_get_setting('toggle_logo')) {
print theme('image_style', array('style_name' =&gt; 'thumbnail', 'path' =&gt; theme_get_setting('logo')));
}