Commit Graph

100 Commits

Author SHA1 Message Date
QWp6t
50a6f8ea60 Do not use after_switch_theme hook, closes #1768 2016-12-24 04:29:14 -08:00
QWp6t
fb19145d42 Theme activation updates 'stylesheet' option instead of 'template' 2016-11-07 00:57:41 -08:00
Ben Word
d81b6fdb87 Update README [ci skip] 2016-09-04 21:46:52 -06:00
QWp6t
34253864fa Fix display of theme name in Customizer 2016-07-16 02:43:24 -07:00
QWp6t
eae36be2c9 Refactor functions.php
* Isolate scope of included files
* Load composer dependencies before loading Sage procedural code

Note that scope isolation was originally proposed by @al-the-x in 2014,
and we rejected it at the time. Our theory at the time was that shared
scope might be expected by WordPress developers. But since then we've done
quite a number of things that are atypical of WordPress development,
including our use of namespaces, which in itself is a form of scope
isolation.
2016-07-16 00:35:45 -07:00
Ben Word
508de7dd3b Composer autoload conditional 2016-04-03 17:03:42 -05:00
Matthew Henkler
a994889f9a Move Sage includes from autoloader back to functions.php to fix issues including in Bedrock 2016-03-25 11:21:57 -05:00
QWp6t
b491f76974 All function braces need to be on new line 2016-03-11 18:06:27 -05:00
QWp6t
9e2917e4d5 Fix issue with WP loading wrong index.php 2016-03-11 18:06:27 -05:00
QWp6t
6a4d3bd51a Conform to new rules 2016-03-11 18:03:15 -05:00
QWp6t
9eaffa3a2d Restructure theme, use autoloader 2016-03-11 18:00:05 -05:00
Ben Word
1607f6e371 Add support for theme customizer 2015-11-09 13:25:04 -06:00
Ben Word
045b47b444 Rename config.php to setup.php 2015-10-10 14:53:54 -05:00
Ben Word
23ab579f37 Move init.php to config.php 2015-10-10 13:09:20 -05:00
Ben Word
9a14571814 Use Sass to style search form, remove search template 2015-10-10 12:53:19 -05:00
QWp6t
6d05c67f44 Remove ConditonalTagCheck class 2015-08-11 18:46:58 -07:00
Ben Word
64e78cf003 Remove nav walker and Bootstrap navbar 2015-04-28 23:59:59 -05:00
Ben Word
7066299690 Remove Bootstrap gallery 2015-04-28 23:49:27 -05:00
Scott Walkinshaw
e1663c5d2f Convert Sidebar to ConditionalTagCheck
Simplify and generalize class since it had nothing to do directly with
the sidebar. Now it can be used for other purposes as well.
2015-02-19 15:36:42 -05:00
Ben Word
a903e08b86 Use short array syntax 2015-01-18 16:45:18 -06:00
Ben Word
7f64125701 Remove theme activation 2015-01-10 14:53:33 -06:00
Ben Word
030c084134 Rename to Sage 2015-01-09 20:52:29 -06:00
Ben Word
e8822a2d67 Asset improvements (gulp)
Ref #1149 & https://github.com/roots/roots/blob/assets-improvements/lib/assets.php
2014-10-27 18:45:35 -05:00
Ben Word
0c1ae408e0 Simplify comments, use core comment form and list 2014-10-24 17:06:41 -05:00
Nicholas Fox
eb5ff6f187 Add library comments 2014-07-02 18:43:08 +01:00
Ben Word
bb91236440 Merge master 2014-06-30 00:24:08 -05:00
David Rogers
a19b89f023 Reducing duplication and better utilizing the WP built-in locate_template()
Re recommendations from @QWp6t in roots/roots#1042
2014-06-16 00:03:46 -04:00
Ben Word
7551f99641 Re-add excerpt and wp_title functions from cleanup.php
Rename custom.php to extras.php
2014-03-30 19:36:47 -05:00
Ben Word
dede0bd851 Close #992 - Move some Roots features into Soil 2014-03-11 23:34:17 -05:00
Ben Word
f8bc0ca80b Move rewrites to a plugin, Roots 6.5.1 2013-11-05 14:54:09 -06:00
Ben Word
a54c43d880 Move page titles into separate file 2013-06-23 12:22:32 -05:00
Ben Word
893244bbd3 Move gallery shortcode into separate file 2013-06-23 12:19:49 -05:00
Ben Word
5b52ddad22 Move root relative URLs into separate file 2013-06-23 12:18:01 -05:00
Ben Word
4aa4be182b Move theme wrapper into separate file 2013-06-23 12:15:08 -05:00
Ben Word
cab26194a3 Move HTML5 Boilerplate's .htaccess to a plugin
https://github.com/retlehs/wp-h5bp-htaccess
2013-04-30 21:35:18 -05:00
Ben Word
260fc4c353 Comments clean up, consistent formatting 2013-02-15 12:13:18 -06:00
Ben Word
cf4ab3b2df Use Bootstrap media object for listing comments
http://twitter.github.com/bootstrap/components.html#media

- Introduce lib/comments.php: contains Roots_Walker_Comment

- Update templates/comments.php to use the new walker, general
clean up
2013-02-11 23:50:49 -06:00
Ben Word
fea92a61aa Rewrites organization
- Create lib/rewrites.php and move everything from lib/htaccess.php
except the H5BP htaccess functionality into it

- In the config, change add_theme_support('rewrite-urls') to
add_theme_support('rewrites')

- Remove the Apache/LightSpeed HTTPD check for rewrites

- Update docs with better Nginx rewrite rules
2013-02-04 19:56:42 -06:00
Ben Word
d13f58ba97 Remove lib/post-types.php and lib/metaboxes.php
We now recommend placing custom post types and
metaboxes within a plugin that contains all of
your site specific functionality.

See the latest update to https://github.com/retlehs/soil
to find an example:

https://github.com/retlehs/soil/tree/master/mu-plugins/base
2012-11-02 01:06:14 -05:00
Scott Walkinshaw
3df8d9901e Move Nav customizations into its own file
Considering the nav customization/cleanup code is fairly involved and
important, it shouldn't be hidden in the middle of cleanup.php
2012-10-03 13:44:35 -04:00
Scott Walkinshaw
588ea8afa3 Refactor sidebar configuration
Instead of editing an if statement (which could get ugly quickly), just
edit configuration arrays of conditional tags and page template checks.
2012-10-02 15:20:28 -04:00
Scott Walkinshaw
03a6ad0784 Fix require order 2012-09-21 16:24:57 -04:00
Scott Walkinshaw
ba56e0fa4d Re-organize theme configuration and setup
functions.php should not contain any Roots specific code. It's just used
to require files and bootstrap Roots. lib/init.php now handles initial
theme setup and defines helper constants which did not belong in
lib/config.php.

config.php should be limited to strictly configuration settings.
2012-09-21 16:20:03 -04:00
Scott Walkinshaw
a44397aa30 template-tags.php does not exist anymore 2012-09-19 16:03:20 -04:00
Scott Walkinshaw
267e24e9a3 Move Google Analytics code into footer template
Once again, HTML tags should be in the templates when possible.

actions.php is no longer needed now as well.
2012-09-19 16:03:20 -04:00
Ben Word
6e874ec630 Update path to editor-style.css 2012-08-21 08:45:05 -05:00
Ben Word
27efb74b44 Ref #525 - Add placeholder files for custom post types & metaboxes 2012-08-20 19:38:46 -05:00
Ben Word
63d3f6185a Ref #525 - Add placeholder files for custom post types & metaboxes 2012-08-20 19:31:59 -05:00
Ben Word
5c777f361b Rename inc/ to lib/ 2012-08-20 19:19:39 -05:00
Ben Word
9801e69b3b Ref #525 - Remove all hooks 2012-08-20 19:17:28 -05:00