OSDN Git Service

NP_gallery 0.94
[nucleus-jp/nucleus-plugins.git] / NP_gallery / trunk / gallery / update / default_templates_094.inc
diff --git a/NP_gallery/trunk/gallery/update/default_templates_094.inc b/NP_gallery/trunk/gallery/update/default_templates_094.inc
new file mode 100644 (file)
index 0000000..1f8e0f1
--- /dev/null
@@ -0,0 +1,170 @@
+<?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('default094','default 0.94 templates'));\r
+\r
+$name = 'LIST_HEADER';\r
+$content = '<style type="text/css">@import "'.$CONF['IndexURL'].'/nucleus/plugins/gallery/NP_gallery.css";</style>'\r
+                   .'<%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_THUM';\r
+$content = '<div class="thumbnailoutside"><div class="alpha-shadow"><div><a href="<%albumlink%>">' .\r
+               '<img src="<%albumthumbnail%>" alt="<%description%>" /></a></div></div>' .\r
+               '<br><div style="clear:both"><%title%> : <%numberofimages%> pics</div></div>';\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=yes,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 = '<style type="text/css">@import "'.$CONF['IndexURL'].'/nucleus/plugins/gallery/NP_gallery.css";</style>'\r
+                       .'<%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><%picturedescription%></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><%picturedescription%></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=yes,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_SLIDESHOWT';\r
+$content = '<script language="JavaScript">' .\r
+               'var NextURL = "<%nextlink%>&sliderunning=true";' .\r
+               'var interval = (1000);' .\r
+               'setTimeout("location.href=NextURL",3000);' .\r
+               '</script><div class="alpha-shadow"><div><img src="<%intermediatepicture%>"</div></div>';\r
+$template->setTemplate($name, $content);\r
+\r
+$name = 'ITEM_SLIDESHOWC';\r
+$content = '<%if(slideshowson)%>' .\r
+               '<table><tr><td>' .\r
+               '<form method="post" action="'.$CONF['IndexURL'].'action.php?action=plugin&name=gallery&type=item&id=<%nextid%>&startstop=true">' .\r
+               '<input type="submit" value="Start Slideshow"/></form></td>' .\r
+               '<td><form method="post" action="'.$CONF['IndexURL'].'action.php?action=plugin&name=gallery&type=item&id=<%nextid%>">' .\r
+               '<input type="submit" value="Stop Slideshow"/></form></td></tr></table>'.\r
+               //'interval(secs)' .\r
+               //'<select name=intvalsecs>' .\r
+               //'<OPTION value="1">1 sec</OPTION>' .\r
+               //'<OPTION value="2">2 secs</OPTION>' .\r
+               //'<OPTION value="3">3 secs</OPTION>' .\r
+               //'</select>' .\r
+               //'</form>' .\r
+               '<%endif%>';\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)%>' .\r
+               '<div style="clear:both;margin:auto">' .\r
+               '<%if(prev)%>' .\r
+               '<div class=\'thumbnailoutside\'><div class="alpha-shadow" ><div>' .\r
+               '<a href="<%previouslink%>"><img src="<%previousthumbfilename%>" /></a></div></div></div>' .\r
+               '<%endif%>' .\r
+               '<div class=\'thumbnailoutside\' style="text-align:"></br></br>' .\r
+               '<%if(prev)%>Previous <%endif%>| <%if(next)%>Next <%endif%>>' .\r
+               '</div> ' .\r
+               '<%if(next)%><div class=\'thumbnailoutside\'><div class="alpha-shadow" ><div>' .\r
+               '<a href="<%nextlink%>"><img src="<%nextthumbfilename%>" /></a></div></div></div>' .\r
+               '<%endif%>' .\r
+               '</div>' .\r
+               '<%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>This picture in sets:<%keywords%><%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