Created
July 16, 2015 09:53
-
-
Save nehalist/33f715188f8fd87dba99 to your computer and use it in GitHub Desktop.
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
<?php | |
// WordPress Content Width | |
// See https://codex.wordpress.org/Content_Width | |
$content_width = 1000; | |
// Theme Features | |
// See https://codex.wordpress.org/Function_Reference/add_theme_support | |
$theme_support = [ | |
]; | |
// Plugin Dependencies via TGM Plugin Activation | |
// See http://tgmpluginactivation.com/configuration/ | |
$plugin_dependencies = [ | |
]; | |
// Assets to load | |
// Important: style.css, jQuery and compiled files (SASS, ...) are | |
// loaded automatically | |
$assets = [ | |
]; | |
// CSS Framework | |
// Either bootstrap, foundation or none | |
// To load proper nav walker lib | |
$css_framework = 'foundation'; | |
// Theme libraries to load | |
// See libs/ | |
$libs = [ | |
'init.php', | |
'helper.php', | |
'utility.php', | |
'assets.php', | |
// Vendor | |
'vendor/class-tgm-plugin-activation.php' | |
]; | |
// ============================================================================ | |
// Includes | |
// Load libraries | |
foreach($libs as $file) { | |
if(locate_template('libs/' .$file)) { | |
require_once locate_template('libs/' . $file); | |
} else { | |
trigger_error('Failed to load library (' . $file . ')', E_USER_ERROR); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment