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 ************ */ }
function cwp_widgets() { //cwp::add_widget('Sidebar', 'sidebar-1', 'Top sidebar widget'); cwp::register_sidebar('Sidebar', 'primary-sidebar', "Primary Sidebar widget"); cwp::register_sidebar('Secondary Sidebar', 'sidebar-2', 'Themes Secondary Sidebar'); }