Skip to content

Instantly share code, notes, and snippets.

@tenman
Last active December 26, 2015 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tenman/7224661 to your computer and use it in GitHub Desktop.
Save tenman/7224661 to your computer and use it in GitHub Desktop.
full width home.php template for WordPress Raindrops theme.
<!DOCTYPE html>
<html <?php language_attributes( ); ?>>
<head>
<meta http-equiv="content-type" content="<?php bloginfo( 'html_type' );?>; charset=<?php bloginfo( 'charset' ); ?>" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php
global $raindrops_link_unique_text;
wp_head( );
?>
</head>
<body <?php body_class( ); ?>
<div id="<?php echo esc_attr( raindrops_warehouse( 'raindrops_page_width' ) ); ?>" class="<?php echo esc_attr( 'yui-'.raindrops_warehouse( 'raindrops_col_width' ) ); ?> hfeed">
<?php raindrops_prepend_doc( );?>
<header id="top">
<div id="hd" <?php raindrops_doctype_elements( '','role="banner"' );?>>
<div class="skip-link screen-reader-text">
<a href="#container" title="<?php esc_attr_e( 'Skip to content', 'Raindrops' );?>"><?php esc_html_e( 'Skip to content', 'Raindrops' ); ?></a>
</div>
<?php
/**
* Conditional Switch html headding element
*
* example
* raindrops_site_title( " add some text" );
*
*/
echo raindrops_site_title( );
/**
* Site description diaplay
*
*
*
*/
echo raindrops_site_description( );
?>
</div>
</header>
<?php // Your content start ?>
<p style="width:80%;margin:50px auto">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<img src="http://upload.wikimedia.org/wikipedia/commons/d/d2/Ime_slike.jpg" style="margin:20px auto;display:block;width:275px;" alt="image description" />
<?php // Your content end ?>
</div>
<?php get_footer( $raindrops_document_type ); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment