Skip to content

Commit

Permalink
refs #1604 : modified : list view UI is changed to JQM
Browse files Browse the repository at this point in the history
  • Loading branch information
inureyes committed Feb 25, 2012
1 parent e9616e5 commit 313654e
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 28 deletions.
11 changes: 5 additions & 6 deletions interface/i/archive/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,16 @@
foreach ($list['items'] as $item) {
$author = User::getName($item['userid']);
if($imageName = printMobileAttachmentExtract(printMobileEntryContent($blogid, $item['userid'], $item['id']))){
$imageSrc = printMobileImageResizer($blogid, $imageName, 55);
$imageSrc = printMobileImageResizer($blogid, $imageName, 64);
}else{
$imageSrc = $service['path'] . '/resources/style/iphone/image/noPostThumb.png';
}
$itemsView .= '<li class="post_item">'.CRLF;
$itemsView .= ' <span class="image"><img src="' . $imageSrc . '" width="55px" height="55px" /></span>'.CRLF;
$itemsView .= ' <a href="' . $context->getProperty('uri.blog') . '/entry/' . $item['id'] . '" class="link">'.CRLF;
$itemsView .= ' <div class="post">'.CRLF;
$itemsView .= ' <span class="title">' . fireEvent('ViewListTitle', htmlspecialchars($item['title'])) . '</span>'.CRLF;
$itemsView .= ' <span class="description">' . Timestamp::format5($item['published']) . '</span><span class="ui-li-count"> ' . _textf('댓글 %1개',($item['comments'] > 0 ? $item['comments'] : 0)) . '</span>'.CRLF;
$itemsView .= ' </div>'.CRLF;

$itemsView .= ' <img src="' . $imageSrc . '" />'.CRLF;
$itemsView .= ' <h3>'.fireEvent('ViewListTitle', htmlspecialchars($item['title'])) . '</h3>'.CRLF;
$itemsView .= ' <p>' . Timestamp::format5($item['published']) . '</span><span class="ui-li-count"> ' . _textf('댓글 %1개',($item['comments'] > 0 ? $item['comments'] : 0)) . '</p>'.CRLF;
$itemsView .= ' </a>'.CRLF;
$itemsView .= '</li>'.CRLF;
}
Expand Down
13 changes: 6 additions & 7 deletions interface/i/category/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,16 @@
foreach ($list['items'] as $item) {
$author = User::getName($item['userid']);
if($imageName = printMobileAttachmentExtract(printMobileEntryContent($blogid, $item['userid'], $item['id']))){
$imageSrc = printMobileImageResizer($blogid, $imageName, 55);
$imageSrc = printMobileImageResizer($blogid, $imageName, 64);
}else{
$imageSrc = $service['path'] . '/resources/style/iphone/image/noPostThumb.png';
}
$itemsView .= '<li class="post_item">'.CRLF;
$itemsView .= ' <span class="image"><img src="' . $imageSrc . '" width="55px" height="55px" /></span>'.CRLF;
$itemsView .= ' <a href="' . $blogURL . '/entry/' . $item['id'] . '" class="link">'.CRLF;
$itemsView .= ' <div class="post">'.CRLF;
$itemsView .= ' <span class="title">' . fireEvent('ViewListTitle', htmlspecialchars($item['title'])) . '</span>'.CRLF;
$itemsView .= ' <span class="description">' . Timestamp::format5($item['published']) . '</span><span class="ui-li-count"> ' . _textf('댓글 %1개',($item['comments'] > 0 ? $item['comments'] : 0)) . '</span>'.CRLF;
$itemsView .= ' </div>'.CRLF;
$itemsView .= ' <a href="' . $context->getProperty('uri.blog') . '/entry/' . $item['id'] . '" class="link">'.CRLF;

$itemsView .= ' <img src="' . $imageSrc . '" />'.CRLF;
$itemsView .= ' <h3>'.fireEvent('ViewListTitle', htmlspecialchars($item['title'])) . '</h3>'.CRLF;
$itemsView .= ' <p>' . Timestamp::format5($item['published']) . '</span><span class="ui-li-count"> ' . _textf('댓글 %1개',($item['comments'] > 0 ? $item['comments'] : 0)) . '</p>'.CRLF;
$itemsView .= ' </a>'.CRLF;
$itemsView .= '</li>'.CRLF;
}
Expand Down
13 changes: 6 additions & 7 deletions interface/i/entry/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
$list = array('title' => (empty($suri['value']) ? getCategoryLabelById($blogid, 0) : $suri['value']), 'items' => $listWithPaging[0], 'count' => $listWithPaging[1]['total']);
$paging = $listWithPaging[1];
?>
<ul data-role="listview" class="posts" id="blog_posts_<?php echo $suri['page'];?>" title="<?php echo _text('글목록');?>" selected="false">
<ul data-role="listview" class="posts" id="blog_posts_<?php echo $suri['page'];?>" title="<?php echo _text('글목록');?>" selected="false" data-inset="true">
<?php
$itemsView = '<li class="group ui-bar ui-bar-e">'.CRLF;
$itemsView .= ' <span class="left">'._text('글목록').'</span>('.$list['count'].')</span>'.CRLF;
Expand All @@ -25,17 +25,16 @@
foreach ($list['items'] as $item) {
$author = User::getName($item['userid']);
if($imageName = printMobileAttachmentExtract($item['content'])){
$imageSrc = printMobileImageResizer($blogid, $imageName, 55);
$imageSrc = printMobileImageResizer($blogid, $imageName, 64);
}else{
$imageSrc = $service['path'] . '/resources/style/iphone/image/noPostThumb.png';
}
$itemsView .= '<li class="post_item">'.CRLF;
$itemsView .= ' <span class="image"><img src="' . $imageSrc . '" width="55px" height="55px" /></span>'.CRLF;
$itemsView .= ' <a href="' . $context->getProperty('uri.blog') . '/entry/' . $item['id'] . '" class="link">'.CRLF;
$itemsView .= ' <div class="post">'.CRLF;
$itemsView .= ' <span class="title">' . fireEvent('ViewListTitle', htmlspecialchars($item['title'])) . '</span>'.CRLF;
$itemsView .= ' <span class="description">' . Timestamp::format5($item['published']) . '</span><span class="ui-li-count"> ' . _textf('댓글 %1개',($item['comments'] > 0 ? $item['comments'] : 0)) . '</span>'.CRLF;
$itemsView .= ' </div>'.CRLF;

$itemsView .= ' <img src="' . $imageSrc . '" />'.CRLF;
$itemsView .= ' <h3>'.fireEvent('ViewListTitle', htmlspecialchars($item['title'])) . '</h3>'.CRLF;
$itemsView .= ' <p>' . Timestamp::format5($item['published']) . '</span><span class="ui-li-count"> ' . _textf('댓글 %1개',($item['comments'] > 0 ? $item['comments'] : 0)) . '</p>'.CRLF;
$itemsView .= ' </a>'.CRLF;
$itemsView .= '</li>'.CRLF;
}
Expand Down
11 changes: 5 additions & 6 deletions interface/i/tag/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,16 @@
foreach ($list['items'] as $item) {
$author = User::getName($item['userid']);
if($imageName = printMobileAttachmentExtract(printMobileEntryContent($blogid, $item['userid'], $item['id']))){
$imageSrc = printMobileImageResizer($blogid, $imageName, 55);
$imageSrc = printMobileImageResizer($blogid, $imageName, 64);
}else{
$imageSrc = $service['path'] . '/resources/style/iphone/image/noPostThumb.png';
}
$itemsView .= '<li class="post_item">'.CRLF;
$itemsView .= ' <span class="image"><img src="' . $imageSrc . '" width="55px" height="55px" /></span>'.CRLF;
$itemsView .= ' <a href="' . $context->getProperty('uri.blog') . '/entry/' . $item['id'] . '" class="link">'.CRLF;
$itemsView .= ' <div class="post">'.CRLF;
$itemsView .= ' <span class="title">' . fireEvent('ViewListTitle', htmlspecialchars($item['title'])) . '</span>'.CRLF;
$itemsView .= ' <span class="description">' . Timestamp::format5($item['published']) . '</span><span class="ui-li-count"> ' . _textf('댓글 %1개',($item['comments'] > 0 ? $item['comments'] : 0)) . '</span>'.CRLF;
$itemsView .= ' </div>'.CRLF;

$itemsView .= ' <img src="' . $imageSrc . '" />'.CRLF;
$itemsView .= ' <h3>'.fireEvent('ViewListTitle', htmlspecialchars($item['title'])) . '</h3>'.CRLF;
$itemsView .= ' <p>' . Timestamp::format5($item['published']) . '</span><span class="ui-li-count"> ' . _textf('댓글 %1개',($item['comments'] > 0 ? $item['comments'] : 0)) . '</p>'.CRLF;
$itemsView .= ' </a>'.CRLF;
$itemsView .= '</li>'.CRLF;
}
Expand Down
4 changes: 2 additions & 2 deletions library/view/iphoneView.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ function printMobileArchivesView($archives) {
foreach ($archives as $archive) {
$newPeriod = substr($archive['period'],0,4);
if($newPeriod != $oldPeriod){
$printArchive .= '<li class="group"><span class="left">' . $newPeriod . '</span><span class="right">&nbsp;</span></li>';
$printArchive .= '<li data-role="list-divider" class="group"><span class="left">' . $newPeriod . '</span><span class="right">&nbsp;</span></li>';
}
$dateName = date("F Y",(mktime(0,0,0,substr($archive['period'],4),1,substr($archive['period'],0,4))));
$printArchive .= '<li class="archive"><a href="' . $blogURL . '/archive/' . $archive['period'] . '" class="link">' . $dateName;
$printArchive .= ' <span class="c_cnt">' . $archive['count'] . '</span>';
$printArchive .= ' <span class="ui-li-count">' . $archive['count'] . '</span>';
$printArchive .= '</a></li>';
$oldPeriod = substr($archive['period'],0,4);
}
Expand Down

0 comments on commit 313654e

Please sign in to comment.