* * Copyright 2008-2011 Crowd Favorite, Ltd. All rights reserved. * Released under the GPL license * http://www.opensource.org/licenses/gpl-license.php * *********************************************************** * WPCOM: SEE DISABLED PLUGINS IN __FILE__/plugins/load.php * Otherwise stock. *********************************************************** */ if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); } define('CFCT_DEBUG', false); define('CFCT_PATH', trailingslashit( get_template_directory() ) ); define('ANNO_VER', '1.1'); include_once(CFCT_PATH.'carrington-core/carrington.php'); include_once(CFCT_PATH.'functions/Anno_Keeper.php'); include_once(CFCT_PATH.'functions/article-post-type.php'); include_once(CFCT_PATH.'functions/appendix-repeater.php'); include_once(CFCT_PATH.'functions/taxonomies.php'); include_once(CFCT_PATH.'functions/capabilities.php'); include_once(CFCT_PATH.'functions/featured-articles.php'); include_once(CFCT_PATH.'functions/template.php'); include_once(CFCT_PATH.'functions/profile.php'); include_once(CFCT_PATH.'functions/tinymce.php'); include_once(CFCT_PATH.'functions/tinymce-upload/tinymce-uploader.php'); include_once(CFCT_PATH.'functions/tinymce-upload/image-popup.php'); include_once(CFCT_PATH.'functions/phpquery/phpquery.php'); include_once(CFCT_PATH.'functions/anno-xml-download.php'); include_once(CFCT_PATH.'plugins/load.php'); function anno_setup() { $path = trailingslashit( get_template_directory() ); // i18n support load_theme_textdomain('anno', $path . 'languages'); $locale = get_locale(); $locale_file = $path . '/languages/' . $locale . '.php'; if ( is_readable( $locale_file ) ) { require_once( $locale_file ); } add_theme_support('automatic-feed-links'); add_theme_support('post-thumbnails', array( 'article', 'post' ) ); add_image_size( 'post-excerpt', 140, 120, true); add_image_size( 'post-teaser', 100, 79, true); add_image_size( 'featured', 270, 230, true); add_image_size( 'header', 500, 500, false); $header_image = Anno_Keeper::retrieve('header_image'); $header_image->add_custom_image_header(); $menus = array( 'main' => 'Main Menu (Header)', 'secondary' => 'Secondary Menu (Header)', 'footer' => 'Footer Menu', ); register_nav_menus($menus); $sidebar_defaults = array( 'before_widget' => '', 'before_title' => '

', 'after_title' => '

' ); register_sidebar(array_merge($sidebar_defaults, array( 'name' => __('Default Sidebar', 'anno'), 'id' => 'default' ))); register_sidebar(array_merge($sidebar_defaults, array( 'name' => __('Page Sidebar', 'anno'), 'id' => 'sidebar-page', 'description' => __('This sidebar will be shown on Pages.', 'anno') ))); register_sidebar(array_merge($sidebar_defaults, array( 'name' => __('Article Sidebar', 'anno'), 'id' => 'sidebar-article', 'description' => __('This sidebar will be shown single Articles.', 'anno') ))); register_sidebar(array_merge($sidebar_defaults, array( 'name' => __('Masthead Teasers', 'anno'), 'id' => 'masthead', 'description' => __('Display items on the home page masthead.'), 'before_widget' => '