template.'-theme-options'))
{
$options = array(
);
//Add Theme options
$options = array(
'options'=>$options,
'widgets'=> array()
);
}
//Loading configs..
$Cbucket->theme_configs = theme_configs();
//Registering our first time ever sidebar
$sidebar = array(
'title' => lang('Watch Video'),
'description' => lang('Displays a side bar on "watch video" page'),
'before_title' => '
',
'after_title' => '
',
'before_widget' => '',
'after_widget' => '
',
'id' => 'watch-video-sidebar'
);
register_sidebar($sidebar);
/**
* Registering our Widget :)
*/
register_widget(array(
'id' => 'user-details-box',
'title' => 'User details box',
'description' => 'Displays a user box on watch video page with brief details.',
'icon' => FRONT_TEMPLATEURL.'/images/widgets/user-box.png',
'callback' => 'displayUserBox',
'callback_admin' => 'displayUserBoxAdmin'
));
register_widget(array(
'id' => 'related-videos',
'title' => 'Related videos',
'description' => 'List related videos on watch video page',
'icon' => FRONT_TEMPLATEURL.'/images/widgets/related-videos.png',
'callback' => 'displayRelatedVideos',
));
//regsitering cb custom functions
cb_register_function('cbv3_show_rating','show_rating');
?>