Skip to content

Commit

Permalink
refs #1604 : tag UI updated. archive and tag UI now uses iphone View…
Browse files Browse the repository at this point in the history
… function and supports swipe.
  • Loading branch information
inureyes committed Feb 24, 2012
1 parent 10491dc commit 8620f9c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 39 deletions.
20 changes: 1 addition & 19 deletions interface/i/archive/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,8 @@
$itemsView .= '</li>'.CRLF;
}
$itemsView .= '</ul>'.CRLF;

$itemsView .= '<div data-role="navbar" data-theme="c">'.CRLF;
$itemsView .= '<ul>'.CRLF;
if(isset($paging['prev'])){
$itemsView .= '<li><a data-role="button" data-theme="d" data-icon="arrow-l" href="' .$context->getProperty('uri.blog') . '/archive/' . $period . '?page=' . $paging['prev'] . '" class="previous">'._textf('%1 페이지',$paging['prev']) . '</a></li>'.CRLF;
}
/*if ($suri['page'] > 1 && $suri['page'] != $paging['pages']) {
$itemsView .= '<li>'._textf('%1 페이지',$suri['page']) . '</li>'.CRLF;
}*/
if (isset($paging['next'])) {
$itemsView .= '<li><a data-role="button" data-theme="d" data-icon="arrow-r" href="' .$context->getProperty('uri.blog') . '/archive/' . $period . '?page=' . $paging['next'] . '" class="next">'._textf('%1 페이지',$paging['next']) . '</a></li>'.CRLF;
}

$itemsView .= '</ul>'.CRLF;
$itemsView .= '</div>'.CRLF;

print $itemsView;
?>
</ul>
<?php
print printMobileListNavigation($paging,'archive/',$period);
printMobileHTMLFooter();
}

Expand Down
4 changes: 3 additions & 1 deletion interface/i/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@
</div>

<div data-role="page" id="tags">
<ul data-role="listview" title="Tags" selected="false">
<?php
printMobileHTMLMenu();
?> <ul data-role="listview" title="Tags" selected="false">
<li class="group"><span class="left">Random Tags (100)</span><span class="right">&nbsp;</span></li>
<li class="panel">
<div class="content padding5">
Expand Down
20 changes: 1 addition & 19 deletions interface/i/tag/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,26 +48,8 @@
}

$itemsView .= '</ul>'.CRLF;

$itemsView .= '<div data-role="navbar" data-theme="c">'.CRLF;
$itemsView .= '<ul>'.CRLF;
if(isset($paging['prev'])){
$itemsView .= '<li><a data-role="button" data-theme="d" data-icon="arrow-l" href="' .$context->getProperty('uri.blog') . '/tag/' . $suri['id'] . '?page=' . $paging['prev'] . '" class="previous">'._textf('%1 페이지',$paging['prev']) . '</a></li>'.CRLF;
}
/*if ($suri['page'] > 1 && $suri['page'] != $paging['pages']) {
$itemsView .= '<li>'._textf('%1 페이지',$suri['page']) . '</li>'.CRLF;
}*/
if (isset($paging['next'])) {
$itemsView .= '<li><a data-role="button" data-theme="d" data-icon="arrow-r" href="' .$context->getProperty('uri.blog') . '/tag/' . $suri['id'] . '?page=' . $paging['next'] . '" class="next">'._textf('%1 페이지',$paging['next']) . '</a></li>'.CRLF;
}

$itemsView .= '</ul>'.CRLF;
$itemsView .= '</div>'.CRLF;

print $itemsView;
?>
</ul>
<?php
print printMobileListNavigation($paging,'tag/' . $suri['id']);
}
printMobileHTMLFooter();
//printMobileNavigation($entry, false, true);
Expand Down

0 comments on commit 8620f9c

Please sign in to comment.