*/ require_once PL_INCLUDES . '/less.functions.php'; /** * Add WordPress Plugin Support */ require_once PL_INCLUDES . '/library.plugins.php'; /** * Register and load all sections */ global $load_sections; $load_sections = new PageLinesRegister(); $load_sections->pagelines_register_sections(); $load_sections->register_sidebars(); pagelines_register_hook('pagelines_setup'); // Hook load_section_persistent(); // Load persistent section functions (e.g. custom post types) if (is_admin()) { load_section_admin(); } // Load admin only functions from sections do_global_meta_options(); // Load the global meta settings tab /** * Build Version */ require_once PL_INCLUDES . '/version.php'; require_once PL_INCLUDES . '/class.render.css.php'; if (defined('WP_CLI') && WP_CLI) { require_once PL_INCLUDES . '/cli.commands.php'; }
/** * PageLines Section Factory Object (Singleton) * Note: Must load before the config template file * @global object $pl_section_factory * @since 4.0.0 */ $GLOBALS['pl_section_factory'] = new PageLinesSectionFactory(); /** * Register and load all sections */ pagelines_register_sections(); pagelines_register_hook('pagelines_setup'); // Hook load_section_persistent(); // Load persistent section functions (e.g. custom post types) if(is_admin()) load_section_admin(); // Load admin only functions from sections do_global_meta_options(); // Load the global meta settings tab /** * Support optional WordPress functionality */ add_theme_support( 'post-thumbnails', apply_filters( 'pagelines_post-thumbnails', array('post') ) ); add_theme_support( 'menus' ); add_theme_support( 'automatic-feed-links' ); // Add editor styling // -- relative link add_editor_style( 'admin/css/editor-style.css' );