Example #1
0
 function topic_delete_link($args = '')
 {
     $defaults = array('id' => 0, 'before' => '[', 'after' => ']');
     extract(wp_parse_args($args, $defaults), EXTR_SKIP);
     $id = (int) $id;
     $topic = get_topic(get_topic_id($id));
     if (!$topic || !bb_current_user_can('delete_topic', $topic->topic_id)) {
         return;
     }
     if (0 == $topic->topic_status) {
         echo "{$before}<a href='" . attribute_escape(bb_nonce_url(bb_get_option('uri') . 'bb-admin/delete-topic.php?id=' . $topic->topic_id, 'delete-topic_' . $topic->topic_id)) . "' onclick=\"return confirm('" . js_escape(__('Are you sure you wanna delete that?')) . "')\"><img src=\"" . bb_get_active_theme_uri() . 'image/delete.png" width="16" height="16" alt="Delete"/></a>' . $after;
     } else {
         echo "{$before}<a href='" . attribute_escape(bb_nonce_url(bb_get_option('uri') . 'bb-admin/delete-topic.php?id=' . $topic->topic_id . '&view=all', 'delete-topic_' . $topic->topic_id)) . "' onclick=\"return confirm('" . js_escape(__('Are you sure you wanna undelete that?')) . "')\"><img src=\"" . bb_get_active_theme_uri() . 'image/delete.png" width="16" height="16" alt="Delete"/></a>' . $after;
     }
 }
Example #2
0
			<?php 
do_action('tag_below_table', '');
?>

					</div>
		</div>
		
		<div class="sidebar">
			<ul>
				<li id="page-info">
					<div class="info">
						<a href="<?php 
bb_tag_rss_link();
?>
"><img src="<?php 
echo bb_get_active_theme_uri();
?>
image/feed.png" width="16" height="16" alt="Feed"/></a>
					</div>
					<h2><?php 
_e('Page Information', 'guangzhou');
?>
</h2>
					<p><?php 
printf(__('This page shows <strong>%1s</strong> with the tag <strong>%2s</strong>.', 'guangzhou'), sprintf(__ngettext('%d topic', '%d topics', count($topics)), count($topics)), get_tag_name());
?>
</p>
					<p><?php 
printf(__('Subscribe through your <a href="%s">feed reader</a>.', 'guangzhou'), bb_get_tag_rss_link());
?>
</p>
function bb_active_theme_uri()
{
    echo bb_get_active_theme_uri();
}
Example #4
0
function post_form_auto_add_radiobuttons()
{
    global $topic_id;
    if (!is_topic()) {
        $sub_image = bb_get_active_theme_uri() . '/images/btn_postTopic.gif';
    } else {
        $sub_image = bb_get_active_theme_uri() . '/images/btn_postReply.gif';
    }
    if (!is_topic()) {
        echo '
		<p>		
		<label for="nm_add_topic_icon" style="display:inline;">Add a Topic Icon </label>
			<table>
<tr>
<td width="20"><input type="radio" id="topic_icon" name="topic_icon" value="photos.png"/></td>
<td width="40"><img src="' . bb_get_active_theme_uri() . '/images/photos.png" alt=""></td>
<td width="20"><input type="radio" id="topic_icon" name="topic_icon" value="video.jpg"/></td>
<td width="40"><img src="' . bb_get_active_theme_uri() . '/images/video.jpg" alt=""></td>
<td width="20"><input type="radio" id="topic_icon" name="topic_icon" value="icon3.gif"/></td>
<td width="40"><img src="' . bb_get_active_theme_uri() . '/images/icon3.gif" alt=""></td>
<td width="20"><input type="radio" id="topic_icon" name="topic_icon" value="icon7.gif"/></td>
<td width="40"><img src="' . bb_get_active_theme_uri() . '/images/icon7.gif" alt=""></td>
<td width="20"><input type="radio" id="topic_icon" name="topic_icon" value="icon14.gif"/></td>
<td width="40"><img src="' . bb_get_active_theme_uri() . '/images/icon14.gif" alt=""></td>
<td width="20"><input type="radio" id="topic_icon" name="topic_icon" value="icon13.gif"/></td>
<td width="40"><img src="' . bb_get_active_theme_uri() . '/images/icon13.gif" alt=""></td>
</tr>
</table>
</p>
<p class="submit">


	 <INPUT TYPE="image" SRC="' . $sub_image . '" HEIGHT="29" WIDTH="147" BORDER="0" id="postformsub" name="Submit" ALT="postformsub" />

</p>
';
    } else {
        echo ' <INPUT TYPE="image" SRC="' . $sub_image . '" HEIGHT="29" WIDTH="147" BORDER="0" id="postformsub" name="Submit" ALT="postformsub" />';
    }
}
Example #5
0
function bbt_get_uri($filename)
{
    return bb_get_active_theme_uri() . $filename;
}