Browse Source
- Fix the URL rewriting (part 1)
- Fix the URL rewriting (part 1)
- Re-implement the Blog + Feed pages - Add the avatars in the Menu + Post (if microblog) - Fix the linker when not connected to XMPPpull/16/head
24 changed files with 305 additions and 95 deletions
-
4app/models/config/Config.php
-
5app/models/config/ConfigDAO.php
-
1app/models/contact/Contact.php
-
7app/models/postn/Postn.php
-
23app/views/blog.tpl
-
7app/views/login.tpl
-
2app/widgets/AdminDB/AdminDB.php
-
9app/widgets/AdminDB/admindb.tpl
-
15app/widgets/AdminMain/AdminMain.php
-
28app/widgets/AdminMain/adminmain.tpl
-
4app/widgets/AdminMain/locales.ini
-
2app/widgets/Avatar/avatar.js
-
38app/widgets/Blog/Blog.php
-
61app/widgets/Blog/blog.tpl
-
7app/widgets/Menu/_menu_list.tpl
-
18app/widgets/Post/Post.php
-
48app/widgets/Post/_post.tpl
-
5app/widgets/Post/locales.ini
-
26app/widgets/Syndication/Syndication.php
-
16app/widgets/Syndication/syndication.tpl
-
55linker.php
-
10system/Route.php
-
6themes/material/css/article.css
-
3themes/material/css/grid.css
@ -1,14 +1,11 @@ |
|||
<?php /* -*- mode: html -*- */ |
|||
?> |
|||
<main> |
|||
<section> |
|||
<div> |
|||
<?php //$this->widget('Tabs');?> |
|||
|
|||
<div id="main"> |
|||
<div id="left"> |
|||
<?php $this->widget('ContactSummary');?> |
|||
</div> |
|||
|
|||
<?php $this->widget('Tabs');?> |
|||
<div id="center"> |
|||
<?php $this->widget('Blog');?> |
|||
<?php $this->widget('ContactCard');?> |
|||
</div> |
|||
</div> |
|||
<?php $this->widget('Blog');?> |
|||
<?php //$this->widget('ContactSummary');?> |
|||
<?php //$this->widget('ContactCard');?> |
|||
</div> |
|||
</section> |
|||
</main> |
|||
@ -1,9 +1,8 @@ |
|||
<?php $this->widget('Presence'); ?> |
|||
<main> |
|||
<section> |
|||
<div> |
|||
<?php $this->widget('Login'); ?> |
|||
</div> |
|||
<div> |
|||
<?php $this->widget('Login'); ?> |
|||
</div> |
|||
</section> |
|||
|
|||
</main> |
|||
@ -1,16 +1,51 @@ |
|||
<div class="tabelem" title="{$c->__('page.feed')}" id="blog" > |
|||
<h1 class="paddedtopbottom">{$title}</h1> |
|||
<div class="posthead paddedtopbottom"> |
|||
<a |
|||
class="button color orange merged left" |
|||
href="{$feed}" |
|||
target="_blank" |
|||
> |
|||
<i class="fa fa-rss"></i> {$c->__('page.feed')} (Atom) |
|||
</a> |
|||
</div> |
|||
<div class="tabelem divided" title="{$c->__('page.feed')}" id="blog" > |
|||
|
|||
{$posts} |
|||
<ul class="thick"> |
|||
<li class="action"> |
|||
<div class="action"> |
|||
<a |
|||
href="{$c->route('feed', array($contact->jid, 'urn:xmpp:microblog:0'))}" |
|||
target="_blank" |
|||
> |
|||
<i class="md md-wifi-tethering"></i> Atom |
|||
</a> |
|||
</div> |
|||
<span class="icon gray"> |
|||
<i class="md md-edit"></i> |
|||
</span> |
|||
<span> |
|||
<h2>{$c->__('blog.title', $contact->getTrueName())}</h2> |
|||
</span> |
|||
</li> |
|||
</ul> |
|||
|
|||
<div class="spacetop clear"></div> |
|||
{loop="$posts"} |
|||
<article> |
|||
<header> |
|||
<ul class="thick"> |
|||
<li class="condensed"> |
|||
<span class="icon bubble"> |
|||
<img src="{$value->getContact()->getPhoto('s')}"> |
|||
</span> |
|||
<h2> |
|||
{if="$value->title != null"} |
|||
{$value->title} |
|||
{else} |
|||
{$c->__('post.default_title')} |
|||
{/if} |
|||
</h2> |
|||
<p> |
|||
{if="$value->node == 'urn:xmpp:microblog:0'"} |
|||
{$value->getContact()->getTrueName()} - |
|||
{/if} |
|||
{$value->published|strtotime|prepareDate} |
|||
</p> |
|||
</li> |
|||
</ul> |
|||
</header> |
|||
<section> |
|||
{$value->contentcleaned} |
|||
</section> |
|||
</article> |
|||
{/loop} |
|||
</div> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue