<?php

include('title.php');

$view

->loop
(
    '.dever_model_list li',
    'forum/model.posts|model=Dever::input("model")',
    array
    (
        'self' => array
        (
            'class++' => '<{Dever::load("forum/posts.info#home", $v) ? " col-sm-6" : " col-sm-12"}>',
        ),
        
        '.dever_review' => array
        (
            'href' => '<{Dever::load("forum/posts.info#link", $v)}>',

            'span' => array
            (
                'html' => '<{$v.num_review}>',
            )
        ),
        
        '.dever_user' => array
        (
            'a' => array
            (
                'href' => '<{Dever::load("forum/posts.info#user_link", $v)}>',
                'title' => '<{Dever::load("forum/posts.info#user_name", $v)}>',
            ),

            'img' => array
            (
                'src' => '<{Dever::load("forum/posts.info#user_avatar", $v)}>',
                'alt' => '<{Dever::load("forum/posts.info#user_name", $v)}>',
            ),

            'style' => '<{Dever::load("forum/posts.info#user_avatar", $v) ? "" : "display:none;"}>'
        ),
        
        '.dever_title' => array
        (
            'href' => '<{Dever::load("forum/posts.info#link", $v)}>',
            'title' => '<{Dever::load("forum/posts.info#name", $v)}>',
            'html' => '<{Dever::load("forum/posts.info#name", $v)}>',
        ),
        
        '.dever_top' => array
        (
            'style' => '<{Dever::load("forum/posts.info#top", $v)}>',
        ),
        
        '.dever_tui' => array
        (
            'style' => '<{Dever::load("forum/posts.info#tui", $v)}>',
        ),
        
        '.dever_up' => array
        (
            'href' => 'javascript:;',
            'id' => 'dever_up_<{Dever::load("forum/posts.info#id", $v)}>',
            'dever-send' => '<{Dever::load("forum/vote._token", $v.id)}>',
            
            'span' => array
            (
                'html' => '<{Dever::load("forum/posts.info#num_up", $v)}>',
            )
        ),
        
        '.dever_cate_info' => array
        (
            'href' => '<{Dever::load("forum/posts.info#cate_link", $v)}>',
            'title' => '<{Dever::load("forum/posts.info#cate_name", $v)}>',
            'html' => '<{Dever::load("forum/posts.info#cate_name", $v)}>',
        ),
        
        '.dever_username' => array
        (
            'href' => '<{Dever::load("forum/posts.info#user_link", $v)}>',
            'title' => '<{Dever::load("forum/posts.info#user_name", $v)}>',
            'html' => '<{Dever::load("forum/posts.info#user_name", $v)}>',
        ),

        '.dever_username_show' => array
        (
            'style' => '<{Dever::load("forum/posts.info#user_name", $v) ? "" : "display:none;"}>',
        ),
        
        '.dever_time' => array
        (
            'html' => '<{Dever::load("forum/posts.info#time", $v)}>',
            'title' => '<{Dever::load("forum/posts.info#cdate", $v)}>',
        ),
    )
)

->fetch('.dever_more', '<{Dever::load("forum/model.info#more", Dever::input("model"))}>', 'none')

# display
->display();
