mirror of
				https://github.com/chevereto/chevereto.git
				synced 2025-10-26 00:36:15 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			45 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| use Chevereto\Legacy\G\Handler;
 | |
| use function Chevereto\Legacy\G\include_theme_file;
 | |
| use function Chevereto\Legacy\getSetting;
 | |
| 
 | |
| // @phpstan-ignore-next-line
 | |
| if (!defined('ACCESS') || !ACCESS) {
 | |
|     die('This file cannot be directly accessed.');
 | |
| } ?>
 | |
| 
 | |
| <div class="input-label">
 | |
| 	<label for="form-image-title"><?php _se('Title'); ?> <span class="optional"><?php _se('optional'); ?></span></label>
 | |
| 	<input type="text" id="form-image-title" name="form-image-title" class="text-input" value="<?php echo Handler::hasVar('image_safe_html') ? Handler::var('image_safe_html')["title"] : ''; ?>" placeholder="<?php _se('Untitled %s', _s('image')); ?>" maxlength="<?php echo getSetting('image_title_max_length'); ?>">
 | |
| </div>
 | |
| <?php
 | |
|     if (!Handler::hasVar('image') || isset(Handler::var('image')['user'])) {
 | |
|         ?>
 | |
| <div id="move-existing-album" data-view="switchable" class="c8 input-label">
 | |
|     <?php include_theme_file("snippets/form_move_existing_album"); ?>
 | |
| </div>
 | |
| <?php
 | |
|     }
 | |
| ?>
 | |
| <?php
 | |
|     if (Handler::var('categories') !== []) {
 | |
|         ?>
 | |
| <div class="input-label c8">
 | |
| 	<?php include_theme_file('snippets/form_category'); ?>
 | |
| </div>
 | |
| <?php
 | |
|     }
 | |
| ?>
 | |
| <div class="checkbox-label"><span rel="template-tooltip" data-tiptip="right" data-title="<?php _se('Mark this if the image is not safe for work'); ?>"><label for="form-nsfw"><input class="float-left" type="checkbox" name="form-nsfw" id="form-nsfw"<?php if (Handler::hasVar('image') and Handler::var('image')['nsfw']) {
 | |
|     echo ' checked';
 | |
| }
 | |
| if (!Handler::cond('allowed_nsfw_flagging')) {
 | |
|     echo ' disabled';
 | |
| }
 | |
| ?>><span class="no-select"><i class="fas fa-flag"></i> <?php _se('Flag not safe'); ?></span></label></span></div>
 | |
| <div class="input-label">
 | |
|     <label for="form-image-description"><?php _se('Description'); ?> <span class="optional"><?php _se('optional'); ?></span></label>
 | |
|     <textarea id="form-image-description" name="form-image-description" class="text-input no-resize" placeholder="<?php _se('Brief description of this %s', _s('image')); ?>"><?php echo Handler::var('image_safe_html')["description"] ?? ''; ?></textarea>
 | |
| </div>
 |