public
Created

include_framework.php

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
<?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;
}
}
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.