profile.html.php 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php if (!defined('HTMLY')) die('HTMLy'); ?>
  2. <article class="first-entry home-info">
  3. <header class="entry-header">
  4. <div class="breadcrumbs"><?php echo $breadcrumb;?></div>
  5. <h1><?php echo $author->name;?> <a href="<?php echo $author->url;?>/feed"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" height="23">
  6. <path d="M4 11a9 9 0 0 1 9 9"></path>
  7. <path d="M4 4a16 16 0 0 1 16 16"></path>
  8. <circle cx="5" cy="19" r="1"></circle>
  9. </svg></a></h1>
  10. </header>
  11. <div class="entry-content">
  12. <?php echo $author->about;?>
  13. </div>
  14. <footer class="entry-footer">
  15. <div class="social-icons">
  16. <?php echo social();?>
  17. </div>
  18. </footer>
  19. </article>
  20. <?php foreach ($posts as $post):?>
  21. <?php $img = get_image($post->body);?>
  22. <article class="post-entry">
  23. <?php if (!empty($post->image)) {?>
  24. <figure class="entry-cover"><a href="<?php echo $post->url;?>"><img title="<?php echo $post->title;?>" src="<?php echo $post->image;?>" width="100%"></a></figure>
  25. <?php } elseif (!empty($img) && empty($post->quote) && empty($post->video) && empty($post->audio)) { ?>
  26. <figure class="entry-cover"><a href="<?php echo $post->url;?>"><img title="<?php echo $post->title;?>" src="<?php echo $img;?>" width="100%"></a></figure>
  27. <?php } ?>
  28. <?php if(!empty($post->video)):?>
  29. <iframe width="100%" height="315px" class="embed-responsive-item media-wrapper" src="https://www.youtube.com/embed/<?php echo get_video_id($post->video); ?>" frameborder="0" allowfullscreen></iframe>
  30. <?php endif;?>
  31. <?php if(!empty($post->audio)):?>
  32. <iframe width="100%" height="200px" class="embed-responsive-item media-wrapper" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<?php echo $post->audio;?>&amp;auto_play=false&amp;visual=true"></iframe>
  33. <?php endif;?>
  34. <?php if(!empty($post->quote)):?>
  35. <div class="post-content">
  36. <blockquote class="quote" style="margin-top:0;"><?php echo $post->quote ?></blockquote>
  37. </div>
  38. <?php endif;?>
  39. <header class="entry-header">
  40. <?php if(!empty($post->link)) { ?>
  41. <h2 class="entry-hint-parent"><a target="_blank" href="<?php echo $post->link;?>"><?php echo $post->title;?></a> <svg fill="none" shape-rendering="geometricPrecision" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" viewBox="0 0 24 24" width="20"><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"></path><path d="M15 3h6v6"></path><path d="M10 14L21 3"></path></svg>
  42. </h2>
  43. <?php } else {?>
  44. <h2 class="entry-hint-parent"><a href="<?php echo $post->url;?>"><?php echo $post->title;?></a></h2>
  45. <?php } ?>
  46. </header>
  47. <div class="entry-content">
  48. <p><?php echo $post->description;?> [...]</p>
  49. </div>
  50. <footer class="entry-footer"><span><?php echo format_date($post->date);?></span>&nbsp;·&nbsp;<?php echo $post->readTime;?> min&nbsp;·&nbsp;<a href="<?php echo $post->authorUrl;?>"><?php echo $post->authorName;?></a><?php if (disqus_count()):?>&nbsp;·&nbsp;<a href="<?php echo $post->url ?>#disqus_thread"> <?php echo i18n('Comments');?></a><?php endif;?><?php if (facebook()):?><a href="<?php echo $post->url ?>#comments"><span><fb:comments-count href=<?php echo $post->url ?>></fb:comments-count> <?php echo i18n('Comments');?></span></a><?php endif;?><?php if(authorized($post)):?></a>&nbsp;·&nbsp;<a href="<?php echo $post->url;?>/edit?destination=post"><?php echo i18n('edit');?></a><?php endif;?></footer>
  51. </article>
  52. <?php endforeach;?>
  53. <footer class="page-footer">
  54. <?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
  55. <nav class="pagination">
  56. <?php if (!empty($pagination['prev'])): ?>
  57. <a href="?page=<?php echo $page - 1 ?>" class="prev"s rel="prev">« <?php echo i18n('Newer'); ?></a>
  58. <?php endif; ?>
  59. <?php if (!empty($pagination['next'])): ?>
  60. <a href="?page=<?php echo $page + 1 ?>" class="next" rel="next"><?php echo i18n('Older'); ?> »</a>
  61. <?php endif; ?>
  62. </nav>
  63. <?php endif;?>
  64. </footer>
  65. <?php if (disqus_count()): ?>
  66. <?php echo disqus_count() ?>
  67. <?php endif; ?>