<?php
/**
 * Lpisme是Typecho的一套主题模板，Lpisme这个主题的名字由来，Lp是我女朋友的名字的首个字母，没错我女朋友的名字只有两个字。So，很容易看出，Lp is me。一开始是打算起Lpismine，但太长了同时觉得还是要有点chinese的感觉，故Lpisme诞生，意味着女朋友是我的。
 *
 * @package Lpisme Theme
 * @author Chakhsu Lau
 * @version 3.2.1
 * @link https://www.linpx.com/
 */

if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>

        <div class="container">
            <div class="index-wrapper">
                <div class="index-posts <?php if ($this->options->listCol == "one") echo "index-posts-onecol"; ?> cf">
                    <?php while($this->next()): ?>

                    <article class="index-post <?php if ($this->options->listCol == "one") echo "index-post-onecol"; ?> cf" itemscope itemtype="http://schema.org/BlogPosting">
                        <div class="index-post-inner">
                            <div class="index-post-header cf">
                                <?php if (array_key_exists('eye',unserialize($this->___fields()))): ?>
                                <span class="index-post-avatar icon-eyeglass left">
                                <span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span><span class="path6"></span>
                                </span>
                                <?php elseif (array_key_exists('code',unserialize($this->___fields()))): ?>
                                <span class="index-post-avatar icon-coding left">
                                <span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span><span class="path6"></span><span class="path7"></span><span class="path8"></span><span class="path9"></span><span class="path10"></span><span class="path11"></span><span class="path12"></span><span class="path13"></span><span class="path14"></span><span class="path15"></span><span class="path16"></span><span class="path17"></span><span class="path18"></span><span class="path19"></span><span class="path20"></span><span class="path21"></span><span class="path22"></span><span class="path23"></span><span class="path24"></span><span class="path25"></span><span class="path26"></span><span class="path27"></span><span class="path28"></span><span class="path29"></span><span class="path30"></span><span class="path31"></span><span class="path32"></span><span class="path33"></span><span class="path34"></span><span class="path35"></span><span class="path36"></span><span class="path37"></span><span class="path38"></span><span class="path39"></span><span class="path40"></span><span class="path41"></span><span class="path42"></span><span class="path43"></span><span class="path44"></span>
                                </span>
                                <?php elseif (array_key_exists('list',unserialize($this->___fields()))): ?>
                                <span class="index-post-avatar icon-list left">
                                <span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span><span class="path6"></span><span class="path7"></span><span class="path8"></span><span class="path9"></span><span class="path10"></span><span class="path11"></span><span class="path12"></span><span class="path13"></span><span class="path14"></span><span class="path15"></span><span class="path16"></span><span class="path17"></span><span class="path18"></span><span class="path19"></span><span class="path20"></span><span class="path21"></span>
                                </span>
                                <?php elseif (array_key_exists('quote',unserialize($this->___fields()))): ?>
                                <span class="index-post-avatar icon-ss left">
                                <span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span>
                                </span>
                                <?php elseif (array_key_exists('share',unserialize($this->___fields()))): ?>
                                <span class="index-post-avatar icon-share left">
                                <span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span><span class="path6"></span><span class="path7"></span><span class="path8"></span><span class="path9"></span><span class="path10"></span><span class="path11"></span><span class="path12"></span><span class="path13"></span><span class="path14"></span><span class="path15"></span><span class="path16"></span><span class="path17"></span><span class="path18"></span><span class="path19"></span><span class="path20"></span><span class="path21"></span><span class="path22"></span><span class="path23"></span><span class="path24"></span><span class="path25"></span>
                                </span>
                                <?php elseif (array_key_exists('chat',unserialize($this->___fields()))): ?>
                                <span class="index-post-avatar icon-chat left">
                                <span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span><span class="path6"></span><span class="path7"></span>
                                </span>
                                <?php elseif (array_key_exists('locked',unserialize($this->___fields()))): ?>
                                <span class="index-post-avatar icon-locked left">
                                <span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span><span class="path6"></span>
                                </span>
                                <?php elseif (array_key_exists('images',unserialize($this->___fields()))): ?>
                                <span class="index-post-avatar icon-images left">
                                <span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span><span class="path6"></span><span class="path7"></span><span class="path8"></span><span class="path9"></span><span class="path10"></span><span class="path11"></span><span class="path12"></span>
                                </span>
                                <?php elseif (array_key_exists('ad',unserialize($this->___fields()))): ?>
                                <span class="index-post-avatar icon-ad left">
                                <span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span><span class="path6"></span><span class="path7"></span><span class="path8"></span><span class="path9"></span>
                                </span>
                                <?php elseif (array_key_exists('lamp',unserialize($this->___fields()))): ?>
                                <span class="index-post-avatar icon-lamp left">
                                <span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span><span class="path6"></span><span class="path7"></span><span class="path8"></span><span class="path9"></span><span class="path10"></span>
                                </span>
								<?php else : ?>
                                <?php endif; ?>
                                <div class="index-post-date" itemprop="datePublished">
                                    <?php $this->date('F jS , Y'); ?>

                                </div>
                                <div class="index-post-title" itemprop="name headline">
                                    <a href="<?php $this->permalink() ?>" title="<?php $this->title() ?>" itemtype="url"><?php $this->title() ?></a>
                                </div>
                            </div>
                            <div class="index-post-content" itemprop="articleBody">
                                <?php $this->description(); ?>

                            </div>

                            <?php if (array_key_exists('thumb',unserialize($this->___fields()))): ?>

							<div class="index-post-thumb">
								<a class="index-post-cover" href="<?php $this->permalink() ?>">
									<img class="thumb" src="<?php echo $this->fields->thumb;?>">
								</a>
							</div>
                            <?php else : ?>
                            <?php $thumb = showThumb($this,null,true); if(!empty($thumb)):?>

							<div class="index-post-thumb">
								<a class="index-post-cover" href="<?php $this->permalink() ?>">
									<img class="thumb" src="<?php echo $thumb;?>">
								</a>
							</div>
                            <?php endif; ?>
							<?php endif; ?>

                            <div class="index-post-meta cf">
                                <div class="index-post-button"><a href="<?php $this->permalink() ?>"> Read more </a>
                                </div>
                                <div class="index-post-button index-post-comments">
                                    <a href="<?php $this->permalink() ?>#comments"><?php $this->commentsNum(_t(' No comment '), _t(' 1 comment '), _t(' %d comments ')); ?></a>
                                </div>
                                <div class="index-post-category">
                                    <?php $this->category(''); ?>

                                </div>
                            </div>
                        </div>
                    </article>
                    <?php endwhile; ?>

                </div>
                <div class="index-pagenav <?php if ($this->options->listCol == "one") echo "index-pagenav-onecol"; ?> cf">
                    <div class="page-nav">
                        <div class="page-prev left" title="<?php _e('上一页');?>"><?php $this->pageLink('<i class="icon icon-left"></i> Previous','prev');?></div>
                        <div class="page-next right" title="<?php _e('下一页');?>"><?php $this->pageLink('Next <i class="icon icon-right"></i>','next');?></div>
                    </div>
                </div>
            </div>
        </div>

<?php $this->need('footer.php'); ?>