LLMS_Helper_Admin_Add_Ons::output_single_install_action( obj $addon, string $curr_tab )
Output html for installation action
Description Description
Does not output for "featured" items on general settings.
Parameters Parameters
- $addon
-
(obj) (Required) LLMS_Add_On instance.
- $curr_tab
-
(string) (Required) Slug of the current tab being viewed.
Return Return
(void)
Source Source
File: libraries/lifterlms-helper/includes/class-llms-helper-admin-add-ons.php
*/ public function output_single_install_action( $addon, $curr_tab ) { if ( 'featured' === $curr_tab ) { return; } if ( $addon->is_installable() && ! $addon->is_installed() && ( ! $addon->requires_license() || $addon->is_licensed() ) ) { ?> <label class="llms-status-icon status--<?php echo esc_attr( $addon->get_install_status() ); ?>" for="<?php echo esc_attr( sprintf( '%s-install', $addon->get( 'id' ) ) ); ?>"> <input class="llms-bulk-check" data-action="install" name="llms_install[]" id="<?php echo esc_attr( sprintf( '%s-install', $addon->get( 'id' ) ) ); ?>" type="checkbox" value="<?php echo esc_attr( $addon->get( 'id' ) ); ?>"> <i class="fa fa-check-square-o" aria-hidden="true"></i> <i class="fa fa-cloud-download" aria-hidden="true"></i> <span class="llms-status-text"><?php _e( 'Install', 'lifterlms' ); ?></span> </label> <a href="<?php echo admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $addon->get( 'id' ) . '§ion=changelog&TB_iframe=true&width=600&height=800' ); ?>" class="thickbox open-plugin-details-modal tip--bottom-left" data-tip="<?php esc_attr_e( 'View add-on details', 'lifterlms' ); ?>"> <i class="fa fa-info-circle" aria-hidden="true"></i> </a> <?php }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.4.0 | Use core textdomain. |
3.2.1 | Output single install action if the addon doesn't require license (e.g. free product). |
3.0.0 | Introduced. |