The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
| <div class="cover"> | |
| <div class="container"> | |
| <div class="row"> | |
| <div class="col-md-6 col-md-offset-6 welcome"> | |
| <h2>Your title</h2> | |
| <p class="lead">This text is on the right side of the page</p> | |
| </div><!-- .col --> | |
| </div><!-- .row --> | |
| </div><!-- .container --> | |
| </div><!-- .cover --> |
| // first method | |
| <img src="<?php echo get_stylesheet_directory_uri(); ?>/img/taxi-photo-about.jpg"/> | |
| // second method | |
| <?php $image_src = wp_get_attachment_url(47459, 'full'); ?> | |
| <img src="<?php echo $image_src; ?>"/> | |
| // third method | |
| <?php $image_id = 47603; | |
| echo wp_get_attachment_image($image_id, 'full' ); ?> |
| <?php | |
| /** | |
| * Front to the WordPress application. This file doesn't do anything, but loads | |
| * wp-blog-header.php which does and tells WordPress to load the theme. | |
| * | |
| * @package WordPress | |
| */ | |
| /** | |
| * Tells WordPress to load the WordPress theme and output it. |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="description" content="Skillcrush 102 - Make a Timer" /> | |
| <title>Make a Timer</title> | |
| </head> | |
| <body> | |
| <h1>Make a Timer</h1> | |
| <div id="timer"></div> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Guess the Number</title> | |
| </head> | |
| <body> | |
| <h1>Guess the Number</h1> | |
| <input id="user-guess" type="number" /> | |
| <button id="submit-guess">Guess</button> |