3 //to only be included by np_gallery script or update scripts
\r
4 if(isset($template)) unset($template);
\r
5 $template = new NPG_TEMPLATE(NPG_TEMPLATE::createnew('default093','default 0.93 templates'));
\r
7 $name = 'LIST_HEADER';
\r
8 $content = '<%breadcrumb%><hr/><table width=100% ><thead>'
\r
9 .'<tr><th><a href="<%sortbytitle%>">Title</a></th>'
\r
10 .'<th><a href="<%sortbydescription%>">Description</a></th>'
\r
11 .'<th><a href="<%sortbyowner%>">Owner</a></th>'
\r
12 .'<th><a href="<%sortbymodified%>">Last Modified</a></th>'
\r
13 .'<th><a href="<%sortbynumber%>">Images</a></th></tr></thead><tbody>'
\r
14 .'<form method="post" action="action.php">'
\r
15 .'<input type="hidden" name="action" value="plugin" />'
\r
16 .'<input type="hidden" name="name" value="gallery" />'
\r
17 .'<input type="hidden" name="type" value="list" />'
\r
18 .'<input type="submit" value="Resort by:" /> <select name="sort" >'
\r
19 .'<option value="title" >Album Title'
\r
20 .'<option value="desc" >Album Description'
\r
21 .'<option value="owner">Owner'
\r
22 .'<option value="date">Date Modified'
\r
23 .'<option value="numb">Number of Images'
\r
24 .'</select></form>';
\r
25 $template->setTemplate($name, $content);
\r
27 $name = 'LIST_BODY';
\r
28 $content = '<tr><td><a href="<%albumlink%>"><%title%></a></td><td><%description%></td><td><%ownername%></td><td><%modified%></td><td><%numberofimages%></td></tr>';
\r
29 $template->setTemplate($name, $content);
\r
31 $name = 'LIST_FOOTER';
\r
32 $content = '</tbody></table><hr/><br /><%if(canaddalbum)%><a href="<%addalbumlink%>">Add New Album | </a><%endif%><%if(canaddpicture)%><a href="<%addpictureslink%>"onclick="window.open(this.href,\'addpicture\',\'status=no,toolbar=no,scrollbars=yes,resizable=yes,width=600,height=400\');return false;"> Add Pictures</a><%endif%>';
\r
33 $template->setTemplate($name, $content);
\r
37 $name = 'ALBUM_HEADER';
\r
38 $content = '<%breadcrumb%><hr/>Page: <%pages%><hr/><div id="NPG_thumbnail">'
\r
39 .'<form method="post" action="action.php">'
\r
40 .'<input type="hidden" name="action" value="plugin" />'
\r
41 .'<input type="hidden" name="name" value="gallery" />'
\r
42 .'<input type="hidden" name="type" value="album" />'
\r
43 .'<input type="hidden" name="id" value="<%albumid%>" />'
\r
44 .'<input type="submit" value="Resort by:" /> <select name="sort" >'
\r
45 .'<option value="title" >Picture Title'
\r
46 .'<option value="desc" >Picture Description'
\r
47 .'<option value="date">Date Modified'
\r
48 .'<option value="titlea" >Picture Title - Ascending'
\r
49 .'<option value="desca" >Picture Description - Ascending'
\r
50 .'<option value="datea">Picture - Ascending'
\r
51 .'</select></form>';
\r
52 $template->setTemplate($name, $content);
\r
54 $name = 'ALBUM_BODY';
\r
55 $content = '<div class="thumbnailoutside"><div class=\'alpha-shadow\'><div><a href="<%picturelink%>"><img src="<%thumbnail%>" /></a></div></div><br></div>';
\r
56 $template->setTemplate($name, $content);
\r
58 $name = 'ALBUM_SETDISPLAY';
\r
59 $content = '<div class="thumbnailoutside"><div class=\'alpha-shadow\'><div><a href="<%picturelink%>"><img src="<%thumbnail%>" /></a></div></div><br></div>';
\r
60 $template->setTemplate($name, $content);
\r
62 $name = 'ALBUM_FOOTER';
\r
63 $content = '</div><div id="NPG_footer"><br /><hr/><%if(caneditalbum)%><a href="<%editalbumlink%>">Modify Album </a> | <%endif%><%if(canaddpicture)%><a href="<%addpicturelink%>"onclick="window.open(this.href,\'imagepopup\',\'status=no,toolbar=no,scrollbars=yes,resizable=yes,width=480,height=360\');return false;">Add Picture</a><%endif%></div>';
\r
64 $template->setTemplate($name, $content);
\r
67 $name = 'ITEM_TOOLTIPSHEADER';
\r
68 $content = '<%if(tooltips)%></script><script type="text/javascript">var pictureid = "<%pictureid%>";</script>'
\r
69 .'<script type="text/javascript" src="'.$CONF['IndexURL'].'/nucleus/plugins/gallery/NP_gallery.js"></script><%endif%>';
\r
70 $template->setTemplate($name, $content);
\r
72 $name = 'ITEM_HEADER';
\r
73 $content = '<style type="text/css">@import "'.$CONF['IndexURL'].'/nucleus/plugins/gallery/NP_gallery.css";</style>'
\r
74 .'<%breadcrumb%><br/><%if(prev)%><a href="<%previouslink%>">'
\r
75 .' Previous</a><%else%> Previous<%endif%> |<%if(next)%><a href="<%nextlink%>"> '
\r
76 .' Next</a><%else%> Next<%endif%><hr/><div id="NPG_picture">';
\r
77 $template->setTemplate($name, $content);
\r
79 $name = 'ITEM_SLIDESHOWT';
\r
80 $content = '<script language="JavaScript">' .
\r
81 'var NextURL = "<%nextlink%>&sliderunning=true";' .
\r
82 'var interval = (1000);' .
\r
83 'setTimeout("location.href=NextURL",3000);' .
\r
84 '</script><div class="alpha-shadow"><div><img src="<%intermediatepicture%>"</div></div>';
\r
85 $template->setTemplate($name, $content);
\r
87 $name = 'ITEM_SLIDESHOWC';
\r
88 $content = '<%if(slideshowson)%>' .
\r
90 '<form method="post" action="'.$CONF['IndexURL'].'action.php?action=plugin&name=gallery&type=item&id=<%nextid%>&startstop=true">' .
\r
91 '<input type="submit" value="Start Slideshow"/></form></td>' .
\r
92 '<td><form method="post" action="'.$CONF['IndexURL'].'action.php?action=plugin&name=gallery&type=item&id=<%nextid%>">' .
\r
93 '<input type="submit" value="Stop Slideshow"/></form></td></tr></table>'.
\r
94 //'interval(secs)' .
\r
95 //'<select name=intvalsecs>' .
\r
96 //'<OPTION value="1">1 sec</OPTION>' .
\r
97 //'<OPTION value="2">2 secs</OPTION>' .
\r
98 //'<OPTION value="3">3 secs</OPTION>' .
\r
102 $template->setTemplate($name, $content);
\r
104 $name = 'ITEM_BODY';
\r
105 $content = '<div class=\'alpha-shadow\' <%if(tooltips)%>onmouseenter="showtipdivs();" onmouseleave="hidetipdivs();" onmouseover="showtipdivs();" onmouseout="hidetipdivs();"<%endif%>><div><%if(tooltips)%><%tooltip%><%endif%><img src="<%intermediatepicture%>" <%if(tooltips)%>onMouseOver="setLyr(this,\'testlayer\');"<%endif%> /></div></div>';
\r
106 $template->setTemplate($name, $content);
\r
108 $name = 'ITEM_TOOLTIPSFOOTER';
\r
109 $content = '<%if(caneditpicture)%>'
\r
110 .'<%if(tooltips)%><form name="clear" method="POST" action="'
\r
112 .'/action.php?action=plugin&name=gallery&type=tagdelete">'
\r
113 .'<input type="hidden" name="pictureid" type="text" value ="<%pictureid%>">'
\r
114 .'<input type="submit" name="Submit" value="Delete one tag">'
\r
115 .'</form><a href="javascript:void(null)" onclick="start()">Create new caption. </a><%endif%><%endif%>'
\r
117 $template->setTemplate($name, $content);
\r
119 $name = 'ITEM_NEXTPREVTHUMBS';
\r
120 $content = '<%if(nextprevthumb)%>' .
\r
121 '<div style="clear:both;margin:auto">' .
\r
123 '<div class=\'thumbnailoutside\'><div class="alpha-shadow" ><div>' .
\r
124 'a href="<%previouslink%>"><img src="<%previousthumbfilename%>" /></a></div></div></div>' .
\r
126 '<div class=\'thumbnailoutside\' style="text-align:"></br></br>' .
\r
127 '< <%if(prev)%>Previous <%endif%>| <%if(next)%>Next <%endif%>>' .
\r
129 '<%if(next)%><div class=\'thumbnailoutside\'><div class="alpha-shadow" ><div>' .
\r
130 '<a href="<%nextlink%>"><img src="<%nextthumbfilename%>" /></a></div></div></div>' .
\r
134 '<div id="NPG_footer"><br />Description: <%description%>|<br />';
\r
135 $template->setTemplate($name, $content);
\r
137 $name = 'ITEM_FOOTER';
\r
138 $content = '<a href="<%fullsizelink%>">Fullsize Image Link</a>|'
\r
139 .'|Last modified by <%owner%> on '
\r
140 .'<%date%> <%if(caneditpicture)%>|<a href="<%editpicturelink%>">Edit</a> | '
\r
141 .'<a href="<%deletepicturelink%>">Delete</a>This picture in sets:<%keywords%> <%endif%><br/></div><%if(commentsallowed)%>'
\r
142 .'<div class="contenttitle"><h2>Comments</h2></div><%comments%><div class="contenttitle">'
\r
143 .'<h2>Add Comment</h2></div><%commentform%><%endif%>';
\r
144 $template->setTemplate($name, $content);
\r
146 $name = 'COMMENT_BODY';
\r
147 $content = '<div class="itemcomment id<%memberid%>"><h3><a href="<%userlinkraw%>"title="<%ip%> | Click to visit <%user%>\'s website or send an email"><%user%></a> wrote:</h3><div class="commentbody"><%body%></div><div class="commentinfo"><%date%> <%time%></div></div>' ;
\r
148 $template->setTemplate($name, $content);
\r
150 $name = 'PROMO_TITLE';
\r
151 $content = 'New Pictures Added!';
\r
152 $template->setTemplate($name,$content);
\r
154 $name = 'PROMO_BODY';
\r
155 $content = 'New pictures posted:<div id="NPG_thumbnail"><ul class="thumbnail"><%images%></ul></div><div id="NPG_footer"></div>';
\r
156 $template->setTemplate($name,$content);
\r
158 $name = 'PROMO_IMAGES';
\r
159 $content = '<li><a href="<%picturelink%>"><img style="<%centeredtopmargin(140,0)%>" src="<%thumbnail%>" /></a></li>';
\r
160 $template->setTemplate($name,$content);
\r