Skip to content

Commit

Permalink
Version 1.0. using external plugin now for functions. only work from …
Browse files Browse the repository at this point in the history
…theme folder. remove some template files, to follow DRY.
  • Loading branch information
chrisvanpatten committed Apr 11, 2012
1 parent 8510c68 commit 1bdfc1a
Show file tree
Hide file tree
Showing 39 changed files with 113 additions and 700 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
.DS_Store
.sass-cache
46 changes: 0 additions & 46 deletions .maintenance

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### License
**Copyright (C) 2011, Chris Van Patten.**
**Copyright (C) 2011-2012, Chris Van Patten.**
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@

Rach5 provides a set of "sensible defaults" that make it faster to jump into developing a custom WordPress website, and get right out of your way as quickly as possible by not imposing any (well, almost any) style decisions. Rach5 uses HTML5, Ruby and Compass, and a mix of WordPress native and custom functions that make theme development fast and fun.

For up-to-date documentation, visit the Rach5 website at <a href="http://labs.vanpattenmedia.com/projects/rach5/">Van Patten Media Labs</a> or the <a href="https://github.com/vanpattenmedia/rach5/wiki">Github Wiki</a> for the project.
### 1.0
Rach5 has finally hit 1.0! What does that mean for you?

* All the functions have been removed. They will now be maintained in a separate project: `rach5-plugin`.
* The project has been condensed to only include the theme directory to simplify management via version control. The plugin will be built to handle maintenance and offer humans.txt/robots.txt defaults.
* In the interest of maintainability and simplicity, I have removed several template files and condensed them down to loop templates that are called from conditionals in `index.php`. This logic is not typical for WordPress, but is a major part of bringing <a href="https://en.wikipedia.org/wiki/DRY">DRY</a> to Rach5.

For up-to-date documentation, visit the Rach5 website at <a href="http://www.vanpattenmedia.com/projects/rach5/">Van Patten Media Labs</a> or the <a href="https://github.com/vanpattenmedia/rach5/wiki">Github Wiki</a> for the project.

### Getting started
It's easy to <a href="https://github.com/vanpattenmedia/rach5/wiki/Getting-Started">get started with Rach5</a>! The full details are available at the wiki.
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions wp-content/themes/themename/config.rb → config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
# relative_assets = true

# Connection Details
sftp_host = 'website.tld'
sftp_user = 'username'
sftp_host = ''
sftp_user = ''

# Upload
on_stylesheet_saved do |filename|
Expand Down
2 changes: 1 addition & 1 deletion wp-content/themes/themename/footer.php → footer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<footer>
<div id="legal">
<?php copyright('2011'); ?> <?php bloginfo('name'); ?>
<?php copyright('2011'); ?> <?php bloginfo('name'); ?>
</div>
</footer>

Expand Down
File renamed without changes.
32 changes: 32 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

if ( !function_exists('rach5_info') ) {
function no_rach5() {
echo '<div class="error">';
echo '<p>', sprintf(__('You need to <a href="%s">install the Rach5 plugin</a>.', 'rach5'), admin_url('plugin-install.php?tab=upload') ), '</p>';
echo '</div>';
}
add_action('admin_notices', 'no_rach5');
}

/*
*
* Website.tld custom functions
*
*/

function rach5_setup() {
// Editor style
add_theme_support('editor_style');
add_editor_style('css/editor-style.css?' . time());

// add_theme_support('post-thumbnails');

// update_option('upload_path', 'assets');
}
add_action('after_setup_theme', 'rach5_setup');

// Content width
if ( !isset( $content_width ) ) {
$content_width = 500;
}
11 changes: 5 additions & 6 deletions wp-content/themes/themename/head.php → head.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

// Global Stylesheet
stylesheet_link_tag('/global.css', true, 0, true);

// Formalize
stylesheet_link_tag('http://cdn.vanpattenmedia.com/js/libs/formalize/1.2/css/formalize.css', false, 1, false); ?>

Expand All @@ -22,11 +22,11 @@
<![endif]-->

<?php /* JavaScript */
?><script type="text/javascript" src="http://cdn.vanpattenmedia.com/js/libs/labjs/2.0.3/LAB.min.js"></script>
?><script type="text/javascript" src="//cdn.vanpattenmedia.com/js/libs/labjs/2.0.3/LAB.min.js"></script>
<script type="text/javascript">
$LAB
.script('http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js').wait()
.script('http://cdn.vanpattenmedia.com/js/libs/formalize/1.2/js/jquery.formalize.min.js').wait()
.script('//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js').wait()
.script('//cdn.vanpattenmedia.com/js/libs/formalize/1.2/js/jquery.formalize.min.js').wait()
.script('<?php bloginfo('template_directory'); ?>/js/script.js').wait();
</script>

Expand All @@ -40,8 +40,7 @@
<script type="text/javascript">
var _gaq = _gaq || [];

_gaq.push(['_setAccount', 'UA-575101-19']);
_gaq.push(['_setDomainName', 'vanpattenmedia.com']);
_gaq.push(['_setAccount', 'UA-XXXXXX-XX']);
_gaq.push(['_trackPageview']);

(function() {
Expand Down
3 changes: 3 additions & 0 deletions header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<header>
<h1><a id="logo" href="<?php echo home_url(); ?>/"><?php bloginfo('name'); ?></a></h1>
</header>
6 changes: 0 additions & 6 deletions humans.txt

This file was deleted.

File renamed without changes
12 changes: 11 additions & 1 deletion wp-content/themes/themename/index.php → index.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,17 @@
<?php get_header(); ?>

<section id="content">
<?php get_template_part('loop', 'post'); ?>
<?php

if ( is_front_page() ) {
get_template_part('frontpage');
} elseif ( is_page() ) {
get_template_part('loop', 'page');
} else {
get_template_part('loop', 'post');
}

?>
</section>

<?php get_footer(); ?>
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions wp-content/themes/themename/loop-post.php → loop-post.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
<header>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<p>Posted at <time class="updated" datetime="<?php the_modified_time('c'); ?>" pubdate><?php the_time(); ?> on <?php the_time(get_option('date_format')); ?></time></p>
Expand All @@ -10,8 +10,8 @@
</div>
</article><?php endwhile; ?>

<section class="posts-nav">
<?php if (is_single()) {
<section class="posts-nav clearfix">
<?php if (!is_single()) {
echo '<div class="prev-posts">'; next_posts_link( '&laquo; Older Posts' ); echo '</div>';
echo '<div class="next-posts">'; previous_posts_link( 'Newer Posts &raquo;' ); echo '</div>';
} else {
Expand Down
6 changes: 0 additions & 6 deletions robots.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Fonts
@import "includes/fonts";
// @import "includes/fonts";

// Rach5 imports
@import "includes/rach5/definitions";
Expand All @@ -11,4 +11,4 @@
@import "compass/typography";

// Your imports
// @import "includes/definitions";
@import "includes/definitions";
34 changes: 34 additions & 0 deletions sass/global.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Fonts
// @import "includes/fonts";

// Rach5 imports
@import "includes/rach5/definitions";
@import "includes/rach5/fixes";

// Compass imports
@import "rgbapng";
@import "compass/css3";
@import "compass/typography";

// Your imports
@import "includes/definitions";

/*
*
* HERE BE DRAGONS...
*
*/

body {

}


/*
*
* Media Queries should always be loaded *last*
* for the good of the cascade.
*
*/

@import "includes/media-queries";
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
Theme Name:
Theme URI:
Description:
Author:
Author URI:
Version:
Tags: custom rach5
*/
100 changes: 0 additions & 100 deletions wp-content/maintenance.php

This file was deleted.

Loading

0 comments on commit 1bdfc1a

Please sign in to comment.