function be_gallery_types()
    {
        $post = array('post', 'page', 'cwp_theme');
        return $post;
    }
    function be_gallery_icon()
    {
        return 'icon-60';
    }
    add_filter('be_gallery_metabox_post_types', 'be_gallery_types', 10, 2);
    add_filter('be_gallery_metabox_image_size', 'be_gallery_icon', 10, 2);
}
/**
 * remove dashboard widgets
 */
core_admin::remove_dashboard_widgets();
/**
 * remove post revisions
 */
add_action('init', 'cwpt_custom_init');
function cwpt_custom_init()
{
    remove_post_type_support('post', 'revisions');
}
/**
 * add some menu items
 */
//add_filter( 'wp_nav_menu_items', 'add_loginout_link', 10, 2 );
function add_loginout_link($items, $args)
{
    $items = cwp_navs::factory()->add_loginout($items, $args, 'primary');
 * add post style to TinyMCS editor
 */
core_admin::editor_style();
/**
 * custom post types
 */
//$order = new cwp_orders();
/**
 * Adapt.js/960 grid
 */
/**
 * Tinymce Style Buttons
 *
 */
function theme_formatTinyMCE($init)
{
    $init['theme_advanced_buttons2_add'] = 'styleselect';
    $init['theme_advanced_styles'] = 'PDF=pdf;Notes=notes;DiscussIt=discuss;Warning=warning;Share=share';
    return $init;
}
add_filter('tiny_mce_before_init', 'theme_formatTinyMCE');
remove_post_type_support('post', 'revisions');
/**
 * stop self pingbacks
 */
core_admin::end_self_ping();
//$tpl_widget = new Tpl_Widget();
$recthumb = new Recent_thumbs_Widget();
$c_themes = new cwp_theme_shop();
$cwp_ui = new cwp_ui();
cwp_social::contact_info();