Photo redirect..
This commit is contained in:
parent
c0388c7d04
commit
f7e6ac1b59
@ -1,4 +1,14 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||
<? if ($theme->page_subtype == "photo"):
|
||||
foreach (end($parents)->viewable()->children() as $i => $child)
|
||||
if(!($child->is_album() || $child->is_movie()))
|
||||
if($child->url() == $_SERVER['REQUEST_URI']):?>
|
||||
<html><body>
|
||||
<script type="text/javascript">window.location = '<? echo end($parents)->url() . "#img=$i&viewMode=detail"?>';</script>
|
||||
</body></html>
|
||||
<? die(0) ?>
|
||||
<? endif ?>
|
||||
<? endif ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" <?= $theme->html_attributes() ?> xml:lang="en" lang="en">
|
||||
|
Reference in New Issue
Block a user