| 1 |
<?php |
| 2 |
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals. |
| 3 |
defined('ABSPATH') || die('Restricted Access'); |
| 4 |
?> |
| 5 |
<div id="acym__users__import__from_file" class="grid-x padding-vertical-2 padding-horizontal-2"> |
| 6 |
<div class="cell grid-x text-center"> |
| 7 |
<h6 class="cell"> |
| 8 |
<?php echo wp_kses( |
| 9 |
acym_translation('ACYM_CHOOSE_FILE_WITH_USER_DATA'), |
| 10 |
[ |
| 11 |
'b' => [], |
| 12 |
] |
| 13 |
); ?> |
| 14 |
</h6> |
| 15 |
<p class="acym__color__dark-gray cell text-center"><?php echo esc_html( |
| 16 |
acym_translation('ACYM_IMPORT_USER_FROM_FILE_INFORMATION_MESSAGE_BELOW_CHOOSE_FILE_BUTTON') |
| 17 |
); ?></p> |
| 18 |
<div class="cell grid-x acym__users__import__from_file__choose"> |
| 19 |
<div class="cell medium-auto"></div> |
| 20 |
<?php |
| 21 |
$maxupload = acym_bytes(ini_get('upload_max_filesize')); |
| 22 |
$maxpost = acym_bytes(ini_get('post_max_size')); |
| 23 |
$maxupload = min($maxupload, $maxpost); |
| 24 |
?> |
| 25 |
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo esc_attr($maxupload); ?>" /> |
| 26 |
<input type="file" name="import_file" class="show-for-sr" id="acym__users__import__from_file__import__input" accept=".csv"> |
| 27 |
<label for="acym__users__import__from_file__import__input" class="cell acym__color__blue medium-shrink margin-top-1 acym__users__import__from_file__import__label"> |
| 28 |
<?php echo esc_html(acym_translation('ACYM_CHOOSE_FILE')); ?> |
| 29 |
</label> |
| 30 |
<div class="cell medium-auto"></div> |
| 31 |
</div> |
| 32 |
<div class="acym__users__import__from_file__file cell grid-x" style="display: none;"> |
| 33 |
<div class="cell medium-auto"></div> |
| 34 |
<div class="cell medium-shrink margin-top-2"> |
| 35 |
<span class="acym__users__import__from_file__file-name acym__color__dark-gray"></span> |
| 36 |
<i title="<?php echo esc_attr(acym_translation('ACYM_DELETE')); ?>" class="acymicon-close acym__users__import__from_file__file__close acym__color__red"></i> |
| 37 |
</div> |
| 38 |
<div class="cell medium-auto"></div> |
| 39 |
</div> |
| 40 |
|
| 41 |
<div class="cell grid-x grid-margin-x margin-top-2"> |
| 42 |
<div class="cell hide-for-small-only medium-auto"></div> |
| 43 |
<?php acym_cancelButton('ACYM_CANCEL', '', 'button medium-6 large-shrink margin-bottom-0'); ?> |
| 44 |
<button class="cell button medium-shrink margin-bottom-0 acym__users__import__from_file__button-valid" disabled> |
| 45 |
<?php echo esc_html(acym_translation('ACYM_IMPORT_THIS_FILE')); ?> |
| 46 |
</button> |
| 47 |
<div class="cell hide-for-small-only medium-auto"></div> |
| 48 |
</div> |
| 49 |
</div> |
| 50 |
</div> |
| 51 |
|
| 52 |
|