Skip to content

Commit

Permalink
Reverie 4
Browse files Browse the repository at this point in the history
  • Loading branch information
milohuang committed Mar 3, 2013
1 parent 2ef4297 commit 747e2c9
Show file tree
Hide file tree
Showing 101 changed files with 28,934 additions and 15,634 deletions.
17 changes: 10 additions & 7 deletions 404.php 100755 → 100644
@@ -1,10 +1,13 @@
<?php get_header(); ?>

<!-- Row for main content area -->
<div id="content" class="eight columns">
<!-- Row for main content area -->
<div class="small-12 large-8 columns" role="main">

<div class="post-box">
<h1><?php _e('File Not Found', 'reverie'); ?></h1>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<header>
<h1 class="entry-title"><?php _e('File Not Found', 'reverie'); ?></h1>
</header>
<div class="entry-content">
<div class="error">
<p class="bottom"><?php _e('The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.', 'reverie'); ?></p>
</div>
Expand All @@ -15,9 +18,9 @@
<li><?php _e('Click the <a href="javascript:history.back()">Back</a> button', 'reverie'); ?></li>
</ul>
</div>
</article>

</div><!-- End Content row -->

<?php get_sidebar(); ?>
</div>
<?php get_sidebar(); ?>

<?php get_footer(); ?>
20 changes: 20 additions & 0 deletions MIT-LICENSE.txt
@@ -0,0 +1,20 @@
Copyright (c) 2011 ZURB, http://www.zurb.com/

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 changes: 10 additions & 12 deletions README.markdown
Expand Up @@ -2,17 +2,12 @@ A Brief Introduction
====================
Reverie Framework is an extremely versatile HTML5 WordPress framework based on ZURB's [Foundation](http://foundation.zurb.com), a powerful tool for building prototypes on any kind of devices. Reverie follows [HTML5 Boilerplate](http://html5boilerplate.com) standard and is [hNews microformat](https://www.readability.com/publishers/guidelines) ready. It is optimized for Search Engine while at the same time improves readability.

It is extremely easy to create your blog, CMS, brochure and any other kind of sites with Reverie. You can see some [samples](http://foundation.zurb.com/prototyping.php) on ZURB and how they make these prototypes. Did I just mention Reverie works well with [bbPress 2.0](http://bbpress.org/) and [BuddyPress 1.5](http://buddypress.org/) even without styling?

###Support###

We created a group for lovers of Reverie and Foundation. If you have some topics related to customization or styling, you can post them on our [Google Group](https://groups.google.com/d/forum/reverie-framework). For issues specifically related to Reverie, post them on Github.
It is extremely easy to create your blog, CMS, brochure and any other kind of sites with Reverie. You can see some [samples](http://foundation.zurb.com/templates.php) on ZURB and how they make these prototypes. Did I just mention Reverie works well with [bbPress 2.0](http://bbpress.org/) and [BuddyPress 1.5](http://buddypress.org/)?

###Links of Reverie###
* Homepage: http://themefortress.com/reverie
* Introduction: http://themefortress.com/blog/reverie-versatile-html5-wordpress-framework-25
* Introduction: http://themefortress.com/reverie-versatile-html5-wordpress-framework/
* ThemeFortress: http://themefortress.com
* Discussion Group: https://groups.google.com/d/forum/reverie-framework

###Learn more about Foundation###
* Homepage: http://foundation.zurb.com
Expand All @@ -23,23 +18,28 @@ What are the Features?
======================
Reverie Framework inherits all the cool features from Foundation, and packs with several other interesting features to optimize the experience for WordPress and HTML5. Including customized output for WordPress menus and caption. You can view the features list by scrolling down.

Reverie utilizes Foundation's grid to implement layouts. It is quite easy to start building your own layouts (like this page). You can read Foundation's [documentation](http://foundation.zurb.com/docs/grid.php) for how to implement these cool features.
Reverie utilizes Foundation's grid to implement layouts. It is quite easy to start building your own layouts (like this page). You can read Foundation's [documentation](http://foundation.zurb.com/docs/) for how to implement these cool features.

###Basic Features###
* Sass compatible.
* Mobile first.
* HTML5 Boilerplate standard and is hNews microformat ready.
* Optimized for SEO.
* Basic CSS included, you can also use it as a finished theme.
* Foundation files are separate, you can update Foundation without any problems. Of course, is is always a good idea to have some backups.

###WordPress Features###
* Clean image HTML output for TinyMCE, only class and alt are returned. Post title will be automatically used for alt.
* Custom menu output for ZURB's [sub nav](http://www.zurb.com/blog_uploads/0000/0597/index.html).
* Post formats support.
* Pagination for Foundation
* Custom Background Image and Color support
* Custom menu output for ZURB's top bar.
* Custom caption output for HTML5 figure and figcaption tags.
* Custom filter for images, will automatically wrap images with figure tag.
* Two Widget: sidebar and footer.
* Two menus: top navigation menu and footer information menu.
* Template structure inspired by [Roots](http://www.rootstheme.com/). Separated loops from templates, for better WordPress practice.
* bbPress.php included, compatible with bbPress 2.0. Looks good even without styling. Visit ThemeFortress forum for * example.
* bbPress.php included, compatible with bbPress 2.
* Several custom page templates are included in the package. A folder named custom is used for storing all your custom page templates. You can share your custom templates in the forum.
* Looks good but what if you don't need these features? Sure, you can turn them off.

Expand All @@ -50,8 +50,6 @@ What about Mobile Devices?
==========================
Positive. With the power of Foundation, Reverie uses media query to adjust for all kinds of devices, including phones, tablets and computers. Reverie is also optimized for iPhone and iPad. Icons and loading images will be display when you save your website as a Home Screen app (example in the above image). Add this page to Home Screen on any iOS devices to see what I mean.

You can resize this page to see how Reverie responses according to different browser resolutions. Furthermore, to extend the flexibility of Reverie, I have a [forum](http://themefortress.com/discuss/forum/reverietheme/) specifically for users to contribute their own layouts and exchanges ideas.

ThemeFortress
=============
Reverie is a WordPress framework created by [ThemeFortress](http://themefortress.com), a WordPress blog that focus on theme design and plugins.
Expand Down
43 changes: 23 additions & 20 deletions archive.php 100755 → 100644
@@ -1,26 +1,29 @@
<?php get_header(); ?>

<!-- Row for main content area -->
<div id="content" class="eight columns">
<!-- Row for main content area -->
<div class="small-12 large-8 columns" role="main">

<div class="post-box">
<h1>
<?php if (is_day()) : ?>
<?php printf(__('Daily Archives: %s', 'reverie'), get_the_date()); ?>
<?php elseif (is_month()) : ?>
<?php printf(__('Monthly Archives: %s', 'reverie'), get_the_date('F Y')); ?>
<?php elseif (is_year()) : ?>
<?php printf(__('Yearly Archives: %s', 'reverie'), get_the_date('Y')); ?>
<?php else : ?>
<?php single_cat_title(); ?>
<?php endif; ?>
</h1>
<hr>
<?php get_template_part('loop', 'category'); ?>
</div>

</div><!-- End Content row -->
<?php if ( have_posts() ) : ?>

<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>

<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>

<?php get_sidebar(); ?>
<?php endif; // end have_posts() check ?>

<?php /* Display navigation to next/previous pages when applicable */ ?>
<?php if ( function_exists('reverie_pagination') ) { reverie_pagination(); } else if ( is_paged() ) { ?>
<nav id="post-nav">
<div class="post-previous"><?php next_posts_link( __( '&larr; Older posts', 'reverie' ) ); ?></div>
<div class="post-next"><?php previous_posts_link( __( 'Newer posts &rarr;', 'reverie' ) ); ?></div>
</nav>
<?php } ?>

</div>
<?php get_sidebar(); ?>

<?php get_footer(); ?>
24 changes: 18 additions & 6 deletions bbpress.php 100755 → 100644
@@ -1,12 +1,24 @@
<?php get_header(); ?>
<?php
/*
Default Template For bbPress
*/
get_header(); ?>

<!-- Row for main content area -->
<div id="content" class="twelve columns">
<!-- Row for main content area -->
<div class="small-12 large-12 columns" role="main">

<div class="post-box">
<?php get_template_part('loop', 'page'); ?>
<?php /* Start loop */ ?>
<?php while (have_posts()) : the_post(); ?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<header>
<h1 class="entry-title"><?php the_title(); ?></h1>
</header>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<?php endwhile; // End the loop ?>

</div><!-- End Content row -->
</div>

<?php get_footer(); ?>
19 changes: 10 additions & 9 deletions comments.php 100755 → 100644
Expand Up @@ -2,11 +2,13 @@
$GLOBALS['comment'] = $comment; ?>
<li <?php comment_class(); ?>>
<article id="comment-<?php comment_ID(); ?>">
<header class="comment-author vcard">
<?php echo get_avatar($comment,$size='40'); ?>
<?php printf(__('<cite class="fn">%s</cite>', 'reverie'), get_comment_author_link()) ?>
<time datetime="<?php echo comment_date('c') ?>"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s', 'reverie'), get_comment_date(), get_comment_time()) ?></a></time>
<?php edit_comment_link(__('(Edit)', 'reverie'), '', '') ?>
<header class="comment-author">
<?php echo get_avatar($comment,$size='48'); ?>
<div class="author-meta">
<?php printf(__('<cite class="fn">%s</cite>', 'reverie'), get_comment_author_link()) ?>
<time datetime="<?php echo comment_date('c') ?>"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s', 'reverie'), get_comment_date(), get_comment_time()) ?></a></time>
<?php edit_comment_link(__('(Edit)', 'reverie'), '', '') ?>
</div>
</header>

<?php if ($comment->comment_approved == '0') : ?>
Expand All @@ -17,10 +19,9 @@

<section class="comment">
<?php comment_text() ?>
<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
</section>

<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>


</article>
<?php } ?>

Expand Down Expand Up @@ -93,7 +94,7 @@
<textarea name="comment" id="comment" tabindex="4"></textarea>
</p>
<p id="allowed_tags" class="small"><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></p>
<p><input name="submit" class="radius large button" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment', 'reverie'); ?>"></p>
<p><input name="submit" class="button" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment', 'reverie'); ?>"></p>
<?php comment_id_fields(); ?>
<?php do_action('comment_form', $post->ID); ?>
</form>
Expand Down
26 changes: 26 additions & 0 deletions config.rb
@@ -0,0 +1,26 @@
require 'zurb-foundation'
# Require any additional compass plugins here.


# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "scss"
images_dir = "img"
javascripts_dir = "js"

# You can select your preferred output style here (can be overridden via the command line):
# output_style = :expanded or :nested or :compact or :compressed

# To enable relative paths to assets via compass helper functions. Uncomment:
# relative_assets = true

# To disable debugging comments that display the original location of your selectors. Uncomment:
line_comments = false


# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
# preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
18 changes: 18 additions & 0 deletions content-none.php
@@ -0,0 +1,18 @@
<?php
/**
* The template for displaying a "No posts found" message.
*
* @subpackage Reverie
* @since Reverie 4.0
*/
?>

<article id="post-0" class="post no-results not-found">
<header>
<h2><?php _e( 'Nothing Found', 'reverie' ); ?></h2>
</header>
<div class="entry-content">
<p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'reverie' ); ?></p>
</div>
<hr />
</article>
22 changes: 22 additions & 0 deletions content.php
@@ -0,0 +1,22 @@
<?php
/**
* The default template for displaying content. Used for both single and index/archive/search.
*
* @subpackage Reverie
* @since Reverie 4.0
*/
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php reverie_entry_meta(); ?>
</header>
<div class="entry-content">
<?php the_content('Continue reading...'); ?>
</div>
<footer>
<?php $tag = get_the_tags(); if (!$tag) { } else { ?><p><?php the_tags(); ?></p><?php } ?>
</footer>
<hr />
</article>

0 comments on commit 747e2c9

Please sign in to comment.