Skip to content

Commit

Permalink
refs #1654: work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Mar 14, 2014
1 parent 8969824 commit 767b6f9
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 48 deletions.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
/// Copyright (c) 2004-2014, Needlworks / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
define('__TEXTCUBE_NO_FANCY_URL__',true);
#define('__TEXTCUBE_NO_FANCY_URL__',true);
require 'rewrite.php';
?>
7 changes: 4 additions & 3 deletions library/preprocessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@
*/
/// Override mobile mode call
$browserUtil = Utils_Browser::getInstance();
if($context->getProperty('blog.useiPhoneUI',true) && ($browserUtil->isMobile() == true)
&& (!isset($_GET['mode']) || $_GET['mode'] != 'desktop')
&& (!isset($_SESSION['mode']) || !in_array($_SESSION['displayMode'],array('desktop')))) {
#if($context->getProperty('blog.useiPhoneUI',true) && ($browserUtil->isMobile() == true)
# && (!isset($_GET['mode']) || $_GET['mode'] != 'desktop')
# && (!isset($_SESSION['mode']) || !in_array($_SESSION['displayMode'],array('desktop')))) {
if(true) {
$context->setProperty('blog.displaymode','mobile');
if ($uri->uri['interfaceType'] == 'blog') {
$uri->uri['interfaceType'] = 'mobile';
Expand Down
83 changes: 40 additions & 43 deletions skin/default/lucid/skin.html
Original file line number Diff line number Diff line change
Expand Up @@ -350,53 +350,50 @@ <h2><a href="[##_article_rep_link_##]">[##_article_rep_title_##]</a></h2>
</section>
<section class="summary">
<article>
<dl class="information">
<dd class="posted date"><dfn>Posted</dfn> at <time>[##_article_rep_date_##]</time></dd>
<dd class="modified date"><dfn>Last updated</dfn> at <time>[##_article_rep_date_modified_##]</time></dd>
<dd class="author"><dfn>Posted</dfn> by <cite><a href="[##_article_rep_author_link_##]">[##_article_rep_author_##]</a></cite></dd>
<dd class="category"><dfn>Filed</dfn> under <a href="[##_article_rep_category_link_##]">[##_article_rep_category_##]</a></dd>
<dd class="category rss feed"><a href="[##_article_rep_category_rssurl_##]" onclick="window.open(this.href); return false"><img src="./images/rss_12.png" alt="RSS 2.0 feed" /></a></dd>
<dd class="category atom feed"><a href="[##_article_rep_category_atomurl_##]" onclick="window.open(this.href); return false"><img src="./images/atom_12.png" alt="ATOM 1.0 feed" /></a></dd>
<s_tag_label>
<dd class="tag">
<dl>
<dt class="tag">Tag</dt>
<dd class="tag">[##_tag_label_rep_##]</dd>
</dl>
</dd>
</s_tag_label>
<dl class="dl-horizontal information">
<dt>Posted at</dt>
<dd class="posted date"><time>[##_article_rep_date_##]</time></dd>
<dt>Last updated</dt>
<dd class="modified date"><time>[##_article_rep_date_modified_##]</time></dd>
<dt>Author</dt>
<dd class="author"><cite><a href="[##_article_rep_author_link_##]">[##_article_rep_author_##]</a></cite></dd>
<dt>Category</dt>
<dd class="category"><a href="[##_article_rep_category_link_##]">[##_article_rep_category_##]</a></dd>
<dt>Track category via</dt>
<dd class="category rss feed">
<a href="[##_article_rep_category_rssurl_##]" onclick="window.open(this.href); return false"><i class="fa fa-rss-square"></i> RSS 2.0 feed</a>
<a href="[##_article_rep_category_atomurl_##]" onclick="window.open(this.href); return false"><i class="fa fa-rss-square"></i> ATOM 1.0 feed</a>
</dd>
<s_tag_label>
<dt>Tags</dt>
<dd class="tag">[##_tag_label_rep_##]</dd>
</s_tag_label>
</dl>
<dl class="response">
<dt class="response">Response</dt>
<dl class="dl-horizontal response">
<dt class="response">Leave Responses</dt>
<dd class="response">
<menu>
<!-- <command type="command" id="[##_article_rep_tb_cnt_id_##]" href="#tb" onclick="[##_article_rep_tb_link_##]" label="Show/hide responses" class="button">-->
<a id="[##_article_rep_tb_cnt_id_##]" href="#tb" onclick="[##_article_rep_tb_link_##]" label="Show/hide responses" class="button">
<s_tb_count>
<em>[##_article_rep_tb_cnt_##]</em> Trackbacks
</s_tb_count>
<div class="btn-group">
<a id="[##_article_rep_tb_cnt_id_##]" href="#tb" onclick="[##_article_rep_tb_link_##]" label="Show/hide responses" class="btn btn-default btn-xs">
<s_tb_count><em>[##_article_rep_tb_cnt_##]</em> Trackbacks</s_tb_count>
</a>
<!-- </command>,-->
<!-- <command id="[##_article_rep_rp_cnt_id_##]" href="#rp" onclick="[##_article_rep_rp_link_##]" title="Show/hide commments" class="button">-->
<a id="[##_article_rep_rp_cnt_id_##]" href="#rp" onclick="[##_article_rep_rp_link_##]" title="Show/hide commments" class="button">
<s_rp_count>
<em>[##_article_rep_rp_cnt_##]</em> Comments
</s_rp_count>
<a id="[##_article_rep_rp_cnt_id_##]" href="#rp" onclick="[##_article_rep_rp_link_##]" title="Show/hide commments" class="btn btn-default btn-xs">
<s_rp_count><em>[##_article_rep_rp_cnt_##]</em> Comments</s_rp_count>
</a>
<!-- </command>-->
</menu>
</div>
</dd>
<dt class="feed">Track responses via</dt>
<dd class="feed">
<a href="[##_article_rep_response_rssurl_##]" onclick="window.open(this.href); return false" class="rss feed"><i class="fa fa-rss-square"></i> RSS 2.0 feed</a>
<a href="[##_article_rep_response_atomurl_##]" onclick="window.open(this.href); return false" class="atom feed"><i class="fa fa-rss-square"></i> ATOM 1.0 feed</a>
</dd>
<dt class="feed">You can track responses via RSS / ATOM feed</dt>
<dd class="rss feed"><a href="[##_article_rep_response_rssurl_##]" onclick="window.open(this.href); return false"><img src="./images/rss_12.png" alt="RSS 2.0 feed" /></a></dd>
<dd class="atom feed"><a href="[##_article_rep_response_atomurl_##]" onclick="window.open(this.href); return false"><img src="./images/atom_12.png" alt="ATOM 1.0 feed" /></a></dd>
</dl>
</article>
</section>

<s_tb> <!-- Trackback lists ....................................................... -->
<section class="trackbacks">
<article>
<dl>
<dl class="dl-horizontal">
<dt class="url"><dfn>Trackback <abbr title="Uniform Resource Locator">URL</abbr></dfn></dt>
<dd class="url">[##_tb_address_##]</dd>
<dt class="atom feed"><dfn>Trackback ATOM Feed</dfn></dt>
Expand Down Expand Up @@ -529,14 +526,14 @@ <h2>Leave your comment</h2>
<!-- Extra Menu widget -->
<s_sidebar_element>
<section id="extramenuWidget" class="widget text-center">
<div class="btn-group-vertical">
<a href="[##_blog_link_##]" class="btn btn-default"><i class="fa fa-fw fa-home"></i> Home</a>
<a href="[##_blog_link_##]line" class="btn btn-default"><i class="fa fa-fw fa-comment-o"></i> Line</a>
<a href="[##_taglog_link_##]" class="btn btn-default"><i class="fa fa-fw fa-tags"></i> Tag List</a>
<a href="[##_localog_link_##]" class="btn btn-default"><i class="fa fa-fw fa-map-marker"></i> Location</a>
<a href="[##_blog_link_##]keylog" class="btn btn-default"><i class="fa fa-fw fa-flag"></i> Keywords</a>
<a href="[##_guestbook_link_##]" class="btn btn-default"><i class="fa fa-fw fa-pencil"></i> Guest Book</a>
</div>
<ul class="nav nav-pills nav-stacked">
<li><a href="[##_blog_link_##]"><i class="fa fa-fw fa-home"></i> Home</a>
<li><a href="[##_blog_link_##]line"><i class="fa fa-fw fa-comment-o"></i> Line</a>
<li><a href="[##_taglog_link_##]"><i class="fa fa-fw fa-tags"></i> Tag List</a>
<li><a href="[##_localog_link_##]"><i class="fa fa-fw fa-map-marker"></i> Location</a>
<li><a href="[##_blog_link_##]keylog"><i class="fa fa-fw fa-flag"></i> Keywords</a>
<li><a href="[##_guestbook_link_##]"><i class="fa fa-fw fa-pencil"></i> Guest Book</a>
</ul>
</section>
</s_sidebar_element>
<s_sidebar_element>
Expand Down
5 changes: 4 additions & 1 deletion skin/default/lucid/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,8 @@ ul.tags {
font-size: 1.7em;
}

#namecardWidget .thumbnail { display: inline-block; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.widget {
border-bottom: 1px solid #ddd;
}
#namecardWidget .thumbnail { display: inline-block; border: 0 none;}
#extramenuWidget .btn { text-align: left; }

0 comments on commit 767b6f9

Please sign in to comment.