2020-06-24 18:35:15 +00:00
|
|
|
<?php if (!defined('access') or !access) {
|
|
|
|
die('This file cannot be directly accessed.');
|
|
|
|
} ?>
|
|
|
|
<?php $user_items_editor = G\get_global('user_items_editor') ?: (function_exists('get_user_items_editor') ? get_user_items_editor() : null); ?>
|
2016-08-18 20:39:31 +00:00
|
|
|
<label for="form-album-id"><?php echo !isset($user_items_editor['album']) ? _s('Existing album') : _n('Album', 'Albums', 1); ?></label>
|
|
|
|
<select name="form-album-id" id="form-album-id" class="text-input">
|
|
|
|
<?php
|
2020-06-24 18:35:15 +00:00
|
|
|
if (is_array($user_items_editor)) {
|
|
|
|
foreach ($user_items_editor['user_albums'] as $album) {
|
|
|
|
?>
|
|
|
|
<option value="<?php echo $album['id_encoded']; ?>"<?php if ($album['id'] == $user_items_editor['album']['id']) {
|
|
|
|
echo " selected";
|
|
|
|
} ?>><?php echo $album['name_with_privacy_readable_html']; ?></option>
|
2016-08-18 20:39:31 +00:00
|
|
|
<?php
|
2020-06-24 18:35:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
2016-08-18 20:39:31 +00:00
|
|
|
</select>
|
|
|
|
<span class="btn-alt c7"><?php _se('or'); ?> <a data-switch="move-new-album"><?php _se('create new album'); ?></a></span>
|