Sindbad~EG File Manager
<?php
/**
* Class LP_Submenu_Addons
*
* @since 3.0.0
*/
class LP_Submenu_Addons extends LP_Abstract_Submenu {
/**
* LP_Submenu_Addons constructor.
*/
public function __construct() {
$this->id = 'learn-press-addons';
$this->menu_title = __( 'Add-ons', 'learnpress' );
$this->page_title = __( 'LearnPress Add-ons', 'learnpress' );
$this->priority = 20;
$this->add_ons_tabs();
parent::__construct();
}
public function add_ons_tabs() {
$tabs = array(
'more' => sprintf( __( 'Get more (%d)', 'learnpress' ), LP_Plugins_Helper::count_plugins() ),
'installed' => sprintf( __( 'Installed (%d)', 'learnpress' ), LP_Plugins_Helper::count_plugins( 'installed' ) ),
'themes' => sprintf( __( 'Themes (%d)', 'learnpress' ), LP_Plugins_Helper::count_themes() ),
);
$this->tabs = apply_filters(
'learn-press/admin/page-addons-tabs',
$tabs
);
}
public function page_content_installed() {
$this->page_content_search_form();
learn_press_admin_view( 'addons/html-plugins-installed' );
}
public function page_content_more() {
$this->page_content_search_form();
learn_press_admin_view( 'addons/html-plugins-more' );
}
public function page_content_themes() {
$this->page_content_search_form();
learn_press_admin_view( 'addons/html-themes' );
}
public function page_content_search_form() {
?>
<p class="search-box">
<input type="text" class="lp-search-addon" value="" placeholder="<?php esc_attr_e( 'Search...', 'learnpress' ); ?>">
</p>
<?php
}
}
return new LP_Submenu_Addons();
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists