Skip to content

Commit

Permalink
Merge pull request #1 from fanfarian/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
fanfarian authored Mar 31, 2017
2 parents 56c82fb + c8da490 commit 5b34c01
Show file tree
Hide file tree
Showing 153 changed files with 12,445 additions and 2,692 deletions.
2 changes: 1 addition & 1 deletion assets/css/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/style.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/foundation.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jQuery(document).ready(function() {

// Makes sure last grid item floats left
jQuery('.archive-grid .columns').last().addClass( 'end' );
});
});
3 changes: 1 addition & 2 deletions assets/js/foundation.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions assets/js/jquery-migrate-3.0.0.min.js

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

4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"jquery": "^2.2.2"
},
"resolutions": {
"what-input": "~4.0.3",
"jquery": "^2.2.2",
"what-input": "^4.0.6",
"jquery": "^3.1.1",
"fontfaceobserver": "^2.0.1"
}
}
Binary file modified favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 23 additions & 24 deletions footer.php
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
<footer class="footer" role="contentinfo">
<section id="inner-footer" class="row">

<div class="small-12 columns">
<nav role="navigation">
<?php sr_footer_menu(); ?>
</nav>
</div>

<?php if ( is_active_sidebar( 'sr-footer' ) ) : ?>
<div id="sidebar-sr-footer" class="small-12 columns">
<?php dynamic_sidebar( 'sr-footer' ); ?>
</div>
<?php endif; ?>

<div class="small-12 columns">
<p class="source-org copyright">&copy; <?php echo date('Y'); ?> <?php bloginfo('name'); ?>.</p>
<footer class="footer" role="contentinfo">
<section id="inner-footer" class="row">

<div class="small-12 columns">
<nav role="navigation">
<?php sr_footer_menu(); ?>
</nav>
</div>

<?php if ( is_active_sidebar( 'sr-footer' ) ) : ?>
<div id="sidebar-sr-footer" class="small-12 columns">
<?php dynamic_sidebar( 'sr-footer' ); ?>
</div>

</section> <!-- end #inner-footer -->
</footer> <!-- end .footer -->

</section> <!-- end .main-content -->
</div> <!-- end .off-canvas-content -->
</div> <!-- end .off-canvas-wrapper-inner -->
<?php endif; ?>

<div class="small-12 columns">
<p class="source-org copyright">&copy; <?php echo date('Y'); ?> <?php bloginfo('name'); ?>.</p>
</div>

</section> <!-- end #inner-footer -->
</footer> <!-- end .footer -->

</section> <!-- end .main-content -->
</div> <!-- end .off-canvas-content -->
</div> <!-- end .off-canvas-wrapper -->
<?php wp_footer(); ?>
</body>
Expand Down
21 changes: 10 additions & 11 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,18 @@
<body <?php body_class(); ?>>

<div class="off-canvas-wrapper">

<div class="off-canvas-wrapper-inner" data-off-canvas-wrapper>

<!-- Include 'offcanvas-left' for navigation on the left side -->
<?php // get_template_part( 'parts/content', 'offcanvas-right' ); ?>

<!-- Include 'offcanvas-left' for navigation on the left side -->
<?php // get_template_part( 'parts/content', 'offcanvas-right' ); ?>

<div class="off-canvas-content" data-off-canvas-content>
<div class="off-canvas-content" data-off-canvas-content>

<header class="header" role="banner">
<header id="top" class="header" role="banner">

<!-- Include your navigation here, please see /template-parts for other styles -->
<?php get_template_part( 'parts/nav', 'title-bar' ); ?>
<!-- Include your navigation here, please see /template-parts for other styles -->
<?php get_template_part( 'parts/nav', 'title-bar' ); ?>

</header> <!-- end .header -->
</header> <!-- end .header -->

<section id="ajax-content" class="main-content">
<section id="ajax-content" class="main-content">

8 changes: 5 additions & 3 deletions library/functions/enqueue-scripts-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ function sr_enqueue_scripts_styles()
wp_enqueue_style( 'sr-theme', get_template_directory_uri() . '/assets/css/style.css', array(), '', 'all' );

// Load What-Input files in footer
wp_enqueue_script( 'what-input', get_template_directory_uri() . '/library/vendor/what-input/dist/what-input.min.js', array(), '4.0.4', true ); // What-Input plugin for input specific styles with foundation
wp_enqueue_script( 'what-input', get_template_directory_uri() . '/library/vendor/what-input/dist/what-input.min.js', array(), '4.0.6', true ); // What-Input plugin for input specific styles with foundation

// use newest jquery from /library/vendor/
wp_deregister_script('jquery'); // disable WP internal jquery for own version
wp_enqueue_script( 'jquery', get_template_directory_uri() . '/library/vendor/jquery/dist/jquery.min.js', array( ), '2.2.3', true );
wp_enqueue_script( 'jquery', get_template_directory_uri() . '/library/vendor/jquery/dist/jquery.min.js', array( ), '3.1.1', true );
wp_deregister_script('jquery-migrate'); // disable WP internal jquery-migrate for own version
wp_enqueue_script( 'jquery-migrate', get_template_directory_uri() . '/assets/js/jquery-migrate-3.0.0.min.js', array( ), '3.0.0', true );

// Adding Foundation scripts file in the footer
wp_enqueue_script( 'foundation', get_template_directory_uri() . '/assets/js/foundation.min.js', array( 'jquery', 'what-input' ), '6.2.3', true );
wp_enqueue_script( 'foundation', get_template_directory_uri() . '/assets/js/foundation.min.js', array( 'jquery', 'what-input' ), '6.3.0', true ); // Foundation init + js


// enqueue comment js
Expand Down
8 changes: 4 additions & 4 deletions library/vendor/fontfaceobserver/.bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
"events"
],
"homepage": "https://github.com/bramstein/fontfaceobserver",
"version": "2.0.7",
"_release": "2.0.7",
"version": "2.0.8",
"_release": "2.0.8",
"_resolution": {
"type": "version",
"tag": "v2.0.7",
"commit": "636d07ae4dcbbe95449e95b76c3bda50f577f278"
"tag": "v2.0.8",
"commit": "afc6bc6a2ac22ce37a999ac170b047702832cb3d"
},
"_source": "https://github.com/bramstein/fontfaceobserver.git",
"_target": "^2.0.1",
Expand Down
32 changes: 19 additions & 13 deletions library/vendor/fontfaceobserver/Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
var extend = require('extend');

module.exports = function (grunt) {
require('google-closure-compiler').grunt(grunt);

var compilerOptions = {
compilation_level: 'ADVANCED_OPTIMIZATIONS',
warning_level: 'VERBOSE',
Expand All @@ -11,6 +13,14 @@ module.exports = function (grunt) {
externs: ['externs-commonjs.js']
};

var src = [
'node_modules/closure-dom/src/dom.js',
'src/descriptors.js',
'src/ruler.js',
'src/observer.js',
'exports.js'
];

grunt.initConfig({
clean: {
options: {
Expand Down Expand Up @@ -38,26 +48,22 @@ module.exports = function (grunt) {
'-W092': true
}
},
closurecompiler: {
'closure-compiler': {
dist: {
files: {
'fontfaceobserver.js': ['src/**/*.js', 'exports.js', 'node_modules/closure-dom/src/dom.js']
'fontfaceobserver.js': src
},
options: extend({}, compilerOptions, {
define: 'DEBUG=false'
})
options: compilerOptions
},
compile: {
files: {
'build/fontfaceobserver.js': ['src/**/*.js', 'exports.js', 'node_modules/closure-dom/src/dom.js'],
'build/fontfaceobserver.js': src
},
options: extend({}, compilerOptions, {
define: 'DEBUG=false'
})
options: compilerOptions
},
debug: {
files: {
'build/fontfaceobserver.debug.js': ['src/**/*.js', 'exports.js', 'node_modules/closure-dom/src/dom.js']
'build/fontfaceobserver.debug.js': src
},
options: extend({}, compilerOptions, {
debug: true,
Expand All @@ -83,9 +89,9 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-exec');

grunt.registerTask('compile', ['closurecompiler:compile']);
grunt.registerTask('debug', ['closurecompiler:debug']);
grunt.registerTask('compile', ['closure-compiler:compile']);
grunt.registerTask('debug', ['closure-compiler:debug']);
grunt.registerTask('default', ['compile']);
grunt.registerTask('test', ['jshint', 'exec:test']);
grunt.registerTask('dist', ['clean', 'closurecompiler:compile', 'concat:dist', 'concat:dist_promises']);
grunt.registerTask('dist', ['clean', 'closure-compiler:compile', 'concat:dist', 'concat:dist_promises']);
};
5 changes: 0 additions & 5 deletions library/vendor/fontfaceobserver/exports.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
goog.require('fontface.Observer');

/**
* @define {boolean} DEBUG
*/
var DEBUG = true;

if (typeof module !== 'undefined') {
module.exports = fontface.Observer;
} else {
Expand Down
Loading

0 comments on commit 5b34c01

Please sign in to comment.