Permalink
Browse files

Reverie 4

  • Loading branch information...
1 parent 2ef4297 commit 747e2c9e796a03fd7574b022ce924e540966ecf0 @milohuang committed Mar 3, 2013
Showing with 28,934 additions and 15,634 deletions.
  1. +10 −7 404.php
  2. +20 −0 MIT-LICENSE.txt
  3. +10 −12 README.markdown
  4. +23 −20 archive.php
  5. +18 −6 bbpress.php
  6. +10 −9 comments.php
  7. +26 −0 config.rb
  8. +18 −0 content-none.php
  9. +22 −0 content.php
  10. +4,161 −17 css/app.css
  11. +3,398 −1,202 css/foundation.css
  12. +1 −1 css/foundation.min.css
  13. 0 css/ie.css
  14. +368 −0 css/normalize.css
  15. +0 −53 css/offcanvas.css
  16. +4,676 −0 css/style.css
  17. +0 −18 custom/page-custom.php
  18. +0 −1 custom/readme.txt
  19. 0 favicon.png
  20. +19 −41 footer.php
  21. +59 −362 functions.php
  22. +49 −38 header.php
  23. 0 humans.txt
  24. +0 −4 images/devices/readme.txt
  25. BIN images/divider.png
  26. BIN images/foundation/orbit/bullets.jpg
  27. BIN images/foundation/orbit/left-arrow-small.png
  28. BIN images/foundation/orbit/left-arrow.png
  29. BIN images/foundation/orbit/loading.gif
  30. BIN images/foundation/orbit/mask-black.png
  31. BIN images/foundation/orbit/pause-black.png
  32. BIN images/foundation/orbit/right-arrow-small.png
  33. BIN images/foundation/orbit/right-arrow.png
  34. BIN images/foundation/orbit/rotator-black.png
  35. BIN images/foundation/orbit/timer-black.png
  36. +1 −0 img/devices/readme.txt
  37. 0 {images → img}/devices/reverie-icon-ipad.png
  38. 0 {images → img}/devices/reverie-icon-retina.png
  39. 0 {images → img}/devices/reverie-icon.png
  40. 0 {images → img}/devices/reverie-load-ipad-landscape.png
  41. 0 {images → img}/devices/reverie-load-ipad-portrait.png
  42. 0 {images → img}/devices/reverie-load.png
  43. +23 −8 index.php
  44. +0 −38 js/app.js
  45. +4 −92 js/foundation.min.js
  46. +50 −0 js/foundation/foundation.alerts.js
  47. +478 −0 js/foundation/foundation.clearing.js
  48. +74 −0 js/foundation/foundation.cookie.js
  49. +122 −0 js/foundation/foundation.dropdown.js
  50. +403 −0 js/foundation/foundation.forms.js
  51. +613 −0 js/foundation/foundation.joyride.js
  52. +331 −0 js/foundation/foundation.js
  53. +130 −0 js/foundation/foundation.magellan.js
  54. +355 −0 js/foundation/foundation.orbit.js
  55. +4 −2 js/{jquery.placeholder.js → foundation/foundation.placeholder.js}
  56. +264 −0 js/foundation/foundation.reveal.js
  57. +180 −0 js/foundation/foundation.section.js
  58. +195 −0 js/foundation/foundation.tooltips.js
  59. +187 −0 js/foundation/foundation.topbar.js
  60. +0 −34 js/jquery.foundation.accordion.js
  61. +0 −20 js/jquery.foundation.alerts.js
  62. +0 −74 js/jquery.foundation.buttons.js
  63. +0 −468 js/jquery.foundation.clearing.js
  64. +0 −486 js/jquery.foundation.forms.js
  65. +0 −639 js/jquery.foundation.joyride.js
  66. +0 −85 js/jquery.foundation.magellan.js
  67. +0 −27 js/jquery.foundation.mediaQueryToggle.js
  68. +0 −55 js/jquery.foundation.navigation.js
  69. +0 −897 js/jquery.foundation.orbit.js
  70. +0 −794 js/jquery.foundation.reveal.js
  71. +0 −43 js/jquery.foundation.tabs.js
  72. +0 −193 js/jquery.foundation.tooltips.js
  73. +0 −152 js/jquery.foundation.topbar.js
  74. +0 −9,440 js/jquery.js
  75. +0 −50 js/jquery.offcanvas.js
  76. +1 −1 js/{modernizr.foundation.js → vendor/custom.modernizr.js}
  77. +9,597 −0 js/vendor/jquery.js
  78. +1,782 −0 js/vendor/zepto.js
  79. +226 −0 lib/clean.php
  80. +23 −0 lib/enqueue-css.php
  81. +13 −0 lib/enqueue-sass.php
  82. +174 −0 lib/foundation.php
  83. +44 −0 lib/presstrends.php
  84. +0 −6 loop-page.php
  85. +0 −33 loop-search.php
  86. +0 −17 loop-single.php
  87. +0 −36 loop.php
  88. +19 −5 page-full.php
  89. +20 −7 page.php
  90. 0 readme.txt
  91. 0 robots.txt
  92. 0 screenshot.png
  93. +6 −0 scss/_settings.scss
  94. +45 −0 scss/app.scss
  95. +396 −0 scss/normalize.scss
  96. +95 −0 scss/style.scss
  97. +25 −9 search.php
  98. +6 −12 searchform.php
  99. +2 −4 sidebar.php
  100. +20 −7 single.php
  101. +138 −109 style.css
View
17 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>
@@ -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(); ?>
View
20 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.
View
22 README.markdown
@@ -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
@@ -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.
@@ -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.
View
43 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(); ?>
View
24 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(); ?>
View
19 comments.php 100755 → 100644
@@ -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') : ?>
@@ -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 } ?>
@@ -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>
View
26 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
View
18 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>
View
22 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>
View
4,178 css/app.css
4,161 additions, 17 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
4,600 css/foundation.css
3,398 additions, 1,202 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
2 css/foundation.min.css
1 addition, 1 deletion not shown because the diff is too large. Please use a local Git client to view these changes.
View
0 css/ie.css 100755 → 100644
File mode changed.
View
368 css/normalize.css
@@ -0,0 +1,368 @@
+/* normalize.css v2.1.0 | MIT License | git.io/normalize */
+/* ==========================================================================
+ HTML5 display definitions
+ ========================================================================== */
+/**
+ * Correct `block` display not defined in IE 8/9.
+ */
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+hgroup,
+main,
+nav,
+section,
+summary {
+ display: block;
+}
+
+/**
+ * Correct `inline-block` display not defined in IE 8/9.
+ */
+audio,
+canvas,
+video {
+ display: inline-block;
+}
+
+/**
+ * Prevent modern browsers from displaying `audio` without controls.
+ * Remove excess height in iOS 5 devices.
+ */
+audio:not([controls]) {
+ display: none;
+ height: 0;
+}
+
+/**
+ * Address styling not present in IE 8/9.
+ */
+[hidden] {
+ display: none;
+}
+
+/* ==========================================================================
+ Base
+ ========================================================================== */
+/**
+ * 1. Set default font family to sans-serif.
+ * 2. Prevent iOS text size adjust after orientation change, without disabling
+ * user zoom.
+ */
+html {
+ font-family: sans-serif;
+ /* 1 */
+ -webkit-text-size-adjust: 100%;
+ /* 2 */
+ -ms-text-size-adjust: 100%;
+ /* 2 */
+}
+
+/**
+ * Remove default margin.
+ */
+body {
+ margin: 0;
+}
+
+/* ==========================================================================
+ Links
+ ========================================================================== */
+/**
+ * Address `outline` inconsistency between Chrome and other browsers.
+ */
+a:focus {
+ outline: thin dotted;
+}
+
+/**
+ * Improve readability when focused and also mouse hovered in all browsers.
+ */
+a:active,
+a:hover {
+ outline: 0;
+}
+
+/* ==========================================================================
+ Typography
+ ========================================================================== */
+/**
+ * Address variable `h1` font-size and margin within `section` and `article`
+ * contexts in Firefox 4+, Safari 5, and Chrome.
+ */
+h1 {
+ font-size: 2em;
+ margin: 0.67em 0;
+}
+
+/**
+ * Address styling not present in IE 8/9, Safari 5, and Chrome.
+ */
+abbr[title] {
+ border-bottom: 1px dotted;
+}
+
+/**
+ * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
+ */
+b,
+strong {
+ font-weight: bold;
+}
+
+/**
+ * Address styling not present in Safari 5 and Chrome.
+ */
+dfn {
+ font-style: italic;
+}
+
+/**
+ * Address differences between Firefox and other browsers.
+ */
+hr {
+ -moz-box-sizing: content-box;
+ box-sizing: content-box;
+ height: 0;
+}
+
+/**
+ * Address styling not present in IE 8/9.
+ */
+mark {
+ background: #ff0;
+ color: #000;
+}
+
+/**
+ * Correct font family set oddly in Safari 5 and Chrome.
+ */
+code,
+kbd,
+pre,
+samp {
+ font-family: monospace, serif;
+ font-size: 1em;
+}
+
+/**
+ * Improve readability of pre-formatted text in all browsers.
+ */
+pre {
+ white-space: pre-wrap;
+}
+
+/**
+ * Set consistent quote types.
+ */
+q {
+ quotes: "\201C" "\201D" "\2018" "\2019";
+}
+
+/**
+ * Address inconsistent and variable font size in all browsers.
+ */
+small {
+ font-size: 80%;
+}
+
+/**
+ * Prevent `sub` and `sup` affecting `line-height` in all browsers.
+ */
+sub,
+sup {
+ font-size: 75%;
+ line-height: 0;
+ position: relative;
+ vertical-align: baseline;
+}
+
+sup {
+ top: -0.5em;
+}
+
+sub {
+ bottom: -0.25em;
+}
+
+/* ==========================================================================
+ Embedded content
+ ========================================================================== */
+/**
+ * Remove border when inside `a` element in IE 8/9.
+ */
+img {
+ border: 0;
+}
+
+/**
+ * Correct overflow displayed oddly in IE 9.
+ */
+svg:not(:root) {
+ overflow: hidden;
+}
+
+/* ==========================================================================
+ Figures
+ ========================================================================== */
+/**
+ * Address margin not present in IE 8/9 and Safari 5.
+ */
+figure {
+ margin: 0;
+}
+
+/* ==========================================================================
+ Forms
+ ========================================================================== */
+/**
+ * Define consistent border, margin, and padding.
+ */
+fieldset {
+ border: 1px solid silver;
+ margin: 0 2px;
+ padding: 0.35em 0.625em 0.75em;
+}
+
+/**
+ * 1. Correct `color` not being inherited in IE 8/9.
+ * 2. Remove padding so people aren't caught out if they zero out fieldsets.
+ */
+legend {
+ border: 0;
+ /* 1 */
+ padding: 0;
+ /* 2 */
+}
+
+/**
+ * 1. Correct font family not being inherited in all browsers.
+ * 2. Correct font size not being inherited in all browsers.
+ * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
+ */
+button,
+input,
+select,
+textarea {
+ font-family: inherit;
+ /* 1 */
+ font-size: 100%;
+ /* 2 */
+ margin: 0;
+ /* 3 */
+}
+
+/**
+ * Address Firefox 4+ setting `line-height` on `input` using `!important` in
+ * the UA stylesheet.
+ */
+button,
+input {
+ line-height: normal;
+}
+
+/**
+ * Address inconsistent `text-transform` inheritance for `button` and `select`.
+ * All other form control elements do not inherit `text-transform` values.
+ * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
+ * Correct `select` style inheritance in Firefox 4+ and Opera.
+ */
+button,
+select {
+ text-transform: none;
+}
+
+/**
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
+ * and `video` controls.
+ * 2. Correct inability to style clickable `input` types in iOS.
+ * 3. Improve usability and consistency of cursor style between image-type
+ * `input` and others.
+ */
+button,
+html input[type="button"],
+input[type="reset"],
+input[type="submit"] {
+ -webkit-appearance: button;
+ /* 2 */
+ cursor: pointer;
+ /* 3 */
+}
+
+/**
+ * Re-set default cursor for disabled elements.
+ */
+button[disabled],
+html input[disabled] {
+ cursor: default;
+}
+
+/**
+ * 1. Address box sizing set to `content-box` in IE 8/9.
+ * 2. Remove excess padding in IE 8/9.
+ */
+input[type="checkbox"],
+input[type="radio"] {
+ box-sizing: border-box;
+ /* 1 */
+ padding: 0;
+ /* 2 */
+}
+
+/**
+ * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
+ * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
+ * (include `-moz` to future-proof).
+ */
+input[type="search"] {
+ -webkit-appearance: textfield;
+ /* 1 */
+ -moz-box-sizing: content-box;
+ -webkit-box-sizing: content-box;
+ /* 2 */
+ box-sizing: content-box;
+}
+
+/**
+ * Remove inner padding and search cancel button in Safari 5 and Chrome
+ * on OS X.
+ */
+input[type="search"]::-webkit-search-cancel-button,
+input[type="search"]::-webkit-search-decoration {
+ -webkit-appearance: none;
+}
+
+/**
+ * Remove inner padding and border in Firefox 4+.
+ */
+button::-moz-focus-inner,
+input::-moz-focus-inner {
+ border: 0;
+ padding: 0;
+}
+
+/**
+ * 1. Remove default vertical scrollbar in IE 8/9.
+ * 2. Improve readability and alignment in all browsers.
+ */
+textarea {
+ overflow: auto;
+ /* 1 */
+ vertical-align: top;
+ /* 2 */
+}
+
+/* ==========================================================================
+ Tables
+ ========================================================================== */
+/**
+ * Remove most spacing between table cells.
+ */
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
View
53 css/offcanvas.css
@@ -1,53 +0,0 @@
-@charset "UTF-8";
-/* Foundation 3, artfully masterminded by ZURB Addition offcanvas.css - Specific CSS for off-canvas layouts Off canvas layout CSS/JS provided by or adapted from work by Jason Weaver and Luke Wroblewski
- Requires: globals.css grid.css
-*/
-body.off-canvas { padding: 0; margin: 0; }
-
-.container { width: 100%; }
-
-.row { overflow: hidden; }
-
-.row .row { overflow: visible; }
-
-footer { background: #555; color: #fff; padding: 10px 0; }
-
-.paneled .container { overflow: hidden; }
-
-.paneled .row { width: 100%; }
-
-[role="main"]:before { content: " "; position: absolute; z-index: -1; top: 0; left: -100%; width: 100%; height: 100%; background: #e4e4e4; -webkit-box-shadow: inset -3px 0px 6px 0px rgba(0, 0, 0, 0.15); -moz-box-shadow: inset -3px 0px 6px 0px rgba(0, 0, 0, 0.15); box-shadow: inset -3px 0px 6px 0px rgba(0, 0, 0, 0.15); }
-
-[role="complementary"], [role="main"] { width: 100%; padding: 0 15px; display: block; position: relative; z-index: 1; -webkit-transition: 0.25s all ease-in; -moz-transition: 0.25s all ease-in; -ms-transition: 0.25s all ease-in; -o-transition: 0.25s all ease-in; transition: 0.25s all ease-in; }
-
-.paneled [role="main"] { padding: 0; }
-
-.page-panel { width: 100%; padding: 0 15px; -webkit-transition: 0.3s margin ease-in-out; -moz-transition: 0.3s margin ease-in-out; -ms-transition: 0.3s margin ease-in-out; -o-transition: 0.3s margin ease-in-out; transition: 0.3s margin ease-in-out; background: #fff; }
-
-#switchPanels { margin: 0 -15px; }
-
-.hide-extras [role="complementary"] { display: block; }
-
-[role="navigation"]#topMenu { -webkit-transition: 0.25s all ease-in; -moz-transition: 0.25s all ease-in; -ms-transition: 0.25s all ease-in; -o-transition: 0.25s all ease-in; transition: 0.25s all ease-in; }
-
-[role="navigation"]#topMenu ul { margin-top: 0; }
-
-.js [role="complementary"] { margin-left: -100%; width: 80%; float: left; z-index: 2; }
-.js [role="main"] { margin-left: 0; background: #f4f4f4; -webkit-border-radius: 3px; -moz-border-radius: 3px; -ms-border-radius: 3px; -o-border-radius: 3px; border-radius: 3px; float: right; z-index: 1; position: relative; }
-.js .paneled [role="main"] { background: #fff; width: 500%; overflow: hidden; float: none; position: relative; left: 0; -webkit-transition: 0.15s all ease-in; -moz-transition: 0.15s all ease-in; -ms-transition: 0.15s all ease-in; -o-transition: 0.15s all ease-in; transition: 0.15s all ease-in; }
-.js .page-panel { min-height: 400px; float: left; margin: 0; width: 20%; }
-
-.active [role="complementary"] { margin-left: 0; }
-
-.active [role="main"] { margin-right: -80%; }
-
-.active-menu [role="navigation"]#topMenu { margin-top: 0 !important; }
-
-@media all and (min-width: 768px) { .js menu-button, .js .sidebar-button { display: none; }
- .js [role="complementary"] { width: 33.34%; margin-left: 0; float: left; padding: 0 15px; }
- .js [role="main"] { width: 66.66%; padding: 0 15px; }
- .js .paneled [role="main"] { width: 100%; padding: 0; background: #f4f4f4; left: 0 !important; }
- .js .page-panel { display: block; min-height: 800px; float: none; margin: 0; width: 100%; background: #f4f4f4; }
- .js .hide-extras [role="main"] { width: 100%; }
- .js .hide-extras [role="complementary"] { display: none; }
- .js [role="navigation"]#topMenu { display: none; } }
View
4,676 css/style.css
4,676 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
18 custom/page-custom.php
@@ -1,18 +0,0 @@
-<?php
-/*
-Template Name: Custom Template
-*/
-get_header(); ?>
-
- <!-- Row for main content area -->
- <div id="content" class="eight columns">
-
- <div class="post-box">
- <?php get_template_part('loop', 'page'); ?>
- </div>
-
- </div><!-- End Content row -->
-
- <?php get_sidebar(); ?>
-
-<?php get_footer(); ?>
View
1 custom/readme.txt
@@ -1 +0,0 @@
-Move the template files to the root directory of Reverie Framework to use.
View
0 favicon.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
60 footer.php 100755 → 100644
@@ -1,46 +1,24 @@
- </section><!-- End Main Section -->
+</section><!-- Container End -->
- <section id="sidebar-off" role="complementary">
- <nav id="sideMenu" role="navigation">
- <?php
- wp_nav_menu( array(
- 'theme_location' => 'primary',
- 'depth' => 2,
- 'items_wrap' => '<ul class="nav-bar">%3$s</ul>',
- 'fallback_cb' => 'reverie_menu_fallback', // workaround to show a message to set up a menu
- 'walker' => new reverie_walker()
- ) );
- ?>
- </nav>
- </section>
-
- </div><!-- End Off-Canvas Row -->
-
- <footer id="content-info" role="contentinfo">
- <div class="row">
- <?php dynamic_sidebar("Footer"); ?>
- </div>
- <div class="row">
- <div class="four columns">
- &copy; 2008-<?php echo date('Y'); ?> All rights reserved.
- <br>
- Powered by <a href="http://themefortress.com/reverie/" rel="nofollow" title="Reverie Framework">Reverie Framework</a>.
- </div>
- <div class="eight columns">
- <?php wp_nav_menu(array('theme_location' => 'utility', 'container' => false, 'menu_class' => 'inline-list right')); ?>
- </div>
- </div>
- </footer>
-
- </div><!-- Container End -->
+<div class="row full-width">
+ <?php dynamic_sidebar("Footer"); ?>
+</div>
+
+<footer class="row full-width" role="contentinfo">
+ <div class="small-12 large-4 columns">
+ <p>&copy; <?php echo date('Y'); ?>. Crafted on <a href="http://themefortress.com/reverie/" rel="nofollow" title="Reverie Framework">Reverie</a>.</p>
+ </div>
- <!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
- chromium.org/developers/how-tos/chrome-frame-getting-started -->
- <!--[if lt IE 7]>
- <script defer src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
- <script defer>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
- <![endif]-->
+ <div class="small-12 large-8 columns">
+ <?php wp_nav_menu(array('theme_location' => 'utility', 'container' => false, 'menu_class' => 'inline-list right')); ?>
+ </div>
+</footer>
+
+<?php wp_footer(); ?>
+
+<script>
+ $(document).foundation();
+</script>
- <?php wp_footer(); ?>
</body>
</html>
View
421 functions.php 100755 → 100644
@@ -1,12 +1,52 @@
<?php
-function reverie_setup() {
- // Add language supports. Please note that Reverie Framework does not include language files.
+/*
+Author: Zhen Huang
+URL: http://themefortress.com/
+
+This place is much cleaner. Put your theme specific codes here,
+anything else you may wan to use plugins to keep things tidy.
+
+*/
+
+/*
+1. lib/clean.php
+ - head cleanup
+ - post and images related cleaning
+*/
+require_once('lib/clean.php'); // do all the cleaning and enqueue here
+/*
+2. lib/enqueue-sass.php or enqueue-css.php
+ - enqueueing scripts & styles for Sass OR CSS
+ - please use either Sass OR CSS, having two enabled will ruin your weekend
+*/
+require_once('lib/enqueue-sass.php'); // do all the cleaning and enqueue if you Sass to customize Reverie
+//require_once('lib/enqueue-css.php'); // to use CSS for customization, uncomment this line and comment the above Sass line
+/*
+3. lib/foundation.php
+ - add pagination
+ - custom walker for top-bar and related
+*/
+require_once('lib/foundation.php'); // load Foundation specific functions like top-bar
+/*
+4. lib/presstrends.php
+ - add PressTrends, tracks how many people are using Reverie
+*/
+require_once('lib/presstrends.php'); // load PressTrends to track the usage of Reverie across the web, comment this line if you don't want to be tracked
+
+/**********************
+Add theme supports
+**********************/
+function reverie_theme_support() {
+ // Add language supports. Please note that Reverie does not include language files, not yet
load_theme_textdomain('reverie', get_template_directory() . '/lang');
// Add post thumbnail supports. http://codex.wordpress.org/Post_Thumbnails
add_theme_support('post-thumbnails');
// set_post_thumbnail_size(150, 150, false);
+ // rss thingy
+ add_theme_support('automatic-feed-links');
+
// Add post formarts supports. http://codex.wordpress.org/Post_Formats
add_theme_support('post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat'));
@@ -15,81 +55,26 @@ function reverie_setup() {
register_nav_menus(array(
'primary' => __('Primary Navigation', 'reverie'),
'utility' => __('Utility Navigation', 'reverie')
- ));
-}
-add_action('after_setup_theme', 'reverie_setup');
-
-// Enqueue for header and footer, thanks to flickapix on Github.
-// Enqueue css files
-function reverie_css() {
- if ( !is_admin() ) {
-
- wp_register_style( 'foundation',get_template_directory_uri() . '/css/foundation.css', false );
- wp_enqueue_style( 'foundation' );
-
- wp_register_style( 'app',get_template_directory_uri() . '/css/app.css', false );
- wp_enqueue_style( 'app' );
-
- wp_register_style( 'offcanvas',get_template_directory_uri() . '/css/offcanvas.css', false );
- wp_enqueue_style( 'offcanvas' );
-
- // Load style.css to allow contents overwrite foundation & app css
- wp_register_style( 'style',get_template_directory_uri() . '/style.css', false );
- wp_enqueue_style( 'style' );
-
- wp_register_style( 'google_font',"http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,400,300", false );
- wp_enqueue_style( 'google_font' );
-
- }
-}
-add_action( 'init', 'reverie_css' );
-
-function reverie_ie_css () {
- echo '<!--[if lt IE 9]>';
- echo '<link rel="stylesheet" href="'. get_template_directory_uri().'/css/ie.css">';
- echo '<![endif]-->';
-}
-add_action( 'wp_head', 'reverie_ie_css' );
-
-// Enqueue js files
-function reverie_scripts() {
-
-global $is_IE;
-
- if ( !is_admin() ) {
-
- // Enqueue to header
- wp_register_script( 'modernizr', get_template_directory_uri() . '/js/modernizr.foundation.js', array( 'jquery' ) );
- wp_enqueue_script( 'modernizr' );
-
- // Enqueue to footer
- wp_register_script( 'foundation', get_template_directory_uri() . '/js/foundation.min.js', array( 'jquery' ), false, true );
- wp_enqueue_script( 'foundation' );
-
- wp_register_script( 'offcanvas', get_template_directory_uri() . '/js/jquery.offcanvas.js', array( 'jquery' ), false, true );
- wp_enqueue_script( 'offcanvas' );
-
- wp_register_script( 'app', get_template_directory_uri() . '/js/app.js', array( 'jquery' ), false, true );
- wp_enqueue_script( 'app' );
-
-
- if ($is_IE) {
- wp_register_script ( 'html5shiv', "http://html5shiv.googlecode.com/svn/trunk/html5.js" , false, true);
- wp_enqueue_script ( 'html5shiv' );
- }
-
- // Enable threaded comments
- if ( (!is_admin()) && is_singular() && comments_open() && get_option('thread_comments') )
- wp_enqueue_script('comment-reply');
- }
+ ));
+
+ // Add custom background support
+ add_theme_support( 'custom-background',
+ array(
+ 'default-image' => '', // background image default
+ 'default-color' => '', // background color default (dont add the #)
+ 'wp-head-callback' => '_custom_background_cb',
+ 'admin-head-callback' => '',
+ 'admin-preview-callback' => ''
+ )
+ );
}
-add_action( 'init', 'reverie_scripts' );
+add_action('after_setup_theme', 'reverie_theme_support'); /* end Reverie theme support */
// create widget areas: sidebar, footer
$sidebars = array('Sidebar');
foreach ($sidebars as $sidebar) {
register_sidebar(array('name'=> $sidebar,
- 'before_widget' => '<article id="%1$s" class="row widget %2$s"><div class="sidebar-section twelve columns">',
+ 'before_widget' => '<article id="%1$s" class="row widget %2$s"><div class="small-12 columns">',
'after_widget' => '</div></article>',
'before_title' => '<h6><strong>',
'after_title' => '</strong></h6>'
@@ -98,8 +83,8 @@ function reverie_scripts() {
$sidebars = array('Footer');
foreach ($sidebars as $sidebar) {
register_sidebar(array('name'=> $sidebar,
- 'before_widget' => '<article id="%1$s" class="four columns widget %2$s"><div class="footer-section">',
- 'after_widget' => '</div></article>',
+ 'before_widget' => '<article id="%1$s" class="large-4 columns widget %2$s">',
+ 'after_widget' => '</article>',
'before_title' => '<h6><strong>',
'after_title' => '</strong></h6>'
));
@@ -108,294 +93,6 @@ function reverie_scripts() {
// return entry meta information for posts, used by multiple loops.
function reverie_entry_meta() {
echo '<time class="updated" datetime="'. get_the_time('c') .'" pubdate>'. sprintf(__('Posted on %s at %s.', 'reverie'), get_the_time('l, F jS, Y'), get_the_time()) .'</time>';
- echo '<p class="byline author vcard">'. __('Written by', 'reverie') .' <a href="'. get_author_posts_url(get_the_author_meta('ID')) .'" rel="author" class="fn">'. get_the_author() .'</a></p>';
-}
-
-/* Customized the output of caption, you can remove the filter to restore back to the WP default output. Courtesy of DevPress. http://devpress.com/blog/captions-in-wordpress/ */
-add_filter( 'img_caption_shortcode', 'cleaner_caption', 10, 3 );
-
-function cleaner_caption( $output, $attr, $content ) {
-
- /* We're not worried abut captions in feeds, so just return the output here. */
- if ( is_feed() )
- return $output;
-
- /* Set up the default arguments. */
- $defaults = array(
- 'id' => '',
- 'align' => 'alignnone',
- 'width' => '',
- 'caption' => ''
- );
-
- /* Merge the defaults with user input. */
- $attr = shortcode_atts( $defaults, $attr );
-
- /* If the width is less than 1 or there is no caption, return the content wrapped between the [caption]< tags. */
- if ( 1 > $attr['width'] || empty( $attr['caption'] ) )
- return $content;
-
- /* Set up the attributes for the caption <div>. */
- $attributes = ' class="figure ' . esc_attr( $attr['align'] ) . '"';
-
- /* Open the caption <div>. */
- $output = '<figure' . $attributes .'>';
-
- /* Allow shortcodes for the content the caption was created for. */
- $output .= do_shortcode( $content );
-
- /* Append the caption text. */
- $output .= '<figcaption>' . $attr['caption'] . '</figcaption>';
-
- /* Close the caption </div>. */
- $output .= '</figure>';
-
- /* Return the formatted, clean caption. */
- return $output;
-}
-
-// Clean the output of attributes of images in editor. Courtesy of SitePoint. http://www.sitepoint.com/wordpress-change-img-tag-html/
-function image_tag_class($class, $id, $align, $size) {
- $align = 'align' . esc_attr($align);
- return $align;
-}
-add_filter('get_image_tag_class', 'image_tag_class', 0, 4);
-function image_tag($html, $id, $alt, $title) {
- return preg_replace(array(
- '/\s+width="\d+"/i',
- '/\s+height="\d+"/i',
- '/alt=""/i'
- ),
- array(
- '',
- '',
- '',
- 'alt="' . $title . '"'
- ),
- $html);
-}
-add_filter('get_image_tag', 'image_tag', 0, 4);
-
-// img unautop, Courtesy of Interconnectit http://interconnectit.com/2175/how-to-remove-p-tags-from-images-in-wordpress/
-function img_unautop($pee) {
- $pee = preg_replace('/<p>\\s*?(<a .*?><img.*?><\\/a>|<img.*?>)?\\s*<\\/p>/s', '<figure>$1</figure>', $pee);
- return $pee;
-}
-add_filter( 'the_content', 'img_unautop', 30 );
-
-// Pagination
-function reverie_pagination() {
- global $wp_query;
-
- $big = 999999999; // This needs to be an unlikely integer
-
- // For more options and info view the docs for paginate_links()
- // http://codex.wordpress.org/Function_Reference/paginate_links
- $paginate_links = paginate_links( array(
- 'base' => str_replace( $big, '%#%', get_pagenum_link($big) ),
- 'current' => max( 1, get_query_var('paged') ),
- 'total' => $wp_query->max_num_pages,
- 'mid_size' => 5,
- 'prev_next' => True,
- 'prev_text' => __('&laquo;'),
- 'next_text' => __('&raquo;'),
- 'type' => 'list'
- ) );
-
- // Display the pagination if more than one page is found
- if ( $paginate_links ) {
- echo '<div class="reverie-pagination">';
- echo $paginate_links;
- echo '</div><!--// end .pagination -->';
- }
-}
-
-/**
- * A fallback when no navigation is selected by default, otherwise it throws some nasty errors in your face.
- * From required+ Foundation http://themes.required.ch
- */
-function reverie_menu_fallback() {
- echo '<div class="alert-box secondary">';
- // Translators 1: Link to Menus, 2: Link to Customize
- printf( __( 'Please assign a menu to the primary menu location under %1$s or %2$s the design.', 'reverie' ),
- sprintf( __( '<a href="%s">Menus</a>', 'reverie' ),
- get_admin_url( get_current_blog_id(), 'nav-menus.php' )
- ),
- sprintf( __( '<a href="%s">Customize</a>', 'reverie' ),
- get_admin_url( get_current_blog_id(), 'customize.php' )
- )
- );
- echo '</div>';
-}
-
-// Add Foundation 'active' class for the current menu item
-function reverie_active_nav_class( $classes, $item ) {
- if ( $item->current == 1 || $item->current_item_ancestor == true ) {
- $classes[] = 'active';
- }
- return $classes;
-}
-add_filter( 'nav_menu_css_class', 'reverie_active_nav_class', 10, 2 );
-
-/**
- * Use the active class of ZURB Foundation on wp_list_pages output.
- * From required+ Foundation http://themes.required.ch
- */
-function reverie_active_list_pages_class( $input ) {
-
- $pattern = '/current_page_item/';
- $replace = 'current_page_item active';
-
- $output = preg_replace( $pattern, $replace, $input );
-
- return $output;
-}
-add_filter( 'wp_list_pages', 'reverie_active_list_pages_class', 10, 2 );
-
-/**
- * class required_walker
- * Custom output to enable the the ZURB Navigation style.
- * Courtesy of Kriesi.at. http://www.kriesi.at/archives/improve-your-wordpress-navigation-menu-output
- * From required+ Foundation http://themes.required.ch
- */
-class reverie_walker extends Walker_Nav_Menu {
-
- /**
- * Specify the item type to allow different walkers
- * @var array
- */
- var $nav_bar = '';
-
- function __construct( $nav_args = '' ) {
-
- $defaults = array(
- 'item_type' => 'li',
- 'in_top_bar' => false,
- );
- $this->nav_bar = apply_filters( 'req_nav_args', wp_parse_args( $nav_args, $defaults ) );
- }
-
- function display_element( $element, &$children_elements, $max_depth, $depth=0, $args, &$output ) {
-
- $id_field = $this->db_fields['id'];
- if ( is_object( $args[0] ) ) {
- $args[0]->has_children = ! empty( $children_elements[$element->$id_field] );
- }
- return parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output );
- }
-
- function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
-
- global $wp_query;
- $indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
-
- $class_names = $value = '';
-
- $classes = empty( $item->classes ) ? array() : (array) $item->classes;
- $classes[] = 'menu-item-' . $item->ID;
-
- // Check for flyout
- $flyout_toggle = '';
- if ( $args->has_children && $this->nav_bar['item_type'] == 'li' ) {
-
- if ( $depth == 0 && $this->nav_bar['in_top_bar'] == false ) {
-
- $classes[] = 'has-flyout';
- $flyout_toggle = '<a href="#" class="flyout-toggle"><span></span></a>';
-
- } else if ( $this->nav_bar['in_top_bar'] == true ) {
-
- $classes[] = 'has-dropdown';
- $flyout_toggle = '';
- }
-
- }
-
- $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) );
- $class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : '';
-
- if ( $depth > 0 ) {
- $output .= $indent . '<li id="menu-item-'. $item->ID . '"' . $value . $class_names .'>';
- } else {
- $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 .'>';
- }
-
- $attributes = ! empty( $item->attr_title ) ? ' title="' . esc_attr( $item->attr_title ) .'"' : '';
- $attributes .= ! empty( $item->target ) ? ' target="' . esc_attr( $item->target ) .'"' : '';
- $attributes .= ! empty( $item->xfn ) ? ' rel="' . esc_attr( $item->xfn ) .'"' : '';
- $attributes .= ! empty( $item->url ) ? ' href="' . esc_attr( $item->url ) .'"' : '';
-
- $item_output = $args->before;
- $item_output .= '<a '. $attributes .'>';
- $item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
- $item_output .= '</a>';
- $item_output .= $flyout_toggle; // Add possible flyout toggle
- $item_output .= $args->after;
-
- $output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
- }
-
- function end_el( &$output, $item, $depth = 0, $args = array() ) {
-
- if ( $depth > 0 ) {
- $output .= "</li>\n";
- } else {
- $output .= "</" . $this->nav_bar['item_type'] . ">\n";
- }
- }
-
- function start_lvl( &$output, $depth = 0, $args = array() ) {
-
- if ( $depth == 0 && $this->nav_bar['item_type'] == 'li' ) {
- $indent = str_repeat("\t", 1);
- $output .= $this->nav_bar['in_top_bar'] == true ? "\n$indent<ul class=\"dropdown\">\n" : "\n$indent<ul class=\"flyout\">\n";
- } else {
- $indent = str_repeat("\t", $depth);
- $output .= $this->nav_bar['in_top_bar'] == true ? "\n$indent<ul class=\"dropdown\">\n" : "\n$indent<ul class=\"level-$depth\">\n";
- }
- }
-}
-
-// Presstrends
-function presstrends() {
-
-// Add your PressTrends and Theme API Keys
-$api_key = 'xc11x4vpf17icuwver0bhgbzz4uewlu5ql38';
-$auth = 'kw1f8yr8eo1op9c859qcqkm2jjseuj7zp';
-
-// NO NEED TO EDIT BELOW
-$data = get_transient( 'presstrends_data' );
-if (!$data || $data == ''){
-$api_base = 'http://api.presstrends.io/index.php/api/sites/add/auth/';
-$url = $api_base . $auth . '/api/' . $api_key . '/';
-$data = array();
-$count_posts = wp_count_posts();
-$count_pages = wp_count_posts('page');
-$comments_count = wp_count_comments();
-$theme_data = get_theme_data(get_stylesheet_directory() . '/style.css');
-$plugin_count = count(get_option('active_plugins'));
-$all_plugins = get_plugins();
-foreach($all_plugins as $plugin_file => $plugin_data) {
-$plugin_name .= $plugin_data['Name'];
-$plugin_name .= '&';
-}
-$data['url'] = stripslashes(str_replace(array('http://', '/', ':' ), '', site_url()));
-$data['posts'] = $count_posts->publish;
-$data['pages'] = $count_pages->publish;
-$data['comments'] = $comments_count->total_comments;
-$data['approved'] = $comments_count->approved;
-$data['spam'] = $comments_count->spam;
-$data['theme_version'] = $theme_data['Version'];
-$data['theme_name'] = $theme_data['Name'];
-$data['site_name'] = str_replace( ' ', '', get_bloginfo( 'name' ));
-$data['plugins'] = $plugin_count;
-$data['plugin'] = urlencode($plugin_name);
-$data['wpversion'] = get_bloginfo('version');
-foreach ( $data as $k => $v ) {
-$url .= $k . '/' . $v . '/';
+ echo '<p class="byline author">'. __('Written by', 'reverie') .' <a href="'. get_author_posts_url(get_the_author_meta('ID')) .'" rel="author" class="fn">'. get_the_author() .'</a></p>';
}
-$response = wp_remote_get( $url );
-set_transient('presstrends_data', $data, 60*60*24);
-}}
-add_action('admin_init', 'presstrends');
?>
View
87 header.php 100755 → 100644
@@ -18,56 +18,67 @@
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> Feed" href="<?php echo home_url(); ?>/feed/">
<!-- iPhone Web App Home Screen Icon -->
- <link rel="apple-touch-icon" sizes="72x72" href="<?php echo get_template_directory_uri(); ?>/images/devices/reverie-icon-ipad.png" />
- <link rel="apple-touch-icon" sizes="114x114" href="<?php echo get_template_directory_uri(); ?>/images/devices/reverie-icon-retina.png" />
- <link rel="apple-touch-icon" href="<?php echo get_template_directory_uri(); ?>/images/devices/reverie-icon.png" />
+ <link rel="apple-touch-icon" sizes="72x72" href="<?php echo get_template_directory_uri(); ?>/img/devices/reverie-icon-ipad.png" />
+ <link rel="apple-touch-icon" sizes="114x114" href="<?php echo get_template_directory_uri(); ?>/img/devices/reverie-icon-retina.png" />
+ <link rel="apple-touch-icon" href="<?php echo get_template_directory_uri(); ?>/img/devices/reverie-icon.png" />
<!-- Enable Startup Image for iOS Home Screen Web App -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="apple-touch-startup-image" href="<?php echo get_template_directory_uri(); ?>/mobile-load.png" />
<!-- Startup Image iPad Landscape (748x1024) -->
- <link rel="apple-touch-startup-image" href="<?php echo get_template_directory_uri(); ?>/images/devices/reverie-load-ipad-landscape.png" media="screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape)" />
+ <link rel="apple-touch-startup-image" href="<?php echo get_template_directory_uri(); ?>/img/devices/reverie-load-ipad-landscape.png" media="screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape)" />
<!-- Startup Image iPad Portrait (768x1004) -->
- <link rel="apple-touch-startup-image" href="<?php echo get_template_directory_uri(); ?>/images/devices/reverie-load-ipad-portrait.png" media="screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait)" />
+ <link rel="apple-touch-startup-image" href="<?php echo get_template_directory_uri(); ?>/img/devices/reverie-load-ipad-portrait.png" media="screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait)" />
<!-- Startup Image iPhone (320x460) -->
- <link rel="apple-touch-startup-image" href="<?php echo get_template_directory_uri(); ?>/images/devices/reverie-load.png" media="screen and (max-device-width: 320px)" />
+ <link rel="apple-touch-startup-image" href="<?php echo get_template_directory_uri(); ?>/img/devices/reverie-load.png" media="screen and (max-device-width: 320px)" />
<?php wp_head(); ?>
</head>
-<body <?php body_class('off-canvas hide-extras'); ?>>
+<body <?php body_class(); ?>>
- <!-- Start the main container -->
- <div id="container" class="container" role="document">
+<div class="contain-to-grid sticky">
+ <!-- Starting the Top-Bar -->
+ <nav class="top-bar">
+ <ul class="title-area">
+ <li class="name">
+ <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>
+ </li>
+ <!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
+ <li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
+ </ul>
+ <section class="top-bar-section">
+ <?php
+ wp_nav_menu( array(
+ 'theme_location' => 'primary',
+ 'container' => false,
+ 'depth' => 0,
+ 'items_wrap' => '<ul class="left">%3$s</ul>',
+ 'fallback_cb' => 'reverie_menu_fallback', // workaround to show a message to set up a menu
+ 'walker' => new reverie_walker( array(
+ 'in_top_bar' => true,
+ 'item_type' => 'li'
+ ) ),
+ ) );
+ ?>
+ <ul class="right">
+ <li class="divider hide-for-small"></li>
+ <li class="has-form"><?php get_search_form(); ?></li>
+ </ul>
+ </section>
+ </nav>
+ <!-- End of Top-Bar -->
+</div>
- <!-- Row for blog navigation -->
- <div class="row top-header">
- <header class="twelve columns" role="banner">
- <div class="reverie-header">
- <h1><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
- <h4 class="subheader"><?php bloginfo('description'); ?></h4>
- </div>
- <nav role="navigation" class="hide-for-small top-nav">
- <?php
- wp_nav_menu( array(
- 'theme_location' => 'primary',
- 'depth' => 2,
- 'items_wrap' => '<ul class="nav-bar">%3$s</ul>',
- 'fallback_cb' => 'reverie_menu_fallback', // workaround to show a message to set up a menu
- 'walker' => new reverie_walker()
- ) );
- ?>
- </nav>
- <p class="show-for-small">
- <a class='sidebar-button button' id="sidebarButton" href="#sidebar-off" >Menu</a>
- </p>
- </header>
- </div>
-
- <!-- Start Off-Canvas Row -->
- <div class="row">
-
- <!-- Row for main content area -->
- <section id="main" role="main">
+<header class="row" role="banner">
+ <div class="small-12 columns">
+ <h1><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
+ <h4 class="subheader"><?php bloginfo('description'); ?></h4>
+ <hr/>
+ </div>
+</header>
+
+<!-- Start the main container -->
+<section class="container row" role="document">
View
0 humans.txt 100755 → 100644
File mode changed.
View
4 images/devices/readme.txt
@@ -1,4 +0,0 @@
-Images are used for iOS devices.
-
-Visit Reverie Support Forum:
-http://themefortress.com/discuss/forum/reverietheme/
View
BIN images/divider.png
Deleted file not rendered
View
BIN images/foundation/orbit/bullets.jpg
Deleted file not rendered
View
BIN images/foundation/orbit/left-arrow-small.png
Deleted file not rendered
View
BIN images/foundation/orbit/left-arrow.png
Deleted file not rendered
View
BIN images/foundation/orbit/loading.gif
Deleted file not rendered
View
BIN images/foundation/orbit/mask-black.png
Deleted file not rendered
View
BIN images/foundation/orbit/pause-black.png
Deleted file not rendered
View
BIN images/foundation/orbit/right-arrow-small.png
Deleted file not rendered
View
BIN images/foundation/orbit/right-arrow.png
Deleted file not rendered
View
BIN images/foundation/orbit/rotator-black.png
Deleted file not rendered
View
BIN images/foundation/orbit/timer-black.png
Deleted file not rendered
View
1 img/devices/readme.txt
@@ -0,0 +1 @@
+Images are used for iOS devices.
View
0 images/devices/reverie-icon-ipad.png → img/devices/reverie-icon-ipad.png
File renamed without changes
View
0 images/devices/reverie-icon-retina.png → img/devices/reverie-icon-retina.png
File renamed without changes
View
0 images/devices/reverie-icon.png → img/devices/reverie-icon.png
File renamed without changes
View
0 ...s/devices/reverie-load-ipad-landscape.png → img/devices/reverie-load-ipad-landscape.png
File renamed without changes
View
0 ...es/devices/reverie-load-ipad-portrait.png → img/devices/reverie-load-ipad-portrait.png
File renamed without changes
View
0 images/devices/reverie-load.png → img/devices/reverie-load.png
File renamed without changes
View
31 index.php 100755 → 100644
@@ -1,14 +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">
- <?php get_template_part('loop', 'index'); ?>
- </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(); ?>
View
38 js/app.js
@@ -1,38 +0,0 @@
-;(function ($, window, undefined) {
- 'use strict';
-
- var $doc = $(document),
- Modernizr = window.Modernizr;
-
- $(document).ready(function() {
- $.fn.foundationAlerts ? $doc.foundationAlerts() : null;
- $.fn.foundationButtons ? $doc.foundationButtons() : null;
- $.fn.foundationAccordion ? $doc.foundationAccordion() : null;
- $.fn.foundationNavigation ? $doc.foundationNavigation() : null;
- $.fn.foundationTopBar ? $doc.foundationTopBar() : null;
- $.fn.foundationCustomForms ? $doc.foundationCustomForms() : null;
- $.fn.foundationMediaQueryViewer ? $doc.foundationMediaQueryViewer() : null;
- $.fn.foundationTabs ? $doc.foundationTabs({callback : $.foundation.customForms.appendCustomMarkup}) : null;
- $.fn.foundationTooltips ? $doc.foundationTooltips() : null;
- $.fn.foundationMagellan ? $doc.foundationMagellan() : null;
- $.fn.foundationClearing ? $doc.foundationClearing() : null;
-
- $('input, textarea').placeholder();
- });
-
- // UNCOMMENT THE LINE YOU WANT BELOW IF YOU WANT IE8 SUPPORT AND ARE USING .block-grids
- // $('.block-grid.two-up>li:nth-child(2n+1)').css({clear: 'both'});
- // $('.block-grid.three-up>li:nth-child(3n+1)').css({clear: 'both'});
- // $('.block-grid.four-up>li:nth-child(4n+1)').css({clear: 'both'});
- // $('.block-grid.five-up>li:nth-child(5n+1)').css({clear: 'both'});
-
- // Hide address bar on mobile devices (except if #hash present, so we don't mess up deep linking).
- if (Modernizr.touch && !window.location.hash) {
- $(window).load(function () {
- setTimeout(function () {
- window.scrollTo(0, 1);
- }, 0);
- });
- }
-
-})(jQuery, this);
View
96 js/foundation.min.js
4 additions, 92 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
50 js/foundation/foundation.alerts.js
@@ -0,0 +1,50 @@
+/*jslint unparam: true, browser: true, indent: 2 */
+
+;(function ($, window, document, undefined) {
+ 'use strict';
+
+ Foundation.libs.alerts = {
+ name : 'alerts',
+
+ version : '4.0.0',
+
+ settings : {
+ speed: 300, // fade out speed
+ callback: function (){}
+ },
+
+ init : function (scope, method, options) {
+ this.scope = scope || this.scope;
+
+ if (typeof method === 'object') {
+ $.extend(true, this.settings, method);
+ }
+
+ if (typeof method != 'string') {
+ if (!this.settings.init) this.events();
+
+ return this.settings.init;
+ } else {
+ return this[method].call(this, options);
+ }
+ },
+
+ events : function () {
+ var self = this;
+
+ $(this.scope).on('click.fndtn.alerts', '[data-alert] a.close', function (e) {
+ e.preventDefault();
+ $(this).closest("[data-alert]").fadeOut(self.speed, function () {
+ $(this).remove();
+ self.settings.callback();
+ });
+ });
+
+ this.settings.init = true;
+ },
+
+ off : function () {
+ $(this.scope).off('.fndtn.alerts');
+ }
+ };
+}(Foundation.zj, this, this.document));
View
478 js/foundation/foundation.clearing.js
@@ -0,0 +1,478 @@
+/*jslint unparam: true, browser: true, indent: 2 */
+
+;(function ($, window, document, undefined) {
+ 'use strict';
+
+ Foundation.libs.clearing = {
+ name : 'clearing',
+
+ version : '4.0.0',
+
+ settings : {
+ templates : {
+ viewing : '<a href="#" class="clearing-close">&times;</a>' +
+ '<div class="visible-img" style="display: none"><img src="//:0">' +
+ '<p class="clearing-caption"></p><a href="#" class="clearing-main-left"><span></span></a>' +
+ '<a href="#" class="clearing-main-right"><span></span></a></div>'
+ },
+
+ // comma delimited list of selectors that, on click, will close clearing,
+ // add 'div.clearing-blackout, div.visible-img' to close on background click
+ close_selectors : '.clearing-close',
+
+ // event initializers and locks
+ init : false,
+ locked : false
+ },
+
+ init : function (scope, method, options) {
+ this.scope = this.scope || scope;
+ Foundation.inherit(this, 'set_data get_data remove_data throttle');
+
+ if (typeof method === 'object') {
+ options = $.extend(true, this.settings, method);
+ }
+
+ if (typeof method != 'string') {
+ $(this.scope).find('ul[data-clearing]').each(function () {
+ var self = Foundation.libs.clearing,
+ $el = $(this),
+ options = options || {},
+ settings = self.get_data($el);
+
+ if (!settings) {
+ options.$parent = $el.parent();
+
+ self.set_data($el, $.extend(true, self.settings, options));
+
+ self.assemble($el.find('li'));
+
+ if (!self.settings.init) {
+ self.events().swipe_events();
+ }
+ }
+ });
+
+ return this.settings.init;
+ } else {
+ // fire method
+ return this[method].call(this, options);
+ }
+ },
+
+ // event binding and initial setup
+
+ events : function () {
+ var self = this;
+
+ $(this.scope)
+ .on('click.fndtn.clearing', 'ul[data-clearing] li',
+ function (e, current, target) {
+ var current = current || $(this),
+ target = target || current,
+ settings = self.get_data(current.parent());
+
+ e.preventDefault();
+ if (!settings) self.init();
+
+ // set current and target to the clicked li if not otherwise defined.
+ self.open($(e.target), current, target);
+ self.update_paddles(target);
+ })
+
+ .on('click.fndtn.clearing', '.clearing-main-right',
+ function (e) { this.nav(e, 'next') }.bind(this))
+ .on('click.fndtn.clearing', '.clearing-main-left',
+ function (e) { this.nav(e, 'prev') }.bind(this))
+ .on('click.fndtn.clearing', this.settings.close_selectors,
+ function (e) { Foundation.libs.clearing.close(e, this) })
+ .on('keydown.fndtn.clearing',
+ function (e) { this.keydown(e) }.bind(this));
+
+ $(window).on('resize.fndtn.clearing',
+ function (e) { this.resize() }.bind(this));
+
+ this.settings.init = true;
+ return this;
+ },
+
+ swipe_events : function () {
+ var self = this;
+
+ $(this.scope)
+ .on('touchstart.fndtn.clearing', '.visible-img', function(e) {
+ var data = {
+ start_page_x: e.touches[0].pageX,
+ start_page_y: e.touches[0].pageY,
+ start_time: (new Date()).getTime(),
+ delta_x: 0,
+ is_scrolling: undefined
+ };
+
+ $(this).data('swipe-transition', data);
+ e.stopPropagation();
+ })
+ .on('touchmove.fndtn.clearing', '.visible-img', function(e) {
+ // Ignore pinch/zoom events
+ if(e.touches.length > 1 || e.scale && e.scale !== 1) return;
+
+ var data = $(this).data('swipe-transition');
+
+ if (typeof data === 'undefined') {
+ data = {};
+ }
+
+ data.delta_x = e.touches[0].pageX - data.start_page_x;
+
+ if ( typeof data.is_scrolling === 'undefined') {
+ data.is_scrolling = !!( data.is_scrolling || Math.abs(data.delta_x) < Math.abs(e.touches[0].pageY - data.start_page_y) );
+ }
+
+ if (!data.is_scrolling && !data.active) {
+ e.preventDefault();
+ var direction = (data.delta_x < 0) ? 'next' : 'prev';
+ data.active = true;
+ self.nav(e, direction);
+ }
+ })
+ .on('touchend.fndtn.clearing', '.visible-img', function(e) {
+ $(this).data('swipe-transition', {});
+ e.stopPropagation();
+ });
+ },
+
+ assemble : function ($li) {
+ var $el = $li.parent(),
+ settings = this.get_data($el),
+ grid = $el.detach(),
+ data = {
+ grid: '<div class="carousel">' + this.outerHTML(grid[0]) + '</div>',
+ viewing: settings.templates.viewing
+ },
+ wrapper = '<div class="clearing-assembled"><div>' + data.viewing +
+ data.grid + '</div></div>';
+
+ return settings.$parent.append(wrapper);
+ },
+
+ // event callbacks
+
+ open : function ($image, current, target) {
+ var root = target.closest('.clearing-assembled'),
+ container = root.find('div').first(),
+ visible_image = container.find('.visible-img'),
+ image = visible_image.find('img').not($image);
+
+ if (!this.locked()) {
+ // set the image to the selected thumbnail
+ image.attr('src', this.load($image));
+
+ this.loaded(image, function () {
+ // toggle the gallery
+ root.addClass('clearing-blackout');
+ container.addClass('clearing-container');
+ visible_image.show();
+ this.fix_height(target)
+ .caption(visible_image.find('.clearing-caption'), $image)
+ .center(image)
+ .shift(current, target, function () {
+ target.siblings().removeClass('visible');
+ target.addClass('visible');
+ });
+ }.bind(this));
+ }
+ },
+
+ close : function (e, el) {
+ e.preventDefault();
+
+ var root = (function (target) {
+ if (/blackout/.test(target.selector)) {
+ return target;
+ } else {
+ return target.closest('.clearing-blackout');
+ }
+ }($(el))), container, visible_image;
+
+ if (el === e.target && root) {
+ container = root.find('div').first(),
+ visible_image = container.find('.visible-img');
+ this.settings.prev_index = 0;
+ root.find('ul[data-clearing]')
+ .attr('style', '').closest('.clearing-blackout')
+ .removeClass('clearing-blackout');
+ container.removeClass('clearing-container');
+ visible_image.hide();
+ }
+
+ return false;
+ },
+
+ keydown : function (e) {
+ var clearing = $('.clearing-blackout').find('ul[data-clearing]');
+
+ if (e.which === 39) this.go(clearing, 'next');
+ if (e.which === 37) this.go(clearing, 'prev');
+ if (e.which === 27) $('a.clearing-close').trigger('click');
+ },
+
+ nav : function (e, direction) {
+ var clearing = $('.clearing-blackout').find('ul[data-clearing]');
+
+ e.preventDefault();
+ this.go(clearing, direction);
+ },
+
+ resize : function () {
+ var image = $('.clearing-blackout .visible-img').find('img');
+
+ if (image.length) {
+ this.center(image);
+ }
+ },
+
+ // visual adjustments
+ fix_height : function (target) {
+ var lis = target.parent().children(),
+ self = this;
+
+ lis.each(function () {
+ var li = $(this),
+ image = li.find('img');
+
+ if (li.height() > self.outerHeight(image)) {
+ li.addClass('fix-height');
+ }
+ })
+ .closest('ul')
+ .width(lis.length * 100 + '%');
+
+ return this;
+ },
+
+ update_paddles : function (target) {
+ var visible_image = target
+ .closest('.carousel')
+ .siblings('.visible-img');
+
+ if (target.next().length) {
+ visible_image
+ .find('.clearing-main-right')
+ .removeClass('disabled');
+ } else {
+ visible_image
+ .find('.clearing-main-right')
+ .addClass('disabled');
+ }
+
+ if (target.prev().length) {