OSDN Git Service

NP_gallery v0.95
[nucleus-jp/nucleus-plugins.git] / NP_gallery / tags / v0.95 / gallery / update / default_templates_090.inc
diff --git a/NP_gallery/tags/v0.95/gallery/update/default_templates_090.inc b/NP_gallery/tags/v0.95/gallery/update/default_templates_090.inc
new file mode 100644 (file)
index 0000000..e6dd070
--- /dev/null
@@ -0,0 +1,130 @@
+<?php \r
+global $CONF;\r
+//to only be included by np_gallery script or update scripts\r
+if(isset($template)) unset($template);\r
+$template = new NPG_TEMPLATE(NPG_TEMPLATE::createnew('default090','default 0.90 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
+                       .'<form method="post" action="action.php">'\r
+                       .'<input type="hidden" name="action" value="plugin" />'\r
+                       .'<input type="hidden" name="name" value="gallery" />'\r
+                       .'<input type="hidden" name="type" value="list" />'\r
+                       .'<input type="submit" value="Resort by:" /> <select name="sort" >'\r
+                       .'<option value="title" >Album Title'\r
+                       .'<option value="desc" >Album Description'\r
+                       .'<option value="owner">Owner'\r
+                       .'<option value="date">Date Modified'\r
+                       .'<option value="numb">Number of Images'\r
+                       .'</select></form>';\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
+                       .'<form method="post" action="action.php">'\r
+                       .'<input type="hidden" name="action" value="plugin" />'\r
+                       .'<input type="hidden" name="name" value="gallery" />'\r
+                       .'<input type="hidden" name="type" value="album" />'\r
+                       .'<input type="hidden" name="id" value="<%albumid%>" />'\r
+                       .'<input type="submit" value="Resort by:" /> <select name="sort" >'\r
+                       .'<option value="title" >Picture Title'\r
+                       .'<option value="desc" >Picture Description'\r
+                       .'<option value="date">Date Modified'\r
+                       .'<option value="titlea" >Picture Title - Ascending'\r
+                       .'<option value="desca" >Picture Description - Ascending'\r
+                       .'<option value="datea">Picture - Ascending'\r
+                       .'</select></form>';\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_SETDISPLAY';\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_TOOLTIPSHEADER';\r
+$content = '<%if(tooltips)%></script><script type="text/javascript">var pictureid = "<%pictureid%>";</script>'\r
+       .'<script type="text/javascript" src="'.$CONF['IndexURL'].'/nucleus/plugins/gallery/NP_gallery.js"></script><%endif%>';\r
+$template->setTemplate($name, $content);\r
+\r
+$name = 'ITEM_HEADER';\r
+$content = '<style type="text/css">@import "'.$CONF['IndexURL'].'/nucleus/plugins/gallery/NP_gallery.css";</style>'\r
+       .'<%breadcrumb%><br/><%if(prev)%><a href="<%previouslink%>">'\r
+       .' Previous</a><%else%> Previous<%endif%> |<%if(next)%><a href="<%nextlink%>"> '\r
+       .' Next</a><%else%> Next<%endif%><hr/><div id="NPG_picture">';\r
+$template->setTemplate($name, $content);\r
+\r
+$name = 'ITEM_BODY';\r
+$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
+$template->setTemplate($name, $content);\r
+\r
+$name = 'ITEM_TOOLTIPSFOOTER';\r
+$content = '<%if(caneditpicture)%>'\r
+       .'<%if(tooltips)%><form name="clear" method="POST" action="'\r
+       .$CONF['IndexURL']\r
+       .'/action.php?action=plugin&name=gallery&type=tagdelete">'\r
+       .'<input type="hidden" name="pictureid" type="text" value ="<%pictureid%>">'\r
+       .'<input type="submit" name="Submit" value="Delete one tag">'\r
+       .'</form><a href="javascript:void(null)" onclick="start()">Create new caption. </a><%endif%><%endif%>'\r
+       .'</div>';\r
+$template->setTemplate($name, $content);\r
+\r
+$name = 'ITEM_NEXTPREVTHUMBS';\r
+$content = '<%if(nextprevthumb)%><div style="clear:both;margin:auto"><%if(prev)%><div class=\'thumbnailoutside\'>' .\r
+               '<div class="alpha-shadow" ><div><a href="<%previouslink%>">' .\r
+               '<img src="<%previousthumbfilename%>" /></a></div></div><div style="clear:both">' .\r
+               '</div></div> <div class=\'thumbnailoutside\' style="text-align:">' .\r
+               '</br></br>< Previous <%endif%>| <%if(next)%>Next ></div> <div class=\'thumbnailoutside\'>' .\r
+               '<div class="alpha-shadow" ><div><a href="<%nextlink%>">' .\r
+               '<img src="<%nextthumbfilename%>" /></a></div></div><div style="clear:both"></div></div><%endif%></div><%endif%>' .\r
+               '<div id="NPG_footer"><br />Description: <%description%>|<br />';\r
+$template->setTemplate($name, $content);\r
+\r
+$name = 'ITEM_FOOTER';\r
+$content = '<a href="<%fullsizelink%>">Fullsize Image Link</a>|'\r
+       .'|Last modified by <%owner%> on '\r
+       .'<%date%> <%if(caneditpicture)%>|<a href="<%editpicturelink%>">Edit</a> | '\r
+       .'<a href="<%deletepicturelink%>">Delete</a><%endif%><br/></div><%if(commentsallowed)%>'\r
+       .'<div class="contenttitle"><h2>Comments</h2></div><%comments%><div class="contenttitle">'\r
+       .'<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