Skip to content

Commit

Permalink
refs #1604 : link view modified. Textcube introduction is revised.
Browse files Browse the repository at this point in the history
  • Loading branch information
inureyes committed Feb 24, 2012
1 parent e560953 commit cde6f99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions interface/i/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
</div>

<div data-role="page" id="textcube" title="TEXTCUBE" selected="false">
<?php printMobileHTMLMenu();?>
<div class="textcubeLogo">&nbsp;</div>
<div class="textcubeVersion">
Brand yourself! : <?php echo TEXTCUBE_NAME;?> <?php echo TEXTCUBE_VERSION;?>
Expand Down
7 changes: 6 additions & 1 deletion library/view/iphoneView.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function printMobilePrintTreeView($tree, $xhtml=true) {
$printCategory .= '</a></li>';
for ($i=0; $i<count($tree['children']); $i++) {
$child = $tree['children'][$i];
$printCategory .= '<li class="category"><a href="' . htmlspecialchars($child['link']) . '" class="link">' . htmlspecialchars($child['label']);
$printCategory .= '<li class="category" data-theme="b"><a href="' . htmlspecialchars($child['link']) . '" class="link">' . htmlspecialchars($child['label']);
$printCategory .= ' <span class="c_cnt">' . $child['value'] . '</span>';
$printCategory .= '</a></li>';
if (sizeof($child['children']) > 0) {
Expand Down Expand Up @@ -184,11 +184,16 @@ function printMobileLinksView($links) {
} else {
$home = false;
}
$categoryName = '';
foreach ($links as $link) {
if((!doesHaveOwnership() && $link['visibility'] == 0) ||
(!doesHaveMembership() && $link['visibility'] < 2)) {
continue;
}
if (!empty($link['categoryName']) && $link['categoryName'] != $categoryName) {
$linkView .= '<li data-theme="b">'. htmlspecialchars(UTF8::lessenAsEm($link['categoryName'], $skinSetting['linkLength'])) . '</li>'.CRLF;
$categoryName = $link['categoryName'];
}
$linkView .= '<li><a href="' . htmlspecialchars($link['url']) . '" class="link" target="_blank">' . htmlspecialchars(UTF8::lessenAsEm($link['name'], $skinSetting['linkLength'])) . '</a></li>'.CRLF;
}
return $linkView;
Expand Down

0 comments on commit cde6f99

Please sign in to comment.