Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Move to use Foundation instead of Bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
jedrzejchalubek committed Apr 12, 2017
1 parent fee67c2 commit 8103164
Show file tree
Hide file tree
Showing 19 changed files with 5,901 additions and 948 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

### Tonik is a WordPress Starter Theme which aims to modernize, organize and simplify some aspects of WordPress theme development. Take a look at what is waiting for you:

- [ES6](http://es6-features.org/) for JavaScript
- [SASS](http://sass-lang.com/) and [Foundation CSS Framework](http://foundation.zurb.com/sites/docs/)
- Centralized Theme Config
- Utilizes PHP [Namespaces](http://php.net/manual/pl/language.namespaces.php)
- Simple [Theme Service Container](http://symfony.com/doc/2.0/glossary.html#term-service-container)
Expand Down
10 changes: 6 additions & 4 deletions app/Http/assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
* @return void
*/
function register_stylesheets() {
wp_enqueue_style('theme-stylesheet', asset_path('css/theme.css'));
wp_enqueue_style('foundation', asset_path('css/foundation.css'));
wp_enqueue_style('app', asset_path('css/app.css'));
}
add_action('wp_enqueue_scripts', 'App\Theme\Http\register_stylesheets');

Expand All @@ -31,8 +32,8 @@ function register_stylesheets() {
* @return void
*/
function register_scripts() {
wp_enqueue_script('bootstrap', asset_path('js/bootstrap.js'), ['jquery'], null, true);
wp_enqueue_script('theme-scripts', asset_path('js/theme.js'), ['bootstrap'], null, true);
wp_enqueue_script('foundation', asset_path('js/foundation.js'), ['jquery'], null, true);
wp_enqueue_script('app', asset_path('js/app.js'), ['foundation'], null, true);
}
add_action('wp_enqueue_scripts', 'App\Theme\Http\register_scripts');

Expand All @@ -42,7 +43,8 @@ function register_scripts() {
* @return void
*/
function register_editor_stylesheets() {
add_editor_style(asset_path('css/theme.css'));
add_editor_style(asset_path('css/foundation.css'));
add_editor_style(asset_path('css/app.css'));
}
add_action('admin_init', 'App\Theme\Http\register_editor_stylesheets');

Expand Down
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ require('laravel-elixir-imagemin');

elixir(function(mix) {
mix
.sass('foundation.scss')
.sass('app.scss')
.imagemin()
.copy('resources/fonts', 'public/fonts')
.webpack('bootstrap.js')
.webpack('foundation.js')
.webpack('app.js');
});
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"dev": "gulp watch"
},
"devDependencies": {
"bootstrap-sass": "^3.3.7",
"motion-ui": "^1.2.0",
"foundation-sites": "^6.3.0",
"gulp": "^3.9.1",
"laravel-elixir": "^6.0.0-10",
"laravel-elixir-imagemin": "^0.2.3",
Expand Down
2 changes: 2 additions & 0 deletions public/css/app.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions public/css/app.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8103164

Please sign in to comment.