OSDN Git Service

NP_gallery 0.94
[nucleus-jp/nucleus-plugins.git] / NP_gallery / trunk / gallery / update / default_templates_080.inc
diff --git a/NP_gallery/trunk/gallery/update/default_templates_080.inc b/NP_gallery/trunk/gallery/update/default_templates_080.inc
new file mode 100644 (file)
index 0000000..1b0adaa
--- /dev/null
@@ -0,0 +1,68 @@
+<?php \r
+\r
+//to only be included by np_gallery script or update scripts\r
+\r
+if(isset($template)) unset($template);\r
+$template = new NPG_TEMPLATE(NPG_TEMPLATE::createnew('default080','default 0.80 templates'));\r
+\r
+$name = 'LIST_HEADER';\r
+$content = '<%breadcrumb%><hr/><table width=100% ><thead>'\r
+                       .'<tr><th><a href="<%sortbytitle%>">Title</a></th>'\r
+                       .'<th><a href="<%sortbydescription%>">Description</a></th>'\r
+                       .'<th><a href="<%sortbyowner%>">Owner</a></th>'\r
+                       .'<th><a href="<%sortbymodified%>">Last Modified</a></th>'\r
+                       .'<th><a href="<%sortbynumber%>">Images</a></th></tr></thead><tbody>';\r
+$template->setTemplate($name, $content);\r
+\r
+$name = 'LIST_BODY';\r
+$content = '<tr><td><a href="<%albumlink%>"><%title%></a></td><td><%description%></td><td><%ownername%></td><td><%modified%></td><td><%numberofimages%></td></tr>';\r
+$template->setTemplate($name, $content);\r
+\r
+$name = 'LIST_FOOTER';\r
+$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
+$template->setTemplate($name, $content);\r
+\r
+\r
+//\r
+$name = 'ALBUM_HEADER';\r
+$content = '<%breadcrumb%><hr/>Page: <%pages%><hr/><div id="NPG_thumbnail">';\r
+$template->setTemplate($name, $content);\r
+\r
+$name = 'ALBUM_BODY';\r
+$content = '<div class="thumbnailoutside"><div class=\'alpha-shadow\'><div><a href="<%picturelink%>"><img src="<%thumbnail%>" /></a></div></div><br></div>';\r
+$template->setTemplate($name, $content);\r
+\r
+$name = 'ALBUM_FOOTER';\r
+$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
+$template->setTemplate($name, $content);\r
+\r
+//\r
+$name = 'ITEM_HEADER';\r
+$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
+$template->setTemplate($name, $content);\r
+\r
+$name = 'ITEM_BODY';\r
+$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
+$template->setTemplate($name, $content);\r
+\r
+$name = 'ITEM_FOOTER';\r
+$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
+$template->setTemplate($name, $content);\r
+\r
+$name = 'COMMENT_BODY';\r
+$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
+$template->setTemplate($name, $content);\r
+\r
+$name = 'PROMO_TITLE';\r
+$content = 'New Pictures Added!';\r
+$template->setTemplate($name,$content);\r
+\r
+$name = 'PROMO_BODY';\r
+$content = 'New pictures posted:<div id="NPG_thumbnail"><ul class="thumbnail"><%images%></ul></div><div id="NPG_footer"></div>';\r
+$template->setTemplate($name,$content);\r
+\r
+$name = 'PROMO_IMAGES';\r
+$content = '<li><a href="<%picturelink%>"><img style="<%centeredtopmargin(140,0)%>" src="<%thumbnail%>" /></a></li>';\r
+$template->setTemplate($name,$content);\r
+\r
+?>
\ No newline at end of file