function set_resources($source, $type = null) { if (!empty($source) && ($type == "header" || $type == "footer")) { $CI =& get_instance(); $resources = $CI->config->item('resources'); if (!empty($resources[$source])) { if (is_array($resources[$source])) { foreach ($resources[$source] as $res) { if ($type == "header") { echo set_resource_header($res); } else { echo set_resource_footer($res); } } } } } }
<![endif]--> <!-- RESOURCE AUTO --> <?php if (!empty($source)) { ?> <?php set_resources($source, "header"); ?> <?php } ?> <!-- RESOURCE AUTO END--> <?php set_resource_header("NOTIFY"); ?> <!-- Loading Personal CSS --> <link href="<?php echo base_url('css/style.css'); ?> " rel="stylesheet" type="text/css" /> <!-- JQuery --> <script src="<?php echo base_url('js/jquery/jquery-1.8.3.min.js'); ?> "></script> <?php