| 1 | package Miril::Theme::Flashyweb; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use autodie; | ||
| 6 | |||
| 7 | use Miril::Theme::Flashyweb::Stylesheet; | ||
| 8 | |||
| 9 | ### TEMPLATES ### | ||
| 10 | |||
| 11 | my $account = <<EndOfHTML; | ||
| 12 | |||
| 13 | <TMPL_VAR NAME="header"> | ||
| 14 | |||
| 15 | <!-- start content --> | ||
| 16 | <div id="content"> | ||
| 17 | <div class="post"> | ||
| 18 | <h2 class="title"><span class="dingbat">✻</span> <TMPL_VAR NAME="user.username"></h2> | ||
| 19 | <div class="edit"> | ||
| 20 | <form method="POST"> | ||
| 21 | |||
| 22 | <p class="edit">Name:<br> | ||
| 23 | <input type="text" name="name" class="textbox" value='<TMPL_VAR NAME="user.name">' /></p> | ||
| 24 | |||
| 25 | <p class="edit">New password:<br> | ||
| 26 | <input type="password" name="new_password" class="textbox" /> | ||
| 27 | </p> | ||
| 28 | |||
| 29 | <p class="edit">Retype new password:<br> | ||
| 30 | <input type="password" name="retype_password" class="textbox" /> | ||
| 31 | </p> | ||
| 32 | |||
| 33 | <p class="edit">Existing password: <span class="required">(Required)</span><br> | ||
| 34 | <input type="password" name="password" class="textbox" /> | ||
| 35 | </p> | ||
| 36 | |||
| 37 | <input type="hidden" name="username" value='<TMPL_VAR NAME="user.username">' /> | ||
| 38 | |||
| 39 | <button type="submit" id="x" name="action" value="account">Save</button> | ||
| 40 | <button type="submit" id="x" name="action" value="list">Cancel</button> | ||
| 41 | |||
| 42 | </form> | ||
| 43 | </div> | ||
| 44 | </div> | ||
| 45 | </div> | ||
| 46 | <!-- end content --> | ||
| 47 | |||
| 48 | <TMPL_VAR NAME="footer"> | ||
| 49 | |||
| 50 | EndOfHTML | ||
| 51 | |||
| 52 | my $edit = <<EndOfHTML; | ||
| 53 | |||
| 54 | <TMPL_VAR NAME="header"> | ||
| 55 | |||
| 56 | <!-- start content --> | ||
| 57 | <div id="content"> | ||
| 58 | <div class="post"> | ||
| 59 | <h2 class="title"><TMPL_IF NAME="post.title"><TMPL_VAR NAME="post.title"><TMPL_ELSE>New Article</TMPL_IF></h2> | ||
| 60 | <div class="edit"> | ||
| 61 | <form method="POST"> | ||
| 62 | <p class="edit">Title:<br> | ||
| 63 | <input type="text" name="title" class="textbox <TMPL_IF NAME="invalid.title"> invalid</TMPL_IF>" value='<TMPL_VAR NAME="post.title">' /></p> | ||
| 64 | |||
| 65 | <p class="edit">ID:<br> | ||
| 66 | <input type="text" name="id" class="textbox<TMPL_IF NAME="invalid.id"> invalid</TMPL_IF>" value='<TMPL_VAR NAME="post.id">' /></p> | ||
| 67 | |||
| 68 | <p class="edit">Type:<br> | ||
| 69 | <select name="type"<TMPL_IF NAME="invalid.type"> class="invalid"</TMPL_IF>> | ||
| 70 | <TMPL_LOOP NAME="post.types"> | ||
| 71 | <option value='<TMPL_VAR NAME="this.id">'<TMPL_IF NAME="this.selected"> selected="selected"</TMPL_IF>><TMPL_VAR NAME="this.name"></option> | ||
| 72 | </TMPL_LOOP> | ||
| 73 | </select> | ||
| 74 | </p> | ||
| 75 | |||
| 76 | <TMPL_IF NAME="post.authors"> | ||
| 77 | <p class="edit">Author:<br> | ||
| 78 | <select name="author"<TMPL_IF NAME="invalid.author"> class="invalid"</TMPL_IF>> | ||
| 79 | <TMPL_LOOP NAME="post.authors"> | ||
| 80 | <option value='<TMPL_VAR NAME="this.id">'<TMPL_IF NAME="this.selected"> selected="selected"</TMPL_IF>><TMPL_VAR NAME="this.name"></option> | ||
| 81 | </TMPL_LOOP> | ||
| 82 | </select> | ||
| 83 | </p> | ||
| 84 | </TMPL_IF> | ||
| 85 | |||
| 86 | <p class="edit">Status:<br> | ||
| 87 | <select name="status" <TMPL_IF NAME="invalid.status"> class="invalid"</TMPL_IF>> | ||
| 88 | <TMPL_LOOP NAME="post.statuses"> | ||
| 89 | <option value='<TMPL_VAR NAME="this.id">'<TMPL_IF NAME="this.selected"> selected="selected"</TMPL_IF>><TMPL_VAR NAME="this.name"></option> | ||
| 90 | </TMPL_LOOP> | ||
| 91 | </select> | ||
| 92 | </p> | ||
| 93 | |||
| 94 | <TMPL_IF NAME="post.topics"> | ||
| 95 | <p class="edit">Topic:<br> | ||
| 96 | <select name="topic" size=3 multiple="multiple"<TMPL_IF NAME="invalid.topic"> class="invalid"</TMPL_IF>> | ||
| 97 | <TMPL_LOOP NAME="post.topics"> | ||
| 98 | <option value='<TMPL_VAR NAME="this.id">'<TMPL_IF NAME="this.selected"> selected</TMPL_IF>><TMPL_VAR NAME="this.name"></option> | ||
| 99 | </TMPL_LOOP> | ||
| 100 | </select> | ||
| 101 | </p> | ||
| 102 | </TMPL_IF> | ||
| 103 | |||
| 104 | <p class="edit" name="source">Body:<br> | ||
| 105 | <textarea name="source"<TMPL_IF NAME="invalid.source"> class="invalid"</TMPL_IF>><TMPL_VAR NAME="post.source"></textarea></p> | ||
| 106 | |||
| 107 | <input type="hidden" name="old_id" value='<TMPL_VAR NAME="post.id">' /> | ||
| 108 | |||
| 109 | <button type="submit" id="x" name="action" value="update">Save</button> | ||
| 110 | <button type="submit" id="x" name="action" value="delete">Delete</button> | ||
| 111 | <button type="submit" id="x" name="action" value="view">Cancel</button> | ||
| 112 | </form> | ||
| 113 | </div> | ||
| 114 | </div> | ||
| 115 | </div> | ||
| 116 | <!-- end content --> | ||
| 117 | |||
| 118 | |||
| 119 | <TMPL_VAR NAME="footer"> | ||
| 120 | |||
| 121 | EndOfHTML | ||
| 122 | |||
| 123 | my $files = <<EndOfHTML; | ||
| 124 | |||
| 125 | <TMPL_VAR NAME="header"> | ||
| 126 | |||
| 127 | <div id="content"> | ||
| 128 | <div class="post"> | ||
| 129 | <h2 class="title"><span class="dingbat">✻</span> Files</h2> | ||
| 130 | <div class="meta"> | ||
| 131 | <p class="links"><a href="?action=upload" class="more">Upload files</a></p> | ||
| 132 | </div> | ||
| 133 | <div class="entry"> | ||
| 134 | |||
| 135 | <form method="POST"> | ||
| 136 | <TMPL_LOOP NAME="files"> | ||
| 137 | <h3><input type="checkbox" name="file" value='<TMPL_VAR NAME="name">'> <a href='<TMPL_VAR NAME="href">' target="_blank"><TMPL_VAR NAME="name"></a></h3> | ||
| 138 | <p class="item-desc"> | ||
| 139 | <b>Size:</b> <TMPL_VAR NAME="size">, | ||
| 140 | <b>Modified:</b> <TMPL_VAR NAME="modified"> | ||
| 141 | </p> | ||
| 142 | </TMPL_LOOP> | ||
| 143 | <div class="pager"> | ||
| 144 | <TMPL_VAR NAME="pager"> | ||
| 145 | </div> | ||
| 146 | <button type="submit" id="x" name="action" value="unlink">Delete selected</button> | ||
| 147 | </form> | ||
| 148 | |||
| 149 | </div> | ||
| 150 | </div> | ||
| 151 | </div> | ||
| 152 | |||
| 153 | <TMPL_VAR NAME="footer"> | ||
| 154 | |||
| 155 | EndOfHTML | ||
| 156 | |||
| 157 | |||
| 158 | my $upload = <<EndOfHTML; | ||
| 159 | |||
| 160 | <TMPL_VAR NAME="header"> | ||
| 161 | |||
| 162 | <div id="content"> | ||
| 163 | <div class="post"> | ||
| 164 | <h2 class="title"><span class="dingbat">✻</span> Upload Files</h2> | ||
| 165 | <form method="POST" enctype="multipart/form-data"> | ||
| 166 | <div> | ||
| 167 | <p class="edit"><input type="file" name="file" /> | ||
| 168 | <p class="edit"><input type="file" name="file" /> | ||
| 169 | <p class="edit"><input type="file" name="file" /> | ||
| 170 | <p class="edit"><input type="file" name="file" /> | ||
| 171 | <p class="edit"><input type="file" name="file" /> | ||
| 172 | </div> | ||
| 173 | <button type="submit" id="x" name="action" value="upload">Upload files</button> | ||
| 174 | <button name="action" value="files" id="x">Cancel</button> | ||
| 175 | </p> | ||
| 176 | </form> | ||
| 177 | </div> | ||
| 178 | </div> | ||
| 179 | |||
| 180 | <TMPL_VAR NAME="footer"> | ||
| 181 | |||
| 182 | EndOfHTML | ||
| 183 | |||
| 184 | my $footer = <<EndOfHTML; | ||
| 185 | |||
| 186 | <TMPL_IF NAME="authenticated"><TMPL_VAR NAME="sidebar"></TMPL_IF> | ||
| 187 | <div style="clear: both;"> </div> | ||
| 188 | </div> | ||
| 189 | <!-- end page --> | ||
| 190 | <!-- start footer --> | ||
| 191 | <div id="footer"> | ||
| 192 | <!-- | ||
| 193 | <div id="footer-menu"> | ||
| 194 | <ul> | ||
| 195 | <li class="active"><a href="#">homepage</a></li> | ||
| 196 | <li><a href="#">photo gallery</a></li> | ||
| 197 | <li><a href="#">about us</a></li> | ||
| 198 | <li><a href="#">links</a></li> | ||
| 199 | <li><a href="#">contact us</a></li> | ||
| 200 | </ul> | ||
| 201 | </div> | ||
| 202 | --> | ||
| 203 | <p id="legal">Powered by <a href="http://www.miril.org">Miril</a></p> | ||
| 204 | </div> | ||
| 205 | <!-- end footer --> | ||
| 206 | </body> | ||
| 207 | </html> | ||
| 208 | |||
| 209 | EndOfHTML | ||
| 210 | |||
| 211 | my $header = <<EndOfHTML; | ||
| 212 | |||
| 213 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
| 214 | <!-- | ||
| 215 | |||
| 216 | Design by Free CSS Templates | ||
| 217 | http://www.freecsstemplates.org | ||
| 218 | Released for free under a Creative Commons Attribution 2.5 License | ||
| 219 | |||
| 220 | Title : FlashyWeb | ||
| 221 | Version : 1.0 | ||
| 222 | Released : 20081102 | ||
| 223 | Description: A two-column, fixed-width and lightweight template ideal for 1024x768 resolutions. Suitable for blogs and small websites. | ||
| 224 | |||
| 225 | --> | ||
| 226 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
| 227 | <head> | ||
| 228 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | ||
| 229 | <title>Miril</title> | ||
| 230 | <meta name="keywords" content="" /> | ||
| 231 | <meta name="description" content="" /> | ||
| 232 | <style><TMPL_VAR NAME="css"></style> | ||
| 233 | </head> | ||
| 234 | <body> | ||
| 235 | <!-- start header --> | ||
| 236 | <div id="header"> | ||
| 237 | <div id="logo"> | ||
| 238 | <h1><a href="?">Miril</a></h1> | ||
| 239 | <h2>Static Content Publishing</h2> | ||
| 240 | </div> | ||
| 241 | <TMPL_IF NAME="authenticated"> | ||
| 242 | <div id="menu"> | ||
| 243 | <ul> | ||
| 244 | <li class="active"><a href="?action=list">articles</a></li> | ||
| 245 | <li><a href="?action=files">files</a></li> | ||
| 246 | <li><a href="?action=publish">publish</a></li> | ||
| 247 | <li><a href="?action=account">account</a></li> | ||
| 248 | <li><a href="?action=logout">logout</a></li> | ||
| 249 | </ul> | ||
| 250 | </div> | ||
| 251 | </TMPL_IF> | ||
| 252 | </div> | ||
| 253 | <!-- end header --> | ||
| 254 | |||
| 255 | <!-- start page --> | ||
| 256 | <div id="page"> | ||
| 257 | |||
| 258 | <TMPL_IF NAME="has_error"> | ||
| 259 | <div id="error"> | ||
| 260 | <h2>miril encountered problems:</h2> | ||
| 261 | <ul> | ||
| 262 | <TMPL_LOOP NAME="warnings"><li class="warning"><TMPL_VAR NAME="message"><pre><TMPL_VAR NAME="errorvar"></pre></li></TMPL_LOOP> | ||
| 263 | <TMPL_LOOP NAME="fatals"><li class="fatal"><TMPL_VAR NAME="message"><pre><TMPL_VAR NAME="errorvar"></pre></li></TMPL_LOOP> | ||
| 264 | </ul> | ||
| 265 | </div> | ||
| 266 | </TMPL_IF> | ||
| 267 | |||
| 268 | EndOfHTML | ||
| 269 | |||
| 270 | my $list = <<EndOfHTML; | ||
| 271 | |||
| 272 | <TMPL_VAR NAME="header"> | ||
| 273 | |||
| 274 | <div id="content"> | ||
| 275 | <div class="post"> | ||
| 276 | <h2 class="title"><span class="dingbat">✻</span> List of entries</h2> | ||
| 277 | <div class="meta"> | ||
| 278 | <p class="links"><a href="?action=search" class="more">Search</a></p> | ||
| 279 | <p class="links"><a href="?action=create" class="more">Post new article</a></p> | ||
| 280 | </div> | ||
| 281 | <div class="entry"> | ||
| 282 | |||
| 283 | <TMPL_LOOP NAME="posts.list"> | ||
| 284 | <h3><span class="dingbat">•</span><a href='?action=view&id=<TMPL_VAR NAME="this.id">'><TMPL_VAR NAME="this.title"></a></h3> | ||
| 285 | <p class="item-desc"> | ||
| 286 | <b>Status:</b> <TMPL_VAR NAME="this.status">, | ||
| 287 | <b>Modified:</b> <TMPL_VAR NAME="this.modified.strftime('%d/%m/%Y %H:%M')"> | ||
| 288 | </p> | ||
| 289 | </TMPL_LOOP> | ||
| 290 | |||
| 291 | </div> | ||
| 292 | <div class="pager"> | ||
| 293 | <TMPL_VAR NAME="pager"> | ||
| 294 | </div> | ||
| 295 | </div> | ||
| 296 | </div> | ||
| 297 | |||
| 298 | <TMPL_VAR NAME="footer"> | ||
| 299 | |||
| 300 | EndOfHTML | ||
| 301 | |||
| 302 | my $search = <<EndOfHTML; | ||
| 303 | |||
| 304 | <TMPL_VAR NAME="header"> | ||
| 305 | |||
| 306 | <div id="content"> | ||
| 307 | <div class="post"> | ||
| 308 | <h2 class="title"><span class="dingbat">✻</span> Search entries</h2> | ||
| 309 | <div class="entry"> | ||
| 310 | |||
| 311 | <form> | ||
| 312 | |||
| 313 | <p class="edit">Title contains:<br /> | ||
| 314 | <input type="text" name="title" /> | ||
| 315 | </p> | ||
| 316 | <p class="edit">Type:<br> | ||
| 317 | <select name="type"> | ||
| 318 | <option value=''>--Any--</option> | ||
| 319 | <TMPL_LOOP NAME="types"> | ||
| 320 | <option value='<TMPL_VAR NAME="id">'><TMPL_VAR NAME="name"></option> | ||
| 321 | </TMPL_LOOP> | ||
| 322 | </select> | ||
| 323 | </p> | ||
| 324 | |||
| 325 | <TMPL_IF NAME="authors"> | ||
| 326 | <p class="edit">Author:<br> | ||
| 327 | <select name="author"> | ||
| 328 | <option value=''>--Any--</option> | ||
| 329 | <TMPL_LOOP NAME="authors"> | ||
| 330 | <option value='<TMPL_VAR NAME="id">'><TMPL_VAR NAME="name"></option> | ||
| 331 | </TMPL_LOOP> | ||
| 332 | </select> | ||
| 333 | </p> | ||
| 334 | </TMPL_IF> | ||
| 335 | |||
| 336 | <p class="edit">Status:<br> | ||
| 337 | <select name="status"> | ||
| 338 | <option value=''>--Any--</option> | ||
| 339 | <TMPL_LOOP NAME="statuses"> | ||
| 340 | <option value='<TMPL_VAR NAME="id">'><TMPL_VAR NAME="name"></option> | ||
| 341 | </TMPL_LOOP> | ||
| 342 | </select> | ||
| 343 | </p> | ||
| 344 | |||
| 345 | <TMPL_IF NAME="topics"> | ||
| 346 | <p class="edit">Topic:<br> | ||
| 347 | <select name="topic"> | ||
| 348 | <option value=''>--Any--</option> | ||
| 349 | <TMPL_LOOP NAME="topics"> | ||
| 350 | <option value='<TMPL_VAR NAME="id">'><TMPL_VAR NAME="name"></option> | ||
| 351 | </TMPL_LOOP> | ||
| 352 | </select> | ||
| 353 | </p> | ||
| 354 | </TMPL_IF> | ||
| 355 | |||
| 356 | <button id="x" name="action" value="list">search</button> | ||
| 357 | |||
| 358 | </form> | ||
| 359 | </div> | ||
| 360 | </div> | ||
| 361 | </div> | ||
| 362 | |||
| 363 | <TMPL_VAR NAME="footer"> | ||
| 364 | |||
| 365 | EndOfHTML | ||
| 366 | |||
| 367 | my $login = <<EndOfHTML; | ||
| 368 | |||
| 369 | <TMPL_VAR NAME="header"> | ||
| 370 | |||
| 371 | <div id="content"> | ||
| 372 | <div class="post"> | ||
| 373 | <h2 class="title"><span class="dingbat">✻</span> Sign in</h2> | ||
| 374 | |||
| 375 | <div class="login"> | ||
| 376 | <form method="POST"> | ||
| 377 | |||
| 378 | <p class="edit">Username:<br> | ||
| 379 | <input type="text" name="authen_username" class="textbox" value='<TMPL_VAR NAME="title">' /></p> | ||
| 380 | |||
| 381 | <p class="edit">Password:<br> | ||
| 382 | <input type="password" name="authen_password" class="textbox" value='<TMPL_VAR NAME="id">' /></p> | ||
| 383 | |||
| 384 | <p><input type="checkbox" name="authen_rememberuser" />Remember me!</p> | ||
| 385 | |||
| 386 | <button type="submit" id="x" name="action" value="list">Sign in</button> | ||
| 387 | |||
| 388 | </form> | ||
| 389 | </div> | ||
| 390 | </div> | ||
| 391 | </div> | ||
| 392 | |||
| 393 | <TMPL_VAR NAME="footer"> | ||
| 394 | |||
| 395 | EndOfHTML | ||
| 396 | |||
| 397 | my $publish = <<EndOfHTML; | ||
| 398 | |||
| 399 | <TMPL_VAR NAME="header"> | ||
| 400 | |||
| 401 | <div id="content"> | ||
| 402 | <div class="post"> | ||
| 403 | <h2 class="title"><span class="dingbat">✻</span> Publish</h2> | ||
| 404 | |||
| 405 | <form method="POST"> | ||
| 406 | <input type="hidden" name="action" value="publish"> | ||
| 407 | <p> | ||
| 408 | <select name="rebuild"> | ||
| 409 | <option value="">Publish new and modified content</option> | ||
| 410 | <option value="1">Rebuild the whole website</option> | ||
| 411 | </select> | ||
| 412 | </p> | ||
| 413 | <input type="hidden" name="action" value="publish"> | ||
| 414 | <p><button type="submit" id="x" name="do" value="1">Publish</button></p> | ||
| 415 | </form> | ||
| 416 | |||
| 417 | |||
| 418 | </div> | ||
| 419 | </div> | ||
| 420 | |||
| 421 | <TMPL_VAR NAME="footer"> | ||
| 422 | |||
| 423 | EndOfHTML | ||
| 424 | |||
| 425 | my $sidebar = <<EndOfHTML; | ||
| 426 | |||
| 427 | <!-- start sidebar --> | ||
| 428 | <div id="sidebar"> | ||
| 429 | <ul> | ||
| 430 | <li id="search"> | ||
| 431 | <h2><b class="text1">Quick Open</b></h2> | ||
| 432 | <form method="get"> | ||
| 433 | <fieldset> | ||
| 434 | <input type="text" id="s" name="id" /> | ||
| 435 | <button id="x" name="action" value="view" />Go</button> | ||
| 436 | </fieldset> | ||
| 437 | </form> | ||
| 438 | </li> | ||
| 439 | <li> | ||
| 440 | <h2 class="bold">Last edited</h2> | ||
| 441 | <ul> | ||
| 442 | <TMPL_LOOP NAME="latest"> | ||
| 443 | <li><div class="dingbat">✦</div> | ||
| 444 | <a href="?action=view&id=<TMPL_VAR NAME="id">"> | ||
| 445 | <TMPL_VAR NAME="title"> | ||
| 446 | </a> | ||
| 447 | </li> | ||
| 448 | </TMPL_LOOP> | ||
| 449 | </ul> | ||
| 450 | </li> | ||
| 451 | </ul> | ||
| 452 | </div> | ||
| 453 | <!-- end sidebar --> | ||
| 454 | |||
| 455 | EndOfHTML | ||
| 456 | |||
| 457 | my $view = <<EndOfHTML; | ||
| 458 | |||
| 459 | <TMPL_VAR NAME="header"> | ||
| 460 | |||
| 461 | <!-- start content --> | ||
| 462 | <div id="content"> | ||
| 463 | <div class="post"> | ||
| 464 | <h2 class="title"><span class="dingbat">✻</span> <TMPL_VAR NAME="post.title"></h2> | ||
| 465 | <div class="entry"> | ||
| 466 | <TMPL_VAR NAME="post.body"> | ||
| 467 | </div> | ||
| 468 | <form method="get"> | ||
| 469 | <input type="hidden" name="id" value='<TMPL_VAR NAME="post.id">' /> | ||
| 470 | <button name="action" value="edit" id="x">Edit</button> | ||
| 471 | <button name="action" value="list" id="x">Cancel</button> | ||
| 472 | </form> | ||
| 473 | </div> | ||
| 474 | </div> | ||
| 475 | <!-- end content --> | ||
| 476 | |||
| 477 | <TMPL_VAR NAME="footer"> | ||
| 478 | |||
| 479 | EndOfHTML | ||
| 480 | |||
| 481 | |||
| 482 | my $error = <<EndOfHTML; | ||
| 483 | |||
| 484 | <TMPL_VAR NAME="header"> | ||
| 485 | <TMPL_VAR NAME="footer"> | ||
| 486 | |||
| 487 | EndOfHTML | ||
| 488 | |||
| 489 | my $pager = <<EndOfHTML; | ||
| 490 | |||
| 491 | <TMPL_IF NAME="first"><a class='pager' href='<TMPL_VAR NAME="first">'>first</a><TMPL_ELSE>first</TMPL_IF> | ||
| 492 | <TMPL_IF NAME="previous"><a class='pager' href='<TMPL_VAR NAME="previous">'>«previous</a><TMPL_ELSE>«previous</TMPL_IF> | ||
| 493 | <TMPL_IF NAME="next"><a class='pager' href='<TMPL_VAR NAME="next">'>next»</a><TMPL_ELSE>next»</TMPL_IF> | ||
| 494 | <TMPL_IF NAME="last"><a class='pager' href='<TMPL_VAR NAME="last">'>last</a><TMPL_ELSE>last</TMPL_IF> | ||
| 495 | |||
| 496 | EndOfHTML | ||
| 497 | |||
| 498 | ### METHODS ### | ||
| 499 | |||
| 500 | sub new { | ||
| 501 | return bless {}, shift; | ||
| 502 | } | ||
| 503 | |||
| 504 | sub get { | ||
| 505 | my $self = shift; | ||
| 506 | my $name = shift; | ||
| 507 | |||
| 508 | $name eq "css" && return Miril::Theme::Flashyweb::Stylesheet::get(); | ||
| 509 | |||
| 510 | $name eq "account" && return $account; | ||
| 511 | $name eq "edit" && return $edit; | ||
| 512 | $name eq "files" && return $files; | ||
| 513 | $name eq "footer" && return $footer; | ||
| 514 | $name eq "header" && return $header; | ||
| 515 | $name eq "list" && return $list; | ||
| 516 | $name eq "login" && return $login; | ||
| 517 | $name eq "publish" && return $publish; | ||
| 518 | $name eq "sidebar" && return $sidebar; | ||
| 519 | $name eq "view" && return $view; | ||
| 520 | $name eq "upload" && return $upload; | ||
| 521 | $name eq "error" && return $error; | ||
| 522 | $name eq "search" && return $search; | ||
| 523 | $name eq "pager" && return $pager; | ||
| 524 | } | ||
| 525 | |||
| 526 | 1; |