array( 'url' => '%s/images/headers/house.jpg', 'thumbnail_url' => '%s/images/headers/house-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'House', 'dot-b' ) ), 'inkwell' => array( 'url' => '%s/images/headers/inkwell.jpg', 'thumbnail_url' => '%s/images/headers/inkwell-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Inkwell', 'dot-b' ) ), 'willow' => array( 'url' => '%s/images/headers/willow.jpg', 'thumbnail_url' => '%s/images/headers/willow-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Willow', 'dot-b' ) ), 'shore' => array( 'url' => '%s/images/headers/shore.jpg', 'thumbnail_url' => '%s/images/headers/shore-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Shore', 'dot-b' ) ), 'sky' => array( 'url' => '%s/images/headers/sky.jpg', 'thumbnail_url' => '%s/images/headers/sky-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Sky', 'dot-b' ) ), 'path' => array( 'url' => '%s/images/headers/path.jpg', 'thumbnail_url' => '%s/images/headers/path-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Path', 'dot-b' ) ), ) ); // Register nav_menu if ( function_exists('register_nav_menu') ) { register_nav_menus( array( 'primary' => __( 'Header Menu', 'dot-b' ), 'social_media' => __( 'Custom Social Media', 'dot-b' ) ) ); } // Register sidebar register_sidebar(array( 'before_widget' => '
  • '."\n", 'after_widget' => "
  • \n", 'before_title' => '

    ', 'after_title' => "

    \n", 'name' => 'Sidebar', 'id' => 'right-sidebar' )); if ( ! function_exists( 'dotb_admin_header_style' ) ) : /** * Styles the header image displayed on the Appearance > Header admin panel. * * Referenced via add_custom_image_header() in dotb_setup(). * */ function dotb_admin_header_style() { ?> |i', 'ColorfuTaglCloudCallback', $text); return $text; } function ColorfuTaglCloudCallback($matches) { $text = $matches[1]; $color = dechex(rand(0,16777215));// Here you can control the color of tags $pattern = '/style=(\'|\")(.*)(\'|\")/i'; $text = preg_replace($pattern, "style=\"color:#{$color};$2;\"", $text); return ""; } // Custom Comments List. function mytheme_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; if ( $post = get_post($post_id) ) { if ( $comment->user_id === $post->post_author ) $bypostauthor = 'by-post-author'; } switch ( $comment->comment_type ) : case '' : ?>
  • id="li-comment-">
    comment_approved == '0' ) : ?>
    $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
  • - comment_type; ?> on comment_date);?>

    'Dot-B'.__( 'Display Colorful Tags Cloud', 'dot-b')); $this->WP_Widget('widget_colorfultagcloud', 'Dot-B'.__( 'Colorful Tag Cloud', 'dot-b'), $widget_ops); } function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', esc_attr($instance['title'])); echo $before_widget.$before_title.$title.$after_title; echo '
    '; add_filter('wp_tag_cloud', 'ColorfuTaglCloud', 1); wp_tag_cloud(); echo ''; echo $after_widget; } function update($new_instance, $old_instance) { if (!isset($new_instance['submit'])) { return false; } $instance = $old_instance; $instance['title'] = strip_tags($new_instance['title']); return $instance; } function form($instance) { global $wpdb; $instance = wp_parse_args((array) $instance, array('title' => __( 'Tag Cloud', 'dot-b'))); $title = esc_attr($instance['title']); ?>