first try to item template

This commit is contained in:
fabrixxm 2012-09-20 02:46:21 -04:00
parent 386815db51
commit 0068dd8702
4 changed files with 68 additions and 31 deletions

View File

@ -1,28 +0,0 @@
{{ for $threads as $thread }}
<div id="tread-wrapper-$thread.id" class="tread-wrapper">
{{if $mode == display}}
{{ for $thread.items as $item }}
{{ if $item.type == tag }}
{{ inc wall_item_tag.tpl }}{{ endinc }}
{{ else }}
{{ inc $item.template }}{{ endinc }}
{{ endif }}
{{ endfor }}
{{ else}}
{{ inc $thread.items.0.template with $item=$thread.items.0 }}{{ endinc }}
<a href="$thread.items.0.plink.href">Commenti: {{if $thread.num_comments}}$thread.num_comments{{ else }}0{{ endif }}</a>
<hr>
{{ endif }}
</div>
{{ endfor }}
<div id="conversation-end"></div>
{{ if $dropping }}
<a href="#" onclick="deleteCheckedItems();return false;">
<span class="icon s22 delete text">$dropping</span>
</a>
{{ endif }}

Binary file not shown.

After

Width:  |  Height:  |  Size: 925 B

View File

@ -1,8 +1,11 @@
<?php
/**
* Description: Blog-like theme
* Author: Fabio Comuni <http://kirgroup.com/u/fabrixxm>
**/
* Name: Blog
* Version: 0.0
* Author: Fabio <http://kirgroup.com/profile/fabrixxm>
* Maintainer: Fabio <http://kirgroup.com/profile/fabrixxm>
*/
$a->theme_info = array(
);

62
view/theme/blog/wall_thread.tpl Executable file
View File

@ -0,0 +1,62 @@
<article class="post-8 post type-post status-publish format-standard hentry category-uncategorized tag-html tag-wordpress" id="$item.id">
<header class="entry-header">
<h1 class="entry-title"><a rel="bookmark" title="Permalink" href="$item.plink.href">$item.title</a></h1>
<div class="entry-meta">
<span class="sep">Posted </span>
<a rel="bookmark" title="12:04 am" href="$item.plink.href">
<time pubdate="" datetime="$item.localtime" class="entry-date">$item.ago</time>
</a>
<span class="by-author">
<span class="sep"> by </span>
<span class="author vcard">
<a rel="author-menu-$item.id" title="View all posts by $item.name" href="#" class="url fn n">$item.name</a>
</span>
<ul class="contact-menu menu-popup" id="author-menu-$item.id">
$item.item_photo_menu
</ul>
</span>
</div><!-- .entry-meta -->
<div class="comments-link">
<a title="Comment" href="$item.plink.href">$item.num_comments</a>
</div>
</header><!-- .entry-header -->
<div class="entry-content">
$item.body
</div><!-- .entry-content -->
<footer class="entry-meta">
{{ if $item.categories }}
<span class="cat-links">
<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span>
<a rel="category" href="$cat.remove"{{ for $item.categories as $cat }}
$cat
{{ endfor }}
</span>
<span class="sep"> | </span>
{{ endif }}
{{ if $item.hashtags }}
<span class="tag-links">
<span class="entry-utility-prep entry-utility-prep-tag-links">Tagged</span>
{{ for $item.hashtags as $tag }}
$tag
{{ endfor }}
</span>
<span class="sep"> | </span>
{{ endif }}
{{ if $item.mentions }}
<span class="tag-links">
<span class="entry-utility-prep entry-utility-prep-tag-links">Mention</span>
{{ for $item.mentions as $men }}
$men
{{ endfor }}
</span>
<span class="sep"> | </span>
{{ endif }}
<span class="comments-link"><a title="Comment" href="$item.plink.href">$item.num_comments</a></span>
</footer><!-- #entry-meta -->
</article>