/** * Theme decativation functions */ add_action('switch_theme', 'cwp_switch_theme'); function cwp_switch_theme() { //update_option('cwp_last_theme', "theme switched reactivated"); if (!cwp::theme_options('saveoptions') and cwp::theme_options('saveoptions') == 0) { delete_option('cwp_theme_options'); } } /** * Theme options * Instantiate and load theme options */ $cpt_options = cwp_theme::options(); if (!function_exists('_bj_comment')) { /** * Template for comments and pingbacks. * * Used as a callback by wp_list_comments() for displaying the comments. * * @since basejump 1.0 */ function _bj_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; switch ($comment->comment_type) { case 'pingback': case 'trackback': ?>