rootbeer 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/Rakefile +1 -0
- data/lib/rootbeer.rb +13 -0
- data/lib/rootbeer/version.rb +3 -0
- data/package.json +15 -0
- data/readme.md +4 -0
- data/rootbeer.gemspec +23 -0
- data/scss/rootbeer.scss +45 -0
- data/scss/rootbeer/_variables.scss +45 -0
- data/scss/rootbeer/components/footer.scss +1 -0
- data/scss/rootbeer/components/header.scss +1 -0
- data/scss/rootbeer/components/main.scss +1 -0
- data/scss/rootbeer/components/sidebar.scss +1 -0
- data/scss/rootbeer/components/widgets-bottom.scss +1 -0
- data/scss/rootbeer/editor-style.scss +18 -0
- data/scss/rootbeer/login-style.scss +26 -0
- data/templates/project/404.php +29 -0
- data/templates/project/config.rb +28 -0
- data/templates/project/content-page.php +24 -0
- data/templates/project/content.php +41 -0
- data/templates/project/favicon.ico +0 -0
- data/templates/project/footer.php +90 -0
- data/templates/project/functions.php +169 -0
- data/templates/project/header.php +87 -0
- data/templates/project/images/404.png +0 -0
- data/templates/project/images/login.png +0 -0
- data/templates/project/index.php +29 -0
- data/templates/project/manifest.rb +54 -0
- data/templates/project/page-landing.php +22 -0
- data/templates/project/page.php +22 -0
- data/templates/project/screenshot.png +0 -0
- data/templates/project/scss/app.scss +61 -0
- data/templates/project/searchform.php +21 -0
- data/templates/project/sidebar.php +11 -0
- data/templates/project/single.php +46 -0
- data/templates/project/style.css +9 -0
- data/templates/upgrade/manifest.rb +33 -0
- metadata +108 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
data.tar.gz: d48fece126d0518a0f7e2296a567c60ab2476419
|
|
4
|
+
metadata.gz: c7e30ac4e944ef088192fa279591d73defcff98e
|
|
5
|
+
SHA512:
|
|
6
|
+
data.tar.gz: cc9acd1aac8de05524a6f0c7871274041fddf1c754503db1673f821cd4fae3090e43c94a3e31ba53a8fc6010ba39ac13597b1fab959cc77660ebc7242cb4fd2f
|
|
7
|
+
metadata.gz: 6f78657c69170eab69e6b495e78657b17035c5efc7f1dabaebdd31aba92e66fe217ff487c620968e8578d487280dbf5202030e6498136d3c4df528f1a381a3d4
|
data/.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.sass-cache
|
data/Gemfile
ADDED
data/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2013 Josh Medeski.
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require "bundler/gem_tasks"
|
data/lib/rootbeer.rb
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
root = File.join(File.dirname(__FILE__), "..")
|
|
2
|
+
require "rootbeer/version"
|
|
3
|
+
|
|
4
|
+
module Rootbeer
|
|
5
|
+
# Your code goes here...
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
if defined?(Compass)
|
|
9
|
+
Compass::Frameworks.register("rootbeer",
|
|
10
|
+
:stylesheets_directory => File.join(root,"scss"),
|
|
11
|
+
:templates_directory => File.join(root,"templates")
|
|
12
|
+
)
|
|
13
|
+
end
|
data/package.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "zurb-foundation",
|
|
3
|
+
"version": "4.0.0-wip",
|
|
4
|
+
"devDependencies": {
|
|
5
|
+
"grunt": "~0.4.0",
|
|
6
|
+
"grunt-contrib-watch": "~0.1.0",
|
|
7
|
+
"grunt-contrib-qunit": "~0.1.1"
|
|
8
|
+
},
|
|
9
|
+
"licenses": [
|
|
10
|
+
{
|
|
11
|
+
"type": "MIT",
|
|
12
|
+
"url": "https://github.com/zurb/foundation/blob/master/LICENSE"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
data/readme.md
ADDED
data/rootbeer.gemspec
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'rootbeer/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = "rootbeer"
|
|
8
|
+
spec.version = Rootbeer::VERSION
|
|
9
|
+
spec.authors = ["Josh Medeski"]
|
|
10
|
+
spec.email = ["josh.medeski@gmail.com"]
|
|
11
|
+
spec.description = %q{Rootbeer is a Wordpress Framework built with Zurb's Foundation, Compass, and Sass.}
|
|
12
|
+
spec.summary = %q{A Wordpress Foundation Framework}
|
|
13
|
+
spec.homepage = "https://github.com/joshmedeski/foundation-rootbeer"
|
|
14
|
+
spec.license = "MIT"
|
|
15
|
+
|
|
16
|
+
spec.files = `git ls-files`.split($/)
|
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
|
+
spec.require_paths = ["lib"]
|
|
20
|
+
|
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
|
22
|
+
spec.add_development_dependency "rake"
|
|
23
|
+
end
|
data/scss/rootbeer.scss
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Rootbeer Variables
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
// Header
|
|
6
|
+
|
|
7
|
+
// $header-bg-color: $body-bg;
|
|
8
|
+
// $nav-bg-color: $topbar-bg-color;
|
|
9
|
+
|
|
10
|
+
// Main
|
|
11
|
+
|
|
12
|
+
// $main-bg-color: $body-bg;
|
|
13
|
+
|
|
14
|
+
// Sidebar
|
|
15
|
+
|
|
16
|
+
// $sidebar-column-width: 3;
|
|
17
|
+
// $sidebar-widget-title-color: $header-font-color;
|
|
18
|
+
// $sidebar-widget-font-color: $body-font-color;
|
|
19
|
+
// $sidebar-list-style-position: inside;
|
|
20
|
+
|
|
21
|
+
// Bottom Widgets
|
|
22
|
+
|
|
23
|
+
// $bottom-bg-color: $body-bg;
|
|
24
|
+
// $bottom-widget-column-width: 4;
|
|
25
|
+
// $bottom-widget-title-color: $header-font-color;
|
|
26
|
+
// $bottom-widget-font-color: $body-font-color;
|
|
27
|
+
// $bottom-widget-padding: em-calc(20) 0;
|
|
28
|
+
// $bottom-widget-margin: em-calc(10) 0;
|
|
29
|
+
|
|
30
|
+
// Footer
|
|
31
|
+
|
|
32
|
+
// $footer-bg-color: $body-bg;
|
|
33
|
+
// $footer-font-color: lighten($body-font-color, 30%);
|
|
34
|
+
// $footer-navigation-color: $primary-color;
|
|
35
|
+
|
|
36
|
+
// Landing Pages
|
|
37
|
+
|
|
38
|
+
// $landing-page-column-width: 8;
|
|
39
|
+
// $landing-page-centered: true;
|
|
40
|
+
|
|
41
|
+
// Search Form
|
|
42
|
+
|
|
43
|
+
// $search-field-columns-width: 8;
|
|
44
|
+
// $search-button-columns-width: 4;
|
|
45
|
+
// $search-button-style: secondary;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Rootbeer Variables
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
// Header
|
|
6
|
+
|
|
7
|
+
// $header-bg-color: $body-bg;
|
|
8
|
+
// $nav-bg-color: $topbar-bg-color;
|
|
9
|
+
|
|
10
|
+
// Main
|
|
11
|
+
|
|
12
|
+
// $main-bg-color: $body-bg;
|
|
13
|
+
|
|
14
|
+
// Sidebar
|
|
15
|
+
|
|
16
|
+
// $sidebar-column-width: 3;
|
|
17
|
+
// $sidebar-widget-title-color: $header-font-color;
|
|
18
|
+
// $sidebar-widget-font-color: $body-font-color;
|
|
19
|
+
// $sidebar-list-style-position: inside;
|
|
20
|
+
|
|
21
|
+
// Bottom Widgets
|
|
22
|
+
|
|
23
|
+
// $bottom-bg-color: $body-bg;
|
|
24
|
+
// $bottom-widget-column-width: 4;
|
|
25
|
+
// $bottom-widget-title-color: $header-font-color;
|
|
26
|
+
// $bottom-widget-font-color: $body-font-color;
|
|
27
|
+
// $bottom-widget-padding: em-calc(20) 0;
|
|
28
|
+
// $bottom-widget-margin: em-calc(10) 0;
|
|
29
|
+
|
|
30
|
+
// Footer
|
|
31
|
+
|
|
32
|
+
// $footer-bg-color: $body-bg;
|
|
33
|
+
// $footer-font-color: lighten($body-font-color, 30%);
|
|
34
|
+
// $footer-navigation-color: $primary-color;
|
|
35
|
+
|
|
36
|
+
// Landing Pages
|
|
37
|
+
|
|
38
|
+
// $landing-page-column-width: 8;
|
|
39
|
+
// $landing-page-centered: true;
|
|
40
|
+
|
|
41
|
+
// Search Form
|
|
42
|
+
|
|
43
|
+
// $search-field-columns-width: 8;
|
|
44
|
+
// $search-button-columns-width: 4;
|
|
45
|
+
// $search-button-style: secondary;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// This is your framework's main stylesheet. Use it to import all default modules.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// This is your framework's main stylesheet. Use it to import all default modules.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// This is your framework's main stylesheet. Use it to import all default modules.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// This is your framework's main stylesheet. Use it to import all default modules.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// This is your framework's main stylesheet. Use it to import all default modules.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Theme Name: Root Beer
|
|
3
|
+
Description: Used to style the TinyMCE editor.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
// Foundation Elements
|
|
7
|
+
@import "settings";
|
|
8
|
+
@import "foundation/components/global";
|
|
9
|
+
@import "foundation/components/grid";
|
|
10
|
+
@import "foundation/components/type";
|
|
11
|
+
@import "foundation/components/button";
|
|
12
|
+
|
|
13
|
+
// Padding around editor
|
|
14
|
+
body {padding: 10px;}
|
|
15
|
+
|
|
16
|
+
.half {
|
|
17
|
+
@include grid-column($columns: 6, $collapse: true)
|
|
18
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Custom WordPress login style
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
.login h1 a {
|
|
6
|
+
background-image: url(images/login.png);
|
|
7
|
+
background-size: 274px 63px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
#wp-submit {
|
|
11
|
+
background-color: #896754;
|
|
12
|
+
background-image: none;
|
|
13
|
+
border-color: darken(#896754, 10%);
|
|
14
|
+
box-shadow: none;
|
|
15
|
+
&:hover {
|
|
16
|
+
background: darken(#896754, 10%);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.login #nav a, .login #backtoblog a {
|
|
21
|
+
color: #edc160 !important;
|
|
22
|
+
text-decoration: none;
|
|
23
|
+
&:hover {
|
|
24
|
+
color: green;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* The page for displaying 404 pages (Not Found).
|
|
4
|
+
*
|
|
5
|
+
* @package WordPress
|
|
6
|
+
* @subpackage RootBeer
|
|
7
|
+
* @author JoshMedeski
|
|
8
|
+
* @framework Foundation
|
|
9
|
+
*/
|
|
10
|
+
get_header(); get_template_part( 'components/topbar', 'components/header-default' ); ?>
|
|
11
|
+
|
|
12
|
+
<div class="row">
|
|
13
|
+
<div class="text-center entry-header small-12 columns">
|
|
14
|
+
<h2>"These aren’t the droids you’re looking for."</h2>
|
|
15
|
+
<img src="<?php echo get_template_directory_uri(); ?>/images/404.png" alt="Old Ben">
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div class="row">
|
|
20
|
+
<div class="large-12 columns">
|
|
21
|
+
<hr>
|
|
22
|
+
<p class="text-center">It seems we can’t find what you’re looking for. Perhaps searching can help.</p>
|
|
23
|
+
<div class="medium-8 medium-centered large-6 large-centered columns">
|
|
24
|
+
<?php get_search_form(); ?>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<?php get_footer(); ?>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
require 'zurb-foundation'
|
|
2
|
+
require 'rootbeer'
|
|
3
|
+
|
|
4
|
+
# Require any additional compass plugins here.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# Set this to the root of your project when deployed:
|
|
8
|
+
http_path = "/"
|
|
9
|
+
css_dir = "/"
|
|
10
|
+
sass_dir = "sass"
|
|
11
|
+
images_dir = "images"
|
|
12
|
+
javascripts_dir = "javascripts"
|
|
13
|
+
|
|
14
|
+
# You can select your preferred output style here (can be overridden via the command line):
|
|
15
|
+
# output_style = :expanded or :nested or :compact or :compressed
|
|
16
|
+
|
|
17
|
+
# To enable relative paths to assets via compass helper functions. Uncomment:
|
|
18
|
+
# relative_assets = true
|
|
19
|
+
|
|
20
|
+
# To disable debugging comments that display the original location of your selectors. Uncomment:
|
|
21
|
+
# line_comments = false
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# If you prefer the indented syntax, you might want to regenerate this
|
|
25
|
+
# project again passing --syntax sass, or you can uncomment this:
|
|
26
|
+
# preferred_syntax = :sass
|
|
27
|
+
# and then run:
|
|
28
|
+
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* The page for displaying 404 pages (Not Found).
|
|
4
|
+
*
|
|
5
|
+
* @package WordPress
|
|
6
|
+
* @subpackage RootBeer
|
|
7
|
+
* @author JoshMedeski
|
|
8
|
+
* @framework Foundation
|
|
9
|
+
*/
|
|
10
|
+
?>
|
|
11
|
+
<h2><?php the_title(); ?></h2>
|
|
12
|
+
|
|
13
|
+
<p><?php the_post_thumbnail(); ?></p>
|
|
14
|
+
|
|
15
|
+
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
|
|
16
|
+
<div class="entry-summary">
|
|
17
|
+
<?php the_excerpt(); ?>
|
|
18
|
+
</div><!-- .entry-summary -->
|
|
19
|
+
<?php else : ?>
|
|
20
|
+
<div class="entry-content">
|
|
21
|
+
<?php the_content( __( 'Read More »', 'rootbeer' ) ); ?>
|
|
22
|
+
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'rootbeer' ), 'after' => '</div>' ) ); ?>
|
|
23
|
+
</div><!-- .entry-content -->
|
|
24
|
+
<?php endif; ?>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* The default template for displaying content. Used for both single and index/archive/search.
|
|
4
|
+
*
|
|
5
|
+
* @package WordPress
|
|
6
|
+
* @subpackage Twenty_Twelve
|
|
7
|
+
* @since Twenty Twelve 1.0
|
|
8
|
+
*/
|
|
9
|
+
?>
|
|
10
|
+
|
|
11
|
+
<article id="post-<?php the_ID(); ?>">
|
|
12
|
+
<header class="entry-header">
|
|
13
|
+
<?php if ( is_single() ) : ?>
|
|
14
|
+
<h2 class="entry-title"><?php the_title(); ?></h2>
|
|
15
|
+
<?php else : ?>
|
|
16
|
+
<h2 class="entry-title">
|
|
17
|
+
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
|
|
18
|
+
</h2>
|
|
19
|
+
<?php endif; // is_single() ?>
|
|
20
|
+
|
|
21
|
+
<?php get_template_part( 'components/meta' ); ?>
|
|
22
|
+
|
|
23
|
+
<p><?php the_post_thumbnail(); ?></p>
|
|
24
|
+
|
|
25
|
+
<?php if ( comments_open() ) : ?>
|
|
26
|
+
<p><?php comments_popup_link(); ?></p>
|
|
27
|
+
<?php endif; // comments_open() ?>
|
|
28
|
+
|
|
29
|
+
</header><!-- .entry-header -->
|
|
30
|
+
|
|
31
|
+
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
|
|
32
|
+
<div class="entry-summary">
|
|
33
|
+
<?php the_excerpt(); ?>
|
|
34
|
+
</div><!-- .entry-summary -->
|
|
35
|
+
<?php else : ?>
|
|
36
|
+
<div class="entry-content">
|
|
37
|
+
<?php the_content( __( 'Read More »', 'rootbeer' ) ); ?>
|
|
38
|
+
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'rootbeer' ), 'after' => '</div>' ) ); ?>
|
|
39
|
+
</div><!-- .entry-content -->
|
|
40
|
+
<?php endif; ?>
|
|
41
|
+
</article>
|
|
Binary file
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/* This is the Wordpress footer file.
|
|
3
|
+
*
|
|
4
|
+
* @package WordPress
|
|
5
|
+
* @subpackage RootBeer
|
|
6
|
+
* @author JoshMedeski
|
|
7
|
+
* @framework Foundation
|
|
8
|
+
*/
|
|
9
|
+
wp_footer(); ?>
|
|
10
|
+
|
|
11
|
+
<footer class="site--footer">
|
|
12
|
+
<?php if ( is_active_sidebar( 'bottom-sidebar' ) ) : ?>
|
|
13
|
+
<section id="footer-widgets">
|
|
14
|
+
<!-- Widgets -->
|
|
15
|
+
<div class="row">
|
|
16
|
+
<hr>
|
|
17
|
+
<?php dynamic_sidebar( 'bottom-sidebar' ); ?>
|
|
18
|
+
</div>
|
|
19
|
+
</section>
|
|
20
|
+
<?php endif; ?>
|
|
21
|
+
|
|
22
|
+
<section id="footer-colophon">
|
|
23
|
+
<div class="row">
|
|
24
|
+
<hr>
|
|
25
|
+
<!-- Footer Menu -->
|
|
26
|
+
<div class="large-6 medium-6 columns">
|
|
27
|
+
<?php
|
|
28
|
+
wp_nav_menu( array(
|
|
29
|
+
'theme_location' => 'footer',
|
|
30
|
+
'container' => false,
|
|
31
|
+
'menu_class' => 'inline-list',
|
|
32
|
+
'echo' => true,
|
|
33
|
+
'fallback_cb' => false,
|
|
34
|
+
'items_wrap' => '<ul class="%2$s">%3$s</ul>',
|
|
35
|
+
'depth' => 1,
|
|
36
|
+
) ); ?>
|
|
37
|
+
</div>
|
|
38
|
+
<!-- Colphon -->
|
|
39
|
+
<div class="large-6 medium-6 columns">
|
|
40
|
+
<p class="colophon">© <?php echo date("Y"); ?> <?php bloginfo('name'); ?>. All Rights Reserved.</p>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</section>
|
|
44
|
+
</footer>
|
|
45
|
+
|
|
46
|
+
<script>
|
|
47
|
+
document.write('<script src=' +
|
|
48
|
+
('__proto__' in {} ? '<?php echo get_template_directory_uri(); ?>/javascripts/vendor/zepto' : '<?php echo get_template_directory_uri(); ?>/javascripts/vendor/jquery') +
|
|
49
|
+
'.js><\/script>')
|
|
50
|
+
</script>
|
|
51
|
+
|
|
52
|
+
<script src="<?php echo get_template_directory_uri(); ?>/javascripts/foundation/foundation.js"></script>
|
|
53
|
+
|
|
54
|
+
<script src="<?php echo get_template_directory_uri(); ?>/javascripts/foundation/foundation.abide.js"></script>
|
|
55
|
+
|
|
56
|
+
<script src="<?php echo get_template_directory_uri(); ?>/javascripts/foundation/foundation.alerts.js"></script>
|
|
57
|
+
|
|
58
|
+
<script src="<?php echo get_template_directory_uri(); ?>/javascripts/foundation/foundation.clearing.js"></script>
|
|
59
|
+
|
|
60
|
+
<script src="<?php echo get_template_directory_uri(); ?>/javascripts/foundation/foundation.cookie.js"></script>
|
|
61
|
+
|
|
62
|
+
<script src="<?php echo get_template_directory_uri(); ?>/javascripts/foundation/foundation.dropdown.js"></script>
|
|
63
|
+
|
|
64
|
+
<script src="<?php echo get_template_directory_uri(); ?>/javascripts/foundation/foundation.forms.js"></script>
|
|
65
|
+
|
|
66
|
+
<script src="<?php echo get_template_directory_uri(); ?>/javascripts/foundation/foundation.interchange.js"></script>
|
|
67
|
+
|
|
68
|
+
<script src="<?php echo get_template_directory_uri(); ?>/javascripts/foundation/foundation.joyride.js"></script>
|
|
69
|
+
|
|
70
|
+
<script src="<?php echo get_template_directory_uri(); ?>/javascripts/foundation/foundation.magellan.js"></script>
|
|
71
|
+
|
|
72
|
+
<script src="<?php echo get_template_directory_uri(); ?>/javascripts/foundation/foundation.orbit.js"></script>
|
|
73
|
+
|
|
74
|
+
<script src="<?php echo get_template_directory_uri(); ?>/javascripts/foundation/foundation.placeholder.js"></script>
|
|
75
|
+
|
|
76
|
+
<script src="<?php echo get_template_directory_uri(); ?>/javascripts/foundation/foundation.reveal.js"></script>
|
|
77
|
+
|
|
78
|
+
<script src="<?php echo get_template_directory_uri(); ?>/javascripts/foundation/foundation.section.js"></script>
|
|
79
|
+
|
|
80
|
+
<script src="<?php echo get_template_directory_uri(); ?>/javascripts/foundation/foundation.tooltips.js"></script>
|
|
81
|
+
|
|
82
|
+
<script src="<?php echo get_template_directory_uri(); ?>/javascripts/foundation/foundation.topbar.js"></script>
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
<script>
|
|
86
|
+
$(document).foundation();
|
|
87
|
+
</script>
|
|
88
|
+
|
|
89
|
+
</body>
|
|
90
|
+
</html>
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/* Functions
|
|
3
|
+
*
|
|
4
|
+
* @package RootBeer
|
|
5
|
+
* @author JoshMedeski
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
function rootbeer_setup() {
|
|
9
|
+
|
|
10
|
+
// This styles the visual editor with editor-style.css to match the theme style.
|
|
11
|
+
add_editor_style();
|
|
12
|
+
|
|
13
|
+
// This styles the login screen with login-style.css to match the theme style
|
|
14
|
+
function login_stylesheet() { ?>
|
|
15
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/login-style.css" type="text/css" media="all" />
|
|
16
|
+
<?php }
|
|
17
|
+
add_action( 'login_enqueue_scripts', 'login_stylesheet' );
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
add_action( 'after_setup_theme', 'rootbeer_setup' );
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
// Register Sidebar
|
|
24
|
+
function rootbeer_main_sidebar() {
|
|
25
|
+
register_sidebar( array(
|
|
26
|
+
'name' => __( 'Sidebar', 'rootbeer' ),
|
|
27
|
+
'id' => 'sidebar',
|
|
28
|
+
'description' => __( 'Appears on the sidebar of every post & page.', 'rootbeer' ),
|
|
29
|
+
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
|
30
|
+
'after_widget' => '</aside>',
|
|
31
|
+
'before_title' => '<h4 class="sidebar-title">',
|
|
32
|
+
'after_title' => '</h4>',
|
|
33
|
+
) );
|
|
34
|
+
}
|
|
35
|
+
add_action( 'widgets_init', 'rootbeer_main_sidebar' );
|
|
36
|
+
|
|
37
|
+
// Footer Sidebar
|
|
38
|
+
function rootbeer_bottom_sidebar() {
|
|
39
|
+
register_sidebar( array(
|
|
40
|
+
'name' => __( 'Bottom Widgets', 'rootbeer' ),
|
|
41
|
+
'id' => 'bottom-sidebar',
|
|
42
|
+
'description' => __( 'Appears on the bottom of every post & page, best results with 4 widgets.', 'rootbeer' ),
|
|
43
|
+
'before_widget' => '<aside id="%1$s" class="large-3 columns widget %2$s">',
|
|
44
|
+
'after_widget' => '</aside>',
|
|
45
|
+
'before_title' => '<h5 class="bottom-title">',
|
|
46
|
+
'after_title' => '</h5>',
|
|
47
|
+
) );
|
|
48
|
+
}
|
|
49
|
+
add_action( 'widgets_init', 'rootbeer_bottom_sidebar' );
|
|
50
|
+
|
|
51
|
+
// Add menu supports. http://codex.wordpress.org/Function_Reference/register_nav_menus
|
|
52
|
+
add_theme_support('menus');
|
|
53
|
+
register_nav_menus(array(
|
|
54
|
+
'topbar' => __('Topbar', 'rootbeer'),
|
|
55
|
+
'footer' => __('Footer', 'rootbeer')
|
|
56
|
+
));
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* class required_walker
|
|
60
|
+
* Custom output to enable the the ZURB Navigation style.
|
|
61
|
+
* Courtesy of Kriesi.at. http://www.kriesi.at/archives/improve-your-wordpress-navigation-menu-output
|
|
62
|
+
* From required+ Foundation http://themes.required.ch
|
|
63
|
+
*/
|
|
64
|
+
class rootbeer_walker extends Walker_Nav_Menu {
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Specify the item type to allow different walkers
|
|
68
|
+
* @var array
|
|
69
|
+
*/
|
|
70
|
+
var $nav_bar = '';
|
|
71
|
+
|
|
72
|
+
function __construct( $nav_args = '' ) {
|
|
73
|
+
|
|
74
|
+
$defaults = array(
|
|
75
|
+
'item_type' => 'li',
|
|
76
|
+
'in_top_bar' => false,
|
|
77
|
+
);
|
|
78
|
+
$this->nav_bar = apply_filters( 'req_nav_args', wp_parse_args( $nav_args, $defaults ) );
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function display_element( $element, &$children_elements, $max_depth, $depth=0, $args, &$output ) {
|
|
82
|
+
|
|
83
|
+
$id_field = $this->db_fields['id'];
|
|
84
|
+
if ( is_object( $args[0] ) ) {
|
|
85
|
+
$args[0]->has_children = ! empty( $children_elements[$element->$id_field] );
|
|
86
|
+
}
|
|
87
|
+
return parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output );
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
|
|
91
|
+
|
|
92
|
+
global $wp_query;
|
|
93
|
+
$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
|
|
94
|
+
|
|
95
|
+
$class_names = $value = '';
|
|
96
|
+
|
|
97
|
+
$classes = empty( $item->classes ) ? array() : (array) $item->classes;
|
|
98
|
+
$classes[] = 'menu-item-' . $item->ID;
|
|
99
|
+
|
|
100
|
+
// Check for flyout
|
|
101
|
+
$flyout_toggle = '';
|
|
102
|
+
if ( $args->has_children && $this->nav_bar['item_type'] == 'li' ) {
|
|
103
|
+
|
|
104
|
+
if ( $depth == 0 && $this->nav_bar['in_top_bar'] == false ) {
|
|
105
|
+
|
|
106
|
+
$classes[] = 'has-flyout';
|
|
107
|
+
$flyout_toggle = '<a href="#" class="flyout-toggle"><span></span></a>';
|
|
108
|
+
|
|
109
|
+
} else if ( $this->nav_bar['in_top_bar'] == true ) {
|
|
110
|
+
|
|
111
|
+
$classes[] = 'has-dropdown';
|
|
112
|
+
$flyout_toggle = '';
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) );
|
|
118
|
+
$class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : '';
|
|
119
|
+
|
|
120
|
+
if ( $depth > 0 ) {
|
|
121
|
+
$output .= $indent . '<li id="menu-item-'. $item->ID . '"' . $value . $class_names .'>';
|
|
122
|
+
} else {
|
|
123
|
+
$output .= $indent . ( $this->nav_bar['in_top_bar'] == true ? '<li class="divider"></li>' : '' ) . '<' . $this->nav_bar['item_type'] . ' id="menu-item-'. $item->ID . '"' . $value . $class_names .'>';
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
$attributes = ! empty( $item->attr_title ) ? ' title="' . esc_attr( $item->attr_title ) .'"' : '';
|
|
127
|
+
$attributes .= ! empty( $item->target ) ? ' target="' . esc_attr( $item->target ) .'"' : '';
|
|
128
|
+
$attributes .= ! empty( $item->xfn ) ? ' rel="' . esc_attr( $item->xfn ) .'"' : '';
|
|
129
|
+
$attributes .= ! empty( $item->url ) ? ' href="' . esc_attr( $item->url ) .'"' : '';
|
|
130
|
+
|
|
131
|
+
$item_output = $args->before;
|
|
132
|
+
$item_output .= '<a '. $attributes .'>';
|
|
133
|
+
$item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
|
|
134
|
+
$item_output .= '</a>';
|
|
135
|
+
$item_output .= $flyout_toggle; // Add possible flyout toggle
|
|
136
|
+
$item_output .= $args->after;
|
|
137
|
+
|
|
138
|
+
$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function end_el( &$output, $item, $depth = 0, $args = array() ) {
|
|
142
|
+
|
|
143
|
+
if ( $depth > 0 ) {
|
|
144
|
+
$output .= "</li>\n";
|
|
145
|
+
} else {
|
|
146
|
+
$output .= "</" . $this->nav_bar['item_type'] . ">\n";
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function start_lvl( &$output, $depth = 0, $args = array() ) {
|
|
151
|
+
|
|
152
|
+
if ( $depth == 0 && $this->nav_bar['item_type'] == 'li' ) {
|
|
153
|
+
$indent = str_repeat("\t", 1);
|
|
154
|
+
$output .= $this->nav_bar['in_top_bar'] == true ? "\n$indent<ul class=\"dropdown\">\n" : "\n$indent<ul class=\"flyout\">\n";
|
|
155
|
+
} else {
|
|
156
|
+
$indent = str_repeat("\t", $depth);
|
|
157
|
+
$output .= $this->nav_bar['in_top_bar'] == true ? "\n$indent<ul class=\"dropdown\">\n" : "\n$indent<ul class=\"level-$depth\">\n";
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// Foundation's flex-video class for embedded videos (just paste the youtube link!)
|
|
163
|
+
// Credit: thanks davidmcnee (http://wordpress.org/support/topic/adding-a-wrapping-div-to-video-embeds)
|
|
164
|
+
add_filter('embed_oembed_html', 'my_embed_oembed_html', 99, 4);
|
|
165
|
+
function my_embed_oembed_html($html, $url, $attr, $post_id) {
|
|
166
|
+
return '<div class="flex-video">' . $html . '</div>';
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
?>
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/* This is the Wordpress header file.
|
|
3
|
+
*
|
|
4
|
+
* @package WordPress
|
|
5
|
+
* @subpackage RootBeer
|
|
6
|
+
* @author JoshMedeski
|
|
7
|
+
* @framework Foundation
|
|
8
|
+
*/
|
|
9
|
+
?>
|
|
10
|
+
|
|
11
|
+
<!DOCTYPE html>
|
|
12
|
+
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en" > <![endif]-->
|
|
13
|
+
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
|
14
|
+
|
|
15
|
+
<head>
|
|
16
|
+
<meta charset="<?php bloginfo('charset'); ?>" />
|
|
17
|
+
<meta name="viewport" content="width=device-width">
|
|
18
|
+
|
|
19
|
+
<title><?php wp_title('|', true, 'right'); ?> <?php bloginfo('name'); ?></title>
|
|
20
|
+
|
|
21
|
+
<link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico" />
|
|
22
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/app.css">
|
|
23
|
+
|
|
24
|
+
<!-- Google Font Example
|
|
25
|
+
<link href='http://fonts.googleapis.com/css?family=CUSTOM--FONT' rel='stylesheet' type='text/css'>
|
|
26
|
+
-->
|
|
27
|
+
|
|
28
|
+
<!-- Typekit Example
|
|
29
|
+
<script type="text/javascript" src="//use.typekit.net/CUSTOM--KIT.js"></script>
|
|
30
|
+
-->
|
|
31
|
+
|
|
32
|
+
<!-- Google Analytics Example
|
|
33
|
+
<script>
|
|
34
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
35
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
36
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
37
|
+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
38
|
+
|
|
39
|
+
ga('create', 'CUSTOM--ID', 'CUSTOM--URL');
|
|
40
|
+
ga('send', 'pageview');
|
|
41
|
+
</script>
|
|
42
|
+
-->
|
|
43
|
+
|
|
44
|
+
<!-- Foundation's Custom Modernizer Script -->
|
|
45
|
+
<script src="<?php echo get_template_directory_uri(); ?>/javascripts/vendor/custom.modernizr.js"></script>
|
|
46
|
+
|
|
47
|
+
<?php wp_head(); ?>
|
|
48
|
+
|
|
49
|
+
</head>
|
|
50
|
+
|
|
51
|
+
<body <?php body_class(); ?>>
|
|
52
|
+
|
|
53
|
+
<header class="site--header">
|
|
54
|
+
<div class="row">
|
|
55
|
+
<div class="small-12 columns">
|
|
56
|
+
<div class="contain-to-grid">
|
|
57
|
+
<nav class="top-bar">
|
|
58
|
+
<ul class="title-area">
|
|
59
|
+
<li class="name">
|
|
60
|
+
<h1><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
|
|
61
|
+
</li>
|
|
62
|
+
<!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
|
|
63
|
+
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
|
|
64
|
+
</ul>
|
|
65
|
+
<section class="top-bar-section">
|
|
66
|
+
<ul class="left">
|
|
67
|
+
<li><a class="site--description"><?php bloginfo('description'); ?></a></li>
|
|
68
|
+
</ul>
|
|
69
|
+
<?php
|
|
70
|
+
wp_nav_menu( array(
|
|
71
|
+
'theme_location' => 'topbar',
|
|
72
|
+
'container' => false,
|
|
73
|
+
'depth' => 0,
|
|
74
|
+
'items_wrap' => '<ul class="right">%3$s</ul>',
|
|
75
|
+
'fallback_cb' => 'reverie_menu_fallback', // workaround to show a message to set up a menu
|
|
76
|
+
'walker' => new rootbeer_walker( array(
|
|
77
|
+
'in_top_bar' => true,
|
|
78
|
+
'item_type' => 'li'
|
|
79
|
+
) ),
|
|
80
|
+
) );
|
|
81
|
+
?>
|
|
82
|
+
</section>
|
|
83
|
+
</nav>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</header>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* The page for displaying the Index.
|
|
4
|
+
*
|
|
5
|
+
* @package WordPress
|
|
6
|
+
* @subpackage RootBeer
|
|
7
|
+
* @author JoshMedeski
|
|
8
|
+
* @framework Foundation
|
|
9
|
+
*/
|
|
10
|
+
get_header(); ?>
|
|
11
|
+
|
|
12
|
+
<!-- TODO: Intro CTA here, mailchimp signup -->
|
|
13
|
+
|
|
14
|
+
<div class="row">
|
|
15
|
+
<!-- Main Content -->
|
|
16
|
+
<div class="large-8 columns main-content">
|
|
17
|
+
<?php if ( have_posts() ) : ?>
|
|
18
|
+
<?php while ( have_posts() ) : the_post(); ?>
|
|
19
|
+
<?php get_template_part( 'content', get_post_format() ); ?>
|
|
20
|
+
<?php endwhile; ?>
|
|
21
|
+
<?php else : ?>
|
|
22
|
+
|
|
23
|
+
<h2>Nothing here, come back soon!</h2>
|
|
24
|
+
<?php endif; // end have_posts() check ?>
|
|
25
|
+
</div>
|
|
26
|
+
<?php get_sidebar(); ?>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<?php get_footer(); ?>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
description 'Rootbeer Compass Gem'
|
|
2
|
+
|
|
3
|
+
# Sass Files
|
|
4
|
+
stylesheet '../../../zurb-foundation-4.3.1/scss/normalize.scss', :to => '_normalize.scss'
|
|
5
|
+
stylesheet '../../../zurb-foundation-4.3.1/scss/foundation/_variables.scss', :to => '_foundation-settings.scss'
|
|
6
|
+
stylesheet '../../scss/rootbeer/_variables.scss', :to => '_rootbeer-settings.scss'
|
|
7
|
+
stylesheet '../../scss/editor-style.scss', :to => 'editor-style.scss'
|
|
8
|
+
stylesheet '../../scss/login-style.scss', :to => 'login-style.scss'
|
|
9
|
+
stylesheet 'scss/app.scss', :to => 'app.scss', :media => "screen, projector, print"
|
|
10
|
+
|
|
11
|
+
# Make sure you list all the project template files here in the manifest.
|
|
12
|
+
file '404.php'
|
|
13
|
+
file 'screenshot.png'
|
|
14
|
+
file 'MIT-LICENSE.txt'
|
|
15
|
+
file 'footer.php'
|
|
16
|
+
file 'header.php'
|
|
17
|
+
file 'favicon.ico'
|
|
18
|
+
file 'functions.php'
|
|
19
|
+
file 'searchform.php'
|
|
20
|
+
file 'sidebar.php'
|
|
21
|
+
file 'single.php'
|
|
22
|
+
file 'style.css'
|
|
23
|
+
|
|
24
|
+
def copy_js_from(relative_path, prefix_path, excludes=[])
|
|
25
|
+
absolute_path = File.join(File.dirname(__FILE__), relative_path, prefix_path)
|
|
26
|
+
js_files = Dir.glob("#{absolute_path}/*.js")
|
|
27
|
+
js_files.reject! {|f| excludes.include? File.basename(f)}
|
|
28
|
+
js_files.each do |js|
|
|
29
|
+
javascript "#{relative_path}/#{prefix_path}/#{File.basename(js)}",
|
|
30
|
+
:to => "#{prefix_path}/#{File.basename(js)}"
|
|
31
|
+
end
|
|
32
|
+
return js_files.map {|f| "#{prefix_path}/#{File.basename(f)}"}
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
javascripts = copy_js_from("../../../zurb-foundation-4.3.1/js", "foundation", ["foundation.js", "index.js"])
|
|
36
|
+
vendor_javascripts = copy_js_from("../../../zurb-foundation-4.3.1/js", "vendor")
|
|
37
|
+
|
|
38
|
+
javascript "../../../zurb-foundation-4.3.1/js/foundation/foundation.js", :to => "foundation/foundation.js"
|
|
39
|
+
|
|
40
|
+
help %Q{
|
|
41
|
+
|
|
42
|
+
If you need help, submit an new issue at https://github.com/joshmedeski/rootbeer/issues"
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
welcome_message %Q{
|
|
47
|
+
|
|
48
|
+
YAY! You're using ZURB Foundation and Rootbeer for awesome Wordpress theme buildin!
|
|
49
|
+
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
# file 'config.rb'
|
|
53
|
+
|
|
54
|
+
# no_configuration_file!
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/* Template Name: Landing Page
|
|
3
|
+
* The template for displaying landing pages.
|
|
4
|
+
*
|
|
5
|
+
* @package WordPress
|
|
6
|
+
* @subpackage RootBeer
|
|
7
|
+
* @author JoshMedeski
|
|
8
|
+
* @framework Foundation
|
|
9
|
+
*/
|
|
10
|
+
get_header(); while (have_posts()) : the_post(); ?>
|
|
11
|
+
|
|
12
|
+
<!-- Main Content -->
|
|
13
|
+
<div class="row">
|
|
14
|
+
<div class="large-8 large-centered columns main-content">
|
|
15
|
+
<h1 style="text-align:center;"><?php the_title(); ?></h1>
|
|
16
|
+
<p><?php the_post_thumbnail(); ?></p>
|
|
17
|
+
<?php the_content(); ?>
|
|
18
|
+
<?php wp_link_pages(array('before' => '<nav class="page-nav"><p>' . __('Pages:', 'roots'), 'after' => '</p></nav>')); ?>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<?php endwhile; get_footer(); ?>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/* The template for displaying pages.
|
|
3
|
+
*
|
|
4
|
+
* @package WordPress
|
|
5
|
+
* @subpackage RootBeer
|
|
6
|
+
* @author JoshMedeski
|
|
7
|
+
* @framework Foundation
|
|
8
|
+
*/
|
|
9
|
+
get_header(); while (have_posts()) : the_post(); ?>
|
|
10
|
+
|
|
11
|
+
<!-- Main Content -->
|
|
12
|
+
<div class="row">
|
|
13
|
+
<div class="large-8 columns site-content-article">
|
|
14
|
+
<h1 class="page-title"><?php the_title(); ?></h1>
|
|
15
|
+
<p><?php the_post_thumbnail(); ?></p>
|
|
16
|
+
<?php the_content(); ?>
|
|
17
|
+
<?php wp_link_pages(array('before' => '<nav class="page-nav"><p>' . __('Pages:', 'roots'), 'after' => '</p></nav>')); ?>
|
|
18
|
+
</div>
|
|
19
|
+
<?php get_sidebar(); ?>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<?php endwhile; get_footer(); ?>
|
|
Binary file
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// Global Foundation Settings
|
|
2
|
+
@import "settings";
|
|
3
|
+
|
|
4
|
+
// Comment out this import if you don't want to use normalize
|
|
5
|
+
@import "normalize";
|
|
6
|
+
|
|
7
|
+
// Comment out this import if you are customizing you imports below
|
|
8
|
+
@import "foundation";
|
|
9
|
+
@import "rootbeer";
|
|
10
|
+
|
|
11
|
+
// Import specific parts of Foundation by commenting the import "foundation"
|
|
12
|
+
// and uncommenting what you want below. You must uncomment the following if customizing
|
|
13
|
+
|
|
14
|
+
// @import "foundation/components/global"; // *always required
|
|
15
|
+
// @import "foundation/components/grid";
|
|
16
|
+
|
|
17
|
+
//
|
|
18
|
+
// Use this grid if you want to start using the new Foundation 5 grid early.
|
|
19
|
+
// It will change breakpoints to min-width: 640px and 1024px.
|
|
20
|
+
//
|
|
21
|
+
// @import "foundation/components/grid-5";
|
|
22
|
+
//
|
|
23
|
+
|
|
24
|
+
// @import "foundation/components/visibility";
|
|
25
|
+
// @import "foundation/components/block-grid";
|
|
26
|
+
// @import "foundation/components/type";
|
|
27
|
+
// @import "foundation/components/buttons";
|
|
28
|
+
// @import "foundation/components/forms"; // *requires components/buttons
|
|
29
|
+
// @import "foundation/components/custom-forms"; // *requires components/buttons, components/forms
|
|
30
|
+
// @import "foundation/components/button-groups"; // *requires components/buttons
|
|
31
|
+
// @import "foundation/components/dropdown-buttons"; // *requires components/buttons
|
|
32
|
+
// @import "foundation/components/split-buttons"; // *requires components/buttons
|
|
33
|
+
// @import "foundation/components/flex-video";
|
|
34
|
+
// @import "foundation/components/section";
|
|
35
|
+
// @import "foundation/components/top-bar"; // *requires components/grid
|
|
36
|
+
// @import "foundation/components/orbit";
|
|
37
|
+
// @import "foundation/components/reveal";
|
|
38
|
+
// @import "foundation/components/joyride";
|
|
39
|
+
// @import "foundation/components/clearing";
|
|
40
|
+
// @import "foundation/components/alert-boxes";
|
|
41
|
+
// @import "foundation/components/breadcrumbs";
|
|
42
|
+
// @import "foundation/components/keystrokes";
|
|
43
|
+
// @import "foundation/components/labels";
|
|
44
|
+
// @import "foundation/components/inline-lists";
|
|
45
|
+
// @import "foundation/components/pagination";
|
|
46
|
+
// @import "foundation/components/panels";
|
|
47
|
+
// @import "foundation/components/pricing-tables";
|
|
48
|
+
// @import "foundation/components/progress-bars";
|
|
49
|
+
// @import "foundation/components/side-nav";
|
|
50
|
+
// @import "foundation/components/sub-nav";
|
|
51
|
+
// @import "foundation/components/switch";
|
|
52
|
+
// @import "foundation/components/magellan";
|
|
53
|
+
// @import "foundation/components/tables";
|
|
54
|
+
// @import "foundation/components/thumbs";
|
|
55
|
+
// @import "foundation/components/tooltips";
|
|
56
|
+
// @import "foundation/components/dropdown";
|
|
57
|
+
|
|
58
|
+
// @import "roobeer/components/header";
|
|
59
|
+
// @import "roobeer/components/main";
|
|
60
|
+
// @import "roobeer/components/sidebar";
|
|
61
|
+
// @import "roobeer/components/footer";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* The organism for displaying the header content.
|
|
4
|
+
*
|
|
5
|
+
* @package WordPress
|
|
6
|
+
* @subpackage RootBeer
|
|
7
|
+
* @author JoshMedeski
|
|
8
|
+
* @framework Foundation
|
|
9
|
+
*/
|
|
10
|
+
?>
|
|
11
|
+
|
|
12
|
+
<form role="search" method="get" id="searchform" action="<?php echo home_url(); ?>">
|
|
13
|
+
<div class="row collapse">
|
|
14
|
+
<div class="small-8 columns">
|
|
15
|
+
<input type="text" value="<?php get_search_query(); ?>" name="s" id="s" placeholder="<?php echo esc_attr__('Search', 'rootbeer'); ?>" />
|
|
16
|
+
</div>
|
|
17
|
+
<div class="small-4 columns">
|
|
18
|
+
<input class="secondary button prefix" type="submit" id="searchsubmit" value="<?php echo esc_attr__('Search', 'rootbeer'); ?>" />
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</form>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* The page for displaying single pages.
|
|
4
|
+
*
|
|
5
|
+
* @package WordPress
|
|
6
|
+
* @subpackage RootBeer
|
|
7
|
+
* @author JoshMedeski
|
|
8
|
+
* @framework Foundation
|
|
9
|
+
*/
|
|
10
|
+
get_header(); while ( have_posts() ) : the_post(); ?>
|
|
11
|
+
|
|
12
|
+
<!-- Main Content -->
|
|
13
|
+
<div class="row">
|
|
14
|
+
<div class="large-8 columns main-content">
|
|
15
|
+
<hgroup>
|
|
16
|
+
<h1><?php the_title(); ?></h1>
|
|
17
|
+
<h6><?php the_time(get_option('date_format')); ?> by <?php the_author(); ?> in
|
|
18
|
+
<?php
|
|
19
|
+
$categories = get_the_category();
|
|
20
|
+
$separator = ' , ';
|
|
21
|
+
$output = '';
|
|
22
|
+
if($categories){
|
|
23
|
+
foreach($categories as $category) {
|
|
24
|
+
$output .= '<a href="'.get_category_link( $category->term_id ).'" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '">'.$category->cat_name.'</a>'.$separator;
|
|
25
|
+
}
|
|
26
|
+
echo trim($output, $separator);
|
|
27
|
+
} ?></h6>
|
|
28
|
+
</hgroup>
|
|
29
|
+
<p><?php the_post_thumbnail(); ?></p>
|
|
30
|
+
<?php the_content(); ?>
|
|
31
|
+
|
|
32
|
+
<hr>
|
|
33
|
+
|
|
34
|
+
<nav class="nav-single row">
|
|
35
|
+
<div class="nav-previous small-6 columns"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'twentytwelve' ) . '</span> %title' ); ?></div>
|
|
36
|
+
<div class="nav-next small-6 columns text-right"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'twentytwelve' ) . '</span>' ); ?></div>
|
|
37
|
+
</nav>
|
|
38
|
+
<hr>
|
|
39
|
+
<?php comments_template( '', true ); ?>
|
|
40
|
+
</div>
|
|
41
|
+
<?php endwhile; // end of the loop. ?>
|
|
42
|
+
|
|
43
|
+
<?php get_sidebar(); ?>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<?php get_footer(); ?>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Theme Name: Root Beer
|
|
3
|
+
Theme URI: http://joshmedeski.com/resources/rootbeer
|
|
4
|
+
Description: A WordPress framework with <a href="http://foundation.zurb.com">ZURB's Foundation</a>.
|
|
5
|
+
Author: Josh Medeski
|
|
6
|
+
Author URI: https://github.com/joshmedeski/rootbeer
|
|
7
|
+
License: MIT License
|
|
8
|
+
Version: 0.0.1
|
|
9
|
+
*/
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
description 'Foundation Compass Gem'
|
|
2
|
+
|
|
3
|
+
stylesheet '../../scss/normalize.scss', :to => '_normalize.scss'
|
|
4
|
+
stylesheet '../../scss/foundation/_variables.scss', :to => '_settings.scss'
|
|
5
|
+
|
|
6
|
+
def copy_js_from(relative_path, prefix_path, excludes=[])
|
|
7
|
+
absolute_path = File.join(File.dirname(__FILE__), relative_path, prefix_path)
|
|
8
|
+
js_files = Dir.glob("#{absolute_path}/*.js")
|
|
9
|
+
js_files.reject! {|f| excludes.include? File.basename(f)}
|
|
10
|
+
js_files.each do |js|
|
|
11
|
+
javascript "#{relative_path}/#{prefix_path}/#{File.basename(js)}",
|
|
12
|
+
:to => "#{prefix_path}/#{File.basename(js)}"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
javascripts = copy_js_from("../../js", "foundation", ["index.js"])
|
|
17
|
+
copy_js_from("../../js", "vendor")
|
|
18
|
+
|
|
19
|
+
html '../project/index.html', :erb => true, :javascripts => javascripts, :version => Foundation::VERSION, :to => 'upgrade.html'
|
|
20
|
+
|
|
21
|
+
help %Q{
|
|
22
|
+
|
|
23
|
+
If you need help, email us at foundation@zurb.com or visit foundation.zurb.com"
|
|
24
|
+
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
welcome_message %Q{
|
|
28
|
+
|
|
29
|
+
bundle exec compass install -r zurb-foundation foundation/upgrade
|
|
30
|
+
|
|
31
|
+
Your project assets have been upgraded, w00t! It's possible there have been additional customizable settings added to Foundation so you should check out http://foundation.zurb.com/docs/gem-install.php#settings.
|
|
32
|
+
|
|
33
|
+
}
|
metadata
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: rootbeer
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.2
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Josh Medeski
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
|
|
12
|
+
date: 2013-10-07 00:00:00 Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
15
|
+
name: bundler
|
|
16
|
+
prerelease: false
|
|
17
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
18
|
+
requirements:
|
|
19
|
+
- - ~>
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: "1.3"
|
|
22
|
+
type: :development
|
|
23
|
+
version_requirements: *id001
|
|
24
|
+
- !ruby/object:Gem::Dependency
|
|
25
|
+
name: rake
|
|
26
|
+
prerelease: false
|
|
27
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
|
28
|
+
requirements:
|
|
29
|
+
- &id003
|
|
30
|
+
- ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: "0"
|
|
33
|
+
type: :development
|
|
34
|
+
version_requirements: *id002
|
|
35
|
+
description: Rootbeer is a Wordpress Framework built with Zurb's Foundation, Compass, and Sass.
|
|
36
|
+
email:
|
|
37
|
+
- josh.medeski@gmail.com
|
|
38
|
+
executables: []
|
|
39
|
+
|
|
40
|
+
extensions: []
|
|
41
|
+
|
|
42
|
+
extra_rdoc_files: []
|
|
43
|
+
|
|
44
|
+
files:
|
|
45
|
+
- .gitignore
|
|
46
|
+
- Gemfile
|
|
47
|
+
- LICENSE
|
|
48
|
+
- Rakefile
|
|
49
|
+
- lib/rootbeer.rb
|
|
50
|
+
- lib/rootbeer/version.rb
|
|
51
|
+
- package.json
|
|
52
|
+
- readme.md
|
|
53
|
+
- rootbeer.gemspec
|
|
54
|
+
- scss/rootbeer.scss
|
|
55
|
+
- scss/rootbeer/_variables.scss
|
|
56
|
+
- scss/rootbeer/components/footer.scss
|
|
57
|
+
- scss/rootbeer/components/header.scss
|
|
58
|
+
- scss/rootbeer/components/main.scss
|
|
59
|
+
- scss/rootbeer/components/sidebar.scss
|
|
60
|
+
- scss/rootbeer/components/widgets-bottom.scss
|
|
61
|
+
- scss/rootbeer/editor-style.scss
|
|
62
|
+
- scss/rootbeer/login-style.scss
|
|
63
|
+
- templates/project/404.php
|
|
64
|
+
- templates/project/config.rb
|
|
65
|
+
- templates/project/content-page.php
|
|
66
|
+
- templates/project/content.php
|
|
67
|
+
- templates/project/favicon.ico
|
|
68
|
+
- templates/project/footer.php
|
|
69
|
+
- templates/project/functions.php
|
|
70
|
+
- templates/project/header.php
|
|
71
|
+
- templates/project/images/404.png
|
|
72
|
+
- templates/project/images/login.png
|
|
73
|
+
- templates/project/index.php
|
|
74
|
+
- templates/project/manifest.rb
|
|
75
|
+
- templates/project/page-landing.php
|
|
76
|
+
- templates/project/page.php
|
|
77
|
+
- templates/project/screenshot.png
|
|
78
|
+
- templates/project/scss/app.scss
|
|
79
|
+
- templates/project/searchform.php
|
|
80
|
+
- templates/project/sidebar.php
|
|
81
|
+
- templates/project/single.php
|
|
82
|
+
- templates/project/style.css
|
|
83
|
+
- templates/upgrade/manifest.rb
|
|
84
|
+
homepage: https://github.com/joshmedeski/foundation-rootbeer
|
|
85
|
+
licenses:
|
|
86
|
+
- MIT
|
|
87
|
+
metadata: {}
|
|
88
|
+
|
|
89
|
+
post_install_message:
|
|
90
|
+
rdoc_options: []
|
|
91
|
+
|
|
92
|
+
require_paths:
|
|
93
|
+
- lib
|
|
94
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
95
|
+
requirements:
|
|
96
|
+
- *id003
|
|
97
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
|
+
requirements:
|
|
99
|
+
- *id003
|
|
100
|
+
requirements: []
|
|
101
|
+
|
|
102
|
+
rubyforge_project:
|
|
103
|
+
rubygems_version: 2.1.5
|
|
104
|
+
signing_key:
|
|
105
|
+
specification_version: 4
|
|
106
|
+
summary: A Wordpress Foundation Framework
|
|
107
|
+
test_files: []
|
|
108
|
+
|