/**
 * Loads system plugins before we load components.
 *
 * @return void
 */
function ossn_system_plugins_load()
{
    //load system plugins before components load #451
    ossn_register_plugins_by_path(ossn_route()->system . 'plugins/');
}
 /**
  * Load all active components
  *
  * @return false|null startup files;
  */
 public function loadComs()
 {
     $coms = $this->getActive();
     $lang = ossn_site_settings('language');
     $vars['activated'] = $coms;
     ossn_trigger_callback('components', 'before:load', $vars);
     if (!$coms) {
         return false;
     }
     foreach ($coms as $com) {
         $dir = ossn_route()->com;
         $name = $this->getCom($com->com_id);
         if (!empty($name->name)) {
             ossn_register_plugins_by_path("{$dir}{$com->com_id}/plugins/");
             if (is_file("{$dir}{$com->com_id}/locale/ossn.{$lang}.php")) {
                 include "{$dir}{$com->com_id}/locale/ossn.{$lang}.php";
             }
             include_once "{$dir}{$com->com_id}/ossn_com.php";
         }
     }
     ossn_trigger_callback('components', 'after:load', $vars);
 }
/**
 * Open Source Social Network
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <*****@*****.**>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      http://www.opensource-socialnetwork.org/licence
 */
function ossn_themes_init()
{
    ossn_register_plugins_by_path(ossn_default_theme() . 'plugins/');
}