/** * MH Elegance Post Meta */ function mh_elegance_post_meta() { $mh_elegance_options = mh_elegance_theme_options(); $post_date = !$mh_elegance_options['post_meta_date']; $post_author = !$mh_elegance_options['post_meta_author']; $post_comments = !$mh_elegance_options['post_meta_comments']; if ($post_date || $post_author || $post_comments) { echo '<p class="entry-meta">'; if ($post_date) { echo sprintf(_x('Veröffentlicht am %s', 'post date', 'mh-elegance'), '<span class="updated">' . get_the_date() . '</span>'); } if ($post_author) { echo sprintf(_x('von %s', 'post author', 'mh-elegance'), '<span class="vcard author"><a class="fn" href="' . esc_url(get_author_posts_url(get_the_author_meta('ID'))) . '">' . esc_html(get_the_author()) . '</a></span>'); } if ($post_comments) { echo __('Comments:', 'mh-elegance') . ' <span>' . sprintf(_nx('1 Comment', '%1$s Comments', get_comments_number(), 'comments number', 'mh-elegance'), number_format_i18n(get_comments_number())) . '</span>'; } echo '</p>'; } }
<?php $mh_elegance_options = mh_elegance_theme_options(); ?> <!DOCTYPE html> <html class="no-js" <?php language_attributes(); ?> > <head> <meta charset="<?php bloginfo('charset'); ?> "> <title><?php wp_title('|', true, 'right'); ?> </title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?> " /> <?php wp_head(); if (preg_match('/gaesteliste/', get_permalink())) { ?> <script src="//cdnjs.cloudflare.com/ajax/libs/list.js/1.2.0/list.min.js"></script> <?php }