Default logo according to theme setting I'm creating the theme with two styles, dark and light. User can choose which style he wants in theme settings. My default theme logo is in the root of the theme.

Now I want to change default logo according to choosen style, so if the user choose dark style and doesn't set logo image, default logo is logo.png form theme root, but if user choose light style and doesn't set logo image, default logo is logo_light.png from theme root.

How can I override default logo according to result from theme_get_setting?
I think you can by adding algorythm like this:

&lt;div id="logo"&gt;
  &lt;a href="&lt;? print $front_page; ?&gt;"&gt;&lt;img src="&lt;? if (theme_get_setting(theme)=="dark") print $logo; else print $logo_light; ?&gt; border="0" alt="&lt;? print $site_name; ?&gt;"&gt;&lt;/a&gt;
&lt;/div&gt;