Skip to content

Commit

Permalink
Files copied back in
Browse files Browse the repository at this point in the history
Blah
  • Loading branch information
David Little committed Apr 24, 2014
1 parent 8b3679d commit 4bf5098
Show file tree
Hide file tree
Showing 2,754 changed files with 10,595,331 additions and 0 deletions.
26 changes: 26 additions & 0 deletions 404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php get_header(); ?>

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

<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<header>
<h1 class="entry-title"><?php _e('File Not Found', 'FoundationPress'); ?></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.', 'FoundationPress'); ?></p>
</div>
<p><?php _e('Please try the following:', 'FoundationPress'); ?></p>
<ul>
<li><?php _e('Check your spelling', 'FoundationPress'); ?></li>
<li><?php printf(__('Return to the <a href="%s">home page</a>', 'FoundationPress'), home_url()); ?></li>
<li><?php _e('Click the <a href="javascript:history.back()">Back</a> button', 'FoundationPress'); ?></li>
</ul>
</div>
</article>

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

<?php get_footer(); ?>
44 changes: 44 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
### Changelog for forked

#### 0.1 (17/04/2014)

* Added the following hooks:
* header.php
* 'foundationPress_after_body' hooks directly after the opening body tag
* 'foundationPress_layout_start' hooks directly after opening div .inner-wrap
* 'foundationPress_after_header' hooks directly at the end of the header.php
* 'foundationPress_before_content'
* index.php
* 'foundationPress_before_content' hooks before content loop
* 'foundationPress_after_content' hooks after content loop
* 'foundationPress_before_pagination' hooks after content loop but before pagination
* page.php
* 'foundationPress_before_content' hooks before content loop
* 'foundationPress_after_content' hooks after content loop
* 'foundationPress_page_before_entry_content' hooks after the_title but before the entry_content (only on pages!)
* 'foundationPress_page_before_comments' hooks after content but before comments
* 'foundationPress_page_after_comments' hooks after the comments
* sidebar.php
* 'foundationPress_before_sidebar' hooks before the widget area
* 'foundationPress_after_sidebar' hooks right after the widget area
* single.php
* 'foundationPress_before_content' hooks before content loop
* 'foundationPress_after_content' hooks after content loop
* 'foundationPress_post_before_entry_content' hooks after the_title but before the entry_content (only on posts!)
* 'foundationPress_post_before_comments' hooks after content but before comments
* 'foundationPress_post_after_comments' hooks after the comments
* footer.php
* 'foundationPress_before_closing_body' hooks before the closing body tag. after wp_footer (to inject JS after other scripts)
* 'foundationPress_before_footer' hooks before the foter widget area
* 'foundationPress_after_footer' hooks after the footer widget area
* 'foundationPress_layout_end' hooks before closing div of .inner-wrap
* searchform.php
* 'foundationPress_before_searchform' hooks before the form
* 'foundationPress_searchform_top' hooks into the searchform on top
* 'foundationPress_searchform_before_search_button' hooks into the searchform after all fields but before the "search" button
* 'foundationPress_searchform_after_search_button' hooks at the end of the searchform
* 'foundationPress_after_searchform' hooks after the search form
* search.php
* 'foundationPress_before_content' hooks before content loop
* 'foundationPress_after_content' hooks after content loop
* 'foundationPress_before_pagination' hooks after content loop but before pagination
77 changes: 77 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

sass: {
options: {
includePaths: ['bower_components/foundation/scss']
},
dist: {
options: {
outputStyle: 'compressed'
},
files: {
'css/app.css': 'scss/app.scss'
}
}
},

copy: {
scripts: {
expand: true,
cwd: 'bower_components/',
src: '**/*.js',
dest: 'js'
},

maps: {
expand: true,
cwd: 'bower_components/',
src: '**/*.map',
dest: 'js'
},
},

uglify: {
dist: {
files: {
'js/modernizr/modernizr.min.js': ['js/modernizr/modernizr.js']
}
}
},

concat: {
options: {
separator: ';',
},
dist: {
src: [
'js/foundation/js/foundation.min.js',
'js/init-foundation.js'
],

dest: 'js/app.js',
},

},

watch: {
grunt: { files: ['Gruntfile.js'] },

sass: {
files: 'scss/**/*.scss',
tasks: ['sass']
}
}
});

grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');

grunt.registerTask('build', ['sass']);
grunt.registerTask('default', ['copy', 'uglify', 'concat', 'watch']);

}
18 changes: 18 additions & 0 deletions MIT-LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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.
69 changes: 69 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# FoundationPress

This is a WordPress starter theme based on Foundation 5 by Zurb. The purpose of FoundationPress, is to act as a small and handy toolbox that contains the essentials needed to build any design. FoundationPress is meant to be a starting point, not the final product. If you're looking for an all-in-one theme with built-in shortcodes, plugins, fancypancy portfolio templates or whatnot, I'm afraid you have to look elsewhere.

Please fork, copy, modify, delete, share or do whatever you like with this.

All contributions are welcome!

## Requirements

*You'll need to have the following items installed before continuing.*

* [Node.js](http://nodejs.org): Use the installer provided on the NodeJS website.
* [Grunt](http://gruntjs.com/): Run `[sudo] npm install -g grunt-cli`
* [Bower](http://bower.io): Run `[sudo] npm install -g bower`

## Quickstart

```bash
cd my-wordpress-folder/wp-content/themes/
git clone [email protected]:olefredrik/FoundationPress.git
mv FoundationPress your-theme-name
cd your-theme-name
npm install && bower install
```

While you're working on your project, run:

`grunt`

And you're set!

Check for Foundation Updates? Run:
`foundation update`
(this requires the foundation gem to be installed in order to work. Please see the [docs](http://foundation.zurb.com/docs/sass.html) for details.)


## Stylesheet Folder Structure

* `style.css`: Do not worry about this file. (For some reason) it's required by WordPress. All styling are handled in the Sass files described below

* `scss/app.scss`: Sass imports for global config, foundation and site structure

* `scss/config/_variables.scss`: Your custom variables
* `scss/config/_colors.scss`: Your custom color scheme
* `scss/config/_settings.scss`: Original Foundation 5 base settings

* `scss/site/_structure`: Your custom site structure

* `css/app.css`: All Sass files are minified and compiled to this file

## Script Folder Strucutre

* `bower_components/`: This is the source folder where all Foundation scripts are located. `foundation update` will check and update scripts in this folder
* `js/`: jQuery, Modernizr and Foundation scripts are copied from `bower_components/` to this directory, where they are minified and concatinated and enqueued in WordPress
* Please note that you must run `grunt` in your terminal for the scripts to be copied. See [Gruntfile.js](https://github.com/olefredrik/FoundationPress/blob/master/Gruntfile.js) for details

## How to get started with Foundation

* [Zurb Foundation Docs](http://foundation.zurb.com/docs/)

## Learn how to use WordPress

* [WordPress Codex](http://codex.wordpress.org/)

## Demo

* [Clean FoundationPress install](http://foundationpress.olefredrik.com/)
* [FoundationPress Kitchen Sink - see every single element in action](http://foundationpress.olefredrik.com/kitchen-sink/)
29 changes: 29 additions & 0 deletions archive.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php get_header(); ?>

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

<?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 endif; // end have_posts() check ?>

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

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

<?php get_footer(); ?>
Binary file added assets/img/goughmap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/icons/apple-touch-icon-precomposed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/icons/favicon.ico
Binary file not shown.
Binary file added assets/img/kcl-ddh-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "foundation-libsass-template",
"dependencies": {
"foundation": "zurb/bower-foundation"
}
}
23 changes: 23 additions & 0 deletions bower_components/fastclick/.bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "fastclick",
"version": "1.0.1",
"main": "lib/fastclick.js",
"ignore": [
"**/.*",
"component.json",
"package.json",
"Makefile",
"tests",
"examples"
],
"homepage": "https://github.com/ftlabs/fastclick",
"_release": "1.0.1",
"_resolution": {
"type": "version",
"tag": "v1.0.1",
"commit": "585ad22e4d3f5d68286d06b704acca4c96ac0eb2"
},
"_source": "git://github.com/ftlabs/fastclick.git",
"_target": ">=0.6.11",
"_originalSource": "fastclick"
}
22 changes: 22 additions & 0 deletions bower_components/fastclick/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Copyright (c) 2014 The Financial Times Ltd.

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.
Loading

0 comments on commit 4bf5098

Please sign in to comment.