blob: b8722e1fa9404d1fcc0a973076d99d3e17509e80 (
plain)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
{strip}
<div class="edit fisheye">
<div class="header">
<h1>{if $gContent->mInfo.image_id}{tr}Edit Image{/tr}: {$gContent->getTitle()|escape} {else}{tr}Add New Image{/tr} {/if}</h1>
</div>
<div class="body">
{form enctype="multipart/form-data"}
{jstabs}
{jstab title="Edit Image"}
{formfeedback error=$errors}
<input type="hidden" name="gallery_id" value="{$galleryId|escape}"/>
<input type="hidden" name="image_id" value="{$imageId}"/>
<input type="hidden" name="MAX_FILE_SIZE" value="1000000000" />
<div class="form-group pull-right">
{formlabel label="Current Image"}
{forminput}
{if $gContent->mInfo.thumbnail_url.medium}
<img class="img-responsive" src="{$gContent->mInfo.thumbnail_url.medium}?{math equation="1 + rand(1,9999)"}" alt="{$gContent->getTitle()|escape}" />
<br />
<small>
<a href="{$gContent->getDownloadUrl()}">{tr}Full size{/tr}</a>
{if $gContent->mInfo.width && $gContent->mInfo.height}
: {$gContent->mInfo.width} x {$gContent->mInfo.height}
{/if}
</small>
{else}
<img class="img-responsive" src="{$smarty.const.FISHEYE_PKG_URL}image/no_image.png" alt="{$gContent->getTitle()|escape}" />
{/if}
{/forminput}
</div>
<div class="form-group">
{formlabel label="Title" for="image-title"}
{forminput}
<input type="text" class="input-xlarge" name="title" id="image-title" value="{$gContent->getTitle(0,0)|escape}" maxlength="160" size="50"/>
{/forminput}
</div>
<div class="form-group">
{formlabel label="Description" for="image-desc"}
{forminput}
<textarea name="edit" class="input-xlarge" id="image-desc" rows="4" cols="50">{$gContent->mInfo.data|escape}</textarea>
{/forminput}
</div>
<div class="form-group">
{if $gContent->getDownloadUrl()}
{formfeedback warning="{tr}Uploading a new image will replace the currently existing one.{/tr}"}
{assign var=repl value=Replacement}
{/if}
{formlabel label="Upload $repl Image" for="image-upload"}
{forminput}
<input type="file" name="imageFile" id="image-upload"/>
{/forminput}
</div>
<div class="form-group">
{forminput}
{forminput label="checkbox"}
<input type="checkbox" name="generate_thumbnails" value="1"/> {tr}Regenerate Thumbnails{/tr}
{/forminput}
{/forminput}
</div>
<div class="form-group">
{formlabel label="Rotate Image"}
{forminput}
{if function_exists('exif_read_data')}
<label class="radio-inline"><input type="radio" name="rotate_image" value="auto"/> {booticon iname="icon-chevron-sign-up" iexplain="Auto Rotate"}</label>
{/if}
<label class="radio-inline"><input type="radio" name="rotate_image" value="-90"/> {booticon iname="icon-rotate-left" iexplain="Rotate Counter Clockwise"}</label>
<label class="radio-inline"><input type="radio" name="rotate_image" value="90"/> {booticon iname="icon-rotate-left" iexplain="Rotate Clockwise"}</label>
<label class="radio-inline"><input type="radio" name="rotate_image" value="" checked="checked"/> {tr}don't rotate{/tr}</label>
{/forminput}
</div>
<div class="form-group">
{include file="bitpackage:fisheye/resize_image_select.tpl"}
</div>
{include file="bitpackage:liberty/edit_services_inc.tpl" serviceFile="content_edit_mini_tpl"}
{/jstab}
{jstab title="Image Galleries"}
<div class="form-group">
{formlabel label="Add This Image to These Galleries"}
{forminput}
{if $galleryTree}
<div class="gallerytree">
{$galleryTree}
</div>
{else}
<p class="norecords">
{tr}No Galleries Found{/tr}.<br />
</p>
{/if}
{/forminput}
</div>
{/jstab}
{include file="bitpackage:liberty/edit_services_inc.tpl" serviceFile="content_edit_tab_tpl"}
{/jstabs}
<div class="form-group submit">
<input type="submit" class="btn btn-default" name="saveImage" value="Save Image"/>
</div>
{/form}
</div> <!-- end .body -->
</div> <!-- end .fisheye -->
{/strip}
|