Advertisement
Guest User

Untitled

a guest
Apr 24th, 2015
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.93 KB | None | 0 0
  1. header.php
  2. //```php
  3. <!doctype html>
  4. <html class="no-js" lang="en">
  5.   <head>
  6.     <meta charset="utf-8" />
  7.     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  8.     <title><?php wp_title(); ?></title>
  9.    
  10.     <?php wp_head(); ?>
  11.    
  12.   </head>
  13.  
  14.   <body>
  15.     <header class="row no-max pad main">
  16.   <h1><a class='current' href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
  17.   <a href="" class="nav-toggle"><span></span>Menu</a>
  18.   <nav>
  19.     <h1 class="open"><a class='current' href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
  20.     <ul class="no-bullet">
  21.       <li class="current parent"><a class='current' href="index.html">Portfolio</a>
  22.         <ul class="sub-menu">
  23.           <li><a href="item.html">Portfolio Item</a></li>
  24.           <li><a href="item.html">Portfolio Item</a></li>
  25.           <li><a href="item.html">Portfolio Item</a></li>
  26.           <li><a href="item.html">Portfolio Item</a></li>
  27.         </ul>
  28.       </li>
  29.       <li class="parent"><a href="blog.html">Blog</a>
  30.         <ul class="sub-menu">
  31.           <li><a href="single-post.html">Single Post</a></li>
  32.           <li><a href="author.html">Author Page</a></li>
  33.         </ul>
  34.       </li>
  35.       <li><a href="about.html">About</a></li>
  36.       <li><a href="contact.html">Contact</a></li>
  37.     </ul>
  38.   </nav>
  39. </header>
  40. //```
  41.  
  42. footer.php
  43. //```php
  44.     <div class="footer-clear"></div>
  45. <footer class="row no-max pad">    
  46.   <p>Copyright <?php echo date('Y'); ?></p>
  47. </footer>
  48. <?php
  49. wp_footer();
  50. ?>
  51.   </body>
  52. </html>
  53. //```
  54. index.php
  55. //```php
  56. <?php get_header();?>
  57.  
  58.     <section class="row">
  59.       <div class="small-12 columns text-center">
  60.         <div class="leader">
  61.           <h1>Etiam Mollis Sit Gratt Spore.</h1>
  62.           <p>Maecenas sed diam eget risus varius blandit sit amet non magna. Nullam quis risus eget urna mollis ornare vel eu leo. Nulla vitae elit libero, a pharetra augue.</p>        
  63.         </div>
  64.       </div>
  65.     </section>
  66.  
  67.  
  68. <?php get_footer(); ?>
  69. //```
  70.  
  71. functions.php
  72. //```php
  73. <?php
  74.  
  75. function wph_theme_styles(){
  76.     wp_enqueue_style('foundation_css', get_template_directory_uri() . '/css/foundation.php');
  77.     //wp_enqueue_style('normalize_css', get_template_directory_uri() . '/css/normalize.php');
  78.     wp_enqueue_style('googlefont_css', 'http://fonts.googleapis.com/css?family=Asap:400,700,400italic,700italic');
  79.     wp_enqueue_style('main_css', get_template_directory_uri() . '/style.css');
  80.  
  81.  
  82. }
  83.  
  84. add_action('wp_enqueue_scripts', 'wph_theme_styles');
  85.  
  86. function wph_theme_js(){
  87.     wp_enqueue_script('modernizr_js', get_template_directory_uri() . '/js/modernizr.js','','',false);
  88.         wp_enqueue_script('foundation_js', get_template_directory_uri() . '/js/foundation.js',array('jquery'),'',true);
  89.                 wp_enqueue_script('main_js', get_template_directory_uri() . '/js/app.js',array('jquery', 'foundation.js'),'',true);
  90.  
  91.    
  92. }
  93.  
  94. add_action('wp_enqueue_scripts', 'wph_theme_js');
  95.  
  96. ?>
  97. //```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement