| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/aecm.ihu.gr/wp-content/plugins/learnpress/inc/admin/views/addons/ |
Upload File : |
<?php
/**
* Admin View: Displaying all LearnPress's related themes.
*
* @author ThimPress
* @package LearnPress/Views
* @version 3.0.0
*/
defined( 'ABSPATH' ) || exit();
// Thimpress Education themes
$education_themes = LP_Plugins_Helper::get_related_themes( 'education' );
// Thimpress other themes
$other_themes = LP_Plugins_Helper::get_related_themes( 'other' );
if ( ! ( $education_themes || $other_themes ) ) {
_e( 'No related themes.', 'learnpress' );
return;
}
$all_themes = array(
array(
'title' => __( 'Education Support', 'learnpress' ),
'items' => $education_themes,
),
array(
'title' => __( 'Other', 'learnpress' ),
'items' => $other_themes,
),
);
$lp_query_items_bg = new LP_Background_Query_Items();
$lp_query_items_bg->query_related_themes();
foreach ( $all_themes as $themes ) {
if ( $themes['items'] ) {
?>
<h2><?php echo sprintf( '%s (<span>%s</span>)', esc_html( $themes['title'] ), sizeof( $themes['items'] ) ); ?></h2>
<ul class="addons-browse related-themes widefat">
<?php
foreach ( $themes['items'] as $key => $item ) {
$item['url'] = learn_press_get_item_referral( $item['id'] );
learn_press_admin_view(
'addons/html-loop-theme',
array(
'theme' => $item,
'ref' => '',
)
);
}
?>
</ul>
<?php
}
}