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

Commit 8103164

Browse files
Move to use Foundation instead of Bootstrap
1 parent fee67c2 commit 8103164

19 files changed

+5901
-948
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
### 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:
66

7+
- [ES6](http://es6-features.org/) for JavaScript
8+
- [SASS](http://sass-lang.com/) and [Foundation CSS Framework](http://foundation.zurb.com/sites/docs/)
79
- Centralized Theme Config
810
- Utilizes PHP [Namespaces](http://php.net/manual/pl/language.namespaces.php)
911
- Simple [Theme Service Container](http://symfony.com/doc/2.0/glossary.html#term-service-container)

app/Http/assets.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
* @return void
2222
*/
2323
function register_stylesheets() {
24-
wp_enqueue_style('theme-stylesheet', asset_path('css/theme.css'));
24+
wp_enqueue_style('foundation', asset_path('css/foundation.css'));
25+
wp_enqueue_style('app', asset_path('css/app.css'));
2526
}
2627
add_action('wp_enqueue_scripts', 'App\Theme\Http\register_stylesheets');
2728

@@ -31,8 +32,8 @@ function register_stylesheets() {
3132
* @return void
3233
*/
3334
function register_scripts() {
34-
wp_enqueue_script('bootstrap', asset_path('js/bootstrap.js'), ['jquery'], null, true);
35-
wp_enqueue_script('theme-scripts', asset_path('js/theme.js'), ['bootstrap'], null, true);
35+
wp_enqueue_script('foundation', asset_path('js/foundation.js'), ['jquery'], null, true);
36+
wp_enqueue_script('app', asset_path('js/app.js'), ['foundation'], null, true);
3637
}
3738
add_action('wp_enqueue_scripts', 'App\Theme\Http\register_scripts');
3839

@@ -42,7 +43,8 @@ function register_scripts() {
4243
* @return void
4344
*/
4445
function register_editor_stylesheets() {
45-
add_editor_style(asset_path('css/theme.css'));
46+
add_editor_style(asset_path('css/foundation.css'));
47+
add_editor_style(asset_path('css/app.css'));
4648
}
4749
add_action('admin_init', 'App\Theme\Http\register_editor_stylesheets');
4850

gulpfile.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ require('laravel-elixir-imagemin');
1515

1616
elixir(function(mix) {
1717
mix
18+
.sass('foundation.scss')
1819
.sass('app.scss')
1920
.imagemin()
2021
.copy('resources/fonts', 'public/fonts')
21-
.webpack('bootstrap.js')
22+
.webpack('foundation.js')
2223
.webpack('app.js');
2324
});

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"dev": "gulp watch"
66
},
77
"devDependencies": {
8-
"bootstrap-sass": "^3.3.7",
8+
"motion-ui": "^1.2.0",
9+
"foundation-sites": "^6.3.0",
910
"gulp": "^3.9.1",
1011
"laravel-elixir": "^6.0.0-10",
1112
"laravel-elixir-imagemin": "^0.2.3",

public/css/app.css

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/css/app.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)