Jump to content
Sign in to follow this  
doughboy99

Platform Custom Header

Recommended Posts

doughboy99

Hi I have been looking at the free version of Platform to see whether it is suitable for a customers site. I'd like to add a custom header as per this topic http://www.pagelines.com/forum/topic/9604 . However the free version code source doesn't seem to be at all like the description in this post. I'd like to show the customer what the site might look like and get their goahead before purchasing PlatformPro itself.

Share this post


Link to post
Share on other sites
doughboy99

There is but it only contains ` <?php /* THEME INITIALIZATION This file loads the core framework for Platform which handles everything. This theme copyright © 2008-2010 PageLines */ require_once(TEMPLATEPATH . "/includes/core.init.php"); ` And the cor.init.php file doesn't seem to resemble the code mentioned in the other post either. ` <?php /** * This file initializes the PageLines framework * * @package Platform * **/ /** * Before we start, check for PHP4. It is not supported and crashes with a parse error. * We have to do it here before any other files are loaded. * * This can be removed with WordPress 3.2, which will only support PHP 5.2 * **/ if( floatval( phpversion() ) < 5.0 ) { echo '

This server is running PHP ' . phpversion() . ' we are switching back to the default theme for you!

'; echo 'Please contact your host and switch to PHP5 before activating Platform. Site admin

'; switch_theme( 'twentyten', 'twentyten'); die(); // Brutal but we need to suppress those ugly php errors! } /** * Run the starting hook */ do_action('pagelines_hook_pre', 'core'); // Hook define('PL_INCLUDES', TEMPLATEPATH . "/includes"); /** * Setup all the globals for the framework */ require_once( PL_INCLUDES . '/core.globals.php'); /** * Localization - Needs to come after config_theme and before localized config files */ require_once( PL_INCLUDES . '/library.I18n.php'); /** * Load core functions */ require_once( PL_INCLUDES . '/library.functions.php'); /** * Load Options Functions */ require_once( PL_INCLUDES . '/library.options.php' ); /** * Load template related functions */ require_once( PL_INCLUDES . '/library.templates.php'); /** * Load shortcode library */ require_once( PL_INCLUDES . '/library.shortcodes.php'); /** * Theme configuration files */ require_once( PL_INCLUDES . '/config.options.php' ); require_once( PL_INCLUDES . '/config.templates.php' ); /* Options Singleton */ $GLOBALS['global_pagelines_settings'] = get_option(PAGELINES_SETTINGS); /** * Load Custom Post Type Class */ require_once( PL_INCLUDES . '/class.types.php' ); /** * Load layout class and setup layout singleton * @global object $pagelines_layout */ require_once( PL_INCLUDES . '/class.layout.php' ); $GLOBALS['pagelines_layout'] = new PageLinesLayout(); /** * Load sections handling class */ require_once( PL_INCLUDES . '/class.sections.php' ); /** * Load template handling class */ require_once( PL_INCLUDES . '/class.template.php' ); /** * Load metapanel option handling class */ require_once( PL_ADMIN . '/class.options.metapanel.php' ); /** * Singleton for Metapanel Options */ $GLOBALS['metapanel_options'] = new PageLinesMetaPanel(); /** * Load options UI */ require_once( PL_ADMIN . '/class.options.ui.php' ); /** * Load Type Foundry Class */ require_once( PL_INCLUDES . '/class.typography.php' ); /** * Load Colors */ //require_once( PL_INCLUDES . '/class.colors.php' ); /** * Load dynamic CSS handling */ require_once( PL_INCLUDES . '/class.css.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', 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' ); // Sets Content Width for Large images when adding media // Re: if ( ! isset( $content_width ) ) $content_width = 640; pagelines_current_page_content_width(); /** * Setup Framework Versions */ if(VPRO) require_once(PAGELINES_PRO . '/init_pro.php'); if(VDEV) require_once(PAGELINES_DEV . '/init_dev.php'); require_once( PL_INCLUDES . '/version.php' ); /** * Enable debug if required. * * @since 1.4.0 */ if ( get_pagelines_option( 'enable_debug' ) ) { require_once ( PL_ADMIN . '/class.debug.php'); add_filter( 'pagelines_options_array', 'pagelines_enable_debug' ); } /** * Load updater class */ require_once (PL_ADMIN.'/class.updates.php'); /** * Load admin actions */ require_once (PL_ADMIN.'/actions.admin.php'); /** * Load option actions */ require_once (PL_ADMIN.'/actions.options.php'); /** * Load site actions */ require_once (PL_INCLUDES.'/actions.site.php'); /** * Load actions list */ //require_once (PL_INCLUDES.'/class.actions.php'); /** * Run the pagelines_init Hook */ pagelines_register_hook('pagelines_hook_init'); // Hook ` So I wasn't sure I could include my code in that either

Share this post


Link to post
Share on other sites
kastelic

If your just mocking up the free version because you need to show a client what it could look like, I would just edit header.php to add in your custom header. I don't know that much about the capabilities of the free version as far as utilizing hooks.

Share this post


Link to post
Share on other sites
doughboy99

Thanks thats what I ended up doing,

Share this post


Link to post
Share on other sites
Simon

The free version only differs slightly, the functions.php referenced in the other post would have been from platformbase, which is a child theme we recommend to use for customization.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×