Single Post Meta
Thumbnail

PugPHP
h1.heading-default-m.heading-xsmall-s.heading-xxsmall.text-large-weight.uk-margin-bottom.text-small-spacing=i.title .uk-flex.uk-flex-between.uk-flex-wrap div ul.uk-navbar.uk-margin-small-bottom.uk-margin-remove-bottom-s each k in i.meta li.uk-text-primary.uk-margin-right img(src=k.icon uk-svg) | span.text-default-s.text-xsmall=k.text div ul.uk-navbar.uk-margin-remove-bottom li .line-it-button(data-lang="zh_Hant" data-type="share-a" data-ver="2" data-url="https://media.line.me/zh_TW/how_to_install" style="display: none;") script(src="https://d.line-scdn.net/r/web/social-plugin/js/thirdparty/loader.min.js" async="async" defer="defer") li.uk-padding-remove.uk-position-relative(style='top: 0px; margin-left: .3rem;') .fb-like(data-href="https://developers.facebook.com/docs/plugins/" data-layout="button_count" data-action="like" data-size="small" data-show-faces="false" data-share="false") hr.uk-margin-bottom(style='border-color: #fc9202;')
<h1 class="heading-default-m heading-xsmall-s heading-xxsmall text-large-weight uk-margin-bottom text-small-spacing"><?php echo esc_html(get_the_title()); ?></h1> <div class="uk-flex uk-flex-between uk-flex-wrap"> <div> <ul class="uk-navbar uk-margin-small-bottom uk-margin-remove-bottom-s"> <li class="uk-text-primary uk-margin-right"><img src="<?php echo get_template_directory_uri(); ?>/assets/img/icon-calendar_orange.svg" uk-svg> <span class="text-default-s text-xsmall"><?php echo esc_html(get_the_date('Y-m-d')); ?></span></li> <li class="uk-text-primary uk-margin-right uk-flex uk-flex-middle"><img src="<?php echo get_template_directory_uri(); ?>/assets/img/icon-views.svg" uk-svg> <?php echo do_shortcode('[post-views]'); ?></li> <li class="uk-text-primary uk-margin-right"><img src="<?php echo get_template_directory_uri(); ?>/assets/img/icon-pen.svg" uk-svg> <span class="text-default-s text-xsmall"><?php echo (get_field('post_report'))?esc_html(get_field('post_report')):esc_html(get_the_author()); ?> 報導</span></li> </ul> </div> <div> <ul class="uk-navbar uk-margin-remove-bottom"> <li> <div class="line-it-button" data-lang="zh_Hant" data-type="share-a" data-ver="2" data-url="<?php echo esc_url(get_the_permalink()); ?>" style="display: none;"></div> <script src="https://d.line-scdn.net/r/web/social-plugin/js/thirdparty/loader.min.js" async="async" defer="defer"></script> </li> <li class="uk-padding-remove uk-position-relative" style="top: 0px; margin-left: .3rem;"> <div class="fb-like" data-href="<?php echo esc_url(get_the_permalink()); ?>" data-layout="button_count" data-action="like" data-size="small" data-show-faces="false" data-share="false"></div> </li> </ul> </div> </div> <hr class="uk-margin-bottom" style="border-color: #fc9202;">