Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
60 additions
and
54 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php if (!defined('SCRICH_VERSION')) { header('HTTP/1.0 403 Forbidden'); exit; } ?> | ||
<?php | ||
function tpl_pagination() { | ||
global $page, $nb_pages; | ||
echo '<p class="pagination">'; | ||
if ($page > 1) { | ||
echo '<a href="'. SCRICH_URL . 'gallery/?p='. ($page-1) .'" class="prev">Previous</a>'; | ||
} | ||
if ($page < $nb_pages) { | ||
echo '<a href="' . SCRICH_URL.'gallery/?p='. ($page+1) .'" class="next">Next</a>'; | ||
} | ||
echo '</p>'; | ||
} | ||
?> | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>scri.ch - Gallery</title> | ||
<link rel="stylesheet" href="<?php echo SCRICH_URL ?>assets/admin.css?<?php echo SCRICH_VERSION ?>"> | ||
<link rel="icon" type="image/png" href="<?php echo SCRICH_URL ?>assets/favicon.png"> | ||
<link rel="apple-touch-icon" href="<?php echo SCRICH_URL ?>assets/apple-touch-icon.png"> | ||
</head> | ||
<body> | ||
<h1>Drawings - <?php echo $page ?>/<?php echo $nb_pages ?> - (total <?php echo $draws_count ?>)</h1> | ||
<?php tpl_pagination(); ?> | ||
<ul id="draw-list"> | ||
<?php foreach ($draws as $draw): ?> | ||
<li> | ||
<h2>/<?php echo $draw->short_id ?> <span>(<?php echo date("G:i j/m/Y", strtotime($draw->date)) ?>)</span></h2> | ||
<a href="<?php echo SCRICH_URL.$draw->short_id ?>"> | ||
<img src="<?php echo SCRICH_URL.$draw->short_id ?>.png"> | ||
</a> | ||
</li> | ||
<?php endforeach ?> | ||
</ul> | ||
<?php tpl_pagination(); ?> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
<?php | ||
|
||
require_once './lib/scrich.php'; | ||
|
||
scrich_init(); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters