示例#1
0
		<li><a href="index.php?hours=168"><?php 
_e('Past week');
?>
</a></li>
		<li class="last"><a href="index.php?hours=-1"><span><?php 
_e('Show all');
?>
</span></a></li>
	</ul>
</div>

<div id="main">
<?php 
$num = 0;
if (has_items()) {
    while (has_items()) {
        the_item();
        ?>
	<?php 
        the_date('before=<h1 title="' . _r('Click to expand/collapse date') . '">' . _r('News stories from') . ' &after=</h1>&format=l d F, Y');
        ?>
	<div class="item c2 feed-<?php 
        the_feed_id();
        ?>
" id="item-<?php 
        echo $num;
        ?>
">
		<img src="<?php 
        the_feed_favicon();
        ?>
示例#2
0
文件: index.php 项目: egnsh93/CST8257
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<title>Lab 6 - Photo Gallery</title>
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous">
	<link rel="stylesheet" href="lightbox/css/lightbox.css">
</head>

<body>

	<div class="container">
		<div class="row">
			<div class="page-header">
				<h1>My Image Gallery</h1>
			</div>

			<?php 
if (has_items($errors)) {
    ?>
				<div class="alert alert-danger" role="alert">
					<?php 
    echo display_errors($errors);
    ?>
				</div>
			<?php 
}
?>

			<form name="uploadFile" method="POST" enctype="multipart/form-data">
				<div class="form-group">
					<label for="selectedFiles">File to upload</label>
					<input type="file" id="selectedFiles" name="selectedFiles[]" multiple="multiple">
					<p class="help-block">Allowed: JPEG, JPG, GIF, PNG</p>
示例#3
0
    public static function rss2()
    {
        header('Content-Type: application/rss+xml; charset=' . get_option('encoding', 'utf-8'), true);
        echo '<?xml version="1.0" encoding="' . get_option('encoding', 'utf-8') . '"?' . '>';
        ?>

<!-- Generated by Lilina/<?php 
        echo LILINA_CORE_VERSION;
        ?>
 -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	<?php 
        do_action('rss2_ns');
        ?>
>

<channel>
	<title><?php 
        echo get_option('sitename');
        ?>
</title>
	<link><?php 
        echo get_option('baseurl');
        ?>
</link>
	<description><?php 
        echo get_option('sitename');
        ?>
</description>
	<atom:link href="<?php 
        echo get_option('baseurl');
        ?>
rss.php" rel="self" type="application/rss+xml" />
	<?php 
        //Need to fix this
        ?>
	<pubDate><?php 
        echo date('D, d M Y H:i:s +0000');
        ?>
</pubDate>
	<generator>http://getlilina.org/?v=<?php 
        echo LILINA_CORE_VERSION;
        ?>
</generator>
	<language><?php 
        echo get_option('lang');
        ?>
</language>
	<?php 
        do_action('rss2_head');
        if (has_items()) {
            while (has_items()) {
                the_item();
                ?>
	<item>
		<title><![CDATA[<?php 
                the_title();
                ?>
]]></title>
		<link><?php 
                the_link();
                ?>
</link>
		<pubDate><?php 
                the_date(array('format' => 'D, d M Y H:i:s +0000'));
                ?>
</pubDate>
		<?php 
                //Not entirely accurate; uses the feed name, not the author
                ?>
		<dc:creator><?php 
                the_feed_name();
                ?>
</dc:creator>

		<guid isPermaLink="false"><?php 
                the_id();
                ?>
</guid>
		<description><![CDATA[<?php 
                the_summary();
                ?>
]]></description>
		<content:encoded><![CDATA[<?php 
                the_content();
                ?>
]]></content:encoded>
		<?php 
                do_action('rss2_item');
                ?>
	</item>
	<?php 
            }
        }
        ?>
</channel>
</rss>
<?php 
    }
示例#4
0
  	<span class="site-name"><?php template_sitename() ?></span> |
	<a href="admin/"><?php echo ($test ? 'Admin Panel' : 'Log In' ); ?></a> |
	<a href="atom.php">Subscribe to Feed</a> |
	<a href="opml.php">OPML</a>
</div>

<div id="main">
	<div id="wrapper">
		<div id="content">
			<h1 id="page-title"><?php /*the_page_title();*/ ?>Hello</h1>
			<div id="content-quicklinks"><?php /* Nothing yet */ ?></div>
			<ul>
<?php
// We call it with false as a parameter to avoid incrementing the item number
if(has_items(false)) {
		while(has_items()): the_item();
?>
				<li class="feed-<?php the_feed_id(); ?> item" id="item-<?php the_id(); ?>">
					<div class="title-bar">
						<div class="main-section">
							<h3 class="title" id="title-<?php the_id(); ?>"><?php the_title(); ?></h3>
							&nbsp;
							<div class="excerpt"><p><?php the_summary(200) ?></p></div>
							<div class="read"><a href="<?php the_link(); ?>">Continue reading on the original site.</a></div>
						</div>
						<div class="secondary-section">
							<span class="feed"><?php the_feed_name() ?></span>
							<span class="date"><?php the_date('format=l d F, Y H:i'); ?></span>
						</div>
						<div class="clearer"></div>
					</div>