forked from roots/sage
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into coriander
* upstream/master: (45 commits) Remove get_the_posts_navigation from 404 Update config.json (roots#1963) Add friendly-errors-webpack-plugin (roots#1961) Move /controllers to app, remove app/lib/Sage in readme. Controller 9.0.0-beta.4 Followup roots#1950: Fix lint:styles task with cmd.exe Change default Controller path to app/controllers Ensure to get templates filenames without path and extension. Fix lint:styles script not matching files in deep subdirectories Update helpers.php Update webpack.config.js (roots#1946) 👀 Bump sage-installer BS4 now requires Popper Bump sage-lib Bootstrap 4 Beta, Sage 9.0.0-beta.4 Remove PHP 5.6 tests from Travis Update README.md Update sage-installer 1.1 -> 1.2 Update CHANGELOG ... # Conflicts: # package.json # resources/assets/build/postcss.config.js # resources/assets/build/webpack.config.js # resources/assets/styles/common/_global.scss # resources/assets/styles/common/_variables.scss # resources/assets/styles/components/_comments.scss # resources/assets/styles/components/_forms.scss # resources/assets/styles/components/_wp-classes.scss # resources/assets/styles/layouts/_header.scss # resources/assets/styles/main.scss # yarn.lock
- Loading branch information
Showing
61 changed files
with
22,097 additions
and
6,696 deletions.
There are no files selected for viewing
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,8 +1,10 @@ | ||
# Include your project-specific ignores in this file | ||
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files | ||
.cache-loader | ||
dist | ||
bower_components | ||
node_modules | ||
npm-debug.log | ||
yarn-error.log | ||
vendor | ||
resources/assets/config-local.json |
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 |
---|---|---|
|
@@ -4,7 +4,6 @@ dist: trusty | |
php: | ||
- 7.1 | ||
- 7.0 | ||
- 5.6 | ||
- nightly | ||
|
||
env: | ||
|
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
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 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,33 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Sober\Controller\Controller; | ||
|
||
class App extends Controller | ||
{ | ||
public function siteName() | ||
{ | ||
return get_bloginfo('name'); | ||
} | ||
|
||
public static function title() | ||
{ | ||
if (is_home()) { | ||
if ($home = get_option('page_for_posts', true)) { | ||
return get_the_title($home); | ||
} | ||
return __('Latest Posts', 'sage'); | ||
} | ||
if (is_archive()) { | ||
return get_the_archive_title(); | ||
} | ||
if (is_search()) { | ||
return sprintf(__('Search Results for %s', 'sage'), get_search_query()); | ||
} | ||
if (is_404()) { | ||
return __('Not Found', 'sage'); | ||
} | ||
return get_the_title(); | ||
} | ||
} |
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.