Skip to content

Commit

Permalink
refs #1604 : entry UI updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
inureyes committed Feb 24, 2012
1 parent 29870aa commit 8a763ee
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
6 changes: 3 additions & 3 deletions interface/i/entry/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@
<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>
<h3 class="noBorderLine"><?php echo Timestamp::format5($entry['published']);?></h3>
</div>
<div class="content"><?php printMobileEntryContentView($blogid, $entry, null); ?></div>
<?php
$entryTags = getTags($entry['blogid'], $entry['id']);
if (sizeof($entryTags) > 0) {
?>
<h2 class="tags_title">Tags</h2>
<div class="entry_tags">
<div class="entry_tags" data-role="content" data-theme="c">
<h3 class="tags_title">Tags</h3>
<?php
$tags = array();
$relTag = Setting::getBlogSettingGlobal('useMicroformat', 3)>1 && (count($entries) == 1 || !empty($skin->hentryExisted) );
Expand Down
7 changes: 3 additions & 4 deletions library/view/iphoneView.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function printMobileEntryContentView($blogid, $entry, $keywords = array()) {
global $blogURL;
if (doesHaveOwnership() || ($entry['visibility'] >= 2) || (isset($_COOKIE['GUEST_PASSWORD']) && (trim($_COOKIE['GUEST_PASSWORD']) == trim($entry['password'])))) {
$content = getEntryContentView($blogid, $entry['id'], $entry['content'], $entry['contentformatter'], $keywords, 'Post', false);
print '<div class="entry_body" data-role="content" data-theme="c">' . printMobileFreeImageResizer($content) . '</div>';
print '<div class="entry_body" data-role="content" data-theme="d">' . printMobileFreeImageResizer($content) . '</div>';
} else {
?>
<p><b><?php echo _text('Protected post!');?></b></p>
Expand Down Expand Up @@ -413,8 +413,8 @@ function printMobileNavigation($entry, $jumpToComment = true, $jumpToTrackback =
$context = Model_Context::getInstance();
global $suri, $blogURL;
?>
<div data-role="footer" class="ui-bar" data-theme="c">
<div data-role="navbar">
<!-- <div data-role="footer" class="ui-bar" data-theme="c">-->
<div data-role="navbar" data-theme="c">
<ul>
<?php
if (isset($paging['prev'])) {
Expand Down Expand Up @@ -452,7 +452,6 @@ function printMobileNavigation($entry, $jumpToComment = true, $jumpToTrackback =
?>
</ul>
</div>
</div>
<?php
}

Expand Down
16 changes: 16 additions & 0 deletions resources/style/iphone/iphone.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ select {
.center {
text-align:center;
}

.entry_info {
padding-left:15px;
border-left:10px solid #ccc;
}

.entry_info h3 {
font-size:1em;
}

.entry_tags h3 {
border-left:10px solid #ccc;
font-size:1em;
padding-left:15px;
}

.comment p{
font-size:1em !important;
}
Expand Down

0 comments on commit 8a763ee

Please sign in to comment.