Ticket #1705: 1705.diff
File 1705.diff, 28.8 KB (added by , 13 years ago) |
---|
-
bb-templates/kakumei/404.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <?php bb_get_header(); ?> 2 3 3 4 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <?php _e('Page not found!'); ?></div> -
bb-templates/kakumei/edit-form.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 2 1 3 <?php if ( !bb_get_user( get_post_author_id() ) ) : ?> 2 4 3 5 <?php bb_load_template( 'post-form-anonymous.php' ); ?> 4 6 5 7 <?php endif; ?> 6 8 7 <?php if ( $topic_title) : ?>9 <?php if ( !empty( $topic_title ) ) : ?> 8 10 <p role="main"> 9 11 <label for="topic"><?php _e( 'Topic:' ); ?><br /> 10 12 <input name="topic" type="text" id="topic" size="50" maxlength="80" tabindex="31" value="<?php echo esc_attr( get_topic_title() ); ?>" /> -
bb-templates/kakumei/edit-post.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <?php bb_get_header(); ?> 2 3 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <?php _e('Edit Post'); ?></div> 3 4 -
bb-templates/kakumei/favorites.php
1 <?php if ( !defined( 'BB_PATH' ) || empty( $user_id ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <?php bb_get_header(); ?> 2 3 3 4 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <a href="<?php user_profile_link( $user_id ); ?>"><?php echo get_user_display_name( $user_id ); ?></a> » <?php _e('Favorites'); ?></div> 4 5 5 <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>6 <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 ( !empty( $topics ) ) printf( __( ' - %d' ), $favorites_total ); ?></h2> 6 7 7 8 <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 9 <?php if ( bb_current_user_can( 'edit_favorites_of', $user_id ) ) : ?> 9 10 <p><?php _e( 'To add topics to your list of favorites, just click the "Add to Favorites" link found on that topic’s page.' ); ?></p> 10 11 <?php endif; ?> 11 12 12 <?php if ( $topics) : ?>13 <?php if ( !empty( $topics ) ) : ?> 13 14 14 15 <table id="favorites"> 15 16 <tr> -
bb-templates/kakumei/footer.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 2 1 3 </div> 2 4 </div> 3 5 <div id="footer" role="contentinfo"> … … 5 7 6 8 <!-- If you like showing off the fact that your server rocks --> 7 9 <!-- <p class="showoff"> 8 <?php 9 global $bbdb; 10 printf( 11 __( 'This page generated in %s seconds, using %d queries.' ), 12 bb_number_format_i18n( bb_timer_stop(), 2 ), 13 bb_number_format_i18n( $bbdb->num_queries ) 14 ); 15 ?> 10 <?php 11 global $bbdb; 12 if ( !empty( $bbdb->num_queries ) ) : 13 printf( 14 __( 'This page generated in %s seconds, using %d queries.' ), 15 bb_number_format_i18n( bb_timer_stop(), 2 ), 16 bb_number_format_i18n( $bbdb->num_queries ) 17 ); 18 endif; 19 ?> 16 20 </p> --> 17 21 </div> 18 22 -
bb-templates/kakumei/forum.php
1 <?php if ( !defined( 'BB_PATH' ) ||empty( $forum_id ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <?php bb_get_header(); ?> 2 3 3 4 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a><?php bb_forum_bread_crumb(); ?></div> 4 5 5 <?php if ( $topics || $stickies) : ?>6 <?php if ( !empty( $topics ) || !empty( $stickies ) ) : ?> 6 7 7 8 <table id="latest" role="main"> 8 9 <tr> … … 13 14 <th><?php _e('Freshness'); ?></th> 14 15 </tr> 15 16 16 <?php if ( $stickies) : foreach ( $stickies as $topic ) : ?>17 <?php if ( !empty( $stickies ) ) : foreach ( $stickies as $topic ) : ?> 17 18 <tr<?php topic_class(); ?>> 18 19 <td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big><?php topic_page_links(); ?></td> 19 20 <td class="num"><?php topic_posts(); ?></td> … … 23 24 </tr> 24 25 <?php endforeach; endif; ?> 25 26 26 <?php if ( $topics) : foreach ( $topics as $topic ) : ?>27 <?php if ( !empty( $topics ) ) : foreach ( $topics as $topic ) : ?> 27 28 <tr<?php topic_class(); ?>> 28 29 <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?></td> 29 30 <td class="num"><?php topic_posts(); ?></td> -
bb-templates/kakumei/front-page.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <?php bb_get_header(); ?> 2 3 3 <?php if ( $forums) : ?>4 <?php if ( !empty( $forums ) ) : ?> 4 5 5 6 <div id="hottags" role="main"> 6 7 <h2><?php _e('Hot Tags'); ?></h2> … … 8 9 </div> 9 10 10 11 <div id="discussions"> 11 <?php if ( $topics || $super_stickies) : ?>12 <?php if ( !empty( $topics ) || !empty( $super_stickies ) ) : ?> 12 13 13 14 <h2><?php _e('Latest Discussions'); ?></h2> 14 15 … … 21 22 <th><?php _e('Freshness'); ?></th> 22 23 </tr> 23 24 24 <?php if ( $super_stickies) : foreach ( $super_stickies as $topic ) : ?>25 <?php if ( !empty( $super_stickies ) ) : foreach ( $super_stickies as $topic ) : ?> 25 26 <tr<?php topic_class(); ?>> 26 27 <td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big><?php topic_page_links(); ?></td> 27 28 <td class="num"><?php topic_posts(); ?></td> … … 31 32 </tr> 32 33 <?php endforeach; endif; // $super_stickies ?> 33 34 34 <?php if ( $topics) : foreach ( $topics as $topic ) : ?>35 <?php if ( !empty( $topics ) ) : foreach ( $topics as $topic ) : ?> 35 36 <tr<?php topic_class(); ?>> 36 37 <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?></td> 37 38 <td class="num"><?php topic_posts(); ?></td> -
bb-templates/kakumei/functions.php
1 1 <?php 2 3 if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); 4 2 5 /* Functions for Kakumei Theme */ 3 6 4 7 /* The below actions are removed because we add our own checkbox (check post-form.php and edit-form.php) */ -
bb-templates/kakumei/header.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 2 1 3 <?php 2 4 $_head_profile_attr = ''; 3 5 if ( bb_is_profile() ) { -
bb-templates/kakumei/logged-in.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 2 1 3 <p class="login"> 2 4 <?php printf(__('Welcome, %1$s'), bb_get_profile_link(bb_get_current_user_info( 'name' )));?> 3 5 <?php bb_admin_link( 'before= | ' );?> -
bb-templates/kakumei/login-form.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 2 1 3 <form class="login" method="post" action="<?php bb_uri( 'bb-login.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS ); ?>"> 2 4 <p> 3 5 <?php … … 18 20 <?php _e( 'Password' ); ?><br /> 19 21 <input name="pwd" type="password" id="quick_password" size="13" maxlength="40" tabindex="11" /> 20 22 </label> 21 <input name="redirect_to" type="hidden" value="<?php echo $re; ?>" />23 <input name="redirect_to" type="hidden" value="<?php if ( !empty( $re ) ) echo $re; ?>" /> 22 24 <?php wp_referer_field(); ?> 23 25 24 26 <input type="submit" name="Submit" class="submit" value="<?php echo esc_attr__( 'Log in »' ); ?>" tabindex="13" /> 25 27 </div> 26 28 <div class="remember"> 27 29 <label> 28 <input name="rememberme" type="checkbox" id="quick_remember" value="1" tabindex="12"<?php echo $remember_checked; ?> />29 No newline at end of file 30 <input name="rememberme" type="checkbox" id="quick_remember" value="1" tabindex="12"<?php if ( !empty( $remember_checked ) ) echo $remember_checked; ?> /> 31 No newline at end of file 30 32 <?php _e('Remember me'); ?> 31 33 -
bb-templates/kakumei/login.php
</label>
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <?php bb_get_header(); ?> 2 3 3 4 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <?php _e('Log in'); ?></div> … … 12 13 $user_email_error = $bb_login_error->get_error_message( 'user_email' ); 13 14 $user_password_error = $bb_login_error->get_error_message( 'password' ); 14 15 ?> 15 <tr valign="top" class="form-field <?php if ( $user_login_error || $user_email_error) echo ' form-invalid error'; ?>">16 <tr valign="top" class="form-field <?php if ( !empty( $user_login_error ) || !empty( $user_email_error ) ) echo ' form-invalid error'; ?>"> 16 17 <th scope="row"> 17 18 <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>"; ?>19 <?php if ( !empty( $user_login_error ) ) echo "<em>$user_login_error</em>"; ?> 20 <?php if ( !empty( $user_email_error ) ) echo "<em>$user_email_error</em>"; ?> 20 21 </th> 21 22 <td> 22 <input name="log" id="user_login" type="text" value="<?php echo $user_login; ?>" />23 <input name="log" id="user_login" type="text" value="<?php if ( !empty( $user_login ) ) echo $user_login; ?>" /> 23 24 </td> 24 25 </tr> 25 <tr valign="top" class="form-field <?php if ( $user_password_error) echo 'form-invalid error'; ?>">26 <tr valign="top" class="form-field <?php if ( !empty( $user_password_error ) ) echo 'form-invalid error'; ?>"> 26 27 <th scope="row"> 27 28 <label for="password"><?php _e('Password'); ?></label> 28 <?php if ( $user_password_error) echo "<em>$user_password_error</em>"; ?>29 <?php if ( !empty( $user_password_error ) ) echo "<em>$user_password_error</em>"; ?> 29 30 </th> 30 31 <td> 31 32 <input name="pwd" id="password" type="password" /> … … 34 35 35 36 <tr valign="top" class="form-field"> 36 37 <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 <td><input name="rememberme" type="checkbox" id="remember" value="1"<?php if ( !empty( $remember_checked ) ) echo $remember_checked; ?> /></td> 38 39 </tr> 39 40 <tr> 40 41 <th scope="row"> </th> 41 42 <td> 42 <input name="redirect_to" type="hidden" value="<?php echo $redirect_to; ?>" />43 <input name="redirect_to" type="hidden" value="<?php if ( !empty( $redirect_to ) ) echo $redirect_to; ?>" /> 43 44 <input type="submit" value="<?php echo esc_attr( !empty( $user_login ) ? __( 'Try Again »' ): __( 'Log in »' ) ); ?>" /> 44 45 <?php wp_referer_field(); ?> 45 46 </td> … … 59 60 <label for="user_login_reset_password"><?php _e( 'Username' ); ?></label> 60 61 </th> 61 62 <td> 62 <input name="user_login" id="user_login_reset_password" type="text" value="<?php echo $user_login; ?>" />63 <input name="user_login" id="user_login_reset_password" type="text" value="<?php if ( !empty( $user_login ) ) echo $user_login; ?>" /> 63 64 </td> 64 65 </tr> 65 66 <tr valign="top"> -
bb-templates/kakumei/password-reset.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <?php bb_get_header(); ?> 2 3 3 4 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <?php _e('Log in'); ?></div> 4 5 5 6 <h2 role="main"><?php _e('Password Reset'); ?></h2> 6 7 7 <?php if ( $error) : ?>8 <?php if ( !empty( $error ) ) : ?> 8 9 <p class="notice error"><?php echo $error; ?></p> 9 10 <?php else : ?> 11 <?php if ( !empty( $action ) ) : ?> 10 12 <?php switch ( $action ) : ?> 11 13 <?php case ( 'send_key' ) : ?> 12 14 <p class="notice"><?php _e('An email has been sent to the address we have on file for you. If you don’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> … … 16 18 <?php break; ?> 17 19 <?php endswitch; ?> 18 20 <?php endif; ?> 21 <?php endif; ?> 19 22 20 23 <?php bb_get_footer(); ?> -
bb-templates/kakumei/post-form-anonymous.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 2 1 3 <?php 2 3 4 5 4 // Setup $current_poster varaible on post edit 5 if ( bb_is_topic_edit() ) : 6 foreach( array( 'post_author', 'post_email', 'post_url' ) as $post_author_meta ) 7 $current_poster[$post_author_meta] = bb_get_post_meta( $post_author_meta, $post_id ); 6 8 7 8 9 10 11 12 9 // Shift $current_poster values from cookie 10 else : 11 $current_poster = bb_get_current_poster(); 12 $current_poster['post_email'] = $current_poster['post_author_email']; 13 $current_poster['post_url'] = $current_poster['post_author_url']; 14 endif; 13 15 ?> 14 16 15 17 <p id="post-form-author-container"> -
bb-templates/kakumei/post-form.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <?php if ( !bb_is_topic() ) : ?> 2 3 <p id="post-form-title-container"> 3 4 <label for="topic"><?php _e( 'Title' ); ?> -
bb-templates/kakumei/post.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 2 3 No newline at end of file 1 4 <div id="position-<?php post_position(); ?>"> 2 5 <div class="threadauthor"> 3 6 <?php post_author_avatar_link(); ?> -
bb-templates/kakumei/profile-base.php
1 <?php if ( !defined( 'BB_PATH' ) || empty( $user_id ) || empty( $user ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <?php bb_get_header(); ?> 2 3 3 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <a href="<?php user_profile_link( $user_id ); ?>"><?php echo get_user_display_name( $user_id ); ?></a> » <?php echo $profile_page_title; ?></div>4 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <a href="<?php user_profile_link( $user_id ); ?>"><?php echo get_user_display_name( $user_id ); ?></a> » <?php if ( !empty( $profile_page_title ) ) echo $profile_page_title; ?></div> 4 5 <h2 role="main"><?php echo get_user_name( $user->ID ); ?></h2> 5 6 6 7 <?php bb_profile_base_content(); ?> -
bb-templates/kakumei/profile-edit.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <?php bb_get_header(); ?> 2 3 3 4 <div class="bbcrumb"> -
bb-templates/kakumei/profile.php
1 <?php if ( !defined( 'BB_PATH' ) || empty( $user_id ) || empty( $user ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <?php bb_get_header(); ?> 2 3 3 4 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <a href="<?php user_profile_link( $user_id ); ?>"><?php echo get_user_display_name( $user_id ); ?></a> » <?php _e('Profile') ?></div> … … 9 10 <?php unset($avatar); endif; ?> 10 11 <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> 11 12 12 <?php if ( $updated) : ?>13 <?php if ( !empty( $updated ) ) : ?> 13 14 <div class="notice"> 14 15 <p><?php _e('Profile updated'); ?>. <a href="<?php profile_tab_link( $user_id, 'edit' ); ?>"><?php _e('Edit again »'); ?></a></p> 15 16 </div> … … 34 35 <h3 id="useractivity"><?php _e('User Activity') ?></h3> 35 36 36 37 <div id="user-replies" class="user-recent"><h4><?php _e('Recent Replies'); ?></h4> 37 <?php if ( $posts) : ?>38 <?php if ( !empty( $posts ) ) : ?> 38 39 <ol> 39 40 <?php foreach ($posts as $bb_post) : $topic = get_topic( $bb_post->topic_id ) ?> 40 41 <li<?php alt_class('replies'); ?>> … … 50 51 </li> 51 52 <?php endforeach; ?> 52 53 </ol> 53 <?php else : if ( $page) : ?>54 <?php else : if ( !empty( $page ) ) : ?> 54 55 <p><?php _e('No more replies.') ?></p> 55 56 <?php else : ?> 56 57 <p><?php _e('No replies yet.') ?></p> … … 59 60 60 61 <div id="user-threads" class="user-recent"> 61 62 <h4><?php _e('Topics Started') ?></h4> 62 <?php if ( $topics) : ?>63 <?php if ( !empty( $topics ) ) : ?> 63 64 <ol> 64 65 <?php foreach ($topics as $topic) : ?> 65 66 <li<?php alt_class('topics'); ?>> … … 75 76 </li> 76 77 <?php endforeach; ?> 77 78 </ol> 78 <?php else : if ( $page) : ?>79 <?php else : if ( !empty( $page ) ) : ?> 79 80 <p><?php _e('No more topics posted.') ?></p> 80 81 <?php else : ?> 81 82 <p><?php _e('No topics posted yet.') ?></p> -
bb-templates/kakumei/register-success.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <?php bb_get_header(); ?> 2 3 3 4 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <?php _e('Register'); ?></div> -
bb-templates/kakumei/register.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <?php bb_get_header(); ?> 2 3 3 4 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <?php _e('Register'); ?></div> … … 15 16 16 17 <?php 17 18 18 $user_login_error = $bb_register_error->get_error_message( 'user_login' ); 19 if ( !empty( $bb_register_error ) ) : 20 $user_login_error = $bb_register_error->get_error_message( 'user_login' ); ?> 19 21 20 ?>21 22 22 <table width="100%"> 23 <tr class="form-field form-required required<?php if ( $user_login_error) echo ' form-invalid error'; ?>">23 <tr class="form-field form-required required<?php if ( !empty( $user_login_error ) ) echo ' form-invalid error'; ?>"> 24 24 <th scope="row"> 25 25 <label for="user_login"><?php _e('Username'); ?></label> 26 <?php if ( $user_login_error) echo "<em>$user_login_error</em>"; ?>26 <?php if ( !empty( $user_login_error ) ) echo "<em>$user_login_error</em>"; ?> 27 27 </th> 28 28 <td> 29 <input name="user_login" type="text" id="user_login" size="30" maxlength="30" value="<?php echo $user_login; ?>" />29 <input name="user_login" type="text" id="user_login" size="30" maxlength="30" value="<?php if ( !empty( $user_login ) ) echo $user_login; ?>" /> 30 30 </td> 31 31 </tr> 32 32 33 33 <?php 34 endif; 34 35 35 if ( is_array($profile_info_keys) ) :36 if ( !empty( $profile_info_keys ) && is_array( $profile_info_keys ) ) : 36 37 foreach ( $profile_info_keys as $key => $label ) : 37 38 $class = 'form-field'; 38 if ( $label[0]) {39 if ( !empty( $label[0] ) ) { 39 40 $class .= ' form-required required'; 40 41 } 41 if ( $profile_info_key_error = $bb_register_error->get_error_message( $key) )42 if ( !empty( $bb_register_error ) && ( $profile_info_key_error = $bb_register_error->get_error_message( $key ) ) ) 42 43 $class .= ' form-invalid error'; 43 44 44 45 ?> … … 46 47 <tr class="<?php echo $class; ?>"> 47 48 <th scope="row"> 48 49 <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 <?php if ( !empty( $profile_info_key_error ) ) echo "<em>$profile_info_key_error</em>"; ?> 50 51 </th> 51 52 <td> 52 53 <input name="<?php echo $key; ?>" type="text" id="<?php echo $key; ?>" size="30" maxlength="140" value="<?php echo $$key; ?>" /> -
bb-templates/kakumei/rss2.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <?php 2 3 header( 'Content-Type: text/xml; charset=UTF-8' ); 3 4 echo '<' . '?xml version="1.0" encoding="UTF-8"?' . '>' . "\n"; … … 10 11 <?php do_action( 'bb_rss2_ns'); ?> 11 12 > 12 13 <channel> 13 <title><?php echo $title; ?></title>14 <link><?php echo $link; ?></link>15 <description><?php echo $description; ?></description>14 <title><?php if ( !empty( $title ) ) echo $title; ?></title> 15 <link><?php if ( !empty( $link ) ) echo $link; ?></link> 16 <description><?php if ( !empty( $description ) ) echo $description; ?></description> 16 17 <language><?php echo esc_html( bb_get_option( 'language' ) ); ?></language> 17 18 <pubDate><?php echo gmdate( 'D, d M Y H:i:s +0000' ); ?></pubDate> 18 19 <?php bb_generator( 'rss2' ); ?> 19 20 <?php do_action( 'bb_rss2_head' ); ?> 20 <atom:link href="<?php echo $link_self; ?>" rel="self" type="application/rss+xml" />21 <atom:link href="<?php if ( !empty( $link_self ) ) echo $link_self; ?>" rel="self" type="application/rss+xml" /> 21 22 23 <?php if ( !empty( $posts ) ) : ?> 22 24 <?php foreach ( (array) $posts as $bb_post ) : ?> 23 25 <item> 24 26 <title><?php post_author(); ?> <?php _e( 'on' ); ?> "<?php topic_title( $bb_post->topic_id ); ?>"</title> … … 30 32 <?php do_action( 'bb_rss2_item' ); ?> 31 33 </item> 32 34 <?php endforeach; ?> 35 <?php endif; ?> 33 36 34 37 </channel> 35 38 </rss> -
bb-templates/kakumei/search-form.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 2 1 3 <form class="search-form" role="search" action="<?php bb_uri('search.php', null, BB_URI_CONTEXT_FORM_ACTION); ?>" method="get"> 2 4 <p> 3 5 <label class="hidden" for="q"><?php _e('Search:'); ?></label> -
bb-templates/kakumei/search.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <?php bb_get_header(); ?> 2 3 3 4 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <?php _e('Search')?></div> 4 5 <?php bb_topic_search_form(); ?> 5 6 6 <?php if ( !empty 7 <?php if ( !empty( $q ) ) : ?> 7 8 <h3 id="search-for"><?php printf( __( 'Search for %s' ), '“' . esc_html( $q ) . '”' ); ?></h3> 8 <?php endif; ?>9 9 10 <?php if ( $recent ) : ?> 10 <?php else : $q = ''; endif; ?> 11 12 <?php if ( !empty( $recent ) ) : ?> 11 13 <div id="results-recent" class="search-results"> 12 14 <h4><?php _e( 'Recent Posts' )?></h4> 13 15 <ol> … … 22 24 </div> 23 25 <?php endif; ?> 24 26 25 <?php if ( $relevant) : ?>27 <?php if ( !empty( $relevant ) ) : ?> 26 28 <div id="results-relevant" class="search-results"> 27 29 <h4><?php _e( 'Relevant Topics' )?></h4> 28 30 <ol> … … 40 42 41 43 <?php bb_search_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?> 42 44 43 <?php if ( $q && !$recent && !$relevant) : ?>44 No newline at end of file 45 <?php if ( !empty( $q ) && empty( $recent ) && empty( $relevant ) ) : ?> 46 No newline at end of file 45 47 <p><?php printf( __( 'Your search %s did not return any results. Here are some suggestions:' ), '“<em>' . esc_html( $q ) . '</em>”' ); ?></p> 46 48 <ul id="search-suggestions"> -
bb-templates/kakumei/stats.php
<li><?php _e( 'Make sure all words are spelled correctly' ); ?></li>
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <?php bb_get_header(); ?> 2 3 3 4 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option( 'name' ); ?></a> » <?php _e( 'Statistics' ); ?></div> … … 11 12 </dl> 12 13 13 14 <div class="right"> 14 <?php if ( $popular) : ?>15 <?php if ( !empty( $popular ) ) : ?> 15 16 <h3><?php _e( 'Most Popular Topics' ); ?></h3> 16 17 <ol> 17 18 <?php foreach ( $popular as $topic ) : ?> -
bb-templates/kakumei/tag-single.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <?php bb_get_header(); ?> 2 3 3 4 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <a href="<?php bb_tag_page_link(); ?>"><?php _e('Tags'); ?></a> » <?php bb_tag_name(); ?></div> 4 5 5 6 <?php do_action('tag_above_table'); ?> 6 7 7 <?php if ( $topics) : ?>8 <?php if ( !empty( $topics ) ) : ?> 8 9 9 10 <table id="latest" role="main"> 10 11 <tr> -
bb-templates/kakumei/tags.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <?php bb_get_header(); ?> 2 3 3 4 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <?php _e('Tags'); ?></div> -
bb-templates/kakumei/topic-tags.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <div id="topic-tags"> 2 3 <p><?php _e('Tags:'); ?></p> 3 4 -
bb-templates/kakumei/topic.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <?php bb_get_header(); ?> 2 3 3 4 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a><?php bb_forum_bread_crumb(); ?></div> … … 15 16 <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 17 <?php endif; ?> 17 18 <?php if ( bb_is_user_logged_in() ) : ?> 18 <li<?php echo $class;?> id="favorite-toggle"><?php user_favorites_link(); ?></li>19 <li<?php if ( !empty( $class ) ) echo $class; ?> id="favorite-toggle"><?php user_favorites_link(); ?></li> 19 20 <?php endif; do_action('topicmeta'); ?> 20 21 </ul> 21 22 </div> … … 25 26 <div style="clear:both;"></div> 26 27 </div> 27 28 <?php do_action('under_title'); ?> 28 <?php if ( $posts) : ?>29 <?php if ( !empty( $posts ) ) : ?> 29 30 <?php topic_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?> 30 31 <div id="ajax-response"></div> 31 32 <ol id="thread" class="list:post"> -
bb-templates/kakumei/view.php
1 <?php if ( !defined( 'BB_PATH' ) ) die( 'This file cannot be called directly.' ); ?> 1 2 <?php bb_get_header(); ?> 2 3 3 4 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <?php view_name(); ?></div>