Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Functions
- *
- * @package WP Executive
- * @subpackage Admin
- */
- if ( function_exists('register_sidebar') )
- register_sidebar(array(
- 'name' => 'Sidebar Blog',
- 'description' => 'Widgets in this area will be shown in the sidebar area for blog & archives.',
- 'before_widget' => '<aside id="%1$s" class="widget %2$s left">',
- 'after_widget' => '</aside>',
- 'before_title' => '<h4>',
- 'after_title' => '</h4>',
- ));
- if ( function_exists('register_sidebar') )
- register_sidebar(array(
- 'name' => 'Sidebar Pages',
- 'description' => 'Widgets in this area will be shown in the sidebar area for pages.',
- 'before_widget' => '<aside id="%1$s" class="widget %2$s left">',
- 'after_widget' => '</aside>',
- 'before_title' => '<h4>',
- 'after_title' => '</h4>',
- ));
- if ( function_exists('register_sidebar') )
- register_sidebar(array(
- 'name' => 'Homepage',
- 'description' => 'Widgets in this area will be shown on the homepage, below the Featured Slider.',
- 'before_widget' => '<aside id="%1$s" class="widget home %2$s left">',
- 'after_widget' => '</aside>',
- 'before_title' => '<h4 class="triple"><span>',
- 'after_title' => '</span></h4>',
- ));
- if ( function_exists('register_sidebar') )
- register_sidebar(array(
- 'name' => 'Footer',
- 'description' => 'Widgets in this area will be shown in the footer.',
- 'before_widget' => '<aside id="%1$s" class="widget footer %2$s left">',
- 'after_widget' => '</aside>',
- 'before_title' => '<h5>',
- 'after_title' => '</h5>',
- ));
- $functions_path = TEMPLATEPATH . '/admin/';
- $includes_path = TEMPLATEPATH . '/includes/';
- $ct_resize = TEMPLATEPATH . '/img_resize/';
- // Add Automatic Feed Links
- add_theme_support( 'automatic-feed-links' );
- // Localization Support
- load_theme_textdomain( 'contempo', TEMPLATEPATH.'/languages' );
- $locale = get_locale();
- $locale_file = TEMPLATEPATH."/languages/$locale.php";
- if ( is_readable($locale_file) )
- require_once($locale_file);
- // Set Options on Theme Activation
- require_once ($functions_path . 'theme_activation_hook.php');
- require_once ($functions_path . 'theme_activation.php');
- // Update Notifier
- require_once ($functions_path . 'update_notifier.php');
- // Child Theme Creator
- require_once ($functions_path . 'ct-child-theme/ct-child-theme.php');
- // Custom Profile Fields
- require_once ($functions_path . 'profile_fields.php');
- // Custom Taxonomies
- require_once ($functions_path . 'custom_taxonomies.php');
- // Custom Posts
- require_once ($functions_path . 'custom_posts.php');
- // Custom Write Post Panel Fields
- require_once ($functions_path . 'custom_fields.php');
- // Admin Options Panel
- require_once ($functions_path . 'options_panel.php');
- // Theme Functions
- require_once ($functions_path . 'theme_functions.php');
- // Custom Shortcodes
- require_once ($functions_path . 'shortcodes.php');
- // TinyMCE Plugin for Shortcodes
- require_once ($functions_path . 'tiny_mce.php');
- // Widgets
- require_once ($includes_path . 'widgets.php');
- add_action('wp_head', 'ct_wp_head');
- add_action('admin_head', 'ct_admin_head');
- ?>
Add Comment
Please, Sign In to add comment