* @copyright Copyright (c) 2009 - 2017, Justin Tadlock * @link https://themehybrid.com/plugins/members * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html */ namespace Members\Admin; /** * Sets up and handles the add-ons settings view. * * @since 2.0.0 * @access public */ class View_Addons extends View { /** * Renders the settings page. * * @since 2.0.0 * @access public * @return void */ public function template() { require_once( members_plugin()->dir . 'admin/class-addon.php' ); require_once( members_plugin()->dir . 'admin/functions-addons.php' ); do_action( 'members_register_addons' ); $addons = members_get_addons(); ?>
addon_card( $addon ); ?>

excerpt ) ); ?>

%s', esc_url( $addon->author_url ), esc_html( $addon->author_name ) ); ?>

rating && $addon->rating_count ) || $addon->install_count ) : ?>
rating && $addon->rating_count ) : ?>
'rating', 'rating' => floatval( $addon->rating ), 'number' => absint( $addon->rating_count ) ) ); ?>
install_count ) : ?>
install_count ) ) ); ?>
add_help_tab( array( 'id' => 'overview', 'title' => esc_html__( 'Overview', 'members' ), 'callback' => array( $this, 'help_tab_overview' ) ) ); // Roles/Caps help tab. $screen->add_help_tab( array( 'id' => 'download', 'title' => esc_html__( 'Download', 'members' ), 'callback' => array( $this, 'help_tab_download' ) ) ); // Roles/Caps help tab. $screen->add_help_tab( array( 'id' => 'purchase', 'title' => esc_html__( 'Purchase', 'members' ), 'callback' => array( $this, 'help_tab_purchase' ) ) ); // Set the help sidebar. $screen->set_help_sidebar( members_get_help_sidebar_text() ); } /** * Displays the overview help tab. * * @since 2.0.0 * @access public * @return void */ public function help_tab_overview() { ?>