'ffffff', 'border' => '000000', 'text' => '000000', 'link' => '2970A6', 'url' => '2970A6' ); $content_width = 600; $options = iNoveOptions::getOptions(); if($options['nosidebar'] != false) $content_width = 901; /** inove options */ class iNoveOptions { function getOptions() { $options = get_option('inove_options'); if (!is_array($options)) { $options['menu_type'] = 'pages'; $options['nosidebar'] = false; $options['notice'] = false; $options['notice_content'] = ''; $options['banner_registered'] = false; $options['banner_commentator'] = false; $options['banner_visitor'] = false; $options['banner_content'] = ''; $options['showcase_registered'] = false; $options['showcase_commentator'] = false; $options['showcase_visitor'] = false; $options['showcase_caption'] = false; $options['showcase_title'] = ''; $options['showcase_content'] = ''; $options['author'] = true; $options['categories'] = true; $options['tags'] = true; $options['ctrlentry'] = false; $options['feed_readers'] = true; update_option('inove_options', $options); } return $options; } function add() { if(isset($_POST['inove_save'])) { global $allowedposttags; $options = iNoveOptions::getOptions(); // menu $options['menu_type'] = stripslashes($_POST['menu_type']); // sidebar if ($_POST['nosidebar']) { $options['nosidebar'] = (bool)true; } else { $options['nosidebar'] = (bool)false; } // notice if ($_POST['notice']) { $options['notice'] = (bool)true; } else { $options['notice'] = (bool)false; } $options['notice_content'] = wp_kses(stripslashes($_POST['notice_content']), $allowedposttags); // banner if (!$_POST['banner_registered']) { $options['banner_registered'] = (bool)false; } else { $options['banner_registered'] = (bool)true; } if (!$_POST['banner_commentator']) { $options['banner_commentator'] = (bool)false; } else { $options['banner_commentator'] = (bool)true; } if (!$_POST['banner_visitor']) { $options['banner_visitor'] = (bool)false; } else { $options['banner_visitor'] = (bool)true; } $options['banner_content'] = wp_kses(stripslashes($_POST['banner_content']), $allowedposttags); // showcase if (!$_POST['showcase_registered']) { $options['showcase_registered'] = (bool)false; } else { $options['showcase_registered'] = (bool)true; } if (!$_POST['showcase_commentator']) { $options['showcase_commentator'] = (bool)false; } else { $options['showcase_commentator'] = (bool)true; } if (!$_POST['showcase_visitor']) { $options['showcase_visitor'] = (bool)false; } else { $options['showcase_visitor'] = (bool)true; } if ($_POST['showcase_caption']) { $options['showcase_caption'] = (bool)true; } else { $options['showcase_caption'] = (bool)false; } $options['showcase_title'] = wp_kses(stripslashes($_POST['showcase_title']), $allowedposttags); $options['showcase_content'] = wp_kses(stripslashes($_POST['showcase_content']), $allowedposttags); // author & categories & tags if ($_POST['author']) { $options['author'] = (bool)true; } else { $options['author'] = (bool)false; } if ($_POST['categories']) { $options['categories'] = (bool)true; } else { $options['categories'] = (bool)false; } if (!$_POST['tags']) { $options['tags'] = (bool)false; } else { $options['tags'] = (bool)true; } // ctrl + entry if ($_POST['ctrlentry']) { $options['ctrlentry'] = (bool)true; } else { $options['ctrlentry'] = (bool)false; } // feed if (!$_POST['feed_readers']) { $options['feed_readers'] = (bool)false; } else { $options['feed_readers'] = (bool)true; } update_option('inove_options', $options); } else { iNoveOptions::getOptions(); } add_theme_page(__('iNove Theme Options', 'inove'), __('iNove Theme Options', 'inove'), 'edit_themes', basename(__FILE__), array('iNoveOptions', 'display')); } function display() { $options = iNoveOptions::getOptions(); ?>










'Sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); /** Comments */ // comment count function comment_count( $commentcount ) { global $id; $_commnets = get_comments('status=approve&post_id=' . $id); $comments_by_type = &separate_comments($_commnets); return count($comments_by_type['comment']); } // custom comments function custom_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; global $commentcount; if(!$commentcount) { $commentcount = 0; } ?>
  • |
    $depth, 'max_depth' => $args['max_depth'], 'after' => ' | ')); ?>
    comment_approved == '0') : ?>