summaryrefslogtreecommitdiff
path: root/templates/admin_fisheye.tpl
blob: 2ffa8a4ec959b5b5755cde22224eac7158f45e94 (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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
{literal}
<script>//<![CDATA[
function updateGalleryPagination() {
	BitBase.hideById('fixed_grid-pagination');
	BitBase.hideById('auto_flow-pagination');
	BitBase.hideById('position_number-pagination');
	BitBase.hideById('simple_list-pagination');
	BitBase.hideById('matteo-pagination');
	BitBase.hideById('galleriffic-pagination');

	var input = document.getElementById('gallery-pagination');
    var i  = input.selectedIndex;
    var select = input.options[i].value;
	BitBase.showById(select+'-pagination');
}
//]]></script>
{/literal}
{strip}

{form}
	{jstabs}
		{jstab title="Settings"}
			{legend legend="General Settings"}
				<div class="form-group">
					{formhelp note="To change the Image Processing engine, you need to change the setting in Liberty Settings" link="kernel/admin/index.php?page=liberty/Liberty Settings"}
				</div>

				{foreach from=$formGalleryGeneral key=item item=output}
					<div class="form-group">
						{if $output.type=='checkbox'}
							{forminput label="checkbox"}
								{html_checkboxes name="$item" values="y" checked=$gBitSystem->getConfig($item) labels=false id=$item} {$output.label}
								{formhelp note=$output.note}
							{/forminput}
						{else}
							{formlabel label=$output.label for=$item}
							{forminput}
								<input type="text" class="form-control" name="{$item}" id="{$item}" value="{$gBitSystem->getConfig($item)}"/>
								{formhelp note=$output.note}
							{/forminput}
						{/if}
					</div>
				{/foreach}
			{/legend}
		{/jstab}

		{jstab title="List"}
			{legend legend="Gallery List Options"}
				<div class="form-group">
					{formhelp note="The options below determine what information is shown on the List Galleries page."}
				</div>

				{foreach from=$formGalleryListLists key=item item=output}
					<div class="form-group">
						{forminput label="checkbox"}
							{html_checkboxes name="$item" values="y" checked=$gBitSystem->getConfig($item) labels=false id=$item} {$output.label}
							{formhelp note=$output.note}
						{/forminput}
					</div>
				{/foreach}

				<div class="form-group">
					{formlabel label="List Thumbnail Size"}
					{forminput}
						{html_options values=$imageSizes options=$imageSizes name="fisheye_list_thumbnail_size" selected=$gBitSystem->getConfig('fisheye_list_thumbnail_size')}
					{/forminput}
				</div>
			{/legend}
		{/jstab}

		{jstab title="Galleries"}
			{legend legend="Gallery Display Settings"}
				<input type="hidden" name="page" value="{$page}" />
				<div class="form-group">
					{formhelp note="The options below determine what information is shown on a gallery display page."}
				</div>

				{foreach from=$formGalleryLists key=item item=output}
					<div class="form-group">
						{forminput label="checkbox"}
							{html_checkboxes name="$item" values="y" checked=$gBitSystem->getConfig($item) labels=false id=$item} {$output.label}
							{formhelp note=$output.note page=$output.page|default:0}
						{/forminput}
					</div>
				{/foreach}

				<div class="form-group">
					{formlabel label="Default sort order" for="fisheye_gallery_default_sort_mode"}
					{forminput}
						{html_options values=$sortOptions options=$sortOptions name="fisheye_gallery_default_sort_mode" id="fisheye_gallery_default_sort_mode" selected=$gBitSystem->getConfig('fisheye_gallery_default_sort_mode')}
						{formhelp note="This is the order of the images if they have not been sorted manually i.e. all the images with the same position value."}
					{/forminput}
				</div>
			{/legend}

			{legend legend="Default Gallery Display Settings"}
				<div class="form-group">
					{formhelp note="The settings below determine what the default display options will be set to for new galleries."}
				</div>

				<div class="form-group">
					{html_options id="gallery-pagination" name="default_gallery_pagination" id="gallery-pagination" options=$galleryPaginationTypes selected=$gBitSystem->getConfig('default_gallery_pagination',$smarty.const.FISHEYE_PAGINATION_GALLERIFFIC) onchange="updateGalleryPagination();"}

					<div id="fixed_grid-pagination">
						<input type="text" id="gallery-rows-per-page" name="rows_per_page" size="2" maxlength="2" value="{$gContent->mInfo.rows_per_page|default:$gBitSystem->getConfig('fisheye_gallery_default_rows_per_page')}"/> {tr}Rows per page{/tr}<br/>
						<input type="text" id="gallery-cols-per-page" name="cols_per_page" size="2" maxlength="2" value="{$gContent->mInfo.cols_per_page|default:$gBitSystem->getConfig('fisheye_gallery_default_cols_per_page')}"/> {tr}Columns per page{/tr}
						{formhelp note="The images will be displayed in a fixed grid. You can specify the number of thumbnails to display per page.<br /><strong>[rows] * [columns] = [number of images]</strong>."}
					</div>
					<div id="auto_flow-pagination">
						<input type="text" id="gallery-rows-per-page" name="total_per_page" size="2" maxlength="2" value="{$gBitSystem->getConfig('fisheye_gallery_default_rows_per_page')}"/> {tr}Total images per page{/tr}
						{formhelp note="The layout of the images on each gallery page will automatically adjust to the browsers width. You can specify the total number of thumbnails to display per page."}
					</div>
					<div id="position_number-pagination">
						{formhelp note="This option allows you to designate each specific image on each page. The image order number entered on the Image Order page will determine the exact location of each image. Fractional numbers indicate PAGE.POSITION and will specifiy variable images per page, such as: 1.1, 1.2, 2.1, 3.1, 3.2, 3.3"}
					</div>
					<div id="simple_list-pagination">
						<input type="text" id="gallery-rows-per-page" name="lines_per_page" size="2" maxlength="2" value="{$gBitSystem->getConfig('fisheye_gallery_default_rows_per_page')}"/> {tr}Total lines per page{/tr}
						{formhelp note="This option allows a single column display of images with mime details where available."}
					</div>
					<div id="matteo-pagination">
						<input type="text" id="gallery-rows-per-page" name="images_per_page" size="2" maxlength="2" value="{$gBitSystem->getConfig('fisheye_gallery_default_rows_per_page')}"/> {tr}Total images per page{/tr}
						{formhelp note="This option provides an ajax powered scrolling display using the mbGallery jquery library."}
					</div>
					<div id="galleriffic-pagination">
						<input type="text" id="galleriffic-style" name="galleriffic_style" size="2" maxlength="2" value="{$gBitSystem->getConfig('fisheye_gallery_default_galleriffic_style')}"/> {tr}Galleriffic layout style{/tr}
						{formhelp note="This option provides a javascript powered tabbed thumbnail list display using the galleriffic jquery library."}
					</div>
				</div>

				<div class="form-group">
					{formlabel label="Default Thumbnail Size" for="default_gallery_thumbnail_size"}
					{forminput}
						{html_options values=$imageSizes options=$imageSizes name="fisheye_gallery_default_thumbnail_size" id="default_gallery_thumbnail_size" selected=$gBitSystem->getConfig('fisheye_gallery_default_thumbnail_size')}
					{/forminput}
				</div>
			{/legend}
		{/jstab}

		{jstab title="Images"}
			{legend legend="Image Display Settings"}
				<div class="form-group">
					{formhelp note="The options below determine what information is displayed on the image display page."}
				</div>

				{foreach from=$formImageLists key=item item=output}
					<div class="form-group">
						{forminput label="checkbox"}
							{html_checkboxes name="$item" values="y" checked=$gBitSystem->getConfig($item) labels=false id=$item} {$output.label}
							{formhelp note=$output.note}
						{/forminput}
					</div>
				{/foreach}
			{/legend}

			{legend legend="Default Image Display Settings"}
				<div class="form-group">
					{formlabel label="Default Thumbnail Size"}
					{forminput}
						{html_options values=$imageSizes options=$imageSizes name="default_image_thumbnail_size" selected=$gBitSystem->getConfig('fisheye_image_default_thumbnail_size')}
					{/forminput}
				</div>
			{/legend}
		{/jstab}
	{/jstabs}

		<div class="form-group submit">
			<input type="submit" class="btn btn-default" name="fisheyeAdminSubmit" value="{tr}Change Preferences{/tr}" />
		</div>
{/form}

{/strip}
<script>//<![CDATA[
updateGalleryPagination();
//]]></script>