Ejemplo n.º 1
0
function bj_theme_setup()
{
    /*
     * footer widgets
     */
    cwp::add_widget('Sidebar', 'sidebar', 'Top sidebar widget');
    cwp::add_widget('Secondary Sidebar', 'secondary-sidebar', 'Themes Secondary Sidebar');
    cwp::add_widget('info 1', 'info-1', 'Display widgets in the first footer box');
    cwp::add_widget('info 2', 'info-2', 'Display widgets in the second footer box');
    cwp::add_widget('info 3', 'info-3', 'Display widgets in the third footer box');
    cwp::add_widget('info 4', 'info-4', 'Display widgets in the fourth footer box');
    cwp::add_widget('info 5', 'info-5', 'Display widgets in the fifth footer box');
    cwp::add_widget('Widget Page', 'widget-page', 'Display widgets on the widget-page tpl');
    cwp::register_sidebar('404 Page', '404-page', 'Display widgets on the 404-page tpl');
    /*
     * *********** Custom images sizes and post media manage integration ************
     */
}
add_theme_support('automatic-feed-links');
//add_editor_style();
//cwp::theme_images(); //adds  image sizes slideshow-[720,960,1200,1560], icon-[40,60,100]
add_image_size('icon-60', 60, 60, true);
add_image_size('icon-100', 100, 100, true);
add_image_size('icon-40', 40, 40, true);
/*
 * footer widgets
 */
cwp::add_widget('info 1', 'info-1', 'Display widgets in the first footer box');
cwp::add_widget('info 2', 'info-2', 'Display widgets in the second footer box');
cwp::add_widget('info 3', 'info-3', 'Display widgets in the third footer box');
cwp::add_widget('info 4', 'info-4', 'Display widgets in the fourth footer box');
cwp::add_widget('info 5', 'info-5', 'Display widgets in the fifth footer box');
cwp::add_widget('Widget Page', 'widget-page', 'Display widgets on the widget-page tpl');
cwp::add_widget('404 Page', '404-page', 'Display widgets on the 404-page tpl');
/**
 * footer
 */
add_action('wp_footer', 'theme_footer');
function theme_footer()
{
}
/*
 * add thumbnails to editior list
 */
core_admin::post_list_thumbs();
/*
 * add post style to TinyMCS editor
 */
core_admin::editor_style();