Skip to content

Commit b506758

Browse files
committed
Initial commit
0 parents  commit b506758

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+7593
-0
lines changed

.gitattributes

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Git will always convert line endings to LF on checkout.
2+
# You should use this for files that must keep LF endings, even on Windows.
3+
# See https://help.github.com/articles/dealing-with-line-endings/
4+
* text eol=lf
5+
*.jpg binary
6+
*.png binary
7+
*.gif binary
8+
*.ico binary

.gitignore

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.DS_Store
2+
3+
# Sass cache
4+
/.sass-cache
5+
6+
# Development files
7+
/node_modules
8+
/bower_components
9+
10+
# Development directories
11+
/dist/
12+
/docs/
13+
/logs/
14+
/reports/
15+
/tmp/
16+
17+
# Third-party dependencies
18+
assets/bower/
19+
assets/composer/
20+
21+
# Generated theme files
22+
/assets/theme/scss/generated/
23+
/css/
24+
/fonts/
25+
/includes/vendor/
26+
/hybrid-core/
27+
/images/
28+
/js/
29+
/languages/
30+
/style*.*
31+
/screenshot.png

404.php

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
/**
3+
* The template for displaying 404 pages (Not Found).
4+
*
5+
* @package Alpha
6+
* @subpackage HybridCore
7+
* @copyright Copyright (c) 2015, WP Site Care, LLC
8+
* @license GPL-2.0+
9+
* @since 1.0.0
10+
*/
11+
?>
12+
<?php get_header(); ?>
13+
14+
<div <?php hybrid_attr( 'site-inner' ); ?>>
15+
16+
<?php tha_content_before(); ?>
17+
18+
<main <?php hybrid_attr( 'content' ); ?>>
19+
20+
<?php tha_content_top(); ?>
21+
22+
<?php hybrid_get_menu( 'breadcrumbs' ); ?>
23+
24+
<?php tha_entry_before(); ?>
25+
26+
<?php get_template_part( 'content/error', '404' ); ?>
27+
28+
<?php tha_entry_after(); ?>
29+
30+
<?php tha_content_bottom(); ?>
31+
32+
</main><!-- #content -->
33+
34+
<?php tha_content_after(); ?>
35+
36+
<?php hybrid_get_sidebar( 'primary' ); ?>
37+
38+
</div><!-- #site-inner -->
39+
40+
<?php
41+
get_footer();

CHANGELOG.md

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Changelog for Alpha
2+
3+
## 2.0.0
4+
5+
This is a fairly massive overhaul of Alpha. There are breaking changes, so please be aware if you're planning on upgrading an older Alpha-based theme. The most noticeable change is the fact that we've gotten rid of the tiered directory structure in favor of a more standard flat directory structure. This was done primarily to make child theming and deploying easier.
6+
7+
Because so much has changed in this version. I'm not going to point everything out in the release, but the following is a list of all major changes since the last version. For a full breakdown, read the [commit history](https://github.com/FlagshipWP/alpha/commits/master).
8+
9+
- Abstracted all Grunt dependencies into a separate [config](https://github.com/FlagshipWP/flagship-wp-theme-config) and [loader](https://github.com/FlagshipWP/load-flagship-grunt-config)
10+
- Changed to Node Sass, Node Bourbon, and Node Neat
11+
- Moved footer widgets and author box templates to the [Flagship Library](https://github.com/FlagshipWP/flagship-library)
12+
- Added support for some new features within the Flagship Library
13+
- Added support for new features in WordPress 4.1 and Hybrid Core 2.1
14+
- Added a custom icon font based on [Themicons](https://github.com/cedaro/themicons) which can be modified by adding SVG files to the /icons/ directory
15+
- Added the [Cedaro Skip Link Focus](https://github.com/cedaro/skip-link-focus) script for cross-browser a11y skip links
16+
- Removed Genericons
17+
- Removed Sidr and replaced with a custom mobile menu script
18+
- Made extensive improvements to mobile styling and moved to REM font sizes
19+
- Improved and modernized comment styling
20+
- Added additional Sass variables and improved Sass partial segmentation
21+
- Various coding standards and general code improvements
22+
23+
## 1.1.0
24+
25+
Not a whole lot has changed feature-wise in this release, but a number of improvements have been made under the hood. In addition to the master and develop branches, we're now also maintaining a [node-sass branch](https://github.com/FlagshipWP/alpha/tree/node-sass) which compiles faster than the Ruby Sass version.
26+
27+
### New Features
28+
29+
- Author Box Template
30+
31+
### Improvements
32+
33+
- Moved Flagship-specific code into an independent library (https://github.com/FlagshipWP/flagship-library)
34+
- Various style improvements
35+
- Improved template flexibility by increasing the use of `hybrid_attr`
36+
- Switched to jit-grunt for improved task run times
37+
- Made Genericons a bower dependency
38+
- All 3rd party dependencies have been updated and tested
39+
40+
### Deprecations
41+
42+
- The `alpha_footer_creds` function has been deprecated and will be removed on the next update.
43+
44+
45+
## 1.0.0
46+
47+
First public release.

README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Flagship Alpha
2+
3+
[![devDependency Status](https://david-dm.org/FlagshipWP/alpha/dev-status.svg)](https://david-dm.org/FlagshipWP/alpha#info=devDependencies)
4+
5+
The most advanced WordPress Starter theme ever created.
6+
7+
__Contributors:__ [Robert Neu](https://github.com/robneu), [Gary Jones](https://github.com/GaryJones)
8+
__Requires:__ WordPress 4.0
9+
__Tested up to:__ WordPress 4.1.1
10+
__License:__ [GPL-2.0+](http://www.gnu.org/licenses/gpl-2.0.html)
11+
12+
Alpha will revolutionize your theme development workflow by removing all the guesswork and letting you focus on the fun stuff. Built using the latest and greatest web development tools like Grunt, Sass, Bourbon, and Hybrid Core.
13+
14+
## Requirements
15+
16+
| Prerequisite | How to Check | How to Install
17+
| ------------------- | ------------- | ------------- |
18+
| PHP >= 5.2.4 | `php -v` | [php.net](http://php.net/manual/en/install.php) |
19+
| Composer >= 1.0.x | `composer -V` | [getcomposer.org](https://getcomposer.org/download/) |
20+
| Node.js 0.12.x | `node -v` | [nodejs.org](http://nodejs.org/) |
21+
| Grunt CLI >= 0.1.13 | `grunt -V` | `npm install -g grunt-cli` |
22+
| Bower >= 1.3.12 | `bower -v` | `npm install -g bower` |
23+
24+
For more detailed installation instructions, visit the [installation](https://github.com/FlagshipWP/alpha/wiki/Installing-Alpha) section of our Wiki.

archive.php

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?php
2+
/**
3+
* The template for displaying archive pages.
4+
*
5+
* @package Alpha
6+
* @subpackage HybridCore
7+
* @copyright Copyright (c) 2015, WP Site Care, LLC
8+
* @license GPL-2.0+
9+
* @since 1.0.0
10+
*/
11+
?>
12+
<?php get_header(); ?>
13+
14+
<div <?php hybrid_attr( 'site-inner' ); ?>>
15+
16+
<?php tha_content_before(); ?>
17+
18+
<main <?php hybrid_attr( 'content' ); ?>>
19+
20+
<?php tha_content_top(); ?>
21+
22+
<?php hybrid_get_menu( 'breadcrumbs' ); ?>
23+
24+
<?php get_template_part( 'content/parts/loop-meta' ); ?>
25+
26+
<?php if ( have_posts() ) : ?>
27+
28+
<?php while ( have_posts() ) : the_post(); ?>
29+
30+
<?php tha_entry_before(); ?>
31+
32+
<?php hybrid_get_content_template(); ?>
33+
34+
<?php tha_entry_after(); ?>
35+
36+
<?php endwhile; ?>
37+
38+
<?php flagship_posts_navigation(); ?>
39+
40+
<?php else : ?>
41+
42+
<?php get_template_part( 'content/error' ); ?>
43+
44+
<?php endif; ?>
45+
46+
<?php tha_content_bottom(); ?>
47+
48+
</main><!-- #content -->
49+
50+
<?php tha_content_after(); ?>
51+
52+
<?php hybrid_get_sidebar( 'primary' ); ?>
53+
54+
</div><!-- #site-inner -->
55+
56+
<?php
57+
get_footer();

assets/theme/.jscsrc

+113
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
{
2+
"requireSpacesInConditionalExpression": true,
3+
"requireSpacesInFunction": {
4+
"beforeOpeningCurlyBrace": true
5+
},
6+
"disallowSpacesInFunction": {
7+
"beforeOpeningRoundBrace": true
8+
},
9+
"requireMultipleVarDecl": "onevar",
10+
"requireSpacesInsideObjectBrackets": "all",
11+
"disallowSpaceAfterObjectKeys": true,
12+
"requireSpaceAfterBinaryOperators": [
13+
"=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=",
14+
"&=", "|=", "^=", "+=",
15+
16+
"+", "-", "*", "/", "%", "<<", ">>", ">>>", "&",
17+
"|", "^", "&&", "||", "===", "==", ">=",
18+
"<=", "<", ">", "!=", "!=="
19+
],
20+
"requireSpaceBeforeBinaryOperators": [
21+
"=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=",
22+
"&=", "|=", "^=", "+=",
23+
24+
"+", "-", "*", "/", "%", "<<", ">>", ">>>", "&",
25+
"|", "^", "&&", "||", "===", "==", ">=",
26+
"<=", "<", ">", "!=", "!=="
27+
],
28+
"disallowKeywords": ["with"],
29+
"disallowMultipleLineBreaks": true,
30+
"validateLineBreaks": "LF",
31+
"disallowMixedSpacesAndTabs": "smart",
32+
"disallowTrailingWhitespace": true,
33+
34+
"requireCurlyBraces": [ "if", "else", "for", "while", "do", "try", "catch" ],
35+
"requireSpaceBeforeBlockStatements": true,
36+
"requireParenthesesAroundIIFE": true,
37+
"requireBlocksOnNewline": true,
38+
"requireOperatorBeforeLineBreak": [
39+
"?",
40+
"=",
41+
"+",
42+
"-",
43+
"/",
44+
"*",
45+
"==",
46+
"===",
47+
"!=",
48+
"!==",
49+
">",
50+
">=",
51+
"<",
52+
"<="
53+
],
54+
"requireSpaceBeforeBinaryOperators": [
55+
"?",
56+
"=",
57+
"+",
58+
"-",
59+
"/",
60+
"*",
61+
"==",
62+
"===",
63+
"!=",
64+
"!==",
65+
">",
66+
">=",
67+
"<",
68+
"<="
69+
],
70+
"requireSpaceAfterBinaryOperators": [
71+
"?",
72+
"=",
73+
"+",
74+
"/",
75+
"*",
76+
":",
77+
"==",
78+
"===",
79+
"!=",
80+
"!==",
81+
">",
82+
">=",
83+
"<",
84+
"<="
85+
],
86+
"disallowSpaceBeforeBinaryOperators": [","],
87+
"disallowSpaceAfterBinaryOperators": [],
88+
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~"],
89+
"requireSpaceAfterPrefixUnaryOperators": ["!"],
90+
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
91+
"requireCamelCaseOrUpperCaseIdentifiers": true,
92+
"disallowMultipleLineStrings": true,
93+
"validateQuoteMarks": "'",
94+
"validateIndentation": "\t",
95+
"requireLineFeedAtFileEnd": true,
96+
"requireDotNotation": true,
97+
"disallowNewlineBeforeBlockStatements": true,
98+
99+
"disallowTrailingComma": true,
100+
"disallowPaddingNewlinesInBlocks": true,
101+
"disallowEmptyBlocks": true,
102+
"disallowQuotedKeysInObjects": "allButReserved",
103+
"disallowDanglingUnderscores": true,
104+
"requireCommaBeforeLineBreak": true,
105+
"disallowKeywordsOnNewLine": ["else"],
106+
"requireCapitalizedConstructors": true,
107+
"safeContextKeyword": [ "that" ],
108+
"validateJSDoc": {
109+
"checkParamNames": true,
110+
"checkRedundantParams": true,
111+
"requireParamTypes": true
112+
}
113+
}

assets/theme/.jshintrc

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"boss": true,
3+
"curly": true,
4+
"eqeqeq": true,
5+
"eqnull": true,
6+
"es3": true,
7+
"immed": true,
8+
"latedef": true,
9+
"newcap": true,
10+
"noarg": true,
11+
"quotmark": "single",
12+
"sub": true,
13+
"strict": true,
14+
"undef": true,
15+
"unused": true,
16+
17+
"browser": true,
18+
"jquery": true,
19+
20+
"globals": {
21+
"exports": true,
22+
"module": false
23+
}
24+
}

0 commit comments

Comments
 (0)