Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Changes in README.md #267

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 35 additions & 35 deletions 404.php
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
<?php get_header(); ?>
<div id="content" class="clearfix row">
<div id="main" class="col-sm-12 clearfix" role="main">
<div id="content" class="clearfix row">
<div id="main" class="col-sm-12 clearfix" role="main">

<article id="post-not-found" class="clearfix">
<header>
<article id="post-not-found" class="clearfix">
<header>

<div class="hero-unit">
<h1><?php _e("Epic 404 - Article Not Found","wpbootstrap"); ?></h1>
<p><?php _e("This is embarassing. We can't find what you were looking for.","wpbootstrap"); ?></p>
</div>
</header> <!-- end article header -->
<section class="post_content">
<p><?php _e("Whatever you were looking for was not found, but maybe try looking again or search using the form below.","wpbootstrap"); ?></p>
<div class="hero-unit">
<h1><?php _e("Epic 404 - Article Not Found", "wpbootstrap"); ?></h1>
<p><?php _e("This is embarassing. We can't find what you were looking for.", "wpbootstrap"); ?></p>
</div>
</header> <!-- end article header -->
<section class="post_content">
<p><?php _e("Whatever you were looking for was not found, but maybe try looking again or search using the form below.", "wpbootstrap"); ?></p>

<div class="row">
<div class="col col-lg-12">
<?php get_search_form(); ?>
</div>
</div>
</section> <!-- end article section -->
<footer>
</footer> <!-- end article footer -->
</article> <!-- end article -->
</div> <!-- end #main -->
<div class="row">
<div class="col col-lg-12">
<?php get_search_form(); ?>
</div>
</div>
</section> <!-- end article section -->
<footer>
</footer> <!-- end article footer -->
</article> <!-- end article -->
</div> <!-- end #main -->

</div> <!-- end #content -->
</div> <!-- end #content -->

<?php get_footer(); ?>
258 changes: 133 additions & 125 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,134 +1,142 @@
'use strict';
module.exports = function(grunt) {
module.exports = function (grunt) {

grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: [
'library/js/scripts.js',
'bower_components/bootstrap/js/*.js'
]
},
less: {
dist: {
files: {
'library/dist/css/styles.css': [
'library/less/styles.less'
]
},
options: {
compress: true,
// LESS source map
// To enable, set sourceMap to true and update sourceMapRootpath based on your install
sourceMap: true,
sourceMapFilename: 'library/dist/css/styles.css.map',
sourceMapRootpath: '/wp-content/themes/wordpress-bootstrap/' // If you name your theme something different you may need to change this
grunt.initConfig(
{
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: [
'library/js/scripts.js',
'bower_components/bootstrap/js/*.js'
]
},
less: {
dist: {
files: {
'library/dist/css/styles.css': [
'library/less/styles.less'
]
},
options: {
compress: true,
// LESS source map
// To enable, set sourceMap to true and update sourceMapRootpath based on your install
sourceMap: true,
sourceMapFilename: 'library/dist/css/styles.css.map',
sourceMapRootpath: '/wp-content/themes/wordpress-bootstrap/' // If you name your theme something different you may need to change this
}
}
},
uglify: {
dist: {
files: {
'library/dist/js/scripts.min.js': [
'library/js/*.js'
]
// Consider adding bootstrap js files here to consolidate your browser requests
},
options: {
// JS source map: to enable, uncomment the lines below and update sourceMappingURL based on your install
// sourceMap: 'assets/js/scripts.min.js.map',
// sourceMappingURL: '/app/themes/roots/assets/js/scripts.min.js.map'
}
}
},
grunticon: {
myIcons: {
files: [{
expand: true,
cwd: 'library/img',
src: ['*.svg', '*.png'],
dest: "library/img"
}],
options: {
}
}
},
version: {
assets: {
files: {
'functions.php': ['library/dist/css/styles.css', 'library/dist/js/scripts.min.js']
}
}
},
watch: {
less: {
files: [
'bower_components/bootstrap/less/*.less',
'bower_components/font-awesome/less/*.less',
'library/less/*.less'
],
tasks: ['less', 'version']
},
js: {
files: [
'<%= jshint.all %>'
],
tasks: ['uglify']
},
livereload: {
// Browser live reloading
// https://github.com/gruntjs/grunt-contrib-watch#live-reloading
options: {
livereload: true
},
files: [
'library/dist/css/styles.css',
'library/js/*',
'style.css',
'*.php'
]
}
},
clean: {
dist: [
'library/dist/css',
'library/dist/js'
]
}
}
}
},
uglify: {
dist: {
files: {
'library/dist/js/scripts.min.js': [
'library/js/*.js'
]
// Consider adding bootstrap js files here to consolidate your browser requests
},
options: {
// JS source map: to enable, uncomment the lines below and update sourceMappingURL based on your install
// sourceMap: 'assets/js/scripts.min.js.map',
// sourceMappingURL: '/app/themes/roots/assets/js/scripts.min.js.map'
}
}
},
grunticon: {
myIcons: {
files: [{
expand: true,
cwd: 'library/img',
src: ['*.svg', '*.png'],
dest: "library/img"
}],
options: {
}
}
},
version: {
assets: {
files: {
'functions.php': ['library/dist/css/styles.css', 'library/dist/js/scripts.min.js']
}
}
},
watch: {
less: {
files: [
'bower_components/bootstrap/less/*.less',
'bower_components/font-awesome/less/*.less',
'library/less/*.less'
],
tasks: ['less', 'version']
},
js: {
files: [
'<%= jshint.all %>'
],
tasks: ['uglify']
},
livereload: {
// Browser live reloading
// https://github.com/gruntjs/grunt-contrib-watch#live-reloading
options: {
livereload: true
},
files: [
'library/dist/css/styles.css',
'library/js/*',
'style.css',
'*.php'
]
}
},
clean: {
dist: [
'library/dist/css',
'library/dist/js'
]
}
});
);

// Load tasks
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-wp-assets');
grunt.loadNpmTasks('grunt-grunticon');
grunt.loadNpmTasks('grunt-svgstore');
// Load tasks
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-wp-assets');
grunt.loadNpmTasks('grunt-grunticon');
grunt.loadNpmTasks('grunt-svgstore');

// Register tasks
grunt.registerTask('default', [
'clean',
'less',
'uglify',
'grunticon',
'version'
]);
// Register tasks
grunt.registerTask(
'default', [
'clean',
'less',
'uglify',
'grunticon',
'version'
]
);

grunt.registerTask('build', [
'clean:dist',
'less',
'uglify',
'grunticon',
'version'
]);
grunt.registerTask(
'build', [
'clean:dist',
'less',
'uglify',
'grunticon',
'version'
]
);

grunt.registerTask('dev', [
'grunticon',
'watch'
]);
grunt.registerTask(
'dev', [
'grunticon',
'watch'
]
);

};
Loading