chevereto-free/app/themes/Peafowl/snippets/form_image.php

37 lines
2.0 KiB
PHP
Raw Normal View History

2020-06-24 18:35:15 +00:00
<?php if (!defined('access') or !access) {
die('This file cannot be directly accessed.');
} ?>
2016-08-18 20:39:31 +00:00
<div class="input-label">
<label for="form-image-title"><?php _se('Title'); ?> <span class="optional"><?php _se('optional'); ?></span></label>
2020-06-24 18:35:15 +00:00
<input type="text" id="form-image-title" name="form-image-title" class="text-input" value="<?php echo function_exists('get_image_safe_html') ? get_image_safe_html()["title"] : null; ?>" placeholder="<?php _se('Untitled image'); ?>" maxlength="<?php echo CHV\getSetting('image_title_max_length'); ?>">
2016-08-18 20:39:31 +00:00
</div>
<?php
2020-06-24 18:35:15 +00:00
if (!function_exists('get_image') or (function_exists('get_image') && get_image()['user'])) {
?>
2016-08-18 20:39:31 +00:00
<div id="move-existing-album" data-view="switchable" class="c7 input-label">
<?php G\Render\include_theme_file("snippets/form_move_existing_album"); ?>
</div>
<div id="move-new-album" data-content="form-new-album" data-view="switchable" class="soft-hidden">
<?php G\Render\include_theme_file("snippets/form_album"); ?>
</div>
<?php
2020-06-24 18:35:15 +00:00
}
2016-08-18 20:39:31 +00:00
?>
2017-11-09 19:02:18 +00:00
<?php
2020-06-24 18:35:15 +00:00
if (get_categories()) {
?>
2017-11-09 19:02:18 +00:00
<div class="input-label c7">
<?php G\Render\include_theme_file('snippets/form_category'); ?>
</div>
<?php
2020-06-24 18:35:15 +00:00
}
2017-11-09 19:02:18 +00:00
?>
2020-06-24 18:35:15 +00:00
<div class="checkbox-label"><span rel="template-tooltip" data-tiptip="right" data-title="<?php _se('Mark this if the image is not family safe'); ?>"><label for="form-nsfw"><input class="float-left" type="checkbox" name="form-nsfw" id="form-nsfw"<?php if (function_exists('get_image') and get_image()['nsfw']) {
echo ' checked';
} ?>><?php _se('Flag as unsafe'); ?></label></span></div>
2016-08-18 20:39:31 +00:00
<div class="input-label">
<label for="form-image-description"><?php _se('Description'); ?> <span class="optional"><?php _se('optional'); ?></span></label>
2020-06-24 18:35:15 +00:00
<textarea id="form-image-description" name="form-image-description" class="text-input no-resize" placeholder="<?php _se('Brief description of this image'); ?>"><?php echo function_exists('get_image_safe_html') ? get_image_safe_html()["description"] : null; ?></textarea>
2016-08-18 20:39:31 +00:00
</div>