LLMS_BBP_Shortcode_Course_Forums_List::template_function()
Call the template function for the course element
Return Return
(void)
Source Source
File: includes/shortcodes/class.llms.bbp.shortcode.course.forums.list.php
protected function template_function() { $forums = $this->get_forums(); if ( $forums ) { echo '<div class="llms-bbp-course-forums-wrap">'; echo '<ul class="llms-bbp-course-forums-list">'; foreach ( $forums as $forum_id ) : ?> <li><a class="llms-bbp-forum-title" href="<?php bbp_forum_permalink( $forum_id ); ?>"> <?php bbp_forum_title( $forum_id ); ?> </a></li> <?php endforeach; echo '</ul>'; echo '</div>'; } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.12.0 | Introduced. |