function jquerymobile_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    switch ($comment->comment_type) {
        case 'pingback':
        case 'trackback':
            ?>
	<li class="post pingback">
		<p><?php 
            _e('Pingback:', 'jquerymobile');
            ?>
 <?php 
            comment_author_link();
            edit_comment_link(__('Edit', 'jquerymobile'), '<span class="edit-link">', '</span>');
            ?>
</p>
	<?php 
            break;
        default:
            ?>
	<li <?php 
            comment_class();
            ?>
 id="li-comment-<?php 
            comment_ID();
            ?>
" <?php 
            jqmobile_ui('comment');
            ?>
>
		<div id="comment-<?php 
            comment_ID();
            ?>
" class="comment vcard ui-link-inherit">
				<?php 
            $avatar_size = 60;
            echo get_avatar($comment, $avatar_size);
            ?>
				<div class="ui-li-heading">
					<?php 
            /* translators: 1: comment author, 2: date and time */
            printf(__('%1$s on %2$s <span class="says">said:</span>', 'jquerymobile'), sprintf('<span class="fn">%s</span>', get_comment_author_link()), sprintf('<a href="%1$s"><span title="%2$s">%3$s</span></a>', esc_url(get_comment_link($comment->comment_ID)), get_comment_time('c'), sprintf(__('%1$s at %2$s', 'jquerymobile'), get_comment_date('Y/m/d'), get_comment_time())));
            ?>

					<?php 
            edit_comment_link(__('Edit', 'jquerymobile'), '<span class="edit-link">', '</span>');
            ?>
				</div><!-- .comment-author .vcard -->

				<?php 
            if ($comment->comment_approved == '0') {
                ?>
					<em class="comment-awaiting-moderation"><?php 
                _e('Your comment is awaiting moderation.', 'jquerymobile');
                ?>
</em>
					<br />
				<?php 
            }
            ?>

				<?php 
            comment_text();
            ?>

			<div class="reply">
				<?php 
            comment_reply_link(array_merge($args, array('reply_text' => __('Reply <span>&darr;</span>', 'jquerymobile'), 'depth' => $depth, 'max_depth' => $args['max_depth'])));
            ?>
			</div><!-- .reply -->
		</div><!-- #comment-## -->

	<?php 
            break;
    }
}
<?php

get_header();
?>
	<div class="right">
		<?php 
if (have_posts()) {
    ?>
 			<?php 
    $post = $posts[0];
    ?>
			<ul data-role="listview" data-inset="true" class="posts"<?php 
    jqmobile_ui('post');
    ?>
>
				<?php 
    while (have_posts()) {
        the_post();
        ?>
					<li>
						<a href="<?php 
        the_permalink();
        ?>
">
							<p class="ui-li-aside"><?php 
        the_time('Y-m-d');
        ?>
</p>
							<h3><?php 
        the_title();
        ?>
	<?php 
    return;
}
?>

<?php 
if (have_comments()) {
    ?>
	
	<h2 id="comments"><?php 
    comments_number('No Responses', 'One Response', '% Responses');
    ?>
</h2>

	<ul class="commentlist" data-role="listview" data-inset="true"<?php 
    jqmobile_ui('comment');
    ?>
>
		<?php 
    wp_list_comments(array('max_depth' => 1, 'callback' => 'jquerymobile_comment'));
    ?>
	</ul>

	<div class="navigation" data-role="controlgroup">
		<div class="next-posts"><?php 
    previous_comments_link();
    ?>
</div>
		<div class="prev-posts"><?php 
    next_comments_link();
    ?>
?>
<div class="right">
	<?php 
if (have_posts()) {
    ?>
		<ul data-role="listview" data-inset="true"<?php 
    jqmobile_ui('post');
    ?>
>
			<?php 
    while (have_posts()) {
        the_post();
        ?>
				<li<?php 
        if (is_sticky()) {
            jqmobile_ui('sticky');
        }
        ?>
>
					<a href="<?php 
        the_permalink();
        ?>
">
						<p class="ui-li-aside"><?php 
        the_time('Y-m-d');
        ?>
</p>
						<h3><?php 
        the_title();
        ?>
</h3>
	<link rel="stylesheet" href="<?php 
echo get_stylesheet_uri();
?>
" type="text/css" />
</head>

<body <?php 
body_class();
?>
>
	<div data-role="page" id="jqm-home"<?php 
jqmobile_ui('body');
?>
>
		<div data-role="header"<?php 
jqmobile_ui('header');
?>
>
			<a href="<?php 
echo esc_url(home_url('/'));
?>
" data-icon="home" data-iconpos="notext"><?php 
bloginfo('name');
?>
</a>
			<h1 role="heading"><?php 
if (is_home()) {
    echo get_bloginfo('name') . " | " . get_bloginfo('description');
} else {
    wp_title('', true);
}
<div id="sidebar" data-role="collapsible-set" data-collapsed="true"<?php 
jqmobile_ui('widget');
?>
>
	<?php 
if (function_exists('dynamic_sidebar') && dynamic_sidebar('sidebar')) {
} else {
    ?>

		<div id="widget-search" class="widget widget_search"  data-role="collapsible">
			<h2>Search</h2>
			<?php 
    get_search_form();
    ?>
		</div>

		<div id="widget-pages" class="widget widget_pages"  data-role="collapsible">
			<h2>Pages</h2>
			<ul>
			<?php 
    wp_list_pages('title_li=');
    ?>
			</ul>
		</div>

		<div id="widget-archives" class="widget widget_archive"  data-role="collapsible">
			<h2>Archives</h2>
			<ul>
				<?php 
    wp_get_archives('type=monthly');
    ?>
			</div>
			<div data-role="footer" class="ui-bar"<?php 
jqmobile_ui('footer');
?>
>
				<div class="logos">
					<a href="http://wordpress.org/" class="icon icon-custom-wp">Wordpress</a>
					<a href="http://jquerymobile.com/" class="icon icon-custom-jqm">jQueryMobile</a>
					<a href="http://www.mobilizetoday.com/" class="icon icon-custom-mt">MobilizeToday</a>
				</div>
				<a href="#jqm-home"  data-role="button" data-icon="arrow-u" id="button-up">Up</a>
			</div>
			<?php 
wp_footer();
?>
		</div>
	</body>
</html>