<?php
/**
 * Graphene WordPress Theme, Copyright 2010-2013 Syahir Hakim
 * Graphene is distributed under the terms of the GNU GPL version 3
 *
 * Graphene functions and definitions
 *
 * @package Graphene
 * @since Graphene 1.0
 */
 
 
/**
 * Before we do anything, let's get the mobile extension's init file if it exists
*/
$mobile_path = dirname( dirname( __FILE__ ) ) . '/graphene-mobile/includes/theme-plugin.php';
if ( file_exists( $mobile_path ) ) { include( $mobile_path ); }


/**
 * Load the various theme files
*/
global $graphene_settings;
require( get_template_directory() . '/admin/options-init.php' );					// Theme options and admin interface setup
require( $graphene_settings['template_dir'] . '/includes/theme-scripts.php' );		// Theme stylesheets and scripts
require( $graphene_settings['template_dir'] . '/includes/theme-utils.php' );		// Theme utilities
require( $graphene_settings['template_dir'] . '/includes/theme-head.php' );			// Functions for output into the HTML <head> element
require( $graphene_settings['template_dir'] . '/includes/theme-menu.php' );			// Functions for navigation menus
require( $graphene_settings['template_dir'] . '/includes/theme-loop.php' );			// Functions for posts/pages loops
require( $graphene_settings['template_dir'] . '/includes/theme-comments.php' );		// Functions for comments
require( $graphene_settings['template_dir'] . '/includes/theme-slider.php' );		// Functions for the slider
require( $graphene_settings['template_dir'] . '/includes/theme-panes.php' );		// Functions for the homepage panes
require( $graphene_settings['template_dir'] . '/includes/theme-plugins.php' );		// Native plugins support
require( $graphene_settings['template_dir'] . '/includes/theme-shortcodes.php' );	// Theme shortcodes
require( $graphene_settings['template_dir'] . '/includes/theme-webfonts.php' );		// Theme webfonts
require( $graphene_settings['template_dir'] . '/includes/theme-compat.php' );		// For backward compatibility
require( $graphene_settings['template_dir'] . '/includes/theme-functions.php' );	// Other functions that are not categorised above
require( $graphene_settings['template_dir'] . '/includes/theme-setup.php' );		// Theme setup