<?php
/*
Template Name: photo
*/
?>
<?php get_header(); ?>
<?php $userid = "51234757@N00"; // ¸ü»»³ÉÄãµÄid
?>
<script language="javascript">
var userid = "<?php echo $userid; ?>";
var picurl = "http://www.flickr.com/slideShow/index.gne?user_id="+userid;
function showpic(more, Obj){
var piciframe = document.getElementById("pic");
piciframe.src = (picurl + more);
var picdess = document.getElementById("picdes");
picdess.innerHTML = document.getElementById(Obj).innerHTML;
}
</script>
<h2>Now browse: <a href="#wrap" id="picdes"><?php if(isset($_REQUEST['tag'])){ echo "Tag: ".$_REQUEST['tag'];}else{?> Newest<?php }?></a></h2>
<center><iframe id = "pic" frameborder="0" width="500" height="500" scrolling="no" src="http://www.flickr.com/slideShow/index.gne?user_id=<?php echo $userid; ?>&tags=<?php if(isset($_REQUEST['tag'])){?><?php echo $_REQUEST['tag'];}?>"></iframe></center>
</div>
<div id="sidebar">
<ul>
<li>
<h2><?php _e('Search'); ?></h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</li>
<li>
<h2>Choose Album</h2>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h2 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h2>
<?php the_content("<p>__('Read the rest of this page »')</p>"); ?>
<?php wp_link_pages(); ?>
<?php edit_post_link(__('Edit'), '<p>', '</p>'); ?>
<?php endwhile; endif; ?>
</li>
</ul>
</div>
<?php get_footer(); ?>