/** * Output admin links for reply * * @since bbPress (r2667) * * @param mixed $args See {@link bbp_get_reply_admin_links()} * @uses bbp_get_reply_admin_links() To get the reply admin links */ function bbp_reply_admin_links($args = '') { echo bbp_get_reply_admin_links($args); }
/** * Output admin links for reply * * @since bbPress (r2667) * * @param array $args See {@link bbp_get_reply_admin_links()} * @uses bbp_get_reply_admin_links() To get the reply admin links */ function bbp_reply_admin_links($args = array()) { echo bbp_get_reply_admin_links($args); }
function wm_bbp_large_topic() { global $paged; //Requirements check if (!(bbp_is_single_topic() || bbp_is_single_reply())) { return; } //Helper variables $output = array(); $post_id = bbp_is_single_reply() ? bbp_get_reply_topic_id() : get_the_id(); //Preparing output $output[10] = '<div class="bbp-large-topic">'; $output[20] = '<div class="wrap-inner">'; $output[30] = '<div class="content-area site-content pane twelve">'; $output[100] = '<div ' . bbp_get_reply_class() . wm_schema_org('article') . '>'; //Author $output[110] = '<div class="bbp-reply-author">'; $output[120] = bbp_get_reply_author_link(array('post_id' => $post_id, 'sep' => '<br />', 'show_role' => true)); $output[130] = '</div>'; // /.bbp-reply-author //Heading and content $output[200] = '<div class="bbp-reply-content">'; $output[210] = '<h1 class="bbp-topic-title">'; if (1 < $paged) { $output[210] .= '<a href="' . get_permalink($post_id) . '">'; } $output[210] .= bbp_get_topic_title($post_id); if (1 < $paged) { $output[210] .= '</a> ' . wm_paginated_suffix('small'); } $output[210] .= '</h1>'; $output[220] = bbp_get_topic_tag_list($post_id); if (!post_password_required($post_id)) { $output[230] = '<div class="bbp-content-container">'; setup_postdata(get_post($post_id)); $output[240] = apply_filters('wmhook_content_filters', bbp_get_topic_content($post_id), $post_id); wp_reset_postdata(); $output[250] = '</div>'; // /.bbp-content-container } $output[260] = '</div>'; // /.bbp-reply-content //Meta $output[300] = '<div class="bbp-meta">'; $output[310] = '<span class="bbp-reply-post-date">' . bbp_get_reply_post_date($post_id) . '</span>'; if (bbp_is_single_user_replies()) { $output[320] = '<span class="bbp-header">'; $output[330] = __('in reply to: ', 'mustang'); $output[340] = '<a class="bbp-topic-permalink" href="' . bbp_get_topic_permalink(bbp_get_reply_topic_id($post_id)) . '">'; $output[350] = bbp_get_topic_title(bbp_get_reply_topic_id($post_id)); $output[360] = '</a>'; // /.bbp-topic-permalink $output[370] = '</span>'; // /.bbp-header } $output[380] = bbp_get_reply_admin_links(array('id' => $post_id)); $output[390] = '</div>'; // /.bbp-meta $output[500] = '</div>'; // /.bbp_get_reply_class() $output[600] = '</div>'; // /.content-area $output[610] = '</div>'; // /.wrap-inner $output[620] = '</div>'; // /.bbp-large-topic //Output $output = apply_filters('wmhook_wm_bbp_large_topic_output', $output, $post_id); echo implode('', $output); }