Skip to content

Commit

Permalink
refs #1249
Browse files Browse the repository at this point in the history
  * 절대 주소 (문자) 로 접근할 경우에도 글이 출력되도록 수정
  * TODO
    * 일반 글 주소로 들어왔을 때 리다이렉션.
	* PC 화면으로 보여주기 옵션 추가
  • Loading branch information
inureyes committed Nov 28, 2009
1 parent 443ddfd commit d727eaa
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 27 deletions.
9 changes: 7 additions & 2 deletions interface/i/entry/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

$entry = $entries ? $entries[0] : null;
?>
<div id="post_<?php echo $entry['id'];?>" title="<?php echo $entry['title'];?>" class="panel">
<div id="post_<?php echo $entry['id'];?>" title="<?php echo htmlspecialchars($entry['title']);?>" class="panel"<?php echo (!empty($entryPrint) ? 'selected="true"' : '');?>>
<div class="entry_info">
<h2><?php echo htmlspecialchars($entry['title']);?></h2>
<h2 class="noBorderLine"><?php echo Timestamp::format5($entry['published']);?></h2>
Expand Down Expand Up @@ -98,6 +98,11 @@
</fieldset>
</div>
<?php
if(!empty($entryPrint)) printIphoneHtmlFooter();
if(!empty($entryPrint)) {
?>
</div>
<?php
printIphoneHtmlFooter();
}
}
?>
17 changes: 2 additions & 15 deletions interface/i/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,8 @@
requireView('iphoneView');
if(empty($suri['id'])) {
printIphoneHtmlHeader();
?>
<div class="toolbar">
<h1 id="pageTitle"><?php echo htmlspecialchars($blog['title']);?> Blog</h1>
<a id="backButton" class="button" href="#"></a>
<a class="button" href="#searchForm" id="searchButton" onclick="searchAction(true);"><?php echo _text('검색');?></a>
</div>
<div class="toolbar shortcut">
<ul>
<li><?php echo _text('글목록');?></li>
<li><?php echo _text('댓글');?></li>
<li><?php echo _text('트랙백');?></li>
<li><?php echo _text('방명록');?></li>
</ul>
</div>
<ul id="home" title="<?php echo htmlspecialchars(UTF8::lessenAsEm($blog['title'],30));?> Blog" selected="true">
?>
<ul id="home" title="<?php echo htmlspecialchars(UTF8::lessenAsEm($blog['title'],30));?>" selected="true">
<?php
$blogAuthor = User::getName($blogid);
$blogLogo = !empty($blog['logo']) ? printIphoneImageResizer($blogid, $blog['logo'], 80) : "{$service['path']}/resources/style/iphone/image/textcube_logo.png";
Expand Down
34 changes: 24 additions & 10 deletions library/view/iphoneView.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,29 @@ function printIphoneHtmlHeader($title = '') {
global $blogURL, $blog, $service, $blogid;
$title = htmlspecialchars($blog['title']) . ' :: ' . $title;
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko">
<head>
<title><?php echo $title;?></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
<link rel="stylesheet" type="text/css" href="<?php echo $service['path'];?>/resources/style/iphone/iphone.css" />
<script type="application/x-javascript" src="<?php echo $service['path'];?>/resources/script/iphone/iphone.js"></script>
</head>
<body>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko">
<head>
<title><?php echo $title;?></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
<link rel="stylesheet" type="text/css" href="<?php echo $service['path'];?>/resources/style/iphone/iphone.css" />
<script type="application/x-javascript" src="<?php echo $service['path'];?>/resources/script/iphone/iphone.js"></script>
</head>
<body>
<div class="toolbar">
<h1 id="pageTitle"><?php echo htmlspecialchars($blog['title']);?></h1>
<a id="backButton" class="button" href="#"></a>
<a class="button" href="#searchForm" id="searchButton" onclick="searchAction(true);"><?php echo _text('검색');?></a>
</div>
<div class="toolbar shortcut">
<ul>
<li><?php echo _text('글목록');?></li>
<li><?php echo _text('댓글');?></li>
<li><?php echo _text('트랙백');?></li>
<li><?php echo _text('방명록');?></li>
</ul>
</div>

<?php
}

Expand Down Expand Up @@ -379,7 +393,7 @@ function printIphoneNavigation($entry, $jumpToComment = true, $jumpToTrackback =
}
if ($suri['directive'] != '/i') {
?>
<li class="last_no_line"><a href="#" onclick="self.location.reload();" accesskey="6"><?php echo _text('첫화면으로 돌아가기');?></a></li>
<li class="last_no_line"><a href="<?php echo $blogURL;?>" onclick="window.location.href='<?php echo $blogURL;?>';" accesskey="6"><?php echo _text('첫화면으로 돌아가기');?></a></li>
<?php
}
?>
Expand Down

0 comments on commit d727eaa

Please # to comment.