This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template Name: Front Page | |
. | |
Take a look at the functions.php for this theme to see how the random content is included. | |
. | |
*/ | |
?> | |
<?php get_header() ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title> Lab 11 - #3 </title> | |
</head> | |
<script> | |
function play () { | |
play(); | |
var guess = -1; // Set guess to a value outside the range of valid values | |
for (i=1; i <= 5; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="front-block-2" class="front-block block"> | |
<?php if($recentPosts->have_posts()) : while($recentPosts->have_posts()) : $recentPosts->the_post(); ?> <h1><?php the_title(); ?></h1> | |
<?php $recentPosts-> the_permalink(); ?> | |
<?php endwhile; endif; ?> | |
<ul id="recent-items"> | |
<?php | |
$recentPosts = new WP_Query(array('posts_per_page' => 1)); | |
?> | |
<?php while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?> | |
<li><?php the_post_thumbnail(thumbnail); ?><?php the_excerpt(); ?></li> |