3 //to only be included by np_gallery script or update scripts
\r
5 if(isset($template)) unset($template);
\r
6 $template = new NPG_TEMPLATE(NPG_TEMPLATE::createnew('default080','default 0.80 templates'));
\r
8 $name = 'LIST_HEADER';
\r
9 $content = '<%breadcrumb%><hr/><table width=100% ><thead>'
\r
10 .'<tr><th><a href="<%sortbytitle%>">Title</a></th>'
\r
11 .'<th><a href="<%sortbydescription%>">Description</a></th>'
\r
12 .'<th><a href="<%sortbyowner%>">Owner</a></th>'
\r
13 .'<th><a href="<%sortbymodified%>">Last Modified</a></th>'
\r
14 .'<th><a href="<%sortbynumber%>">Images</a></th></tr></thead><tbody>';
\r
15 $template->setTemplate($name, $content);
\r
17 $name = 'LIST_BODY';
\r
18 $content = '<tr><td><a href="<%albumlink%>"><%title%></a></td><td><%description%></td><td><%ownername%></td><td><%modified%></td><td><%numberofimages%></td></tr>';
\r
19 $template->setTemplate($name, $content);
\r
21 $name = 'LIST_FOOTER';
\r
22 $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=no,resizable=yes,width=600,height=400\');return false;"> Add Pictures</a><%endif%>';
\r
23 $template->setTemplate($name, $content);
\r
27 $name = 'ALBUM_HEADER';
\r
28 $content = '<%breadcrumb%><hr/>Page: <%pages%><hr/><div id="NPG_thumbnail">';
\r
29 $template->setTemplate($name, $content);
\r
31 $name = 'ALBUM_BODY';
\r
32 $content = '<div class="thumbnailoutside"><div class=\'alpha-shadow\'><div><a href="<%picturelink%>"><img src="<%thumbnail%>" /></a></div></div><br></div>';
\r
33 $template->setTemplate($name, $content);
\r
35 $name = 'ALBUM_FOOTER';
\r
36 $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=no,resizable=yes,width=480,height=360\');return false;">Add Picture</a><%endif%></div>';
\r
37 $template->setTemplate($name, $content);
\r
40 $name = 'ITEM_HEADER';
\r
41 $content = '<%breadcrumb%><br/><%if(prev)%><a href="<%previouslink%>"> Previous</a><%else%> Previous<%endif%> |<%if(next)%><a href="<%nextlink%>"> Next</a><%else%> Next<%endif%><hr/><div id="NPG_picture">';
\r
42 $template->setTemplate($name, $content);
\r
44 $name = 'ITEM_BODY';
\r
45 $content = '<a href="<%fullsizelink%>" onclick="window.open(this.href,\'imagepopup\',\'status=no,toolbar=no,scrollbars=auto,resizable=yes,width=<%width%>,height=<%height%>\');return false;"><img src="<%intermediatepicture%>" /></a>';
\r
46 $template->setTemplate($name, $content);
\r
48 $name = 'ITEM_FOOTER';
\r
49 $content = '</div><div id="NPG_footer"><br /><%description%><br/><br/>Last modified by <%owner%> on <%date%> <%if(caneditpicture)%><a href="<%editpicturelink%>">Edit</a> | <a href="<%deletepicturelink%>">Delete</a><%endif%><br/></div><%if(commentsallowed)%><div class="contenttitle"><h2>Comments</h2></div><%comments%><div class="contenttitle"><h2>Add Comment</h2></div><%commentform%><%endif%>';
\r
50 $template->setTemplate($name, $content);
\r
52 $name = 'COMMENT_BODY';
\r
53 $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
54 $template->setTemplate($name, $content);
\r
56 $name = 'PROMO_TITLE';
\r
57 $content = 'New Pictures Added!';
\r
58 $template->setTemplate($name,$content);
\r
60 $name = 'PROMO_BODY';
\r
61 $content = 'New pictures posted:<div id="NPG_thumbnail"><ul class="thumbnail"><%images%></ul></div><div id="NPG_footer"></div>';
\r
62 $template->setTemplate($name,$content);
\r
64 $name = 'PROMO_IMAGES';
\r
65 $content = '<li><a href="<%picturelink%>"><img style="<%centeredtopmargin(140,0)%>" src="<%thumbnail%>" /></a></li>';
\r
66 $template->setTemplate($name,$content);
\r