Repository navigation
Expand file tree
/
Copy pathforms.php
More file actions
60 lines (53 loc) · 1.94 KB
/
Copy pathforms.php
File metadata and controls
60 lines (53 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
if($_POST['form'] == 'add_gallery'):?>
<!-- add gallery -->
<form class="sthlm-gallery-cboxform" id="add_sthlm_gallery_form" action="" method="post">
<div>
<label class="sthlm-gallery-input-label">
<strong>Titel</strong>
<input type="text" id="sthlm_gallery_title_input" />
</label>
<label class="sthlm-gallery-textarea-label">
<strong>Beskrivning</strong>
<textarea id="sthlm_gallery_desc_textarea"></textarea>
</label>
<div>
<a href="#" class="button-secondary" id="sthlm_submit_new_gallery"><?php _e('Skapa galleriet', 'sthlm_gallery'); ?></a>
</div>
</div>
</form>
<?php elseif($_POST['form'] == 'edit_img'): ?>
<!-- Edit image data -->
<form class="sthlm-gallery-cboxform" id="sthlm-gallery-image-data" action="" method="post">
<div>
<img src="" alt="" id="sthlm_edit_preview">
<?php
//
// Ska man kunna ändra id? då kan man sriva över en existerande bild :S
//
?>
<input type="text" readonly="readonly" name="sthlm-gallery-id" />
<label class="sthlm-gallery-input-label">
<strong><?php _e('Titel', 'sthlm_gallery'); ?></strong>
<input type="text" name="sthlm-gallery-title" />
</label>
<label class="sthlm-gallery-textarea-label">
<strong><?php _e('Beskrivning', 'sthlm_gallery'); ?></strong>
<textarea name="sthlm-gallery-excerpt"></textarea>
</label>
<label class="sthlm-gallery-textarea-label">
<strong><?php _e('Bildtext', 'sthlm_gallery'); ?></strong>
<textarea name="sthlm-gallery-content"></textarea>
</label>
<label class="sthlm-gallery-input-label">
<strong><?php _e('Taggar', 'sthlm_gallery'); ?></strong>
<input type="text" name="sthlm-gallery-tags" />
</label>
<div>
<a href="#" class="button-secondary" id="sthlm_save_img_settings"><?php _e('Spara', 'sthlm_gallery'); ?></a>
</div>
</div>
</form>
<?php else: ?>
<?php _e('Något har gått fel.', 'sthlm_gallery'); ?>
<?php endif; ?>