tiki-browse_gallery.tpl 11.9 KB
Newer Older
1 2
{* $Id$ *}

3
{title}{tr}Browsing Gallery:{/tr} {$name}{/title}
4

5
<div class="navbar">
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
	{if $tiki_p_list_image_galleries eq 'y'}
		{button href="tiki-galleries.php" _text="{tr}List Galleries{/tr}"}
	{/if}
	{if $system eq 'n'}
		{if $tiki_p_admin_galleries eq 'y' or ($user and $user eq $owner)}
			{button href="tiki-galleries.php?edit_mode=1&amp;galleryId=$galleryId" _text="{tr}Edit Gallery{/tr}"}
			{button href="tiki-browse_gallery.php?galleryId=$galleryId&amp;rebuild=$galleryId" _text="{tr}Rebuild Thumbnails{/tr}"}
		{/if}
		
		{if $tiki_p_upload_images eq 'y'}
			{if $tiki_p_admin_galleries eq 'y' or ($user and $user eq $owner) or $public eq 'y'}
				{button href="tiki-upload_image.php?galleryId=$galleryId" _text="{tr}Upload Image{/tr}"}
			{/if}
		{/if}
		
		{if $prefs.feature_gal_batch eq "y" and $tiki_p_batch_upload_image_dir eq 'y'}
			{if $tiki_p_admin_galleries eq 'y' or ($user and $user eq $owner) or $public eq 'y'}
Jyhem's avatar
Jyhem committed
23
				{button href="tiki-batch_upload.php?galleryId=$galleryId" _text="{tr}Directory Batch{/tr}"}
24 25 26 27 28 29 30 31
			{/if}
		{/if}
		
		{if $tiki_p_assign_perm_image_gallery eq 'y'}
			{assign var=thisname value=$name|escape:"url"}
			{button href="tiki-objectpermissions.php?objectName=$thisname&amp;objectType=image+gallery&amp;permType=image+galleries&amp;objectId=$galleryId"	_text="{tr}Perms{/tr}"}
		{/if}
	{/if}
32

33 34 35 36 37
	{if $tiki_p_admin_galleries eq 'y'}
		{button href="tiki-list_gallery.php?galleryId=$galleryId" _text="{tr}List Gallery{/tr}"}
		{button href="tiki-show_all_images.php?id=$galleryId" _text="{tr}All Images{/tr}"}
	{/if}

38
	{if $prefs.feed_image_gallery eq 'y'}
39 40 41
		{button href="tiki-image_gallery_rss.php?galleryId=$galleryId" _text="{tr}RSS{/tr}"}
	{/if}
	
sylvieg's avatar
sylvieg committed
42
	{if $prefs.feature_group_watches eq 'y' and ( $tiki_p_admin_users eq 'y' or $tiki_p_admin eq 'y' )}
43
		<a href="tiki-object_watches.php?objectId={$galleryId|escape:"url"}&amp;watch_event=image_gallery_changed&amp;objectType=image+gallery&amp;objectName={$name|escape:"url"}&amp;objectHref={'tiki-browse_gallery.php?galleryId='|cat:$galleryId|escape:"url"}" class="icon">{icon _id='eye_group' alt="{tr}Group Monitor{/tr}" align='right' hspace="1"}</a>
sylvieg's avatar
sylvieg committed
44
	{/if}
45
	{if $user and $prefs.feature_user_watches eq 'y'}
46
		{if $user_watching_gal eq 'n'}
sylvieg's avatar
sylvieg committed
47
			<a href="tiki-browse_gallery.php?galleryId={$galleryId}&amp;watch_event=image_gallery_changed&amp;watch_object={$galleryId}&amp;watch_action=add" title="{tr}Monitor this Gallery{/tr}" class="icon">{icon _id='eye' alt="{tr}Monitor this Gallery{/tr}" align='right' hspace="1"}</a>
48
		{else}
sylvieg's avatar
sylvieg committed
49
			<a href="tiki-browse_gallery.php?galleryId={$galleryId}&amp;watch_event=image_gallery_changed&amp;watch_object={$galleryId}&amp;watch_action=remove" title="{tr}Stop Monitoring this Gallery{/tr}" class="icon">{icon _id='no_eye' alt="{tr}Stop Monitoring this Gallery{/tr}" align='right' hspace="1"}</a>
50 51 52 53
		{/if}
	{/if}
</div>

54
<div class="categbar" align="right">
55
    {if $user and $prefs.feature_user_watches eq 'y'}
56
        {if $category_watched eq 'y'}
57
            {tr}Watched by categories:{/tr}
58
            {section name=i loop=$watching_categories}
59
			    <a href="tiki-browse_categories.php?parentId={$watching_categories[i].categId}">{$watching_categories[i].name|escape}</a>&nbsp;
60 61 62 63 64
            {/section}
        {/if}			
    {/if}
</div>

65 66 67 68
{if $advice}
<div class="highlight simplebox">{tr}{$advice}{/tr}</div>
{/if}

69
{if strlen($description) > 0}
70 71
	<div class="description">
	  {$description|escape}
72
  </div>
73
{/if}
74

75
	<span class="sorttitle">{tr}Sort Images by{/tr}</span>
76 77 78 79 80
    [ <span class="sortoption"><a class="gallink" href="{$galleryId|sefurl:gallery:with_next}offset={$offset}&amp;sort_mode={if $sort_mode eq 'name_desc'}name_asc{else}name_desc{/if}">{tr}Name{/tr}</a></span>
    | <span class="sortoption"><a class="gallink" href="{$galleryId|sefurl:gallery:with_next}offset={$offset}&amp;sort_mode={if $sort_mode eq 'created_desc'}created_asc{else}created_desc{/if}">{tr}Date{/tr}</a></span>
    | <span class="sortoption"><a class="gallink" href="{$galleryId|sefurl:gallery:with_next}offset={$offset}&amp;sort_mode={if $sort_mode eq 'hits_desc'}hits_asc{else}hits_desc{/if}">{tr}Hits{/tr}</a></span>
    | <span class="sortoption"><a class="gallink" href="{$galleryId|sefurl:gallery:with_next}offset={$offset}&amp;sort_mode={if $sort_mode eq 'user_desc'}user_asc{else}user_desc{/if}">{tr}User{/tr}</a></span>
    | <span class="sortoption"><a class="gallink" href="{$galleryId|sefurl:gallery:with_next}offset={$offset}&amp;sort_mode={if $sort_mode eq 'filesize_desc'}filesize_asc{else}filesize_desc{/if}">{tr}Size{/tr}</a></span> ]
lrargerich's avatar
lrargerich committed
81

82 83

  <div class="thumbnails">
84
    <table class="galtable"  cellpadding="0" cellspacing="0">
85
      <tr>
86 87 88 89
        {if $num_objects > 0}
        {foreach from=$subgals key=key item=item}
          <td align="center" {if (($key / $rowImages) % 2)}class="oddthumb"{else}class="eventhumb"{/if}>
          &nbsp;&nbsp;<br />
90
          <a href="{$item.galleryId|sefurl:gallery}"><img alt="{tr}subgallery{/tr} {$item.name}" class="athumb" src="show_image.php?id={$item.imageId}&amp;thumb=1" /></a>
91
	  <br />
92
	  <small class="caption">
changi67's avatar
changi67 committed
93
		{tr}Subgallery:{/tr} 
94
			{if $showname=='y' || $showfilename=='y'}{$item.name}<br />{/if}
changi67's avatar
changi67 committed
95
			{if $showimageid=='y'}{tr}ID:{/tr} {$item.galleryId}<br />{/if}
96
			{if $showcategories=='y'}
changi67's avatar
changi67 committed
97
				{tr}Categories:{/tr}
98 99 100 101 102
					<ul>
					{section name=categ loop=$item.categories}
						<li>{$item.categories[categ]}</li>
					{/section}
					</ul><br />
103
			{/if}
104
			{if $showdescription=='y'}{$item.description}<br />{/if}
changi67's avatar
changi67 committed
105 106
			{if $showcreated=='y'}{tr}Created:{/tr} {$item.created|tiki_short_date}<br />{/if}
			{if $showuser=='y'}{tr}User:{/tr} {$item.user|userlink}<br />{/if}
107
			{if $showxysize=='y' || $showfilesize=='y'}({$item.images} Images){/if}
108
			{if $showhits=='y'}[{$item.hits} {if $item.hits == 1}{tr}Hit{/tr}{else}{tr}Hits{/tr}{/if}]<br />{/if}
109
		</small>
110
	  </td>
111 112 113
         {if $key%$rowImages eq $rowImages2}
           </tr><tr>
         {/if}
114 115 116
        {/foreach}
        {foreach from=$images key=key item=item}
          <td align="center" {if ((($key +$num_subgals) / $rowImages) % 2)}class="oddthumb"{else}class="eventhumb"{/if}>
117
          &nbsp;&nbsp;<br />
118
{if $prefs.feature_shadowbox eq 'y'}
119
	<a href="show_image.php?id={$item.imageId}&amp;scalesize={$defaultscale}" rel="lightbox[gallery];type=img" title="{if $item.description neq ''}{$item.description}{elseif $item.name neq ''}{$item.name}{else}{$item.filename}{/if}" {if $prefs.gal_image_mouseover neq 'n'}{popup fullhtml="1" text=$over_info.$key|escape:"javascript"|escape:"html"}{/if} class="linkmenu">
120 121
	   <img class="athumb" src="show_image.php?id={$item.imageId}&amp;thumb=1" />
	</a>
122 123
{else}
	<a href="tiki-browse_image.php?galleryId={$galleryId}&amp;sort_mode={$sort_mode}&amp;imageId={$item.imageId}&amp;scalesize={$defaultscale}" {if $prefs.gal_image_mouseover neq 'n'}{popup fullhtml="1" text=$over_info.$key|escape:"javascript"|escape:"html"}{/if} class="linkmenu">
124 125
		<img class="athumb" src="show_image.php?id={$item.imageId}&amp;thumb=1" />
	</a>
126
{/if}
127
          <br />
128
	  <small class="caption">
129
	  {if $prefs.gal_image_mouseover neq 'only'}
130
		{if $showname=='y'}{$item.name}<br />{/if}
changi67's avatar
changi67 committed
131 132
		{if $showfilename=='y'}{tr}Filename:{/tr} {$item.filename}<br />{/if}
		{if $showimageid=='y'}{tr}ID:{/tr} {$item.imageId}<br />{/if}
133
		{if $showcategories=='y'}
changi67's avatar
changi67 committed
134
		    	{tr}Categories:{/tr}
135 136 137 138 139 140
                        <ul class='categories'>
                        {section name=categ loop=$item.categories}
                        	<li>{$item.categories[categ]}</li>
                        {/section}
                        </ul><br />
                {/if}
141
		{if $showdescription=='y'}{$item.description}<br />{/if}
changi67's avatar
changi67 committed
142 143
		{if $showcreated=='y'}{tr}Created:{/tr} {$item.created|tiki_short_date}<br />{/if}
		{if $showuser=='y'}{tr}User:{/tr} {$item.user|userlink}<br />{/if}
144 145
		{if $showxysize=='y'}({$item.xsize}x{$item.ysize}){/if}
		{if $showfilesize=='y'}({$item.filesize} Bytes){/if}
146
		{if $showhits=='y'}[{$item.hits} {if $item.hits == 1}{tr}Hit{/tr}{else}{tr}Hits{/tr}{/if}]{/if}
147 148 149 150
	  {else}
	  	{if $showname=='y' and $item.name neq ''}{$item.name}{else}{$item.filename}{/if}
	  {/if}
	  <br />
151
          {if $tiki_p_admin_galleries eq 'y' or ($user and $user eq $owner)}
152
	    		{if $nextx!=0}
153
            		<a class="gallink" href="tiki-browse_image.php?galleryId={$galleryId}&amp;sort_mode={$sort_mode}&amp;imageId={$item.imageId}&amp;scalesize=0" title="{tr}Original Size{/tr}"><img src='img/icons2/nav_dot.gif' width='8' height='11' alt="{tr}Original Size{/tr}" title="{tr}Original Size{/tr}" /></a>
154 155
	    		{/if}
            	{if $imagerotate}
156
            		<a class="gallink" href="{$galleryId|sefurl:gallery:with_next}rotateright={$item.imageId}" title="{tr}rotate right{/tr}"><img src='img/icons2/admin_rotate.gif' width='11' height='11' alt="{tr}rotate{/tr}" title="{tr}rotate{/tr}" /></a>
157
            	{/if}
158
            	<a class="gallink" href="{$galleryId|sefurl:gallery:with_next}remove={$item.imageId}" title="{tr}Delete{/tr}">{icon _id='cross' alt="{tr}Delete{/tr}"}</a>
159
            	<a class="gallink" href="tiki-edit_image.php?galleryId={$galleryId}&amp;edit={$item.imageId}" title="{tr}Edit{/tr}">{icon _id='page_edit'}</a>
160
          {/if}
161
          <a class="gallink" href="tiki-browse_image.php?galleryId={$galleryId}&amp;sort_mode={$sort_mode}&amp;imageId={$item.imageId}&amp;scalesize={$defaultscale}" {if $prefs.gal_image_mouseover neq 'n'}{popup fullhtml="1" text=$over_info.$key|escape:"javascript"|escape:"html"}{/if}>{icon _id='magnifier' alt="{tr}Details{/tr}"}</a>
162
          <a {jspopup href="tiki-browse_image.php?galleryId=$galleryId&amp;sort_mode=$sort_mode&amp;imageId="|cat:$item.imageId|cat:"&amp;scalesize=$defaultscale&amp;popup=1"} class="gallink">
163
{icon _id='layers' alt="{tr}popup{/tr}"}</a>
164
          <br />
165
	</small>
166
         </td>
167
         {if ($key + $num_subgals) % $rowImages eq $rowImages2}
168 169
           </tr><tr>
         {/if}
170 171
        {/foreach}
        {else}
172
				{norecords _colspan=6}
173
        {/if}
174 175 176
    </table>
  </div>

luciash's avatar
luciash committed
177 178
{pagination_links cant=$cant step=$maxImages offset=$offset}{/pagination_links}

179
{include file='find.tpl'}
180

181
{if $prefs.feature_image_galleries_comments == 'y'
mose's avatar
mose committed
182 183 184
  && (($tiki_p_read_comments == 'y'
  && $comments_cant != 0)
  ||  $tiki_p_post_comments  == 'y'
185
  ||  $tiki_p_edit_comments  == 'y')}
186
  <div id="page-bar" class="clearfix">
187 188 189 190
		<span class="button"><a id="comment-toggle" href="tiki-ajax_services.php?controller=comment&amp;action=list&amp;type=image+gallery&amp;objectId={$galleryId|escape:'url'}#comment-container">{tr}Comments{/tr}</a></span>
		{jq}
			$('#comment-toggle').comment_toggle();
		{/jq}
191
  </div>
192
  <div id="comment-container"></div>
lrargerich's avatar
lrargerich committed
193
{/if}
194 195

<table class="normal noslideshow">
196 197
	<tr>
		<td class="even" colspan="2" style="border:0px; font-size:x-small">
changi67's avatar
changi67 committed
198
			{tr}You can view this gallery's configured image (first, random, etc.) in your browser using:{/tr}
199 200 201 202 203 204 205 206 207 208 209 210
		</td>
	<tr>
		<td width="6px" style="border:0px">
		</td>
		<td style="border:0px; font-size:x-small">
			<a class="gallink" href="{$base_url}show_image.php?galleryId={$galleryId}">
				{$base_url}show_image.php?galleryId={$galleryId}
			</a>
		</td>
	</tr>
	<tr>
		<td class="even" style="border-bottom:0px; font-size:x-small" colspan="2">
changi67's avatar
changi67 committed
211
			{tr}You can include the gallery's image in an HTML page using:{/tr}
212 213 214 215 216 217 218 219 220 221 222 223
		</td>
	</tr>
	<tr>
		<td style="border:0px" width="6px"></td>
		<td style="border:0px; font-size:x-small">
			<span class="inline_syntax">
				&lt;img src="{$base_url}show_image.php?galleryId={$galleryId}" /&gt;
			</span>
		</td>
	</tr>
	<tr>
  		<td class="even" style="border-bottom:0px; font-size:x-small" colspan="2">
changi67's avatar
changi67 committed
224
			{tr}You can include the image in a tiki page using:{/tr}
225 226 227 228 229 230 231 232 233 234 235 236
		</td>
	<tr>
		<td width="6px" style="border:0px">
		</td>
		<td class="inline_syntax" style="border:0px; font-size:x-small">
			{if $resultscale == $defaultscale or !$resultscale}
				{literal}{{/literal}img src=show_image.php?galleryId={$galleryId} {literal}}{/literal}<br />
			{else}
				{literal}{{/literal}img src={$base_url}show_image.php?galleryId={$galleryId} {literal}}{/literal}<br />
			{/if}
  		</td>
	</tr>
237
</table>