示例#1
0
    public static function help()
    {
        ?>
<!DOCTYPE html>
<html>
	<head>
		<title>Raincoat Help</title>
		<link rel="stylesheet" type="text/css" href="<?php 
        template_directory();
        ?>
/reset.css" />
		<style>
			body {
				font-family: Lucida Grande, Helvetica, Arial, sans-serif;
				font-size: 14px;
				text-align: center;
			}
			h1 {
				font-size: 24px;
			}
			dt {
				font-weight: bold;
				margin: 1em 0 0.7em;
			}
			dd {
				padding: 0;
				margin: 0;
			}
		</style>
	</head>
	<body>
		<h1>Keyboard Shortcuts</h1>
		<dl>
			<dt>j/k</dt>
			<dd>next/previous item</dd>
			<dt>n/p</dt>
			<dd>select next/previous item (don't open)</dd
			<dt>o</dt>
			<dd>show/hide item</dd>
			<dt>v</dt>
			<dd>view original article</dt>
			<dt>?</dt>
			<dd>show help</dd>
			<dt>esc</dt>
			<dd>close help</dd>
		</dl>
	</body>
</html>
<?php 
    }
示例#2
0
    }
} elseif (!has_feeds()) {
    ?>
	<div style="border:1px solid #e7dc2b;background: #fff888;margin:15px;padding:10px;"><?php 
    printf(_r('You haven\'t added any feeds yet. Add them from <a href="%s">your admin panel</a>'), 'admin/');
    ?>
</div>
<?php 
} else {
    ?>
	<div style="border:1px solid #e7dc2b;background: #fff888;margin:15px;padding:10px;">No items available in the last <?php 
    echo get_offset(true);
    ?>
 hours. Try <a href="index.php?hours=-1" id="viewallitems">viewing all items.</a></div>
	<div style="border:1px solid #e7dc2b;background: #fff888;margin:15px;padding:10px;display:none;">Now loading all available items - If they don't load within 20 seconds, click <a href="index.php?hours=-1">here</a><br /><img src="<?php 
    template_directory();
    ?>
/loading.gif" alt="<?php 
    _e('Loading...');
    ?>
" /></div>
<?php 
}
?>
	</div>
</div>

<?php 
if (has_feeds()) {
    ?>
<div id="sources">
示例#3
0
			<div style="border:1px solid #e7dc2b;background: #fff888;margin:15px;padding:10px;">No items available from in the last <?php echo get_offset(true); ?> hour(s). Try <a href="index.php?hours=-1" id="viewallitems">viewing all items</a></div>
			<div style="background: url('<?php template_directory(); ?>/spinner-back.png');margin:15px;padding:10px;display:none;">Now loading all available items - If they don't load within 20 seconds, click <a href="index.php?hours=-1">here</a><br /><img src="<?php template_directory(); ?>/spinner.gif" alt="Loading..." /></div>
<?php
}
?>
			</ul>
		</div>
	</div>
</div>


<div id="sidebar">
	<ul>
		<?php if( has_feeds() ): ?>
		<li id="sources"><h3>Sources</h3>
			<ul>
				<?php list_feeds('title_length=35&format=<li><a href="%1$s"><img class="icon" src="%2$s" /><span class="title">%3$s</span></a></li>'); ?>
			</ul>
		</li>
		<?php endif; ?>
		<li>Powered by <a href="http://getlilina.org/">Lilina News Aggregator</a></li>
	</ul>
</div>

<?php template_footer(); ?>
<!-- Generated in: <?php global $timer_start; echo lilina_timer_end($timer_start); ?> -->

<script src="<?php echo get_option('baseurl') ?>inc/js/jquery.js"></script>
<script src="<?php template_directory(); ?>/greader.js"></script>
</body>
</html>