| 1 |
<?php |
| 2 |
/** |
| 3 |
* HTML for the Import Snippets page. |
| 4 |
* |
| 5 |
* @package Code_Snippets |
| 6 |
* @subpackage Views |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace Code_Snippets; |
| 10 |
|
| 11 |
/** |
| 12 |
* Loaded from import menu. |
| 13 |
* |
| 14 |
* @var Import_Menu $this |
| 15 |
*/ |
| 16 |
|
| 17 |
if ( ! defined( 'ABSPATH' ) ) { |
| 18 |
return; |
| 19 |
} |
| 20 |
|
| 21 |
$max_size_bytes = apply_filters( 'import_upload_size_limit', wp_max_upload_size() ); |
| 22 |
?> |
| 23 |
<div class="wrap"> |
| 24 |
<h1> |
| 25 |
<?php |
| 26 |
|
| 27 |
esc_html_e( 'Import Snippets', 'code-snippets' ); |
| 28 |
|
| 29 |
if ( code_snippets()->is_compact_menu() ) { |
| 30 |
$this->render_page_title_actions( [ 'manage', 'add', 'settings' ] ); |
| 31 |
} |
| 32 |
|
| 33 |
?> |
| 34 |
</h1> |
| 35 |
|
| 36 |
<div id="import-container"></div> |
| 37 |
</div> |
| 38 |
|