Exemplo n.º 1
0
<?php

/*
Written by Chris Jean for iThemes.com
Version 1.0.0

Version History
	0.0.1 - 2010-12-20 - Chris Jean
		Initial test version
	1.0.0 - 2011-09-07 - Chris Jean
		Broke out the admin-only functions to admin-init.php
*/
builder_set_data_version('builder-exports', '1.0');
if (is_admin()) {
    require_once dirname(__FILE__) . '/admin-init.php';
}
Exemplo n.º 2
0
Version 2.6.0

Version History
	2.4.0 - 2011-07-05 - Chris Jean
		Added filter to push to builder_get_default_layouts
		Updated layout-settings data version to 1.6
	2.4.1 - 2011-10-06 - Chris Jean
		Minor performance improvements
	2.5.0 - 2012-08-23 - Chris Jean
		Changed require_once to require.
		Changed require for modules.php to module-loader.php.
		Replaced frequent dirname requests with a variable.
	2.6.0 - 2012-10-12 - Chris Jean
		Added require for style-generator.php.
*/
builder_set_data_version('layout-settings', '1.6');
$layout_engine_dir = dirname(__FILE__);
require $layout_engine_dir . '/functions.php';
require $layout_engine_dir . '/available-views.php';
require $layout_engine_dir . '/module-loader.php';
require $layout_engine_dir . '/sidebars.php';
require $layout_engine_dir . '/style-generator.php';
if (builder_theme_supports('builder-default-layouts')) {
    add_filter('it_storage_filter_load_layout_settings', 'builder_get_default_layouts', 0);
}
if (is_admin()) {
    if (current_theme_supports('builder-my-theme-menu')) {
        require $layout_engine_dir . '/editor.php';
    }
    require $layout_engine_dir . '/add-layout-screen-options.php';
    builder_add_import_export_data_source('BuilderDataSourceLayoutsViews', $layout_engine_dir . '/data-source-layouts-views.php');
Exemplo n.º 3
0
<?php

/*
Central data handler.
Written by Chris Jean for iThemes.com
Version 1.0.0

Version History
	1.0.0 - 2013-08-09 - Chris Jean
		Initial version.
*/
require dirname(__FILE__) . '/functions.php';
require dirname(__FILE__) . '/defaults.php';
builder_set_data_version('theme-settings', '1.0');
function builder_theme_settings_upgrade()
{
    require_once dirname(__FILE__) . '/upgrade.php';
}
add_action('it_storage_do_upgrade_builder-theme-settings', 'builder_theme_settings_upgrade');
do_action('builder_theme_settings_pre_settings_load');
builder_load_theme_settings(true);
do_action('builder_theme_settings_loaded');