Ejemplo n.º 1
0
 public static function init()
 {
     $config = array('jquery' => 1, 'gsap' => 1, 'async' => 0, 'combine-js' => 0, 'minify-js' => 0, 'protocol-relative' => 1);
     if (!defined('NEXTEND_INSTALL')) {
         foreach (N2StorageSectionAdmin::getAll('system', 'global') as $data) {
             $config[$data['referencekey']] = $data['value'];
         }
     }
     self::$data = new N2Data();
     self::$data->loadArray($config);
 }
Ejemplo n.º 2
0
 public static function init()
 {
     $config = array('jquery' => 1, 'gsap' => 1, 'async' => 0, 'combine-js' => 0, 'minify-js' => 0, 'protocol-relative' => 1);
     if (!defined('NEXTEND_INSTALL')) {
         global $wpdb;
         if ($wpdb->get_var("SHOW TABLES LIKE '" . $wpdb->prefix . "nextend2_section_storage'") != $wpdb->prefix . 'nextend2_section_storage') {
             define('NEXTEND_INSTALL', 1);
         }
     }
     if (!defined('NEXTEND_INSTALL')) {
         foreach (N2StorageSectionAdmin::getAll('system', 'global') as $data) {
             $config[$data['referencekey']] = $data['value'];
         }
     }
     self::$data = new N2Data();
     self::$data->loadArray($config);
 }