tiki-browse_gallery.tpl 10.9 KB
Newer Older
1
{* $Id$ *}
2
{if $prefs.gal_image_mouseover neq 'n'}{popup_init src="lib/overlib.js"}{/if}
3
<h1><a class="pagetitle" href="tiki-browse_gallery.php?galleryId={$galleryId}">
4
{tr}Browsing Gallery{/tr}: {$name}
5
</a></h1>
6

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

{if $tiki_p_admin_galleries eq 'y'}
32
<span class="button2"><a href="tiki-list_gallery.php?galleryId={$galleryId}" class="linkbut">{tr}List Gallery{/tr}</a></span>
33
<span class="button2"><a href="tiki-show_all_images.php?id={$galleryId}" class="linkbut">{tr}All Images{/tr}</a></span>
34
{/if}
35
{if $prefs.rss_image_gallery eq 'y'}
36
  <span class="button2"><a href="tiki-image_gallery_rss.php?galleryId={$galleryId}" class="linkbut">{tr}RSS{/tr}</a></span>
redflo's avatar
redflo committed
37
{/if}
38
	{if $user and $prefs.feature_user_watches eq 'y'}
39
		{if $user_watching_gal eq 'n'}
40
			<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}">{icon _id='eye' alt="{tr}Monitor this Gallery{/tr}"}</a>
41
		{else}
42
			<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}">{icon _id='no_eye' alt="{tr}Stop Monitoring this Gallery{/tr}"}</a>
43 44 45 46
		{/if}
	{/if}
</div>

47
<div class="navbar" align="right">
48
    {if $user and $prefs.feature_user_watches eq 'y'}
49 50 51 52 53 54 55 56 57
        {if $category_watched eq 'y'}
            {tr}Watched by categories{/tr}:
            {section name=i loop=$watching_categories}
			    <a href="tiki-browse_categories?parentId={$watching_categories[i].categId}">{$watching_categories[i].name}</a>&nbsp;
            {/section}
        {/if}			
    {/if}
</div>

58 59 60 61
{if $advice}
<div class="highlight simplebox">{tr}{$advice}{/tr}</div>
{/if}

62
{if strlen($description) > 0}
63 64 65
	<div class="imgaldescr">
	  {$description}
  </div>
66
{/if}
67

68
	<span class="sorttitle">{tr}Sort Images by{/tr}</span>
redflo's avatar
redflo committed
69 70 71 72 73
    [ <span class="sortoption"><a class="gallink" href="tiki-browse_gallery.php?galleryId={$galleryId}&amp;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="tiki-browse_gallery.php?galleryId={$galleryId}&amp;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="tiki-browse_gallery.php?galleryId={$galleryId}&amp;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="tiki-browse_gallery.php?galleryId={$galleryId}&amp;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="tiki-browse_gallery.php?galleryId={$galleryId}&amp;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
74

75 76

  <div class="thumbnails">
77
    <table class="galtable"  cellpadding="0" cellspacing="0">
78
      <tr>
79 80 81 82
        {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 />
83
          <a href="tiki-browse_gallery.php?galleryId={$item.galleryId}"><img alt="{tr}subgallery{/tr} {$item.name}" class="athumb" src="show_image.php?id={$item.imageId}&amp;thumb=1" /></a>
84
	  <br />
85 86 87 88 89 90
	  <small class="caption">
		{tr}Subgallery{/tr}: 
			{if $showname=='y' || $showfilename=='y'}{$item.name}<br />{/if}
			{if $showimageid=='y'}{tr}ID{/tr}: {$item.galleryId}<br />{/if}
			{if $showdescription=='y'}{$item.description}<br />{/if}
			{if $showcreated=='y'}{tr}Created{/tr}: {$item.created|tiki_short_date}<br />{/if}
91
			{if $showuser=='y'}{tr}User{/tr}: {$item.user|userlink}<br />{/if}
92
			{if $showxysize=='y' || $showfilesize=='y'}({$item.numimages} Images){/if}
93
			{if $showhits=='y'}[{$item.hits} {if $item.hits == 1}{tr}Hit{/tr}{else}{tr}Hits{/tr}{/if}]<br />{/if}
94
                        </small>
95
	  </td>
96 97 98
         {if $key%$rowImages eq $rowImages2}
           </tr><tr>
         {/if}
99 100 101
        {/foreach}
        {foreach from=$images key=key item=item}
          <td align="center" {if ((($key +$num_subgals) / $rowImages) % 2)}class="oddthumb"{else}class="eventhumb"{/if}>
102
          &nbsp;&nbsp;<br />
103
{if $prefs.feature_shadowbox eq 'y'}
104
	<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">
105 106
	   <img class="athumb" src="show_image.php?id={$item.imageId}&amp;thumb=1" />
	</a>
107 108
{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">
109 110
		<img class="athumb" src="show_image.php?id={$item.imageId}&amp;thumb=1" />
	</a>
111
{/if}
112
          <br />
113

114
          <small class="caption">
115
	  {if $prefs.gal_image_mouseover neq 'only'}
116 117 118 119 120
		{if $showname=='y'}{$item.name}<br />{/if}
		{if $showfilename=='y'}{tr}Filename{/tr}: {$item.filename}<br />{/if}
		{if $showimageid=='y'}{tr}ID{/tr}: {$item.imageId}<br />{/if}
		{if $showdescription=='y'}{$item.description}<br />{/if}
		{if $showcreated=='y'}{tr}Created{/tr}: {$item.created|tiki_short_date}<br />{/if}
121
		{if $showuser=='y'}{tr}User{/tr}: {$item.user|userlink}<br />{/if}
122 123
		{if $showxysize=='y'}({$item.xsize}x{$item.ysize}){/if}
		{if $showfilesize=='y'}({$item.filesize} Bytes){/if}
124
		{if $showhits=='y'}[{$item.hits} {if $item.hits == 1}{tr}Hit{/tr}{else}{tr}Hits{/tr}{/if}]{/if}
125 126 127 128
	  {else}
	  	{if $showname=='y' and $item.name neq ''}{$item.name}{else}{$item.filename}{/if}
	  {/if}
	  <br />
129
          {if $tiki_p_admin_galleries eq 'y' or ($user and $user eq $owner)}
130
	    		{if $nextx!=0}
131
            		<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' border='0' width='8' height='11' alt='{tr}Original Size{/tr}' title='{tr}Original Size{/tr}' /></a>
132 133
	    		{/if}
            	{if $imagerotate}
134
            		<a class="gallink" href="tiki-browse_gallery.php?galleryId={$galleryId}&amp;rotateright={$item.imageId}" title="{tr}rotate right{/tr}"><img src='img/icons2/admin_rotate.gif' border='0' width='11' height='11' alt='{tr}rotate{/tr}' title='{tr}rotate{/tr}' /></a>
135
            	{/if}
136 137
            	<a class="gallink" href="tiki-browse_gallery.php?galleryId={$galleryId}&amp;remove={$item.imageId}" title="{tr}Delete{/tr}">{icon _id='cross' alt='{tr}Delete{/tr}'}</a>
            	<a class="gallink" href="tiki-edit_image.php?galleryId={$galleryId}&amp;edit={$item.imageId}" title="{tr}Edit{/tr}">{icon _id='page_edit'}</a>
138
          {/if}
139
          <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>
140
          <a {jspopup href="tiki-browse_image.php?galleryId=$galleryId&amp;sort_mode=$sort_mode&amp;imageId=`$item.imageId`&amp;scalesize=$defaultscale&amp;popup=1"} class="gallink">
141
{icon _id='layers' alt='{tr}popup{/tr}'}</a>
142
          <br />
143
	</small>
144
         </td>
145
         {if ($key + $num_subgals) % $rowImages eq $rowImages2}
146 147
           </tr><tr>
         {/if}
148 149
        {/foreach}
        {else}
150 151 152
          <tr><td colspan="6">
            <p class="norecords">{tr}No records found{/tr}</p>
          </td></tr>
153
        {/if}
154 155 156
    </table>
  </div>

luciash's avatar
luciash committed
157 158
{pagination_links cant=$cant step=$maxImages offset=$offset}{/pagination_links}

159 160 161 162
<table class="findtable">
<tr><td class="findtable">{tr}Find{/tr}
   <form method="get" action="tiki-browse_gallery.php">
     <input type="text" name="find" value="{$find|escape}" />
163
     <input type="submit" value="{tr}Find{/tr}" name="search" />
164 165 166 167 168 169
     <input type="hidden" name="sort_mode" value="{$sort_mode|escape}" />
     <input type="hidden" name="galleryId" value="{$galleryId}" />
   </form>
   </td>
</tr>
</table>
170
{if $prefs.feature_image_galleries_comments == 'y'
mose's avatar
mose committed
171 172 173
  && (($tiki_p_read_comments == 'y'
  && $comments_cant != 0)
  ||  $tiki_p_post_comments  == 'y'
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
  ||  $tiki_p_edit_comments  == 'y')
}
  <div id="page-bar">
    <div class="button2">
      <a href="#" onclick="javascript:flip('comzone');flip('comzone_close','inline');return false;" class="linkbut {if $comments_cant > 0}highlight{/if}">
        {if $comments_cant == 0 or ($tiki_p_read_comments  == 'n' and $tiki_p_post_comments  == 'y')}
          {tr}Add Comment{/tr}
        {elseif $comments_cant == 1}
          {tr}1 comment{/tr}
        {else}
          {$comments_cant}&nbsp;{tr}comments{/tr}
        {/if}
          <span id="comzone_close" style="display:{if isset($smarty.session.tiki_cookie_jar.show_comzone) and $smarty.session.tiki_cookie_jar.show_comzone eq 'y'}inline{else}none{/if};">({tr}close{/tr})</span>
      </a>
    </div>
  </div>
  {include file=comments.tpl}
lrargerich's avatar
lrargerich committed
191
{/if}