File: /home/ezpgggd/www/wp-content/plugins/wp-megamenu/views/admin/themes.php
<?php
$post_args = array(
'post_type' => 'wpmm_theme',
'post_status' => 'publish',
'order_by' => 'desc'
);
$query = new WP_Query($post_args);
?>
<div class="wrap wpmm-wrap wpmm-theme-listing">
<div class="wpmm-theme-head clearfix">
<div class="left">
<?php esc_html_e('Mega Menu Themes', 'wp-megamenu'); ?>
</div>
<div class="right">
<a class="page-title-action" href="<?php echo esc_url( admin_url('admin.php?page=wp_megamenu_themes§ion=add_theme') ); ?>"><?php esc_html_e('Create New Theme', 'wp-megamenu'); ?></a>
</div>
</div>
<?php
if ($query->have_posts()){
?>
<div class="wpmm-tabs-content wpmm-theme-list-content">
<table class="form-table wpmm-option-table wpmm-theme-list-table">
<?php
while ($query->have_posts()): $query->the_post();
?>
<tr class="wpmm-field wpmm-field-group wpmm-theme-list-tr">
<th>
<a href="<?php echo esc_url( admin_url( 'admin.php?page=wp_megamenu_themes§ion=add_theme&theme_id=' . get_the_ID() ) ); ?>">
<?php esc_html( the_title() ); ?>
</a>
</th>
<td class="text-right">
<a class="btn-edit" href="<?php echo esc_url( admin_url( 'admin.php?page=wp_megamenu_themes§ion=add_theme&theme_id=' . get_the_ID() ) ); ?>"> <i class="dashicons dashicons-edit"></i> </a>
<a class="btn-close deleteWpmmTheme" href="javascript:;" data-id="<?php esc_attr( the_ID() ); ?>"> <i class="dashicons
dashicons-trash"></i> </a>
</td>
</tr>
<?php endwhile; ?>
</table>
</div>
<?php
$query->reset_postdata();
}
?>
<div class="wrap wpmm-wrap wpmm-theme-listing wpmm-theme-listing-import">
<form action="" method="post" enctype="multipart/form-data">
<div class="wpmm-theme-head-import clearfix">
<div class="left wpmm-form-submit-button submit-btn-wrap btn-theme-setting-wrap">
<p class="submit">
<label class="wpmm-import-label">
<input type="file" name="wpmm_theme_import_file" />
<?php wp_nonce_field( 'wpmmm_import_theme_action', 'wpmmm_import_theme_nonce_field' ) ?>
<input name="submit" id="submit" class="button button-primary" value="<?php esc_attr_e('Import Theme', 'wp-megamenu') ?>" type="submit">
</label>
</p>
</div>
</div>
</form>
</div>
<div class="wrap wpmm-wrap wpmm-theme-listing wpmm-theme-listing-import">
<form action="" method="post" enctype="multipart/form-data">
<div class="wpmm-theme-head-import clearfix">
<div class="left wpmm-form-submit-button submit-btn-wrap btn-theme-setting-wrap">
<p class="submit">
<label class="wpmm-import-label">
<input type="file" name="wpmm_import_menu_file" />
<?php wp_nonce_field( 'wpmmm_import_menu_action', 'wpmmm_import_menu_nonce_field' ) ?>
<input name="submit" id="submit" class="button button-primary" value="<?php esc_attr_e('Import Menu', 'wp-megamenu') ?>" type="submit">
</label>
</p>
</div>
</div>
</form>
</div>
</div>