I need a little PHP help if someone doesn't mind. I've searched google, but I get all sorts of mixed results of randomness that are simply no good in my current sick, weak and frail time.
Basically, for my Wordpress theme I've created a flash header and it's all working finey doo, but I need something for those people who have Flash disabled, or those who have installed a version of Flash that isn't compatible.
Flash Header:
Default Header:
I just need a simple: If browser is n00b and they don't have flash, use default. Else, use the flash header.
Would really appreciate that,
Thanks,
Phil.
Basically, for my Wordpress theme I've created a flash header and it's all working finey doo, but I need something for those people who have Flash disabled, or those who have installed a version of Flash that isn't compatible.
Flash Header:
Code:
<div id="header">
<object width="700" height="200">
<param name="movie" value="http://www.phillipedwards.co.uk/wp-content/themes/k2/styles/New%20Chinese/logo.swf">
<embed src="http://www.phillipedwards.co.uk/wp-content/themes/k2/styles/New%20Chinese/logo.swf" width="700" height="200">
</embed>
</object>
<h1><a href="<?php echo get_settings('home'); ?>"><?php bloginfo('name'); ?></a></h1>
<p class="description"><?php bloginfo('description'); ?></p>
</div>
<div id="menu">
<ul class="menu">
<li class="<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_settings('home'); ?>">Blog</a></li>
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
<?php wp_register('<li class="admintab">','</li>'); ?>
</ul>
</div>
Default Header:
Code:
<div id="header">
<h1><a href="<?php echo get_settings('home'); ?>"><?php bloginfo('name'); ?></a></h1>
<p class="description"><?php bloginfo('description'); ?></p>
<ul class="menu">
<li class="<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_settings('home'); ?>">Blog</a></li>
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
<?php wp_register('<li class="admintab">','</li>'); ?>
</ul>
</div>
I just need a simple: If browser is n00b and they don't have flash, use default. Else, use the flash header.
Would really appreciate that,
Thanks,
Phil.