<?php
global $kippis_is_smartphone;
global $kippis_options;
?>
        <article>
            <div id="post-<?php the_ID(); ?>" <?php post_class('article'); ?>>
              <header class="entry-header">
                <h1 class="entry-title"><?php the_title(); ?></h1>
                <?php if ( 'post' == get_post_type() ) : ?>
                <div class="entry-meta">
                  <?php kippis_posted_on(); ?>
                </div>
                <?php endif; ?>
              </header>
              <div class="entry-content">
                <?php
                if ($kippis_is_smartphone) echo kippis_strip_img_width(apply_filters('the_content',get_the_content()));
                else the_content();
                wp_link_pages(array('before' => '<div class="page-link"><span>' . __('Pages:','kippis') . '</span>','after' => '</div>'));
                ?>
              </div>
              <footer class="entry-meta">
                <?php
                if ($kippis_options['kippis_posts_cats_tags_enable'] == 'on') {
                  $categories_list = get_the_category_list(__(', ','kippis'));
                  $tag_list = get_the_tag_list( '',__(', ','kippis'));
                  if      ('' != $tag_list       ) $utility_text = __('This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>.<span class="bookmark_it">Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.</span>','kippis');
                  else if ('' != $categories_list) $utility_text = __('This entry was posted in %1$s by <a href="%6$s">%5$s</a>.<span class="bookmark_it">Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.</span>'                ,'kippis');
                  else                             $utility_text = __('This entry was posted by <a href="%6$s">%5$s</a>.<span class="bookmark_it">Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.</span>'                        ,'kippis');
                  printf($utility_text
                    ,$categories_list
                    ,$tag_list
                    ,esc_url(get_permalink())
                    ,the_title_attribute('echo=0')
                    ,get_the_author()
                    ,esc_url(get_author_posts_url(get_the_author_meta('ID')))
                  );
                }
                edit_post_link(__('Edit','kippis'),'<span class="edit-link">','</span>');
                if (KIPPIS_SHOW_AUTHOR_INFO) {
                  if (is_multi_author()) {
                    $author_description = get_the_author_meta('description');
                    if (!empty($author_description)) {
                      ?>
                      <div id="author-info">
                        <div id="author-avatar">
                          <?php echo get_avatar(get_the_author_meta('user_email'),apply_filters('kippis_author_bio_avatar_size',68)); ?>
                        </div>
                        <div id="author-description">
                          <h2><?php printf(esc_attr__('About %s','kippis'),get_the_author()); ?></h2>
                          <?php echo $author_description; ?>
                          <div id="author-link">
                            <a href="<?php echo esc_url( get_author_posts_url(get_the_author_meta('ID' ))); ?>" rel="author">
                              <?php printf(__('View all posts by %s <span class="meta-nav">&rarr;</span>','kippis'),get_the_author()); ?>
                            </a>
                          </div>
                        </div>
                      </div>
                      <?php
                    }
                  }
                }
                ?>
              </footer>
          </div>
        </article>

