LLMS_Admin_AddOns::output()
Output HTML for the current screen
Return Return
(void)
Source Source
File: includes/admin/class.llms.admin.addons.php
public function output() {
if ( is_wp_error( $this->get_data() ) ) {
esc_html_e( 'There was an error retrieving add-ons. Please try again.', 'lifterlms' );
return;
}
?>
<div class="wrap lifterlms lifterlms-settings lifterlms-addons">
<div class="llms-subheader">
<h1><?php esc_html_e( 'LifterLMS Add-Ons, Courses, and Resources', 'lifterlms' ); ?></h1>
<?php do_action( 'llms_addons_page_after_title' ); ?>
</div>
<div class="llms-inside-wrap">
<?php $this->output_navigation(); ?>
<hr class="wp-header-end">
<form action="" method="POST">
<?php $this->output_content(); ?>
<?php wp_nonce_field( 'llms_manage_addon', '_llms_manage_addon_nonce' ); ?>
<?php if ( current_user_can( 'install_plugins' ) ) : ?>
<div class="llms-addons-bulk-actions" id="llms-addons-bulk-actions">
<a class="llms-bulk-close" href="#">
<span class="screen-reader-text"><?php esc_html_e( 'Close', 'lifterlms' ); ?></span>
<i class="fa fa-times-circle" aria-hidden="true"></i>
</a>
<div class="llms-bulk-desc update">
<i class="fa fa-cloud-download" aria-hidden="true"></i>
<?php esc_html_e( 'Update', 'lifterlms' ); ?> <span></span>
</div>
<div class="llms-bulk-desc install">
<i class="fa fa-cloud-download" aria-hidden="true"></i>
<?php esc_html_e( 'Install', 'lifterlms' ); ?> <span></span>
</div>
<div class="llms-bulk-desc activate">
<i class="fa fa-plug" aria-hidden="true"></i>
<?php esc_html_e( 'Activate', 'lifterlms' ); ?> <span></span>
</div>
<div class="llms-bulk-desc deactivate">
<i class="fa fa-plug" aria-hidden="true"></i>
<?php esc_html_e( 'Deactivate', 'lifterlms' ); ?> <span></span>
</div>
<button class="llms-button-primary" name="llms_bulk_actions_submit" value="" type="submit"><?php esc_html_e( 'Apply', 'lifterlms' ); ?></button>
</div>
<?php endif; ?>
</form>
</div>
</div>
<?php
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 4.10.1 | Use hr.wp-header-end in favor of a second (hidden) <h1> to "catch" admin notices. |
| 3.5.0 | |
| 3.28.0 | Introduced. |