mirror of
https://github.com/lubuntu-team/lubuntu.me.git
synced 2025-02-23 16:21:07 +00:00
62 lines
2.1 KiB
PHP
62 lines
2.1 KiB
PHP
<?php if ( is_readable( AI1WM_STORAGE_PATH ) && is_writable( AI1WM_STORAGE_PATH ) ) : ?>
|
|
<div class="ai1wm-import-messages"></div>
|
|
|
|
<div class="ai1wm-import-form">
|
|
<div class="hide-if-no-js">
|
|
<div class="ai1wm-drag-drop-area" id="ai1wm-drag-drop-area">
|
|
<div id="ai1wm-import-init">
|
|
<p>
|
|
<i class="ai1wm-icon-cloud-upload"></i><br />
|
|
<?php _e( 'Drag & Drop to upload', AI1WM_PLUGIN_NAME ); ?>
|
|
</p>
|
|
<div class="ai1wm-button-group ai1wm-button-import ai1wm-expandable">
|
|
<div class="ai1wm-button-main">
|
|
<span><?php _e( 'Import From', AI1WM_PLUGIN_NAME ); ?></span>
|
|
<span class="ai1mw-lines">
|
|
<span class="ai1wm-line ai1wm-line-first"></span>
|
|
<span class="ai1wm-line ai1wm-line-second"></span>
|
|
<span class="ai1wm-line ai1wm-line-third"></span>
|
|
</span>
|
|
</div>
|
|
<ul class="ai1wm-dropdown-menu ai1wm-import-providers">
|
|
<?php foreach ( apply_filters( 'ai1wm_import_buttons', array() ) as $button ) : ?>
|
|
<li>
|
|
<?php echo $button; ?>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<p>
|
|
<?php _e( 'Maximum upload file size:' ); ?>
|
|
<?php if ( ( $max_file_size = apply_filters( 'ai1wm_max_file_size', AI1WM_MAX_FILE_SIZE ) ) ) : ?>
|
|
<span class="ai1wm-max-upload-size"><?php echo size_format( $max_file_size ); ?></span>
|
|
<span class="ai1wm-unlimited-import">
|
|
<a href="https://servmask.com/products/unlimited-extension" target="_blank" class="ai1wm-label">
|
|
<i class="ai1wm-icon-notification"></i>
|
|
<?php _e( 'Get unlimited', AI1WM_PLUGIN_NAME ); ?>
|
|
</a>
|
|
</span>
|
|
<?php else : ?>
|
|
<span class="ai1wm-max-upload-size"><?php _e( 'Unlimited', AI1WM_PLUGIN_NAME ); ?></span>
|
|
<?php endif; ?>
|
|
</p>
|
|
<?php else : ?>
|
|
<div class="ai1wm-message ai1wm-red-message">
|
|
<?php
|
|
printf(
|
|
__(
|
|
'<h3>Site could not be imported!</h3>' .
|
|
'<p>Please make sure that storage directory <strong>%s</strong> has read and write permissions.</p>',
|
|
AI1WM_PLUGIN_NAME
|
|
),
|
|
AI1WM_STORAGE_PATH
|
|
);
|
|
?>
|
|
</div>
|
|
<?php endif; ?>
|