Ticket #1277: 1277.diff

File 1277.diff, 82.2 KB (added by GautamGupta, 2 years ago)
  • bb-includes/class.bb-query.php

     
    934934                                $s_name = $s_id = 'search'; 
    935935                        } 
    936936                        $r .= "\t<div><label for=\"$s_id\">" . __('Search term') . "</label>\n"; 
    937                         $r .= "\t\t<div><input name='$s_name' id='$s_id' type='text' class='text-input' value='$s_value' /></div>\n"; 
     937                        $r .= "\t\t<div><input name='$s_name' id='$s_id' type='text' class='text-input' value='$s_value'" . bb_get_tabindex() . " /></div>\n"; 
    938938                        $r .= "\t</div>\n\n"; 
    939939                } 
    940940 
    941941                if ( $forum ) { 
    942942                        $r .= "\t<div><label for=\"forum-id\">" . __('Forum')  . "</label>\n"; 
    943                         $r .= "\t\t<div>" . bb_get_forum_dropdown( array( 'selected' => $q_forum_id, 'none' => __('Any') ) ) . "</div>\n"; 
     943                        $r .= "\t\t<div>" . bb_get_forum_dropdown( array( 'selected' => $q_forum_id, 'none' => __('Any'), 'tab' => true ) ) . "</div>\n"; 
    944944                        $r .= "\t</div>\n\n"; 
    945945                } 
    946946 
    947947                if ( $tag ) { 
    948948                        $q_tag = esc_attr( $q_tag ); 
    949949                        $r .= "\t<div><label for=\"topic-tag\">" .  __('Tag') . "</label>\n"; 
    950                         $r .= "\t\t<div><input name='tag' id='topic-tag' type='text' class='text-input' value='$q_tag' /></div>\n"; 
     950                        $r .= "\t\t<div><input name='tag' id='topic-tag' type='text' class='text-input' value='$q_tag'" . bb_get_tabindex() . " /></div>\n"; 
    951951                        $r .= "\t</div>\n\n"; 
    952952                } 
    953953 
    954954                if ( $topic_author ) { 
    955955                        $q_topic_author = esc_attr( $q_topic_author ); 
    956956                        $r .= "\t<div><label for=\"topic-author\">" . __('Topic author') . "</label>\n"; 
    957                         $r .= "\t\t<div><input name='topic_author' id='topic-author' type='text' class='text-input' value='$q_topic_author' /></div>\n"; 
     957                        $r .= "\t\t<div><input name='topic_author' id='topic-author' type='text' class='text-input' value='$q_topic_author'" . bb_get_tabindex() . " /></div>\n"; 
    958958                        $r .= "\t</div>\n\n"; 
    959959                } 
    960960 
    961961                if ( $post_author ) { 
    962962                        $q_post_author = esc_attr( $q_post_author ); 
    963963                        $r .= "\t<div><label for=\"post-author\">" . __('Post author') . "</label>\n"; 
    964                         $r .= "\t\t<div><input name='post_author' id='post-author' type='text' class='text-input' value='$q_post_author' /></div>\n"; 
     964                        $r .= "\t\t<div><input name='post_author' id='post-author' type='text' class='text-input' value='$q_post_author'" . bb_get_tabindex() . " /></div>\n"; 
    965965                        $r .= "\t</div>\n\n"; 
    966966                } 
    967967 
     
    969969 
    970970                if ( $topic_status ) { 
    971971                        $r .= "\t<div><label for=\"topic-status\">" . __('Topic status') . "</label>\n"; 
    972                         $r .= "\t\t<div><select name='topic_status' id='topic-status'>\n"; 
     972                        $r .= "\t\t<div><select name='topic_status' id='topic-status'" . bb_get_tabindex() . ">\n"; 
    973973                        foreach ( $stati as $status => $label ) { 
    974974                                $selected = (string) $status == (string) $q_topic_status ? " selected='selected'" : ''; 
    975975                                $r .= "\t\t\t<option value='$status'$selected>$label</option>\n"; 
     
    980980 
    981981                if ( $post_status ) { 
    982982                        $r .= "\t<div><label for=\"post-status\">" . __('Post status') . "</label>\n"; 
    983                         $r .= "\t\t<div><select name='post_status' id='post-status'>\n"; 
     983                        $r .= "\t\t<div><select name='post_status' id='post-status'" . bb_get_tabindex() . ">\n"; 
    984984                        foreach ( $stati as $status => $label ) { 
    985985                                $selected = (string) $status == (string) $q_post_status ? " selected='selected'" : ''; 
    986986                                $r .= "\t\t\t<option value='$status'$selected>$label</option>\n"; 
     
    991991 
    992992                if ( $poster_ip ) { 
    993993                        $r .= "\t<div><label for=\"poster-ip\">" . __('Poster IP address') . "</label>\n"; 
    994                         $r .= "\t\t<div><input name='poster_ip' id='poster-ip' type='text' class='text-input' value='$q_poster_ip' /></div>\n"; 
     994                        $r .= "\t\t<div><input name='poster_ip' id='poster-ip' type='text' class='text-input' value='$q_poster_ip'" . bb_get_tabindex() . " /></div>\n"; 
    995995                        $r .= "\t</div>\n\n"; 
    996996                } 
    997997 
    998998                if ( $open ) { 
    999999                        $r .= "\t<div><label for=\"topic-open\">" . __('Open?') . "</label>\n"; 
    1000                         $r .= "\t\t<div><select name='open' id='topic-open'>\n"; 
     1000                        $r .= "\t\t<div><select name='open' id='topic-open'" . bb_get_tabindex() . ">\n"; 
    10011001                        foreach ( array( 'all' => __('All'), '1' => _x( 'Open', 'posting status' ), '0' => __('Closed') ) as $status => $label ) { 
    10021002                                $label = esc_html( $label ); 
    10031003                                $selected = (string) $status == (string) $q_open ? " selected='selected'" : ''; 
     
    10101010                if ( $topic_title ) { 
    10111011                        $q_topic_title = esc_attr( $q_topic_title ); 
    10121012                        $r .= "\t<div><label for=\"topic-title\">" . __('Title') . "</label>\n"; 
    1013                         $r .= "\t\t<div><input name='topic_title' id='topic-title' type='text' class='text-input' value='$q_topic_title' /></div>\n"; 
     1013                        $r .= "\t\t<div><input name='topic_title' id='topic-title' type='text' class='text-input' value='$q_topic_title'" . bb_get_tabindex() . " /></div>\n"; 
    10141014                        $r .= "\t</div>\n\n"; 
    10151015                } 
    10161016 
    10171017                $r .= apply_filters( 'bb_query_form_inputs', '', $args, $query_vars ); 
    10181018 
    10191019                $r .= "\t<div class=\"submit\"><label for=\"$id-submit\">" . __('Search') . "</label>\n"; 
    1020                 $r .= "\t\t<div><input type='submit' class='button submit-input' value='$submit' id='$id-submit' /></div>\n"; 
     1020                $r .= "\t\t<div><input type='submit' class='button submit-input' value='$submit' id='$id-submit'" . bb_get_tabindex() . " /></div>\n"; 
    10211021                $r .= "\t</div>\n"; 
    10221022 
    10231023                $r .= "\t</fieldset>\n\n"; 
  • bb-includes/functions.bb-template.php

     
    55        global $bb, $bbdb, $bb_current_user, $page, $bb_cache, 
    66                $posts, $bb_post, $post_id, $topics, $topic, $topic_id, 
    77                $forums, $forum, $forum_id, $tags, $tag, $tag_name, $user, $user_id, $view, 
    8                 $del_class, $bb_alt; 
     8                $del_class, $bb_alt, $bb_tabindex; 
    99 
    1010        if ( $globals ) { 
    1111                foreach ( $globals as $global => $v ) { 
     
    190190        bb_load_template( 'footer.php' ); 
    191191} 
    192192 
    193 function bb_head() 
    194 { 
    195         do_action('bb_head'); 
     193function bb_head() { 
     194        do_action( 'bb_head' ); 
    196195} 
    197196 
    198197/** 
     
    349348        return $class; 
    350349} 
    351350 
     351/** 
     352 * Echoes tabindex and also increments it 
     353 * 
     354 * @param mixed $args 
     355 * @since 1.1 
     356 */ 
     357function bb_tabindex( $args = false ) { 
     358        echo bb_get_tabindex( $args ); 
     359} 
     360 
     361/** 
     362 * Returns tabindex and also increments it 
     363 * 
     364 * @param mixed $args 
     365 * @since 1.1 
     366 */ 
     367function bb_get_tabindex( $args = false ) { 
     368        $defaults = array( 
     369                'val'           => false,       /* (false or int) If it is passed, then it will be echoed instead of $bb_tabindex and $bb_tabindex will also not be incremented */ 
     370                'set_to_value'  => false        /* (false or int) If an integer is passed, $bb_tabindex is set to it */ 
     371        ); 
     372        $args = wp_parse_args( $args, $defaults ); 
     373         
     374        global $bb_tabindex; 
     375        if ( !$bb_tabindex ) 
     376                $bb_tabindex = '1'; 
     377         
     378        $ti = $args['val'] != false ? $args['val'] : $bb_tabindex; 
     379        $r = ' tabindex="' . $ti . '"'; 
     380         
     381        if ( $args['set_to_value'] != false ) 
     382                $bb_tabindex = (int) $args['set_to_value']; 
     383        elseif ( !$args['val'] ) 
     384                $bb_tabindex++; 
     385         
     386        return $r; 
     387} 
     388 
    352389function bb_location() { 
    353390        echo apply_filters( 'bb_location', bb_get_location() ); 
    354391} 
     
    394431                case 'search.php': 
    395432                        $location = 'search-page'; 
    396433                        break; 
     434                case 'favorites.php': 
     435                        $location = 'favorites-page'; 
     436                        break; 
    397437                case 'profile.php': 
    398438                        $location = 'profile-page'; 
    399439                        break; 
    400                 case 'favorites.php': 
    401                         $location = 'favorites-page'; 
    402                         break; 
    403440                case 'view.php': 
    404441                        $location = 'view-page'; 
    405442                        break; 
     
    544581        return apply_filters( 'bb_get_title', implode( $args['separator'], $title ), $args, $title ); 
    545582} 
    546583 
     584/** 
     585 * Generate Bread Crumbs 
     586 * 
     587 * @since 1.1 
     588 * @param mixed $args 
     589 */ 
     590function bb_auto_crumbs( $args = '' ) { 
     591        echo apply_filters( 'bb_auto_crumbs', bb_get_auto_crumbs( $args ), $args ); 
     592} 
     593 
     594/** 
     595 * Generate Bread Crumbs 
     596 * 
     597 * @since 1.1 
     598 * @param mixed $args 
     599 */ 
     600function bb_get_auto_crumbs( $args ) { 
     601        $defaults = array( 
     602                'class'         => 'bbcrumb',   /* Class for <div>, can be false */ 
     603                'id'            => false,       /* ID for <div>, can be false */ 
     604                'span_current'  => false,       /* The class for current page, can be false if you do not want any class (not for forum) */ 
     605                'current'       => false,       /* Override the 'current' text (not for forum) */ 
     606                'force'         => false,       /* Some pages like 404 have to force a to generate crumbs, this might also be used by plugins */ 
     607                'separator'     => ' &raquo; ' 
     608        ); 
     609        $args = wp_parse_args( $args, $defaults ); 
     610         
     611        $r              = ''; 
     612        $crumbs         = array( bb_get_uri() => bb_get_option( 'name' )  ); 
     613        $location       = !$args['force'] ? bb_get_location() : $args['force']; 
     614        $class          = $args['class'] ? ' class="' . $args['class'] . '"' : ''; 
     615        $id             = $args['id'] ? ' id="' . $args['id'] . '"' : ''; 
     616         
     617        switch ( $location ) { 
     618                case 'front-page': /* For new topic */ 
     619                        global $forums; 
     620                        if ( !$forums && isset( $_GET['new'] ) && '1' == $_GET['new'] ) 
     621                                $crumbs['current'] = __( 'Add New Topic' ); 
     622                        break; 
     623                case 'login-page': 
     624                        $crumbs['current'] = __( 'Log in' ); 
     625                        break; 
     626                case 'profile-base': /* Is forced */ 
     627                        global $user_id, $profile_page_title; 
     628                        $crumbs[get_user_profile_link( $user_id )] = get_user_display_name( $user_id ); 
     629                        $crumbs['current'] = $profile_page_title; 
     630                        break; 
     631                case 'profile-page': /* Also for favorites and profile edit */ 
     632                        global $user_id; 
     633                        $crumbs[get_user_profile_link( $user_id )] = get_user_display_name( $user_id ); 
     634                        if ( $tab = isset( $_GET['tab'] ) ? $_GET['tab'] : bb_get_path( 2 ) ) { 
     635                                if ( $tab == 'favorites' ) 
     636                                        $crumbs['current'] = __( 'Favorites' ); 
     637                                elseif ( $tab == 'edit' ) 
     638                                        $crumbs['current'] = __( 'Edit Profile' ); 
     639                        } else { 
     640                                $crumbs['current'] = __( 'Profile' ); 
     641                        } 
     642                        break; 
     643                case 'register-page': 
     644                        $crumbs['current'] = __( 'Register' ); 
     645                        break; 
     646                case 'search-page': 
     647                        $crumbs['current'] = __( 'Search' ); 
     648                        break; 
     649                case 'stats-page': 
     650                        $crumbs['current'] = __( 'Statistics' ); 
     651                        break; 
     652                case 'tag-page': 
     653                        $crumbs[bb_get_tag_page_link()] = __( 'Tags' ); 
     654                        if ( bb_is_tag() ) 
     655                                $crumbs['current'] = bb_get_tag_name(); 
     656                        break; 
     657                case 'view-page': 
     658                        $crumbs['current'] = get_view_name(); 
     659                        break; 
     660                case 'topic-page': 
     661                        $crumbs['direct_return'] = bb_get_forum_bread_crumb( array( 'separator' => $args['separator'] ) ); 
     662                        $crumbs['current'] = $args['separator'] . get_topic_title(); 
     663                        break; 
     664                case 'forum-page': 
     665                        $crumbs['direct_return'] = bb_get_forum_bread_crumb( array( 'separator' => $args['separator'] ) ); 
     666                        break; 
     667                case 'topic-edit-page': 
     668                        $crumbs['current'] = __( 'Edit Post' ); 
     669                        break; 
     670                case '404': /* Is forced */ 
     671                        $crumbs['current'] = __( 'Page not found!' ); 
     672                        break; 
     673                default: 
     674                        $crumbs = apply_filters( 'bb_get_auto_crumbs_location', $crumbs, $location, $args ); 
     675                        break; 
     676        } 
     677         
     678        if ( count( $crumbs ) > 1 ) { 
     679                $r .= '<div ' . $class . $id . '">'; 
     680                foreach ( $crumbs as $url => $text ) { 
     681                        switch ( $url ) { 
     682                                case 'direct_return': /* No &raquo, span or link, direct return */ 
     683                                        $r .= $text; 
     684                                        break; 
     685                                case 'current': /* Checks if there is text for current, if not uses the one given in above switch. Also checks if span_current class is given or not */ 
     686                                        if ( !empty( $args['current'] ) ) 
     687                                                $text = $args['current']; 
     688                                        $r .= ( !$args['span_current'] ) ? $text : '<span class="' . $args['current'] . '">' . $text . '</span>'; 
     689                                        break; 
     690                                case null: /* If no url, then just return with a &raquo; */ 
     691                                        $r .= $text . ' &raquo; '; 
     692                                        break; 
     693                                default: 
     694                                        $sep = in_array( $location, array( 'forum-page', 'topic-page' ) ) ? '' : $args['separator']; /* Separator is added in bb_get_form_bread_crumb too */ 
     695                                        $r .= '<a href="' . $url . '">' . $text . '</a>' . $sep; 
     696                                        break; 
     697                        } 
     698                } 
     699                $r .= '</div>'; 
     700        } 
     701         
     702        return apply_filters( 'bb_get_auto_crumbs', $r, $args ); 
     703} 
     704 
    547705function bb_feed_head() { 
    548706         
    549707        $feeds = array(); 
    550708         
    551         switch (bb_get_location()) { 
     709        switch ( bb_get_location() ) { 
    552710                case 'profile-page': 
    553                         if ( $tab = isset($_GET['tab']) ? $_GET['tab'] : bb_get_path(2) ) 
    554                                 if ($tab != 'favorites') 
     711                        if ( $tab = isset( $_GET['tab'] ) ? $_GET['tab'] : bb_get_path( 2 ) ) 
     712                                if ( $tab != 'favorites' ) 
    555713                                        break; 
    556714                         
    557715                        $feeds[] = array( 
     
    15781736 * @return string The link to the new topic form 
    15791737 */ 
    15801738function bb_get_new_topic_link( $args = null ) { 
    1581         $defaults = array( 'text' => __('Add New &raquo;'), 'forum' => 0, 'tag' => '' ); 
     1739        $defaults = array( 'text' => __( 'Add New &raquo;' ), 'forum' => 0, 'tag' => '', 'before' => '', 'after' => '' ); 
    15821740        if ( $args && is_string($args) && false === strpos($args, '=') ) 
    15831741                $args = array( 'text' => $args ); 
    15841742 
     
    16111769        } 
    16121770 
    16131771        if ( $url = esc_attr( apply_filters( 'new_topic_url', $url, $args ) ) ) 
    1614                 return '<a href="' . $url . '" class="new-topic">' . $text . '</a>' . "\n"; 
     1772                return $before . '<a href="' . $url . '" class="new-topic">' . $text . '</a>' . $after . "\n"; 
    16151773} 
    16161774 
    16171775function bb_new_topic_link( $args = null ) { 
     
    16461804        global $page, $search_count, $per_page; 
    16471805         
    16481806        $defaults = array( 'before' => '', 'after' => '' ); 
    1649         $args = wp_parse_args( $args, $defaults ); 
     1807        $args = wp_parse_args( $args, $defaults ); 
    16501808         
    16511809        if ( $pages = apply_filters( 'bb_search_pages', get_page_number_links( array( 'page' => $page, 'total' => $search_count, 'per_page' => $per_page, 'mod_rewrite' => false ) ) ) ) 
    16521810                echo $args['before'] . $pages . $args['after']; 
     
    22662424} 
    22672425 
    22682426function get_user_delete_button() { 
    2269         $r  = '<input type="submit" class="delete" name="delete-user" value="' . __('Delete User &raquo;') . '" '; 
     2427        $r  = '<input type="submit" class="delete" name="delete-user" value="' . __( 'Delete User &raquo;' ) . '"' . bb_get_tabindex() . ' '; 
    22702428        $r .= 'onclick="return confirm(\'' . esc_js(__('Are you sure you want to delete this user?')) . '\')" />'; 
    22712429        return apply_filters( 'get_user_delete_button', $r); 
    22722430} 
     
    25062664<?php 
    25072665                        if ($key == 'display_name') { 
    25082666?> 
    2509                 <select name="display_name" id="display_name"> 
     2667                <select name="display_name" id="display_name"<?php bb_tabindex(); ?>> 
    25102668<?php 
    25112669                                $public_display = array(); 
    25122670                                $public_display['display_displayname'] = $user->display_name; 
     
    25352693                        } else { 
    25362694?> 
    25372695                <?php if ( 'checkbox' == $type && isset($label[5]) ) echo '<label for="' . $name . '">'; ?> 
    2538                 <input name="<?php echo $name; ?>" id="<?php echo $name; ?>" type="<?php echo $type; ?>"<?php echo $checked; ?> value="<?php echo $value; ?>" /> 
     2696                <input name="<?php echo $name; ?>" id="<?php echo $name; ?>" type="<?php echo $type; ?>"<?php echo $checked; ?> value="<?php echo $value; ?>"<?php bb_tabindex(); ?> /> 
    25392697                <?php if ( 'checkbox' == $type && isset($label[5]) ) echo esc_html( $label[5] ) . '</label>'; ?> 
    25402698<?php 
    25412699                        } 
     
    25862744<table id="admininfo"> 
    25872745<tr class='form-field<?php if ( in_array( 'role', $error_codes ) ) echo ' form-invalid error'; ?>'> 
    25882746        <th scope="row"> 
    2589                 <label for="admininfo_role"><?php _e('User Type'); ?></label> 
     2747                <label for="admininfo_role"><?php _e( 'User Type' ); ?></label> 
    25902748                <?php if ( in_array( 'role', $error_codes ) ) echo '<em>' . $errors->get_error_message( 'role' ) . '</em>'; ?> 
    25912749        </th> 
    25922750        <td> 
    2593                 <select id="admininfo_role" name="role"> 
     2751                <select id="admininfo_role" name="role"<?php bb_tabindex(); ?>> 
    25942752<?php 
    25952753        foreach( $roles as $r => $n ) { 
    25962754                if ( isset( $user->capabilities ) && is_array( $user->capabilities ) && array_key_exists( $r, $user->capabilities ) ) { 
     
    26112769        if (count($assignable_caps)) : 
    26122770?> 
    26132771<tr class="extra-caps-row"> 
    2614         <th scope="row"><?php _e('Allow this user to'); ?></th> 
     2772        <th scope="row"><?php _e( 'Allow this user to' ); ?></th> 
    26152773        <td> 
    26162774<?php 
    26172775        foreach( $assignable_caps as $cap => $label ) : 
     
    26232781                $label = esc_html( $label ); 
    26242782?> 
    26252783 
    2626                 <label><input name="<?php echo $name; ?>" value="1" type="checkbox"<?php echo $checked; ?> /> <?php echo $label; ?></label><br /> 
     2784                <label><input name="<?php echo $name; ?>" value="1" type="checkbox"<?php echo $checked; ?><?php bb_tabindex(); ?> /> <?php echo $label; ?></label><br /> 
    26272785 
    26282786<?php endforeach; ?> 
    26292787 
     
    26882846        </th> 
    26892847        <td> 
    26902848                <?php if ( 'checkbox' == $type && isset($label[5]) ) echo "<label for='$name'>"; ?> 
    2691                 <input name="<?php echo $name; ?>" id="<?php echo $name; ?>" type="<?php echo $type; ?>"<?php echo $checked; ?> value="<?php echo $value; ?>" /> 
     2849                <input name="<?php echo $name; ?>" id="<?php echo $name; ?>" type="<?php echo $type; ?>"<?php echo $checked; ?> value="<?php echo $value; ?>"<?php bb_tabindex(); ?> /> 
    26922850                <?php if ( 'checkbox' == $type && isset($label[5]) ) echo esc_html( $label[5] ) . "</label>"; ?> 
    26932851        </td> 
    26942852</tr> 
     
    27252883<table> 
    27262884<tr class="<?php echo $class; ?>"> 
    27272885        <th scope="row" rowspan="2"> 
    2728                 <label for="pass1"><?php _e('New password'); ?></label> 
     2886                <label for="pass1"><?php _e( 'New password' ); ?></label> 
    27292887                <?php echo $message; ?> 
    27302888        </th> 
    27312889        <td> 
    2732                 <input name="pass1" type="password" id="pass1" autocomplete="off" /> 
     2890                <input name="pass1" type="password" id="pass1" autocomplete="off"<?php bb_tabindex(); ?> /> 
    27332891        </td> 
    27342892</tr> 
    27352893<tr class="<?php echo $class; ?>"> 
    27362894        <td> 
    2737                 <input name="pass2" type="password" id="pass2" autocomplete="off" /> 
     2895                <input name="pass2" type="password" id="pass2" autocomplete="off"<?php bb_tabindex(); ?> /> 
    27382896        </td> 
    27392897</tr> 
    27402898<tr class="pass-strength"> 
     
    33183476 
    33193477        $r = ''; 
    33203478        if ( !$options_only ) { 
    3321                 if ( $tab ) { 
     3479                if ( $tab == true ) 
     3480                        $tab = bb_get_tabindex(); 
     3481                elseif ( is_numeric( $tab ) ) 
    33223482                        $tab = ' tabindex="' . $tab . '"'; 
    3323                 } else { 
     3483                else 
    33243484                        $tab = ''; 
    3325                 } 
     3485                 
    33263486                $r .= '<select name="' . $name . '" id="' . $id . '"' . $tab . '>' . "\n"; 
    33273487        } 
    33283488        if ( $none ) 
  • bb-settings.php

     
    12131213 */ 
    12141214$page = bb_get_uri_page(); 
    12151215 
     1216/** 
     1217 * Tabindex value 
     1218 * 
     1219 * @since 1.1 
     1220 */ 
     1221$bb_tabindex = '1'; 
    12161222 
    12171223 
     1224 
    12181225/** 
    12191226 * Initialisation complete API hook 
    12201227 */ 
  • bb-templates/kakumei/404.php

     
    11<?php bb_get_header(); ?> 
    22 
    3 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php _e('Page not found!'); ?></div> 
     3<?php bb_auto_crumbs( 'force=404' ); /* Crumbs wouldn't have loaded on the previous call in header.php */ ?> 
    44 
    5 <h2 id="http404"><?php _e('Page not found!'); ?></h2> 
     5<h2 id="http404"><?php _e( 'Page not found!' ); ?></h2> 
    66 
    7 <p><?php _e('I\'m sorry, but there is nothing at this URL.'); ?></p> 
     7<?php do_action( 'bb_404_before_message' ); ?> 
    88 
    9 <?php bb_get_footer(); ?> 
     9<p><?php printf( __( 'We\'re sorry, but there is nothing at this page. You may want to go back to the <a href="%s">forums</a> or search below:' ), bb_get_uri() ); ?></p> 
     10 
     11<?php bb_topic_search_form( array( 'action' => bb_get_uri( 'search.php' ) ), new BB_Query_Form ); ?> 
     12 
     13<?php do_action( 'bb_404_after_message' ); ?> 
     14 
     15<?php bb_get_footer(); ?> 
     16 No newline at end of file 
  • bb-templates/kakumei/edit-form.php

     
    1  
    21<?php if ( $topic_title ) : ?> 
    32<p role="main"> 
    4   <label><?php _e('Topic:'); ?><br /> 
    5  
    6   <input name="topic" type="text" id="topic" size="50" maxlength="80"  value="<?php echo esc_attr( get_topic_title() ); ?>" /> 
    7 </label> 
     3        <label><?php _e( 'Topic:' ); ?><br /> 
     4                <input name="topic" type="text" id="topic" size="50" maxlength="80" value="<?php echo esc_attr( get_topic_title() ); ?>"<?php bb_tabindex(); ?> /> 
     5        </label> 
    86</p> 
    97<?php endif; do_action( 'edit_form_pre_post' ); ?> 
    10 <p><label><?php _e('Post:'); ?><br /> 
    11   <textarea name="post_content" cols="50" rows="8" id="post_content"><?php echo apply_filters('edit_text', get_post_text() ); ?></textarea> 
    12   </label> 
     8 
     9<p> 
     10        <label><?php _e( 'Post:' ); ?><br /> 
     11                <textarea name="post_content" cols="50" rows="8" id="post_content"<?php bb_tabindex(); ?>><?php echo apply_filters( 'edit_text', get_post_text() ); ?></textarea> 
     12        </label> 
    1313</p> 
     14 
    1415<p class="submit"> 
    15 <input type="submit" name="Submit" value="<?php echo esc_attr__( 'Edit Post &raquo;' ); ?>" /> 
    16 <input type="hidden" name="post_id" value="<?php post_id(); ?>" /> 
    17 <input type="hidden" name="topic_id" value="<?php topic_id(); ?>" /> 
     16        <input type="submit" name="Submit" value="<?php esc_attr_e( 'Edit Post &raquo;' ); ?>"<?php bb_tabindex(); ?> /> 
     17        <input type="hidden" name="post_id" value="<?php post_id(); ?>" /> 
     18        <input type="hidden" name="topic_id" value="<?php topic_id(); ?>" /> 
    1819</p> 
    19 <p><?php _e('Allowed markup:'); ?> <code><?php allowed_markup(); ?></code>. <br /><?php _e('Put code in between <code>`backticks`</code>.'); ?></p> 
     20 
     21<p id="post-form-allowed-container" class="allowed"><?php printf( __( 'Allowed markup: %s.' ), '<code>' . get_allowed_markup() . '</code>' ); ?><br /><?php _e( 'You can also put code in between backtick ( <code>`</code> ) characters.' ); ?></p> 
     22 No newline at end of file 
  • bb-templates/kakumei/edit-post.php

     
    11<?php bb_get_header(); ?> 
    2 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php _e('Edit Post'); ?></div> 
    32 
    43<?php edit_form(); ?> 
    54 
    6 <?php bb_get_footer(); ?> 
     5<?php bb_get_footer(); ?> 
     6 No newline at end of file 
  • bb-templates/kakumei/favorites.php

     
    11<?php bb_get_header(); ?> 
    22 
    3 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <a href="<?php user_profile_link( $user_id ); ?>"><?php echo get_user_display_name( $user_id ); ?></a> &raquo; <?php _e('Favorites'); ?></div> 
    4  
    53<h2 id="userlogin" role="main"><?php echo get_user_display_name( $user->ID ); ?> <small>(<?php echo get_user_name( $user->ID ); ?>)</small> <?php _e( 'favorites' ); ?><?php if ( $topics ) printf( __( ' - %d' ), $favorites_total ); ?></h2> 
    64 
     5<?php do_action( 'bb_favorites_before_message' ); ?> 
     6 
    77<p><?php _e( 'Favorites allow members to create a custom <abbr title="Really Simple Syndication">RSS</abbr> feed which pulls recent replies to the topics they specify.' ); ?></p> 
     8 
    89<?php if ( bb_current_user_can( 'edit_favorites_of', $user_id ) ) : ?> 
    910<p><?php _e( 'To add topics to your list of favorites, just click the "Add to Favorites" link found on that topic&#8217;s page.' ); ?></p> 
    1011<?php endif; ?> 
    1112 
     13<?php bb_kakumei_topics_table(); ?> 
     14 
    1215<?php if ( $topics ) : ?> 
    1316 
    14 <table id="favorites"> 
    15 <tr> 
    16         <th><?php _e('Topic'); ?></th> 
    17         <th><?php _e('Posts'); ?></th> 
    18         <!-- <th><?php _e('Voices'); ?></th> --> 
    19         <th><?php _e('Last Poster'); ?></th> 
    20         <th><?php _e('Freshness'); ?></th> 
    21 <?php if ( bb_current_user_can( 'edit_favorites_of', $user_id ) ) : ?> 
    22         <th><?php _e('Remove'); ?></th> 
    23 <?php endif; ?> 
    24 </tr> 
     17<p class="rss-link"><a href="<?php favorites_rss_link( $user_id ); ?>" class="rss-link"><?php _e( '<abbr title="Really Simple Syndication">RSS</abbr> feed for these favorites' ); ?></a></p> 
    2518 
    26 <?php foreach ( $topics as $topic ) : ?> 
    27 <tr<?php topic_class(); ?>> 
    28         <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td> 
    29         <td class="num"><?php topic_posts(); ?></td> 
    30         <!-- <td class="num"><?php bb_topic_voices(); ?></td> --> 
    31         <td class="num"><?php topic_last_poster(); ?></td> 
    32         <td class="num"><a href="<?php topic_last_post_link(); ?>" title="<?php topic_time(array('format'=>'datetime')); ?>"><?php topic_time(); ?></a></td> 
    33 <?php if ( bb_current_user_can( 'edit_favorites_of', $user_id ) ) : ?> 
    34         <td class="num">[<?php user_favorites_link('', array('mid'=>'&times;'), $user_id); ?>]</td> 
    35 <?php endif; ?> 
    36 </tr> 
    37 <?php endforeach; ?> 
    38 </table> 
    39  
    40 <p class="rss-link"><a href="<?php favorites_rss_link( $user_id ); ?>" class="rss-link"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for these favorites'); ?></a></p> 
    41  
    42 <?php favorites_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?> 
    43  
    4419<?php else: if ( $user_id == bb_get_current_user_info( 'id' ) ) : ?> 
    4520 
    46 <p><?php _e('You currently have no favorites.'); ?></p> 
     21<p><?php _e( 'You currently have no favorites.' ); ?></p> 
    4722 
    4823<?php else : ?> 
    4924 
    50 <p><?php echo get_user_name( $user_id ); ?> <?php _e('currently has no favorites.'); ?></p> 
     25<p><?php printf( __( '%s currently has no favorites.' ), get_user_name( $user_id ) ); ?></p> 
    5126 
    5227<?php endif; endif; ?> 
    5328 
    54 <?php bb_get_footer(); ?> 
     29<?php do_action( 'bb_favorites_after_message' ); ?> 
     30 
     31<?php bb_get_footer(); ?> 
     32 No newline at end of file 
  • bb-templates/kakumei/footer.php

     
     1                <?php do_action( 'bb_before_footer' ); ?> 
    12                </div> 
    23        </div> 
    34        <div id="footer" role="contentinfo"> 
    4                 <p><?php printf(__('%1$s is proudly powered by <a href="%2$s">bbPress</a>.'), bb_option('name'), "http://bbpress.org") ?></p> 
     5                <p><?php printf(__( '%1$s is proudly powered by <a href="%2$s">bbPress</a>.' ), bb_get_option( 'name' ), 'http://bbpress.org' ); ?></p> 
    56 
    67                <!-- If you like showing off the fact that your server rocks --> 
    78                <!-- <p class="showoff"> 
     
    1617                </p> --> 
    1718        </div> 
    1819 
    19 <?php do_action('bb_foot'); ?> 
     20<?php do_action( 'bb_foot' ); ?> 
    2021 
    2122</body> 
    22 </html> 
     23</html> 
     24 No newline at end of file 
  • bb-templates/kakumei/forum.php

     
    11<?php bb_get_header(); ?> 
    22 
    3 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a><?php bb_forum_bread_crumb(); ?></div> 
     3<?php bb_kakumei_topics_table(); ?> 
    44 
    5 <?php if ( $topics || $stickies ) : ?> 
    6  
    7 <table id="latest" role="main"> 
    8 <tr> 
    9         <th><?php _e('Topic'); ?> &#8212; <?php bb_new_topic_link(); ?></th> 
    10         <th><?php _e('Posts'); ?></th> 
    11         <!-- <th><?php _e('Voices'); ?></th> --> 
    12         <th><?php _e('Last Poster'); ?></th> 
    13         <th><?php _e('Freshness'); ?></th> 
    14 </tr> 
    15  
    16 <?php if ( $stickies ) : foreach ( $stickies as $topic ) : ?> 
    17 <tr<?php topic_class(); ?>> 
    18         <td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big><?php topic_page_links(); ?></td> 
    19         <td class="num"><?php topic_posts(); ?></td> 
    20         <!-- <td class="num"><?php bb_topic_voices(); ?></td> --> 
    21         <td class="num"><?php topic_last_poster(); ?></td> 
    22         <td class="num"><a href="<?php topic_last_post_link(); ?>" title="<?php topic_time(array('format'=>'datetime')); ?>"><?php topic_time(); ?></a></td> 
    23 </tr> 
    24 <?php endforeach; endif; ?> 
    25  
    26 <?php if ( $topics ) : foreach ( $topics as $topic ) : ?> 
    27 <tr<?php topic_class(); ?>> 
    28         <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?></td> 
    29         <td class="num"><?php topic_posts(); ?></td> 
    30         <!-- <td class="num"><?php bb_topic_voices(); ?></td> --> 
    31         <td class="num"><?php topic_last_poster(); ?></td> 
    32         <td class="num"><a href="<?php topic_last_post_link(); ?>" title="<?php topic_time(array('format'=>'datetime')); ?>"><?php topic_time(); ?></a></td> 
    33 </tr> 
    34 <?php endforeach; endif; ?> 
    35 </table> 
    36 <p class="rss-link"><a href="<?php bb_forum_posts_rss_link(); ?>" class="rss-link"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for this forum'); ?></a></p> 
    37 <?php forum_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?> 
    38 <?php endif; ?> 
    39  
    405<?php if ( bb_forums( $forum_id ) ) : ?> 
    41 <h2><?php _e('Subforums'); ?></h2> 
     6<h2><?php _e( 'Subforums' ); ?></h2> 
    427<table id="forumlist"> 
    43  
    44 <tr> 
    45         <th><?php _e('Main Theme'); ?></th> 
    46         <th><?php _e('Topics'); ?></th> 
    47         <th><?php _e('Posts'); ?></th> 
    48 </tr> 
    49  
     8        <thead> 
     9                <tr> 
     10                        <th><?php _e( 'Main Theme' ); ?></th> 
     11                        <th><?php _e( 'Topics' ); ?></th> 
     12                        <th><?php _e( 'Posts' ); ?></th> 
     13                        <?php do_action( 'bb_subforum_table_thead', $forum_id ); ?> 
     14                </tr> 
     15        </thead> 
     16         
     17        <tbody> 
    5018<?php while ( bb_forum() ) : ?> 
    51 <?php if (bb_get_forum_is_category()) : ?> 
    52 <tr<?php bb_forum_class('bb-category'); ?>> 
    53         <td colspan="3"><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> &#8211; ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td> 
    54 </tr> 
    55 <?php continue; endif; ?> 
    56 <tr<?php bb_forum_class(); ?>> 
    57         <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> &#8211; ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td> 
    58         <td class="num"><?php forum_topics(); ?></td> 
    59         <td class="num"><?php forum_posts(); ?></td> 
    60 </tr> 
     19        <?php if ( bb_get_forum_is_category() ) : ?> 
     20                <tr<?php bb_forum_class( 'bb-category' ); ?>> 
     21                        <td colspan="3"><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> &#8211; ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td> 
     22                        <?php do_action( 'bb_subforum_table_td', get_forum_id() ); ?> 
     23                </tr> 
     24        <?php continue; endif; ?> 
     25                <tr<?php bb_forum_class(); ?>> 
     26                        <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> &#8211; ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td> 
     27                        <td class="num"><?php forum_topics(); ?></td> 
     28                        <td class="num"><?php forum_posts(); ?></td> 
     29                        <?php do_action( 'bb_subforum_table_td', get_forum_id() ); ?> 
     30                </tr> 
    6131<?php endwhile; ?> 
     32        </tbody> 
     33 
    6234</table> 
    6335<?php endif; ?> 
    6436 
    6537<?php post_form(); ?> 
    6638 
    67 <?php bb_get_footer(); ?> 
     39<?php bb_get_footer(); ?> 
     40 No newline at end of file 
  • bb-templates/kakumei/front-page.php

     
    22 
    33<?php if ( $forums ) : ?> 
    44 
    5 <div id="hottags" role="main"> 
    6 <h2><?php _e('Hot Tags'); ?></h2> 
    7 <p class="frontpageheatmap"><?php bb_tag_heat_map(); ?></p> 
     5<div id="sidebar"> 
     6        <div id="hottags"> 
     7                <h2><?php _e( 'Hot Tags' ); ?></h2> 
     8                <p class="frontpageheatmap"><?php bb_tag_heat_map(); ?></p> 
     9        </div> 
     10        <?php if ( bb_is_user_logged_in() ) : ?> 
     11        <div id="viewdiv"> 
     12                <h2><?php _e( 'Views' ); ?></h2> 
     13                <ul id="views"> 
     14                        <?php foreach ( bb_get_views() as $the_view => $title ) : ?> 
     15                        <li<?php alt_class( 'views', 'view' ); ?>><a href="<?php view_link( $the_view ); ?>"><?php view_name( $the_view ); ?></a></li> 
     16                        <?php endforeach; ?> 
     17                </ul> 
     18        </div> 
     19        <?php endif; // bb_is_user_logged_in() ?> 
    820</div> 
    921 
    1022<div id="discussions"> 
    11 <?php if ( $topics || $super_stickies ) : ?> 
    12  
    13 <h2><?php _e('Latest Discussions'); ?></h2> 
    14  
    15 <table id="latest"> 
    16 <tr> 
    17         <th><?php _e('Topic'); ?> &#8212; <?php bb_new_topic_link(); ?></th> 
    18         <th><?php _e('Posts'); ?></th> 
    19         <!-- <th><?php _e('Voices'); ?></th> --> 
    20         <th><?php _e('Last Poster'); ?></th> 
    21         <th><?php _e('Freshness'); ?></th> 
    22 </tr> 
    23  
    24 <?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?> 
    25 <tr<?php topic_class(); ?>> 
    26         <td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big><?php topic_page_links(); ?></td> 
    27         <td class="num"><?php topic_posts(); ?></td> 
    28         <!-- <td class="num"><?php bb_topic_voices(); ?></td> --> 
    29         <td class="num"><?php topic_last_poster(); ?></td> 
    30         <td class="num"><a href="<?php topic_last_post_link(); ?>" title="<?php topic_time(array('format'=>'datetime')); ?>"><?php topic_time(); ?></a></td> 
    31 </tr> 
    32 <?php endforeach; endif; // $super_stickies ?> 
    33  
    34 <?php if ( $topics ) : foreach ( $topics as $topic ) : ?> 
    35 <tr<?php topic_class(); ?>> 
    36         <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?></td> 
    37         <td class="num"><?php topic_posts(); ?></td> 
    38         <!-- <td class="num"><?php bb_topic_voices(); ?></td> --> 
    39         <td class="num"><?php topic_last_poster(); ?></td> 
    40         <td class="num"><a href="<?php topic_last_post_link(); ?>" title="<?php topic_time(array('format'=>'datetime')); ?>"><?php topic_time(); ?></a></td> 
    41 </tr> 
    42 <?php endforeach; endif; // $topics ?> 
    43 </table> 
    44 <?php bb_latest_topics_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?> 
    45 <?php endif; // $topics or $super_stickies ?> 
    46  
    47 <?php if ( bb_forums() ) : ?> 
    48 <h2><?php _e('Forums'); ?></h2> 
    49 <table id="forumlist"> 
    50  
    51 <tr> 
    52         <th><?php _e('Main Theme'); ?></th> 
    53         <th><?php _e('Topics'); ?></th> 
    54         <th><?php _e('Posts'); ?></th> 
    55 </tr> 
    56 <?php while ( bb_forum() ) : ?> 
    57 <?php if (bb_get_forum_is_category()) : ?> 
    58 <tr<?php bb_forum_class('bb-category'); ?>> 
    59         <td colspan="3"><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> &#8211; ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td> 
    60 </tr> 
    61 <?php continue; endif; ?> 
    62 <tr<?php bb_forum_class(); ?>> 
    63         <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> &#8211; ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td> 
    64         <td class="num"><?php forum_topics(); ?></td> 
    65         <td class="num"><?php forum_posts(); ?></td> 
    66 </tr> 
    67 <?php endwhile; ?> 
    68 </table> 
    69 <?php endif; // bb_forums() ?> 
    70  
    71 <?php if ( bb_is_user_logged_in() ) : ?> 
    72 <div id="viewdiv"> 
    73 <h2><?php _e('Views'); ?></h2> 
    74 <ul id="views"> 
    75 <?php foreach ( bb_get_views() as $the_view => $title ) : ?> 
    76 <li class="view"><a href="<?php view_link( $the_view ); ?>"><?php view_name( $the_view ); ?></a></li> 
    77 <?php endforeach; ?> 
    78 </ul> 
     23        <?php bb_kakumei_topics_table(); /* Open up functions.php to customize the table */ ?> 
     24         
     25        <?php if ( bb_forums() ) : ?> 
     26         
     27        <?php do_action( 'bb_before_forum_table' ); ?> 
     28         
     29        <h2><?php _e( 'Forums' ); ?></h2> 
     30        <table id="forumlist"> 
     31                <thead> 
     32                        <tr> 
     33                                <th><?php _e( 'Main Theme' ); ?></th> 
     34                                <th><?php _e( 'Topics' ); ?></th> 
     35                                <th><?php _e( 'Posts' ); ?></th> 
     36                                <?php do_action( 'bb_forum_table_thead' ); ?> 
     37                        </tr> 
     38                </thead> 
     39                 
     40                <tbody> 
     41                        <?php while ( bb_forum() ) : ?> 
     42                        <?php if ( bb_get_forum_is_category() ) : ?> 
     43                        <tr<?php bb_forum_class( 'bb-category' ); ?>> 
     44                                <td colspan="3"><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> &#8211; ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td> 
     45                                <?php do_action( 'bb_forum_table_td', get_forum_id() ); ?> 
     46                        </tr> 
     47                        <?php continue; endif; ?> 
     48                        <tr<?php bb_forum_class(); ?>> 
     49                                <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> &#8211; ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td> 
     50                                <td class="num"><?php forum_topics(); ?></td> 
     51                                <td class="num"><?php forum_posts(); ?></td> 
     52                                <?php do_action( 'bb_forum_table_td', get_forum_id() ); ?> 
     53                        </tr> 
     54                        <?php endwhile; ?> 
     55                </tbody> 
     56        </table> 
     57         
     58        <?php do_action( 'bb_before_forum_table' ); ?> 
     59        <?php endif; // bb_forums() ?> 
     60         
    7961</div> 
    80 <?php endif; // bb_is_user_logged_in() ?> 
     62<?php else : //$forums ?> 
     63        <?php post_form( array( 'h2' => __( 'Start New Topic' ) . '<span> &#8212; <a href="' . bb_get_uri() . '">' . __( 'cancel' ) . '</a>' ) ); ?> 
     64<?php endif; //$forums ?> 
    8165 
    82 </div> 
    83  
    84 <?php else : // $forums ?> 
    85  
    86 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php _e('Add New Topic'); ?></div> 
    87  
    88 <?php post_form(); endif; // $forums ?> 
    89  
    90 <?php bb_get_footer(); ?> 
     66<?php bb_get_footer(); ?> 
     67 No newline at end of file 
  • bb-templates/kakumei/header.php

     
    22$_head_profile_attr = ''; 
    33if ( bb_is_profile() ) { 
    44        global $self; 
    5         if ( !$self ) { 
    6                 $_head_profile_attr = ' profile="http://www.w3.org/2006/03/hcard"'; 
    7         } 
     5        if ( !$self ) $_head_profile_attr = ' profile="http://www.w3.org/2006/03/hcard"'; 
    86} 
    97?> 
    108<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
    119<html xmlns="http://www.w3.org/1999/xhtml"<?php bb_language_attributes( '1.1' ); ?>> 
     10 
    1211<head<?php echo $_head_profile_attr; ?>> 
    1312        <meta http-equiv="X-UA-Compatible" content="IE=8" /> 
    1413        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    15         <title><?php bb_title() ?></title> 
     14        <title><?php bb_title(); ?></title> 
    1615        <link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" /> 
    1716<?php if ( 'rtl' == bb_get_option( 'text_direction' ) ) : ?> 
    1817        <link rel="stylesheet" href="<?php bb_stylesheet_uri( 'rtl' ); ?>" type="text/css" /> 
     
    2726        <div id="wrapper"> 
    2827                <div id="header" role="banner"> 
    2928                        <h1><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a></h1> 
    30                         <?php if ( bb_get_option('description') ) : ?><p class="description"><?php bb_option('description'); ?></p><?php endif; ?> 
    31  
     29                        <?php if ( bb_get_option( 'description' ) ) : ?><p class="description"><?php bb_option( 'description' ); ?></p><?php endif; ?> 
     30                         
    3231<?php if ( !in_array( bb_get_location(), array( 'login-page', 'register-page' ) ) ) login_form(); ?> 
    33  
     32                         
    3433                        <div class="search"> 
    3534<?php search_form(); ?> 
    3635                        </div> 
    3736                </div> 
    3837                <div id="main"> 
    39  
     38                         
    4039<?php if ( bb_is_profile() ) profile_menu(); ?> 
     40<?php bb_auto_crumbs(); ?> 
     41                         
     42 No newline at end of file 
  • bb-templates/kakumei/logged-in.php

     
    11<p class="login"> 
    2         <?php printf(__('Welcome, %1$s'), bb_get_profile_link(bb_get_current_user_info( 'name' )));?> 
     2        <?php printf( __( 'Welcome, %s' ), bb_get_profile_link( bb_get_current_user_info( 'name' ) ) ); ?> 
    33        <?php bb_admin_link( 'before= | ' );?> 
    44        | <?php bb_logout_link(); ?> 
    5 </p> 
     5</p> 
     6 No newline at end of file 
  • bb-templates/kakumei/login-form.php

     
    11<form class="login" method="post" action="<?php bb_uri( 'bb-login.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS ); ?>"> 
    22        <p> 
    3                 <?php 
     3        <?php 
    44        printf( 
    55                __( '<a href="%1$s">Register</a> or log in - <a href="%2$s">lost password?</a>' ), 
    66                bb_get_uri( 'register.php', null, BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_USER_FORMS ), 
    77                bb_get_uri( 'bb-login.php', array( 'action' => 'lostpassword' ), BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_USER_FORMS ) 
    88        ); 
    99        ?> 
    10  
    1110        </p> 
     11         
    1212        <div> 
    1313                <label> 
    14                         <?php _e('Username'); ?><br /> 
    15                         <input name="log" type="text" id="quick_user_login" size="13" maxlength="40" value="<?php if (!is_bool($user_login)) echo $user_login; ?>" tabindex="1" /> 
     14                        <?php _e( 'Username' ); ?><br /> 
     15                        <input name="log" type="text" id="quick_user_login" size="13" maxlength="40" value="<?php if ( !is_bool( $user_login ) ) echo $user_login; ?>"<?php bb_tabindex(); ?> /> 
    1616                </label> 
    1717                <label> 
    1818                        <?php _e( 'Password' ); ?><br /> 
    19                         <input name="pwd" type="password" id="quick_password" size="13" maxlength="40" tabindex="2" /> 
     19                        <input name="pwd" type="password" id="quick_password" size="13" maxlength="40"<?php bb_tabindex(); ?> /> 
    2020                </label> 
     21                 
    2122                <input name="redirect_to" type="hidden" value="<?php echo $re; ?>" /> 
    2223                <?php wp_referer_field(); ?> 
    23  
    24                 <input type="submit" name="Submit" class="submit" value="<?php echo esc_attr__( 'Log in &raquo;' ); ?>" tabindex="4" /> 
     24                <input type="submit" name="Submit" class="submit" value="<?php esc_attr_e( 'Log in &raquo;' ); ?>"<?php bb_tabindex( array( 'val' => 4, 'set_to_value' => 3 ) ); ?> /> 
    2525        </div> 
     26         
    2627        <div class="remember"> 
    2728                <label> 
    28                         <input name="rememberme" type="checkbox" id="quick_remember" value="1" tabindex="3"<?php echo $remember_checked; ?> /> 
    29                         <?php _e('Remember me'); ?> 
    30  
     29                        <input name="rememberme" type="checkbox" id="quick_remember" value="1"<?php bb_tabindex( array( 'set_to_value' => 5 ) ); ?><?php echo $remember_checked; ?> /> 
     30                        <?php _e( 'Remember me' ); ?> 
    3131                </label> 
    3232        </div> 
    3333</form> 
     34 No newline at end of file 
  • bb-templates/kakumei/login.php

     
    11<?php bb_get_header(); ?> 
    22 
    3 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php _e('Log in'); ?></div> 
     3<h2 id="userlogin" role="main"><?php !empty( $user_login ) ? _e( 'Log in Failed' ) : _e( 'Log in' ) ; ?></h2> 
    44 
    5 <h2 id="userlogin" role="main"><?php !empty( $user_login ) ? _e('Log in Failed') : _e('Log in') ; ?></h2> 
    6  
    7 <form method="post" action="<?php bb_uri('bb-login.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS); ?>"> 
    8 <fieldset> 
    9 <table> 
     5<form method="post" action="<?php bb_uri( 'bb-login.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS ); ?>"> 
     6        <fieldset> 
     7                <table> 
    108<?php 
    11         $user_login_error = $bb_login_error->get_error_message( 'user_login' ); 
    12         $user_email_error = $bb_login_error->get_error_message( 'user_email' ); 
    13         $user_password_error = $bb_login_error->get_error_message( 'password' ); 
     9        $user_login_error       = $bb_login_error->get_error_message( 'user_login' ); 
     10        $user_email_error       = $bb_login_error->get_error_message( 'user_email' ); 
     11        $user_password_error    = $bb_login_error->get_error_message( 'password' ); 
    1412?> 
    15         <tr valign="top" class="form-field <?php if ( $user_login_error || $user_email_error ) echo ' form-invalid error'; ?>"> 
    16                 <th scope="row"> 
    17                         <label for="user_login"><?php _e('Username'); ?></label> 
    18                         <?php if ( $user_login_error ) echo "<em>$user_login_error</em>"; ?> 
    19                         <?php if ( $user_email_error ) echo "<em>$user_email_error</em>"; ?> 
    20                 </th> 
    21                 <td> 
    22                         <input name="log" id="user_login" type="text" value="<?php echo $user_login; ?>" /> 
    23                 </td> 
    24         </tr> 
    25         <tr valign="top" class="form-field <?php if ( $user_password_error ) echo 'form-invalid error'; ?>"> 
    26                 <th scope="row"> 
    27                         <label for="password"><?php _e('Password'); ?></label> 
    28                         <?php if ( $user_password_error ) echo "<em>$user_password_error</em>"; ?> 
    29                 </th> 
    30                 <td> 
    31                         <input name="pwd" id="password" type="password" /> 
    32                 </td> 
    33         </tr> 
    34  
    35         <tr valign="top" class="form-field"> 
    36                 <th scope="row"><label for="remember"><?php _e('Remember me'); ?></label></th> 
    37                 <td><input name="rememberme" type="checkbox" id="remember" value="1"<?php echo $remember_checked; ?> /></td> 
    38         </tr> 
    39         <tr> 
    40                 <th scope="row">&nbsp;</th> 
    41                 <td> 
    42                         <input name="redirect_to" type="hidden" value="<?php echo $redirect_to; ?>" /> 
    43                         <input type="submit" value="<?php echo esc_attr( !empty( $user_login ) ? __( 'Try Again &raquo;' ): __( 'Log in &raquo;' ) ); ?>" /> 
    44                         <?php wp_referer_field(); ?> 
    45                 </td> 
    46         </tr> 
    47 </table> 
    48  
    49 </fieldset> 
     13                        <tr valign="top" class="form-field <?php if ( $user_login_error || $user_email_error ) echo ' form-invalid error'; ?>"> 
     14                                <th scope="row"> 
     15                                        <label for="user_login"><?php _e( 'Username' ); ?></label> 
     16                                        <?php if ( $user_login_error ) echo "<em>$user_login_error</em>"; ?> 
     17                                        <?php if ( $user_email_error ) echo "<em>$user_email_error</em>"; ?> 
     18                                </th> 
     19                                <td> 
     20                                        <input name="log" id="user_login" type="text" value="<?php echo $user_login; ?>"<?php bb_tabindex(); ?> /> 
     21                                </td> 
     22                        </tr> 
     23                        <tr valign="top" class="form-field <?php if ( $user_password_error ) echo 'form-invalid error'; ?>"> 
     24                                <th scope="row"> 
     25                                        <label for="password"><?php _e( 'Password' ); ?></label> 
     26                                        <?php if ( $user_password_error ) echo "<em>$user_password_error</em>"; ?> 
     27                                </th> 
     28                                <td> 
     29                                        <input name="pwd" id="password" type="password"<?php bb_tabindex(); ?> /> 
     30                                </td> 
     31                        </tr> 
     32                 
     33                        <tr valign="top" class="form-field"> 
     34                                <th scope="row"><label for="remember"><?php _e( 'Remember me' ); ?></label></th> 
     35                                <td><input name="rememberme" type="checkbox" id="remember" value="1"<?php echo $remember_checked; bb_tabindex(); ?> /></td> 
     36                        </tr> 
     37                        <tr> 
     38                                <th scope="row">&nbsp;</th> 
     39                                <td> 
     40                                        <input name="redirect_to" type="hidden" value="<?php echo $redirect_to; ?>" /> 
     41                                        <input type="submit" value="<?php echo esc_attr( !empty( $user_login ) ? __( 'Try Again &raquo;' ): __( 'Log in &raquo;' ) ); ?>"<?php bb_tabindex(); ?> /> 
     42                                        <?php wp_referer_field(); ?> 
     43                                </td> 
     44                        </tr> 
     45                </table> 
     46        </fieldset> 
    5047</form> 
    5148 
    5249<h2 id="passwordrecovery"><?php _e( 'Password Recovery' ); ?></h2> 
    53 <form method="post" action="<?php bb_uri('bb-reset-password.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS); ?>"> 
     50<form method="post" action="<?php bb_uri( 'bb-reset-password.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS ); ?>"> 
    5451<fieldset> 
    55         <p><?php _e('To recover your password, enter your information below.'); ?></p> 
     52        <p><?php _e( 'To recover your password, enter your information below.' ); ?></p> 
    5653        <table> 
    5754                <tr valign="top" class="form-field"> 
    5855                        <th scope="row"> 
    5956                                <label for="user_login_reset_password"><?php _e( 'Username' ); ?></label> 
    6057                        </th> 
    6158                        <td> 
    62                                 <input name="user_login" id="user_login_reset_password" type="text" value="<?php echo $user_login; ?>" /> 
     59                                <input name="user_login" id="user_login_reset_password" type="text" value="<?php echo $user_login; ?>"<?php bb_tabindex(); ?> /> 
    6360                        </td> 
    6461                </tr> 
    6562                <tr valign="top"> 
    6663                        <th scope="row"></th> 
    6764                        <td> 
    68                                 <input type="submit" value="<?php echo esc_attr__( 'Recover Password &raquo;' ); ?>" /> 
     65                                <input type="submit" value="<?php esc_attr_e( 'Recover Password &raquo;' ); ?>"<?php bb_tabindex(); ?> /> 
    6966                        </td> 
    7067                </tr> 
    7168        </table> 
    7269</fieldset> 
    7370</form> 
    7471 
    75 <?php bb_get_footer(); ?> 
     72<?php bb_get_footer(); ?> 
     73 No newline at end of file 
  • bb-templates/kakumei/password-reset.php

     
    11<?php bb_get_header(); ?> 
    22 
    3 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php _e('Log in'); ?></div> 
     3<h2 role="main"><?php _e( 'Password Reset' ); ?></h2> 
    44 
    5 <h2 role="main"><?php _e('Password Reset'); ?></h2> 
     5<?php do_action( 'bb_before_password_reset_message' ); ?> 
    66 
    77<?php if ( $error ) : ?> 
     8 
    89<p class="notice error"><?php echo $error; ?></p> 
     10 
    911<?php else : ?> 
     12 
    1013<?php switch ( $action ) : ?> 
    1114<?php case ( 'send_key' ) : ?> 
    12 <p class="notice"><?php _e('An email has been sent to the address we have on file for you. If you don&#8217;t get anything within a few minutes, or your email has changed, you may want to get in touch with the webmaster or forum administrator here.'); ?></p> 
     15<p class="notice"><?php _e( 'An email has been sent to the address we have on file for you. If you don&#8217;t get anything within a few minutes, or your email has changed, you may want to get in touch with the webmaster or forum administrator here.' ); ?></p> 
    1316<?php break; ?> 
     17 
    1418<?php case ( 'reset_password' ) : ?> 
    15 <p class="notice"><?php _e('Your password has been reset and a new one has been mailed to you.'); ?></p> 
     19<p class="notice"><?php _e( 'Your password has been reset and a new one has been mailed to you.' ); ?></p> 
    1620<?php break; ?> 
     21 
     22<?php default: ?> 
     23<?php do_action( 'bb_password_reset_message', $action ); ?> 
     24<?php break; ?> 
     25 
    1726<?php endswitch; ?> 
    1827<?php endif; ?> 
    1928 
    20 <?php bb_get_footer(); ?> 
     29<?php do_action( 'bb_after_password_reset_message' ); ?> 
     30 
     31<?php bb_get_footer(); ?> 
     32 No newline at end of file 
  • bb-templates/kakumei/post-form.php

     
    11<?php if ( !bb_is_topic() ) : ?> 
    22<p id="post-form-title-container"> 
    3         <label for="topic"><?php _e('Title'); ?> 
    4                 <input name="topic" type="text" id="topic" size="50" maxlength="100" tabindex="1" /> 
     3        <label for="topic"><?php _e( 'Title' ); ?> 
     4                <input name="topic" type="text" id="topic" size="50" maxlength="100"<?php bb_tabindex(); ?> /> 
    55        </label> 
    66</p> 
    77<?php endif; do_action( 'post_form_pre_post' ); ?> 
    88<?php if ( ! bb_is_user_logged_in() && ! bb_is_login_required() )  :  
    9         $current_commenter = bb_get_current_commenter(); 
     9        $current_poster = bb_get_current_commenter(); 
    1010?> 
    1111        <p id="post-form-author-container"> 
    12                 <label for="author"><?php _e('Author (required)'); ?> 
    13                         <input type="text" name="author" id="author" size="50" aria-required="true" value="<?php echo esc_attr($current_commenter['comment_author']); ?>" /> 
     12                <label for="author"><?php _e( 'Author (required)' ); ?> 
     13                        <input type="text" name="author" id="author" size="50" aria-required="true" value="<?php echo esc_attr( $current_poster['comment_author'] ); ?>"<?php bb_tabindex(); ?> /> 
    1414                </label> 
    1515        </p> 
    1616 
    1717        <p id="post-form-email-container"> 
    18                 <label for="email"><?php _e('Email (required)'); ?> 
    19                         <input type="text" name="email" id="email" size="50" aria-required="true" value="<?php echo esc_attr($current_commenter['comment_author_email']); ?>" /> 
     18                <label for="email"><?php _e( 'Email (required)' ); ?> 
     19                        <input type="text" name="email" id="email" size="50" aria-required="true" value="<?php echo esc_attr( $current_poster['comment_author_email'] ); ?>"<?php bb_tabindex(); ?> /> 
    2020                </label> 
    2121        </p> 
    2222 
    2323        <p id="post-form-url-container"> 
    24                 <label for="url"><?php _e('URL'); ?> 
    25                         <input type="text" name="url" id="url" size="50" aria-required="true" value="<?php echo esc_attr($current_commenter['comment_author_url']); ?>" /> 
     24                <label for="url"><?php _e( 'Website' ); ?> 
     25                        <input type="text" name="url" id="url" size="50" value="<?php echo esc_attr( $current_poster['comment_author_url'] ); ?>"<?php bb_tabindex(); ?> /> 
    2626                </label> 
    2727 
    2828        </p> 
    2929<?php endif; // end user not logged in but logins aren't required ?> 
    3030 
    3131<p id="post-form-post-container"> 
    32         <label for="post_content"><?php _e('Post'); ?> 
    33                 <textarea name="post_content" cols="50" rows="8" id="post_content" tabindex="3"></textarea> 
     32        <label for="post_content"><?php _e( 'Post' ); ?> 
     33                <textarea name="post_content" cols="50" rows="8" id="post_content"<?php bb_tabindex(); ?>></textarea> 
    3434        </label> 
    3535</p> 
    3636<p id="post-form-tags-container"> 
    37         <label for="tags-input"><?php printf(__('Tags (comma separated)'), bb_get_tag_page_link()) ?> 
    38                 <input id="tags-input" name="tags" type="text" size="50" maxlength="100" value="<?php bb_tag_name(); ?>" tabindex="4" /> 
     37        <label for="tags-input"><?php __( 'Tags (comma separated)' ) ?> 
     38                <input id="tags-input" name="tags" type="text" size="50" maxlength="100" value="<?php bb_tag_name(); ?>"<?php bb_tabindex(); ?> /> 
    3939        </label> 
    4040</p> 
    4141<?php if ( bb_is_tag() || bb_is_front() ) : ?> 
    4242<p id="post-form-forum-container"> 
    43         <label for="forum-id"><?php _e('Forum'); ?> 
    44                 <?php bb_new_topic_forum_dropdown(); ?> 
     43        <label for="forum-id"><?php _e( 'Forum' ); ?> 
     44                <?php bb_new_topic_forum_dropdown( array( 'tab' => true ) ); ?> 
    4545        </label> 
    4646</p> 
    4747<?php endif; ?> 
    4848<p id="post-form-submit-container" class="submit"> 
    49   <input type="submit" id="postformsub" name="Submit" value="<?php echo esc_attr__( 'Send Post &raquo;' ); ?>" tabindex="4" /> 
     49        <input type="submit" id="postformsub" name="Submit" value="<?php esc_attr_e( 'Send Post &raquo;' ); ?>"<?php bb_tabindex(); ?> /> 
    5050</p> 
    5151 
    52 <p id="post-form-allowed-container" class="allowed"><?php _e('Allowed markup:'); ?> <code><?php allowed_markup(); ?></code>. <br /><?php _e('You can also put code in between backtick ( <code>`</code> ) characters.'); ?></p> 
     52<p id="post-form-allowed-container" class="allowed"><?php printf( __( 'Allowed markup: %s.' ), '<code>' . get_allowed_markup() . '</code>' ); ?><br /><?php _e( 'You can also put code in between backtick ( <code>`</code> ) characters.' ); ?></p> 
     53 No newline at end of file 
  • bb-templates/kakumei/post.php

     
    44                                <p> 
    55                                        <strong><?php post_author_link(); ?></strong><br /> 
    66                                        <small><?php post_author_title_link(); ?></small> 
     7                                        <?php do_action( 'bb_post_threadauthor_meta', get_post_id() ); ?> 
    78                                </p> 
    89                        </div> 
    910                        <div class="threadpost"> 
    1011                                <div class="post"><?php post_text(); ?></div> 
    11                                 <div class="poststuff"><?php printf( __('Posted %s ago'), bb_get_post_time() ); ?> <a href="<?php post_anchor_link(); ?>">#</a> <?php bb_post_admin(); ?></div> 
     12                                <div class="poststuff"><?php printf( __( 'Posted %s ago' ), bb_get_post_time() ); ?> <a href="<?php post_anchor_link(); ?>">#</a> <?php bb_post_admin(); ?></div> 
     13                                <?php do_action( 'bb_post_threadpost_after_stuff', get_post_id() ); ?> 
    1214                        </div> 
    1315                </div> 
     16 No newline at end of file 
  • bb-templates/kakumei/profile-base.php

     
    11<?php bb_get_header(); ?> 
    22 
    3 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <a href="<?php user_profile_link( $user_id ); ?>"><?php echo get_user_display_name( $user_id ); ?></a> &raquo; <?php echo $profile_page_title; ?></div> 
    43<h2 role="main"><?php echo get_user_name( $user->ID ); ?></h2> 
    54 
    65<?php bb_profile_base_content(); ?> 
    76 
    8 <?php bb_get_footer(); ?> 
     7<?php bb_get_footer(); ?> 
     8 No newline at end of file 
  • bb-templates/kakumei/profile-edit.php

     
    11<?php bb_get_header(); ?> 
    22 
    3 <div class="bbcrumb"> 
    4         <a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <a href="<?php user_profile_link( $user_id ); ?>"><?php echo get_user_display_name( $user_id ); ?></a> &raquo; <?php _e( 'Edit Profile' ); ?> 
    5 </div> 
    6  
    73<h2 id="userlogin" role="main"> 
    84        <?php echo get_user_display_name( $user->ID ); ?> <small>(<?php echo get_user_name( $user->ID ); ?>)</small> 
    95</h2> 
     
    3430<?php endif; endif; ?> 
    3531 
    3632        <p class="submit right"> 
    37                 <input type="submit" name="Submit" value="<?php echo esc_attr__( 'Update Profile &raquo;' ); ?>" /> 
     33                <input type="submit" name="Submit" value="<?php esc_attr_e( 'Update Profile &raquo;' ); ?>" <?php bb_tabindex(); ?> /> 
    3834        </p> 
    3935 
    4036</form> 
     
    4844 
    4945</form> 
    5046 
    51 <?php bb_get_footer(); ?> 
     47<?php bb_get_footer(); ?> 
     48 No newline at end of file 
  • bb-templates/kakumei/profile.php

     
    11<?php bb_get_header(); ?> 
    22 
    3 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <a href="<?php user_profile_link( $user_id ); ?>"><?php echo get_user_display_name( $user_id ); ?></a> &raquo; <?php _e('Profile') ?></div> 
    4  
    53<div class="vcard" role="main"> 
    64 
    75<?php if ( $avatar = bb_get_avatar( $user->ID ) ) : ?> 
    8 <div id="useravatar"><?php echo $avatar; ?></div> 
    9 <?php unset($avatar); endif; ?> 
    10 <h2 id="userlogin"><span class="fn"><?php echo get_user_display_name( $user->ID ); ?></span> <small>(<span class="nickname"><?php echo get_user_name( $user->ID ); ?></span>)</small></h2> 
     6        <div id="useravatar"><?php echo $avatar; ?></div> 
     7<?php unset( $avatar ); endif; ?> 
    118 
     9        <h2 id="userlogin"> 
     10                <span class="fn"><?php echo get_user_display_name( $user->ID ); ?></span> <small>(<span class="nickname"><?php echo get_user_name( $user->ID ); ?></span>)</small> 
     11        </h2> 
     12 
    1213<?php if ( $updated ) : ?> 
    13 <div class="notice"> 
    14 <p><?php _e('Profile updated'); ?>. <a href="<?php profile_tab_link( $user_id, 'edit' ); ?>"><?php _e('Edit again &raquo;'); ?></a></p> 
    15 </div> 
     14        <div class="notice"> 
     15                <p><?php _e( 'Profile updated.' ); ?> <a href="<?php profile_tab_link( $user_id, 'edit' ); ?>"><?php esc_attr_e( 'Edit again &raquo;' ); ?></a></p> 
     16        </div> 
    1617<?php elseif ( $user_id == bb_get_current_user_info( 'id' ) ) : ?> 
    17 <p> 
    18 <?php _e('This is how your profile appears to a logged in member.'); ?> 
     18        <p> 
     19                <?php _e( 'This is how your profile appears to a logged in member.' ); ?> 
    1920 
    20 <?php if (bb_current_user_can( 'edit_user', $user->ID )) : ?> 
    21 <?php printf(__('You may <a href="%1$s">edit this information</a>.'), esc_attr( get_profile_tab_link( $user_id, 'edit' ) ) ); ?> 
     21<?php if ( bb_current_user_can( 'edit_user', $user->ID ) ) : ?> 
     22                <?php printf( __( 'You may <a href="%s">edit this information</a>.' ), esc_attr( get_profile_tab_link( $user_id, 'edit' ) ) ); ?> 
    2223<?php endif; ?> 
    23 </p> 
     24        </p> 
    2425 
    25 <?php if (bb_current_user_can( 'edit_favorites_of', $user->ID )) : ?> 
    26 <p><?php printf(__('You can also <a href="%1$s">manage your favorites</a> and subscribe to your favorites&#8217; <a href="%2$s"><abbr title="Really Simple Syndication">RSS</abbr> feed</a>.'), esc_attr( get_favorites_link() ), esc_attr( get_favorites_rss_link() )); ?></p> 
     26<?php if ( bb_current_user_can( 'edit_favorites_of', $user->ID ) ) : ?> 
     27        <p><?php printf( __( 'You can also <a href="%1$s">manage your favorites</a> and subscribe to your favorites&#8217; <a href="%2$s"><abbr title="Really Simple Syndication">RSS</abbr> feed</a>.' ), esc_attr( get_favorites_link() ), esc_attr( get_favorites_rss_link() ) ); ?></p> 
    2728<?php endif; ?> 
    2829<?php endif; ?> 
    2930 
     31<div class="clear"></div> 
     32 
    3033<?php bb_profile_data(); ?> 
    3134 
    3235</div> 
    3336 
    34 <h3 id="useractivity"><?php _e('User Activity') ?></h3> 
     37<h3 id="useractivity"><?php _e( 'User Activity' ) ?></h3> 
    3538 
    36 <div id="user-replies" class="user-recent"><h4><?php _e('Recent Replies'); ?></h4> 
    37 <?php if ( $posts ) : ?> 
    38 <ol> 
    39 <?php foreach ($posts as $bb_post) : $topic = get_topic( $bb_post->topic_id ) ?> 
    40 <li<?php alt_class('replies'); ?>> 
    41         <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a> - 
    42         <?php if ( $user->ID == bb_get_current_user_info( 'id' ) ) printf(__('You last replied: <a href="%1$s">%2$s ago</a>'), get_post_link(), bb_get_post_time()); else printf(__('User last replied: <a href="%1$s">%2$s ago</a>'), get_post_link(), bb_get_post_time()); ?> | 
     39<div id="user-replies" class="user-recent"> 
     40        <?php do_action( 'bb_topics_above_table_before_heading', 'profile-user-recent-replies' /* type */, $posts ); ?> 
     41        <?php if ( $posts ) : ?> 
     42        <h4><?php _e( 'Recent Replies' ); ?></h4> 
     43        <?php do_action( 'bb_topics_above_table', 'profile-user-recent-replies' /* type */, $posts ); ?> 
     44        <table id="latest"> 
     45                <thead> 
     46                        <tr> 
     47                                <th><?php _e( 'Topic' ); ?></th> 
     48                                <th class="date"><?php if ( $user->ID == bb_get_current_user_info( 'id' ) ) _e( 'You Last Replied' ); else _e( 'User Last Replied' ); ?></th> 
     49                                <th class="date"><?php _e( 'Most Recent Reply' ); ?></th> 
     50                                <?php do_action( 'bb_topics_thead', 'profile-user-recent-replies' /* type */, $posts ); ?> 
     51                        </tr> 
     52                </thead> 
     53                <tbody> 
     54                        <?php foreach ( $posts as $bb_post ) : $topic = get_topic( $bb_post->topic_id ); ?> 
     55                        <tr<?php alt_class( 'replies' ); ?>> 
     56                                <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td> 
     57                                <td class="date"><a href="<?php post_link(); ?>"><?php bb_post_time(); ?> <?php _e( 'ago' ); ?></a></td> 
     58                                <td class="date"> 
     59                                        <?php if ( bb_get_post_time( 'timestamp' ) < get_topic_time( 'timestamp' ) ) { ?> 
     60                                        <a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?> <?php _e( 'ago' ); ?></a> 
     61                                        <?php } else { ?> - <?php } ?> 
     62                                </td> 
     63                        </tr> 
     64                        <?php endforeach; ?> 
     65                </tbody> 
     66        </table> 
    4367 
    44         <span class="freshness"><?php 
    45                 if ( bb_get_post_time( 'timestamp' ) < get_topic_time( 'timestamp' ) ) 
    46                         printf(__('Most recent reply: <a href="%1$s">%2$s ago</a>'), get_topic_last_post_link(),  get_topic_time()); 
    47                 else 
    48                         _e('No replies since'); 
    49         ?></span> 
    50 </li> 
    51 <?php endforeach; ?> 
    52 </ol> 
    53 <?php else : if ( $page ) : ?> 
    54 <p><?php _e('No more replies.') ?></p> 
    55 <?php else : ?> 
    56 <p><?php _e('No replies yet.') ?></p> 
    57 <?php endif; endif; ?> 
     68        <?php else : if ( $page ) : ?> 
     69        <p><?php _e( 'No more replies.' ); ?></p> 
     70        <?php else : ?> 
     71        <p><?php _e( 'No replies yet.' ) ?></p> 
     72        <?php endif; endif; ?> 
     73         
    5874</div> 
    5975 
    6076<div id="user-threads" class="user-recent"> 
    61 <h4><?php _e('Topics Started') ?></h4> 
    62 <?php if ( $topics ) : ?> 
    63 <ol> 
    64 <?php foreach ($topics as $topic) : ?> 
    65 <li<?php alt_class('topics'); ?>> 
    66         <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a> - 
    67         <?php printf(__('Started: %s ago'), get_topic_start_time()); ?> | 
     77        <h4><?php _e( 'Topics Started' ); ?></h4> 
     78        <?php if ( $topics ) : ?> 
     79        <table id="latest"> 
     80                <thead> 
     81                        <tr> 
     82                                <th><?php _e( 'Topic' ); ?></th> 
     83                                <th class="date"><?php _e( 'Started' ); ?></th> 
     84                                <th class="date"><?php _e( 'Most Recent Reply' ); ?></th> 
     85                        </tr> 
     86                </thead> 
     87                <tbody> 
     88                        <?php foreach ( $topics as $topic ) : ; ?> 
     89                        <tr<?php alt_class( 'topics' ); ?>> 
     90                                <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td> 
     91                                <td class="date"><?php topic_start_time(); ?></td> 
     92                                <td class="date"> 
     93                                        <?php if ( get_topic_start_time( 'timestamp' ) < get_topic_time( 'timestamp' ) ) { ?> 
     94                                        <a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?> <?php _e( 'ago' ); ?></a> 
     95                                        <?php } else { ?> - <?php } ?> 
     96                                </td> 
     97                        </tr> 
     98                        <?php endforeach; ?> 
     99                </tbody> 
     100        </table> 
    68101 
    69         <span class="freshness"><?php 
    70                 if ( get_topic_start_time( 'timestamp' ) < get_topic_time( 'timestamp' ) ) 
    71                         printf(__('Most recent reply: <a href="%1$s">%2$s ago</a>'), get_topic_last_post_link(), get_topic_time()); 
    72                 else 
    73                         _e('No replies since'); 
    74         ?></span> 
    75 </li> 
    76 <?php endforeach; ?> 
    77 </ol> 
    78 <?php else : if ( $page ) : ?> 
    79 <p><?php _e('No more topics posted.') ?></p> 
    80 <?php else : ?> 
    81 <p><?php _e('No topics posted yet.') ?></p> 
    82 <?php endif; endif;?> 
     102        <?php else : if ( $page ) : ?> 
     103        <p><?php _e( 'No more topics posted.' ); ?></p> 
     104        <?php else : ?> 
     105        <p><?php _e( 'No topics posted yet.' ); ?></p> 
     106        <?php endif; endif;?> 
     107         
    83108</div> 
    84109 
    85110<?php profile_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?> 
    86111 
    87 <?php bb_get_footer(); ?> 
     112<?php bb_get_footer(); ?> 
     113 No newline at end of file 
  • bb-templates/kakumei/register-success.php

     
    11<?php bb_get_header(); ?> 
    22 
    3 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php _e('Register'); ?></div> 
     3<h2 id="register" role="main"><?php _e( 'Great!' ); ?></h2> 
    44 
    5 <h2 id="register" role="main"><?php _e('Great!'); ?></h2> 
     5<p><?php printf( __( 'Your registration as <strong>%1$s</strong> was successful. Within a few minutes you should receive an email with your password. You may now <a href="%2$s">go back</a> to the forums.' ), $user_login, bb_get_uri() ); ?></p> 
    66 
    7 <p><?php printf(__('Your registration as <strong>%s</strong> was successful. Within a few minutes you should receive an email with your password.'), $user_login) ?></p> 
    8  
    9 <?php bb_get_footer(); ?> 
     7<?php bb_get_footer(); ?> 
     8 No newline at end of file 
  • bb-templates/kakumei/register.php

     
    11<?php bb_get_header(); ?> 
    22 
    3 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php _e('Register'); ?></div> 
     3<h2 id="register" role="main"><?php _e( 'Registration' ); ?></h2> 
    44 
    5 <h2 id="register" role="main"><?php _e('Registration'); ?></h2> 
    6  
    75<?php if ( !bb_is_user_logged_in() ) : ?> 
    86 
    9 <form method="post" action="<?php bb_uri('register.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS); ?>"> 
     7<form method="post" action="<?php bb_uri( 'register.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS ); ?>"> 
    108 
    11 <fieldset> 
    12 <legend><?php _e('Profile Information'); ?></legend> 
    13  
    14 <p><?php _e("Your password will be emailed to the address you provide."); ?></p> 
    15  
     9        <fieldset> 
     10                <legend><?php _e( 'Profile Information' ); ?></legend> 
     11                 
     12                <p><?php _e( 'Your password will be emailed to the address you provide.' ); ?></p> 
     13                 
     14                <?php $user_login_error = $bb_register_error->get_error_message( 'user_login' ); ?> 
     15                 
     16                <table width="100%"> 
     17                        <tr class="form-field form-required required<?php if ( $user_login_error ) echo ' form-invalid error'; ?>"> 
     18                                <th scope="row"> 
     19                                        <label for="user_login"><?php _e( 'Username' ); ?></label> 
     20                                        <?php if ( $user_login_error ) echo "<em>$user_login_error</em>"; ?> 
     21                                </th> 
     22                                <td> 
     23                                        <input name="user_login" type="text" id="user_login" size="30" maxlength="30" value="<?php echo $user_login; ?>"<?php bb_tabindex(); ?> /> 
     24                                </td> 
     25                        </tr> 
    1626<?php 
    17  
    18 $user_login_error = $bb_register_error->get_error_message( 'user_login' ); 
    19  
    20 ?> 
    21  
    22 <table width="100%"> 
    23         <tr class="form-field form-required required<?php if ( $user_login_error ) echo ' form-invalid error'; ?>"> 
    24                 <th scope="row"> 
    25                         <label for="user_login"><?php _e('Username'); ?></label> 
    26                         <?php if ( $user_login_error ) echo "<em>$user_login_error</em>"; ?> 
    27                 </th> 
    28                 <td> 
    29                         <input name="user_login" type="text" id="user_login" size="30" maxlength="30" value="<?php echo $user_login; ?>" /> 
    30                 </td> 
    31         </tr> 
    32  
    33 <?php 
    34  
    35 if ( is_array($profile_info_keys) ) : 
     27if ( is_array( $profile_info_keys ) ) : 
    3628        foreach ( $profile_info_keys as $key => $label ) : 
    3729                $class = 'form-field'; 
    38                 if ( $label[0] ) { 
     30                if ( $label[0] ) 
    3931                        $class .= ' form-required required'; 
    40                 } 
    4132                if ( $profile_info_key_error = $bb_register_error->get_error_message( $key ) ) 
    4233                        $class .= ' form-invalid error'; 
    43  
    4434?> 
    45  
    46         <tr class="<?php echo $class; ?>"> 
    47                 <th scope="row"> 
    48                         <label for="<?php echo $key; ?>"><?php echo $label[1]; ?></label> 
    49                         <?php if ( $profile_info_key_error ) echo "<em>$profile_info_key_error</em>"; ?> 
    50                 </th> 
    51                 <td> 
    52                         <input name="<?php echo $key; ?>" type="text" id="<?php echo $key; ?>" size="30" maxlength="140" value="<?php echo $$key; ?>" /> 
    53                 </td> 
    54         </tr> 
    55  
     35                        <tr class="<?php echo $class; ?>"> 
     36                                <th scope="row"> 
     37                                        <label for="<?php echo $key; ?>"><?php echo $label[1]; ?></label> 
     38                                        <?php if ( $profile_info_key_error ) echo "<em>$profile_info_key_error</em>"; ?> 
     39                                </th> 
     40                                <td> 
     41                                        <input name="<?php echo $key; ?>" type="text" id="<?php echo $key; ?>" size="30" maxlength="140" value="<?php echo $$key; ?>"<?php bb_tabindex(); ?> /> 
     42                                </td> 
     43                        </tr> 
    5644<?php 
    57  
    5845        endforeach; // profile_info_keys 
    5946endif; // profile_info_keys 
    60  
    6147?> 
    6248 
    63 </table> 
     49                </table> 
     50                <p class="required-message"><?php _e( 'These items are <span class="required">required</span>.' ) ?></p> 
     51                 
     52        </fieldset> 
    6453 
    65 <p class="required-message"><?php _e('These items are <span class="required">required</span>.') ?></p> 
     54        <?php do_action( 'extra_profile_info', $user ); ?> 
    6655 
    67 </fieldset> 
     56        <p class="submit"> 
     57                <input type="submit" name="Submit" value="<?php esc_attr_e( 'Register &raquo;' ); ?>"<?php bb_tabindex(); ?> /> 
     58        </p> 
    6859 
    69 <?php do_action('extra_profile_info', $user); ?> 
    70  
    71 <p class="submit"> 
    72         <input type="submit" name="Submit" value="<?php echo esc_attr__( 'Register &raquo;' ); ?>" /> 
    73 </p> 
    74  
    7560</form> 
    7661 
    7762<?php else : ?> 
    7863 
    79 <p><?php _e('You&#8217;re already logged in, why do you need to register?'); ?></p> 
     64<p><?php _e( 'You are already logged in, why do you need to register?' ); ?></p> 
    8065 
    8166<?php endif; ?> 
    8267 
    83 <?php bb_get_footer(); ?> 
     68<?php bb_get_footer(); ?> 
     69 No newline at end of file 
  • bb-templates/kakumei/rss2.php

     
    3232<?php endforeach; ?> 
    3333 
    3434        </channel> 
    35 </rss> 
     35</rss> 
     36 No newline at end of file 
  • bb-templates/kakumei/search-form.php

     
    1 <form class="search-form" role="search" action="<?php bb_uri('search.php', null, BB_URI_CONTEXT_FORM_ACTION); ?>" method="get"> 
     1<form class="search-form" role="search" action="<?php bb_uri( 'search.php', null, BB_URI_CONTEXT_FORM_ACTION ); ?>" method="get"> 
    22        <p> 
    3                 <label class="hidden" for="q"><?php _e('Search:'); ?></label> 
    4                 <input class="text" type="text" size="14" maxlength="100" name="q" id="q" /> 
    5                 <input class="submit" type="submit" value="<?php echo esc_attr__( 'Search &raquo;' ); ?>" /> 
     3                <label class="hidden" for="q"><?php _e( 'Search:' ); ?></label> 
     4                <input class="text" type="text" size="14" maxlength="100" name="q" id="q"<?php bb_tabindex(); ?> /> 
     5                <input class="submit" type="submit" value="<?php esc_attr_e( 'Search &raquo;' ); ?>"<?php bb_tabindex(); ?> /> 
    66        </p> 
    7 </form> 
     7</form> 
     8 No newline at end of file 
  • bb-templates/kakumei/search.php

     
    11<?php bb_get_header(); ?> 
    22 
    3 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php _e('Search')?></div> 
    43<?php bb_topic_search_form(); ?> 
    54 
    65<?php if ( !empty ( $q ) ) : ?> 
  • bb-templates/kakumei/stats.php

     
    11<?php bb_get_header(); ?> 
    22 
    3 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option( 'name' ); ?></a> &raquo; <?php _e( 'Statistics' ); ?></div> 
    4  
    53<dl role="main" class="left"> 
    64        <dt><?php _e( 'Registered Users' ); ?></dt> 
    75        <dd><strong><?php bb_total_users(); ?></strong></dd> 
     6         
     7        <dt><?php _e( 'Forums' ); ?></dt> 
     8        <dd><strong><?php total_forums(); ?></strong></dd> 
     9         
     10        <dt><?php _e( 'Topics' ); ?></dt> 
     11        <dd><strong><?php total_topics(); ?></strong></dd> 
     12         
    813        <dt><?php _e( 'Posts' ); ?></dt> 
    914        <dd><strong><?php total_posts(); ?></strong></dd> 
    1015<?php do_action( 'bb_stats_left' ); ?> 
     
    2328<?php do_action( 'bb_stats_right' ); ?> 
    2429</div> 
    2530 
    26 <?php bb_get_footer(); ?> 
     31<?php bb_get_footer(); ?> 
     32 No newline at end of file 
  • bb-templates/kakumei/style.css

     
    3131 
    3232.right { float: right; } 
    3333 
     34.clear { clear:both; } 
     35 
    3436.delete:hover { 
    3537        background-color: #c00; 
    3638        color: #fff; 
     
    282284/* Front Page 
    283285=================================== */ 
    284286 
    285 #front-page #hottags { 
     287#sidebar { 
    286288        position: absolute; 
    287289        top: 0; 
    288290        left: 0; 
     
    290292        overflow: hidden; 
    291293} 
    292294 
     295ul#views { list-style: none; } 
     296 
     297ul#views li { padding: 2px 3px; } 
     298 
     299ul#views li.alt { background-color: #F7F7F7; } 
     300 
     301ul#views li:hover { background-color: #E4F3E1; } 
     302 
    293303#front-page #discussions { 
    294304        margin-left: 170px; 
    295305        width: 590px; 
     
    729739        width: 100%; 
    730740} 
    731741 
    732 #latest, #forumlist { 
    733         margin-top: -0.9em; 
    734 } 
    735  
    736742#discussions .nav { 
    737743        margin-top: -2em; 
    738744        margin-bottom: 1em; 
     
    778784        background-color: #e4f3e1; 
    779785} 
    780786 
    781 #useravatar { margin-bottom: 1em; } 
     787#useravatar { margin: 0 1em 1em 0; float: left; } 
    782788 
    783789#useravatar img { display: block; border-width: 3px; border-style: double; } 
    784790 
     
    786792 
    787793#userinfo dt { font-weight: bold; } 
    788794 
    789 #userinfo dd { margin: 0 0 5px; }  
     795#userinfo dd { margin: 0 0 5px 10px; }  
    790796 
    791797#useractivity { margin: 15px 0 5px; } 
    792798 
    793799.user-recent { margin: 0 0 10px; } 
    794800 
    795 .user-recent ol { margin: 5px 0 0 28px; } 
     801.user-recent td.date, .user-recent th.date { width: 150px; text-align: center !important; } 
    796802 
    797 .user-recent ol li { margin: 0 0 3px; } 
    798  
    799803/* Search 
    800804=================================== */ 
    801805 
  • bb-templates/kakumei/tag-single.php

     
    11<?php bb_get_header(); ?> 
    22 
    3 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <a href="<?php bb_tag_page_link(); ?>"><?php _e('Tags'); ?></a> &raquo; <?php bb_tag_name(); ?></div> 
     3<?php do_action( 'tag_above_table' ); /* DEPRECATED, use the one in functions.php */ ?> 
    44 
    5 <?php do_action('tag_above_table'); ?> 
     5<?php bb_kakumei_topics_table(); ?> 
    66 
    7 <?php if ( $topics ) : ?> 
     7<p class="rss-link"><a href="<?php bb_tag_posts_rss_link(); ?>" class="rss-link"><?php _e( '<abbr title="Really Simple Syndication">RSS</abbr> link for this tag' ); ?></a></p> 
    88 
    9 <table id="latest" role="main"> 
    10 <tr> 
    11         <th><?php _e('Topic'); ?> &#8212; <?php bb_new_topic_link(); ?></th> 
    12         <th><?php _e('Posts'); ?></th> 
    13         <!-- <th><?php _e('Voices'); ?></th> --> 
    14         <th><?php _e('Last Poster'); ?></th> 
    15         <th><?php _e('Freshness'); ?></th> 
    16 </tr> 
    17  
    18 <?php foreach ( $topics as $topic ) : ?> 
    19 <tr<?php topic_class(); ?>> 
    20         <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?></td> 
    21         <td class="num"><?php topic_posts(); ?></td> 
    22         <!-- <td class="num"><?php bb_topic_voices(); ?></td> --> 
    23         <td class="num"><?php topic_last_poster(); ?></td> 
    24         <td class="num"><a href="<?php topic_last_post_link(); ?>" title="<?php topic_time(array('format'=>'datetime')); ?>"><?php topic_time(); ?></a></td> 
    25 </tr> 
    26 <?php endforeach; ?> 
    27 </table> 
    28  
    29 <p class="rss-link"><a href="<?php bb_tag_posts_rss_link(); ?>" class="rss-link"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> link for this tag') ?></a></p> 
    30  
    31 <?php tag_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?> 
    32  
    33 <?php endif; ?> 
    34  
    359<?php post_form(); ?> 
    3610 
    37 <?php do_action('tag_below_table'); ?> 
     11<?php do_action( 'tag_below_table' ); /* DEPRECATED, use the one in functions.php */ ?> 
    3812 
    3913<?php manage_tags_forms(); ?> 
    4014 
    41 <?php bb_get_footer(); ?> 
     15<?php bb_get_footer(); ?> 
     16 No newline at end of file 
  • bb-templates/kakumei/tags.php

     
    11<?php bb_get_header(); ?> 
    22 
    3 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php _e('Tags'); ?></div> 
     3<p role="main"><?php _e( 'This is a collection of tags that are currently popular on the forums.' ); ?></p> 
    44 
    5 <p role="main"><?php _e('This is a collection of tags that are currently popular on the forums.'); ?></p> 
    6  
    75<div id="hottags"> 
    8 <?php bb_tag_heat_map( 9, 38, 'pt', 80 ); ?> 
     6        <?php bb_tag_heat_map( 9, 38, 'pt', 80 ); ?> 
    97</div> 
    108 
    11 <?php bb_get_footer(); ?> 
     9<?php bb_get_footer(); ?> 
     10 No newline at end of file 
  • bb-templates/kakumei/topic-tags.php

     
    1 <div id="topic-tags"> 
    2 <p><?php _e('Tags:'); ?></p> 
    3  
     1        <div id="topic-tags"> 
     2                <p><?php _e( 'Tags:' ); ?></p> 
     3                 
    44<?php if ( bb_get_topic_tags() ) : ?> 
    5  
    6 <?php bb_list_tags(); ?> 
    7  
     5                <?php bb_list_tags(); ?> 
    86<?php else : ?> 
    9  
    10 <p><?php printf(__('No <a href="%s">tags</a> yet.'), bb_get_tag_page_link() ); ?></p> 
    11  
     7                <p><?php printf( __( 'No <a href="%s">tags</a> yet.' ), bb_get_tag_page_link() ); ?></p> 
    128<?php endif; ?> 
    139 
    1410<?php tag_form(); ?> 
    1511 
    16 </div> 
     12        </div> 
     13 No newline at end of file 
  • bb-templates/kakumei/topic.php

     
    11<?php bb_get_header(); ?> 
    22 
    3 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a><?php bb_forum_bread_crumb(); ?></div> 
    43<div class="infobox" role="main"> 
    54 
    65<div id="topic-info"> 
    7 <span id="topic_labels"><?php bb_topic_labels(); ?></span> 
    8 <h2<?php topic_class( 'topictitle' ); ?>><?php topic_title(); ?></h2> 
    9 <span id="topic_posts">(<?php topic_posts_link(); ?>)</span> 
    10 <span id="topic_voices">(<?php printf( _n( '%s voice', '%s voices', bb_get_topic_voices() ), bb_get_topic_voices() ); ?>)</span> 
    11  
    12 <ul class="topicmeta"> 
    13         <li><?php printf(__('Started %1$s ago by %2$s'), get_topic_start_time(), get_topic_author()) ?></li> 
     6        <span id="topic_labels"><?php bb_topic_labels(); ?></span> 
     7        <h2<?php topic_class( 'topictitle' ); ?>><?php topic_title(); ?></h2> 
     8         
     9        <ul class="topicmeta"> 
     10                <li><?php printf( '%1$s and %2$s', get_topic_posts_link(), sprintf( _n( '%s voice', '%s voices', bb_get_topic_voices() ), bb_get_topic_voices() ) ); ?></li> 
     11                <li><?php printf( __( 'Started %1$s ago by %2$s' ), get_topic_start_time(), get_topic_author() ); ?></li> 
    1412<?php if ( 1 < get_topic_posts() ) : ?> 
    15         <li><?php printf(__('<a href="%1$s">Latest reply</a> from %2$s'), esc_attr( get_topic_last_post_link() ), get_topic_last_poster()) ?></li> 
    16 <?php endif; ?> 
    17 <?php if ( bb_is_user_logged_in() ) : ?> 
    18         <li<?php echo $class;?> id="favorite-toggle"><?php user_favorites_link(); ?></li> 
    19         <li id="subscribe-toggle"><?php bb_user_subscribe_link(); ?></li> 
    20 <?php endif; do_action('topicmeta'); ?> 
    21 </ul> 
     13                <li><?php printf( __( '<a href="%1$s">Last reply</a> by %2$s' ), esc_attr( get_topic_last_post_link() ), get_topic_last_poster() ); ?></li> 
     14<?php endif; if ( bb_is_user_logged_in() ) : ?> 
     15                <li<?php echo $class;?> id="favorite-toggle"><?php user_favorites_link(); ?></li> 
     16                <li id="subscribe-toggle"><?php bb_user_subscribe_link(); ?></li> 
     17<?php endif; do_action( 'topicmeta' ); ?> 
     18        </ul> 
    2219</div> 
    2320 
    2421<?php topic_tags(); ?> 
    2522 
    26 <div style="clear:both;"></div> 
     23        <div class="clear"></div> 
    2724</div> 
    28 <?php do_action('under_title'); ?> 
    29 <?php if ($posts) : ?> 
     25 
     26<?php do_action( 'under_title' ); ?> 
     27 
     28<?php if ( $posts ) : ?> 
    3029<?php topic_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?> 
    3130<div id="ajax-response"></div> 
     31 
    3232<ol id="thread" class="list:post"> 
    3333 
    34 <?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?> 
    35         <li id="post-<?php post_id(); ?>"<?php alt_class('post', $del_class); ?>> 
     34<?php foreach ( $posts as $bb_post ) : $del_class = post_del_class(); ?> 
     35        <li id="post-<?php post_id(); ?>"<?php alt_class( 'post', $del_class ); ?>> 
    3636<?php bb_post_template(); ?> 
    3737        </li> 
    3838<?php endforeach; ?> 
    3939 
    4040</ol> 
    41 <div class="clearit"><br style=" clear: both;" /></div> 
    42 <p class="rss-link"><a href="<?php topic_rss_link(); ?>" class="rss-link"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for this topic') ?></a></p> 
     41 
     42<div class="clear"></div><br /> 
     43 
     44<p class="rss-link"><a href="<?php topic_rss_link(); ?>" class="rss-link"><?php _e( '<abbr title="Really Simple Syndication">RSS</abbr> feed for this topic' ); ?></a></p> 
     45 
    4346<?php topic_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?> 
    4447<?php endif; ?> 
     48 
    4549<?php if ( topic_is_open( $bb_post->topic_id ) ) : ?> 
    4650<?php post_form(); ?> 
    4751<?php else : ?> 
    48 <h2><?php _e('Topic Closed') ?></h2> 
    49 <p><?php _e('This topic has been closed to new replies.') ?></p> 
     52 
     53<h2><?php _e( 'Topic Closed' ) ?></h2> 
     54<p><?php _e( 'This topic has been closed to new replies.' ) ?></p> 
     55 
    5056<?php endif; ?> 
     57 
    5158<?php if ( bb_current_user_can( 'delete_topic', get_topic_id() ) || bb_current_user_can( 'close_topic', get_topic_id() ) || bb_current_user_can( 'stick_topic', get_topic_id() ) || bb_current_user_can( 'move_topic', get_topic_id() ) ) : ?> 
    5259 
    5360<div class="admin"> 
     
    5562</div> 
    5663 
    5764<?php endif; ?> 
    58 <?php bb_get_footer(); ?> 
     65<?php bb_get_footer(); ?> 
     66 No newline at end of file 
  • bb-templates/kakumei/view.php

     
    11<?php bb_get_header(); ?> 
    22 
    3 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php view_name(); ?></div> 
     3<?php bb_kakumei_topics_table(); ?> 
    44 
    5 <?php if ( $topics || $stickies ) : ?> 
     5<p class="rss-link"><a href="<?php bb_view_rss_link(); ?>" class="rss-link"><?php _e( '<abbr title="Really Simple Syndication">RSS</abbr> feed for this view' ); ?></a></p> 
    66 
    7 <table id="latest" role="main"> 
    8 <tr> 
    9         <th><?php _e('Topic'); ?></th> 
    10         <th><?php _e('Posts'); ?></th> 
    11         <!-- <th><?php _e('Voices'); ?></th> --> 
    12         <th><?php _e('Last Poster'); ?></th> 
    13         <th><?php _e('Freshness'); ?></th> 
    14 </tr> 
    15  
    16 <?php if ( $stickies ) : foreach ( $stickies as $topic ) : ?> 
    17 <tr<?php topic_class(); ?>> 
    18         <td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></td> 
    19         <td class="num"><?php topic_posts(); ?></td> 
    20         <!-- <td class="num"><?php bb_topic_voices(); ?></td> --> 
    21         <td class="num"><?php topic_last_poster(); ?></td> 
    22         <td class="num"><a href="<?php topic_last_post_link(); ?>" title="<?php topic_time(array('format'=>'datetime')); ?>"><?php topic_time(); ?></a></td> 
    23 </tr> 
    24 <?php endforeach; endif; ?> 
    25  
    26 <?php if ( $topics ) : foreach ( $topics as $topic ) : ?> 
    27 <tr<?php topic_class(); ?>> 
    28         <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?></td> 
    29         <td class="num"><?php topic_posts(); ?></td> 
    30         <!-- <td class="num"><?php bb_topic_voices(); ?></td> --> 
    31         <td class="num"><?php topic_last_poster(); ?></td> 
    32         <td class="num"><a href="<?php topic_last_post_link(); ?>" title="<?php topic_time(array('format'=>'datetime')); ?>"><?php topic_time(); ?></a></td> 
    33 </tr> 
    34 <?php endforeach; endif; ?> 
    35 </table> 
    36  
    37 <p class="rss-link"><a href="<?php bb_view_rss_link(); ?>" class="rss-link"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for this view'); ?></a></p> 
    38  
    39 <div class="nav"> 
    40 <?php view_pages(); ?> 
    41 </div> 
    42 <?php endif; ?> 
    43  
    44 <?php bb_get_footer(); ?> 
     7<?php bb_get_footer(); ?> 
     8 No newline at end of file