Skip to content

@eastofnyc /gist:5048363
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
include_framework.php
<?php
##########################################################################################
# CONFIG
##########################################################################################
define('FRAMEWORK_VERSION', '2.1');
##########################################################################################
# AUTOLOADER
##########################################################################################
foreach ($autoload as $path => $includes)
{
if($includes)
{
foreach ($includes as $include)
{
switch($path)
{
case 'classes':
include_once(KFWCLASSES.$include.'.php');
break;
case 'helper':
include_once(KFWHELPER.$include.'.php');
break;
case 'plugins':
include_once(KFWPLUGINS.$include.'.php');
break;
case 'widgets':
include_once(KFWWIDGETS.$include.'.php');
break;
case 'option_pages':
include_once(KFWOPTIONS.$include.'.php');
break;
case 'shortcodes':
include_once(KFWSC.$include.'.php');
break;
case 'templatefiles':
include_once(TEMPLATEPATH.'/'.$include.'.php');
break;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.