function BuilderImportExport($guid_or_file = null)
 {
     builder_set_minimum_memory_limit('256M');
     $this->_init_data_sources();
     if (!is_null($guid_or_file)) {
         if (is_file($guid_or_file)) {
             $this->_guid = $this->_import_file($guid_or_file);
         } else {
             $this->_guid = $guid_or_file;
         }
         $this->_load_data();
     } else {
         $this->_guid = $this->_generate_guid();
     }
     $this->_cleanup_old_temp_directories();
 }
示例#2
0
文件: init.php 项目: jimrucinski/Vine
$GLOBALS['wp_theme_name'] = 'Builder';
$GLOBALS['theme_index'] = 'it-builder';
$GLOBALS['theme_menu_var'] = 'ithemes-builder-theme';
$GLOBALS['wp_theme_page_name'] = 'ithemes-builder-theme';
$GLOBALS['builder_start_here_url'] = 'http://ithemes.com/start-here-tuts/?site=' . get_option('siteurl');
$lib_path = dirname(dirname(__FILE__));
require $lib_path . '/classes/load.php';
require $lib_path . '/main/functions.php';
require $lib_path . '/main/compat.php';
if (is_admin()) {
    require $lib_path . '/main/admin-functions.php';
}
// Set the memory_limit to be at least 64M
// This is to help bypass out of memory errors that happen with WordPress 3.0:
// http://core.trac.wordpress.org/ticket/14889
builder_set_minimum_memory_limit('64M');
function it_builder_load_theme_features()
{
    global $wp_version;
    $path = dirname(dirname(__FILE__));
    it_classes_load('it-cache.php');
    require $path . '/import-export/init.php';
    require $path . '/widgets/init.php';
    require $path . '/data/init.php';
    require $path . '/theme-settings/init.php';
    require $path . '/layout-engine/init.php';
    require $path . '/title/init.php';
    $file_cache = builder_theme_supports('builder-file-cache') ? true : false;
    $GLOBALS['builder_cache'] = new ITCache('builder-core', array('enable_file_cache' => $file_cache));
    $GLOBALS['builder_cache']->add_content_type('javascript-footer', 'javascript-footer.js', 'text/javascript', array('async_load' => true));
    $GLOBALS['builder_cache']->add_content_filter('javascript', 'builder_filter_javascript_content');