OSDN Git Service

NP_gallery v0.95
[nucleus-jp/nucleus-plugins.git] / NP_gallery / tags / v0.95 / gallery / update / default_templates_090.inc
1 <?php \r
2 global $CONF;\r
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('default090','default 0.90 templates'));\r
6 \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
26 \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
30 \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=no,resizable=yes,width=600,height=400\');return false;"> Add Pictures</a><%endif%>';\r
33 $template->setTemplate($name, $content);\r
34 \r
35 \r
36 //\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
53 \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
57 \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
61 \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=no,resizable=yes,width=480,height=360\');return false;">Add Picture</a><%endif%></div>';\r
64 $template->setTemplate($name, $content);\r
65 \r
66 //\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
71 \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
78 \r
79 $name = 'ITEM_BODY';\r
80 $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
81 $template->setTemplate($name, $content);\r
82 \r
83 $name = 'ITEM_TOOLTIPSFOOTER';\r
84 $content = '<%if(caneditpicture)%>'\r
85         .'<%if(tooltips)%><form name="clear" method="POST" action="'\r
86         .$CONF['IndexURL']\r
87         .'/action.php?action=plugin&name=gallery&type=tagdelete">'\r
88         .'<input type="hidden" name="pictureid" type="text" value ="<%pictureid%>">'\r
89         .'<input type="submit" name="Submit" value="Delete one tag">'\r
90         .'</form><a href="javascript:void(null)" onclick="start()">Create new caption. </a><%endif%><%endif%>'\r
91         .'</div>';\r
92 $template->setTemplate($name, $content);\r
93 \r
94 $name = 'ITEM_NEXTPREVTHUMBS';\r
95 $content = '<%if(nextprevthumb)%><div style="clear:both;margin:auto"><%if(prev)%><div class=\'thumbnailoutside\'>' .\r
96                 '<div class="alpha-shadow" ><div><a href="<%previouslink%>">' .\r
97                 '<img src="<%previousthumbfilename%>" /></a></div></div><div style="clear:both">' .\r
98                 '</div></div> <div class=\'thumbnailoutside\' style="text-align:">' .\r
99                 '</br></br>< Previous <%endif%>| <%if(next)%>Next ></div> <div class=\'thumbnailoutside\'>' .\r
100                 '<div class="alpha-shadow" ><div><a href="<%nextlink%>">' .\r
101                 '<img src="<%nextthumbfilename%>" /></a></div></div><div style="clear:both"></div></div><%endif%></div><%endif%>' .\r
102                 '<div id="NPG_footer"><br />Description: <%description%>|<br />';\r
103 $template->setTemplate($name, $content);\r
104 \r
105 $name = 'ITEM_FOOTER';\r
106 $content = '<a href="<%fullsizelink%>">Fullsize Image Link</a>|'\r
107         .'|Last modified by <%owner%> on '\r
108         .'<%date%> <%if(caneditpicture)%>|<a href="<%editpicturelink%>">Edit</a> | '\r
109         .'<a href="<%deletepicturelink%>">Delete</a><%endif%><br/></div><%if(commentsallowed)%>'\r
110         .'<div class="contenttitle"><h2>Comments</h2></div><%comments%><div class="contenttitle">'\r
111         .'<h2>Add Comment</h2></div><%commentform%><%endif%>';\r
112 $template->setTemplate($name, $content);\r
113 \r
114 $name = 'COMMENT_BODY';\r
115 $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
116 $template->setTemplate($name, $content);\r
117 \r
118 $name = 'PROMO_TITLE';\r
119 $content = 'New Pictures Added!';\r
120 $template->setTemplate($name,$content);\r
121 \r
122 $name = 'PROMO_BODY';\r
123 $content = 'New pictures posted:<div id="NPG_thumbnail"><ul class="thumbnail"><%images%></ul></div><div id="NPG_footer"></div>';\r
124 $template->setTemplate($name,$content);\r
125 \r
126 $name = 'PROMO_IMAGES';\r
127 $content = '<li><a href="<%picturelink%>"><img style="<%centeredtopmargin(140,0)%>" src="<%thumbnail%>" /></a></li>';\r
128 $template->setTemplate($name,$content);\r
129 \r
130 ?>