/**
  * Create our shortcode for BBPress 
  */
 public function sandwich_bbp_shortcodes()
 {
     // Check if Shortcake exists
     if (!function_exists('shortcode_ui_register_for_shortcode')) {
         return;
     }
     // Check if bbPress is active. Terminate if not.
     if (!class_exists('bbPress')) {
         return;
     }
     // Force bbPress to enqueue styles so we can add them in the editor
     if (class_exists('BBP_Default')) {
         $o = new BBP_Default();
         $o->enqueue_styles();
     }
     // Register Shortcake UI for BBPress Forum Index
     shortcode_ui_register_for_shortcode('bbp-forum-index', array('label' => __('BBPress Forum Index', 'pbsandwich'), 'listItemImage' => 'dashicons-wordpress dashicons-bbpress-logo'));
     // Register Shortcake UI for BBPress Forum Form
     shortcode_ui_register_for_shortcode('bbp-forum-form', array('label' => __('BBPress Forum Form', 'pbsandwich'), 'listItemImage' => 'dashicons-wordpress dashicons-bbpress-logo'));
     // Register Shortcake UI for BBPress Single Forum Display
     shortcode_ui_register_for_shortcode('bbp-single-forum', array('label' => __('BBPress Single Forum Display', 'pbsandwich'), 'listItemImage' => 'dashicons-wordpress dashicons-bbpress-logo', 'attrs' => array(array('label' => __('Select Forum to display', 'pbsandwich'), 'attr' => 'id', 'type' => 'select', 'options' => sandwich_functions_posttype_list('forum')))));
     // Register Shortcake UI for BBPress Topic Index
     shortcode_ui_register_for_shortcode('bbp-topic-index', array('label' => __('BBPress Topic Index', 'pbsandwich'), 'listItemImage' => 'dashicons-wordpress dashicons-bbpress-logo'));
     // Register Shortcake UI for BBPress Topic Form
     shortcode_ui_register_for_shortcode('bbp-topic-form', array('label' => __('BBPress Topic Form', 'pbsandwich'), 'listItemImage' => 'dashicons-wordpress dashicons-bbpress-logo', 'attrs' => array(array('label' => __('Select Forum to display the New Topic form in', 'pbsandwich'), 'attr' => 'forum_id', 'type' => 'select', 'options' => sandwich_functions_posttype_list('forum')))));
     // Register Shortcake UI for BBPress Single Topic
     shortcode_ui_register_for_shortcode('bbp-single-topic', array('label' => __('BBPress Single Topic display', 'pbsandwich'), 'listItemImage' => 'dashicons-wordpress dashicons-bbpress-logo', 'attrs' => array(array('label' => __('Select the Topic to display', 'pbsandwich'), 'attr' => 'id', 'type' => 'select', 'options' => sandwich_functions_posttype_list('topic')))));
     // Register Shortcake UI for BBPress Reply Form
     shortcode_ui_register_for_shortcode('bbp-reply-form', array('label' => __('BBPress Reply Form', 'pbsandwich'), 'listItemImage' => 'dashicons-wordpress dashicons-bbpress-logo'));
     // Register Shortcake UI for BBPress Single Reply
     shortcode_ui_register_for_shortcode('bbp-single-reply', array('label' => __('BBPress Single Reply display', 'pbsandwich'), 'listItemImage' => 'dashicons-wordpress dashicons-bbpress-logo', 'attrs' => array(array('label' => __('Select the Reply to display', 'pbsandwich'), 'attr' => 'id', 'type' => 'select', 'options' => sandwich_functions_posttype_list('reply')))));
     // Register Shortcake UI for BBPress Topic Tags
     shortcode_ui_register_for_shortcode('bbp-topic-tags', array('label' => __('BBPress Topic Tags', 'pbsandwich'), 'listItemImage' => 'dashicons-wordpress dashicons-bbpress-logo'));
     // Register Shortcake UI for BBPress Single Tag
     shortcode_ui_register_for_shortcode('bbp-single-tag', array('label' => __('BBPress Single Tag display', 'pbsandwich'), 'listItemImage' => 'dashicons-wordpress dashicons-bbpress-logo', 'attrs' => array(array('label' => __('Select the Tag to display topics associated with it', 'pbsandwich'), 'attr' => 'id', 'type' => 'select', 'options' => sandwich_functions_term_list('topic-tag')))));
     // Register Shortcake UI for BBPress Single View
     shortcode_ui_register_for_shortcode('bbp-single-view', array('label' => __('BBPress Single View', 'pbsandwich'), 'listItemImage' => 'dashicons-wordpress dashicons-bbpress-logo', 'attrs' => array(array('label' => __('Select the viewing type to display topics according to a certain attribute.', 'pbsandwich'), 'attr' => 'id', 'type' => 'select', 'options' => array('popular' => __('Popular', 'pbsandwich'), 'no-replies' => __('No Replies', 'pbsandwich'))))));
     // Register Shortcake UI for BBPress Search Input Form
     shortcode_ui_register_for_shortcode('bbp-search', array('label' => __('BBPress Search Input Form', 'pbsandwich'), 'listItemImage' => 'dashicons-wordpress dashicons-bbpress-logo'));
     // Register Shortcake UI for BBPress Search Input Form Template
     shortcode_ui_register_for_shortcode('bbp-search-form', array('label' => __('BBPress Search Input Template', 'pbsandwich'), 'listItemImage' => 'dashicons-wordpress dashicons-bbpress-logo'));
     // Register Shortcake UI for BBPress Login Form
     sandwich_add_logged_out_shortcode('bbp-login');
     shortcode_ui_register_for_shortcode('bbp-login', array('label' => __('BBPress Login Form', 'pbsandwich'), 'listItemImage' => 'dashicons-wordpress dashicons-bbpress-logo'));
     // Register Shortcake UI for BBPress Register Form
     sandwich_add_logged_out_shortcode('bbp-register');
     shortcode_ui_register_for_shortcode('bbp-register', array('label' => __('BBPress Registration Screen', 'pbsandwich'), 'listItemImage' => 'dashicons-wordpress dashicons-bbpress-logo'));
     // Register Shortcake UI for BBPress Lost Password Form
     sandwich_add_logged_out_shortcode('bbp-lost-pass');
     shortcode_ui_register_for_shortcode('bbp-lost-pass', array('label' => __('BBPress Lost Password Form', 'pbsandwich'), 'listItemImage' => 'dashicons-wordpress dashicons-bbpress-logo'));
     // Register Shortcake UI for BBPress Statistics
     shortcode_ui_register_for_shortcode('bbp-stats', array('label' => __('BBPress Statistics', 'pbsandwich'), 'listItemImage' => 'dashicons-wordpress dashicons-bbpress-logo'));
 }
Beispiel #2
0
?>
 </span>
			<?php 
echo bbp_get_user_profile_link(bbp_get_forum_last_reply_author_id());
?>
		</div>
		<div class="last-posted-topic-time">
			<?php 
echo bbp_get_forum_last_active_time();
?>
		</div>
	</li>
    
    </div>
    
		<?php 
do_action('bbp_theme_before_forum_sub_forums');
?>

		<?php 
BBP_Default::epicwebs_bbp_list_forums(array('before' => '<li class="forum-list">', 'after' => '</li>', 'link_before' => '', 'link_after' => '', 'count_before' => '<div class="topic-reply-counts">Ämnen: ', 'count_after' => '</div>', 'count_sep' => '</div><div class="topic-reply-counts">Inlägg: ', 'separator' => '', 'forum_id' => '', 'show_topic_count' => true, 'show_reply_count' => true, 'show_freshness_link' => true));
?>

		<?php 
do_action('bbp_theme_after_forum_sub_forums');
?>

</ul><!-- #bbp-forum-<?php 
bbp_forum_id();
?>
 -->
Beispiel #3
0
 public function epicwebs_last_poster_block_topics()
 {
     echo BBP_Default::teamop_get_last_poster_block_topics();
 }