-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* include WordPress core (v4.4.2) * include commonly used Sass files * include commonly used Bower packages and @import them in Sass & js * update readme
- Loading branch information
Andy Richardson
committed
Apr 1, 2016
1 parent
ad5014d
commit 530a46a
Showing
2,937 changed files
with
430,742 additions
and
45 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
#<Project Name> WordPress | ||
#<project-name> WordPress | ||
|
||
<description> | ||
|
||
##Project Initialization | ||
1. Move files in `deploy-assets/` to the root of the WordPress install | ||
2. Move plugins in `plugins/` to `wp-content/plugins` | ||
3. Delete empty `deploy-assets/` & `plugins/` | ||
4. Remove this section from this readme | ||
1. `git clone [email protected]:kohactive/sage-but-better.git` | ||
2. Change the root and theme directory names to `<project-name>` | ||
3. Find and replace <project-name> with the project name used in step 2 | ||
4. Add a <description> above | ||
5. Add the Migrate DB Pro connection information below | ||
6. Replace <jaws-db-url> in app.json if using heroku | ||
7. Remove this section from this readme | ||
|
||
##Environment Setup | ||
1. Create local database: `wp_<project_name>` | ||
|
@@ -15,11 +18,11 @@ | |
|
||
##Installation | ||
1. `git clone [email protected]:kohactive/<project-name>.git` | ||
2. Navigate your browser to the local site: http://localhost/mk-films | ||
2. Navigate your browser to the local site: http://localhost/<project-name> | ||
3. Follow the WordPress install instructions | ||
4. Activate Migrate DB Pro(license key is in 1password) | ||
5. Pull from staging(connection string below) | ||
6. `cd /path/to/mk-films` | ||
6. `cd /path/to/<project-name>` | ||
7. If you don't have the Gulp cli installed: `sudo npm install gulp-cli -g` | ||
8. `./install.sh` | ||
|
||
|
@@ -29,16 +32,16 @@ To watch for changes: | |
`./watch.sh` | ||
|
||
##Staging | ||
[<url>.herokuapp.com](http://<url>.herokuapp.com) | ||
[<project-name>.herokuapp.com](http://<project-name>.herokuapp.com) | ||
|
||
##Database | ||
[Migrate DB Pro](https://deliciousbrains.com/wp-migrate-db-pro/) | ||
* set up local dev install to **pull** staging db | ||
* **DO NOT PUSH TO STAGING. MAKE DB EDITS ON STAGING & PULL.** | ||
|
||
Connection string: | ||
Connection info: | ||
``` | ||
<staging wp admin connection string> | ||
<staging wp admin connection info> | ||
``` | ||
|
||
##Base Theme | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "<projectname>", | ||
"name": "<project-name>", | ||
"scripts": { | ||
"postdeploy": "bash db.sh" | ||
}, | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd wp-content/themes/<project-name> | ||
gulp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
<?php get_template_part('templates/page', 'header'); ?> | ||
<?php | ||
/** | ||
* Front to the WordPress application. This file doesn't do anything, but loads | ||
* wp-blog-header.php which does and tells WordPress to load the theme. | ||
* | ||
* @package WordPress | ||
*/ | ||
|
||
<?php if (!have_posts()) : ?> | ||
<div class="alert alert-warning"> | ||
<?php _e('Sorry, no results were found.', 'sage'); ?> | ||
</div> | ||
<?php get_search_form(); ?> | ||
<?php endif; ?> | ||
/** | ||
* Tells WordPress to load the WordPress theme and output it. | ||
* | ||
* @var bool | ||
*/ | ||
define('WP_USE_THEMES', true); | ||
|
||
<?php while (have_posts()) : the_post(); ?> | ||
<?php get_template_part('templates/content', get_post_type() != 'post' ? get_post_type() : get_post_format()); ?> | ||
<?php endwhile; ?> | ||
|
||
<?php the_posts_navigation(); ?> | ||
/** Loads the WordPress Environment and Template */ | ||
require( dirname( __FILE__ ) . '/wp-blog-header.php' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.