Edit File: content.php
<?php /** * orun Post Layout Template * * @author orun */ defined('ABSPATH') || exit; // Exit directly $options = get_option('orun_opt'); // Options $metabox_options = get_post_meta(get_the_ID(), 'orun_post_opt', true); // Metabox Options /* Post Layout */ if (empty($metabox_options['orun-meta-opt-post-layout'])) { $post_layout = $options['orun-opt-post-layout']; } elseif ($metabox_options['orun-meta-opt-post-layout'] == 'default') { $post_layout = $options['orun-opt-post-layout']; } elseif (!empty($metabox_options['orun-meta-opt-post-layout'])) { $post_layout = $metabox_options['orun-meta-opt-post-layout']; } else { $post_layout = 1; } /* Sidebar Layout */ if (empty($metabox_options['orun-meta-opt-sidebar-layout'])) { $sidebar_layout = $options['orun-opt-sidebar-layout']; } elseif ($metabox_options['orun-meta-opt-sidebar-layout'] == 'default') { $sidebar_layout = $options['orun-opt-sidebar-layout']; } elseif (!empty($metabox_options['orun-meta-opt-sidebar-layout'])) { $sidebar_layout = $metabox_options['orun-meta-opt-sidebar-layout']; } else { $sidebar_layout = 'right-sidebar'; } if (empty($post_layout)) { if (!empty($options['orun-opt-post-layout'])) { $post_layout = $options['orun-opt-post-layout']; } else { $post_layout = 1; } } if (empty($sidebar_layout)) { if (!empty($options['orun-opt-sidebar-layout'])) { $sidebar_layout = $options['orun-opt-sidebar-layout']; } else { $sidebar_layout = 'right-sidebar'; } } if ($options['orun-opt-a-animate'] == true) { echo ' <style> .orun-single-text p a { text-decoration: none; background-image: linear-gradient( transparent 2px, #2ed392 2px, #2ed392 4px, transparent 4px ), linear-gradient( transparent 2px, #d8dce9 2px, #d8dce9 4px, transparent 4px ); background-size: 0% 6px, 100% 6px; background-position: 0 bottom, 0 bottom; transition: background-size 0.3s ease-in-out; background-repeat: no-repeat; padding-bottom: 4px; font-weight: 600; } .orun-single-text p a:after { content: "\1F517"; margin: 1px; } .orun-single-text p a:hover { color: #115cfa; background-size: 100% 6px; } </style> '; } ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div id="orun-home-area" class="container <?php echo 'post-layout-' . $post_layout; ?> <?php echo $sidebar_layout; ?>"> <?php if ($post_layout == 3) { orun_single_ads_top(); do_action('orun/single_header'); } elseif ($post_layout == 4) { orun_single_ads_top(); echo '<div class="entry-header">'; if ($options['orun-opt-single-heading-design'] == 'head-2') { orun_single_breadcrumb(); post_breadcrumb_schema(); echo '<div class="orun-single-heading center">'; echo '<h1>'; the_title(); echo '</h1>'; if ( !empty($metabox_options['orun-meta-opt-summary']) ) { echo '<p>' . $metabox_options['orun-meta-opt-summary'] . '</pre>'; } echo '</div>'; ?> <div class="entry-meta"> <div class="posted-on"> <span class="label">Son güncelleme: </span> <?php orun_posted_on(); ?> </div> <div class="author vcard"> <img src="<?php echo esc_url(get_avatar_url(get_the_author_meta('ID'))); ?>" class="avatar avatar-96 photo" alt="<?php echo get_the_author_meta('display_name'); ?>" height="96" width="96" loading="lazy" decoding="async"> </div> <div class="author-wrap"> <span class="label">Yazar</span> <a rel="nofollow" href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" title="<?php echo get_the_author_meta('display_name') ?> tarafından yazılmış tüm yazıları görüntüle" rel="author"> <span class="author-name" itemprop="name"> <?php echo get_the_author_meta('display_name') ?> </span> </a> </div> </div> <div class="orun-meta-right center"> <?php if (empty($metabox_options['orun-meta-opt-metabox-views'])) { if ($options['orun-opt-single-views'] == true) { get_template_part('template-parts/single/post', 'views'); } else { echo ''; } } elseif ($metabox_options['orun-meta-opt-metabox-views'] == 'show') { get_template_part('template-parts/single/post', 'views'); } elseif ($metabox_options['orun-meta-opt-metabox-views'] == 'hide') { echo ''; } if (empty($metabox_options['orun-meta-opt-metabox-comment-count'])) { if ($options['orun-opt-single-comment'] == true) { ?> <span><i class="far fa-comment"></i> <?php echo get_comments_number(); ?> </span> <?php } else { echo ''; } } elseif ($metabox_options['orun-meta-opt-metabox-comment-count'] == 'show') { ?> <span><i class="far fa-comment"></i> <?php echo get_comments_number(); ?> </span> <?php } elseif ($metabox_options['orun-meta-opt-metabox-comment-count'] == 'hide') { echo ''; } ?> </div> <?php } elseif ($options['orun-opt-single-heading-design'] == 'head-1') { do_action('orun/single_header'); } do_action('orun/single_thumbnail'); echo '</div>'; } elseif ($post_layout == 5) { orun_single_ads_top(); do_action('orun/single_thumbnail'); } ?> <div class="row"> <?php if ($sidebar_layout == 'left-sidebar') { get_sidebar(); } ?> <div id="orun-home-main" class="orun-single-area"> <?php if ($post_layout == 1 || $post_layout == 2 || $post_layout == 3 || $post_layout == 5) { ?> <div class="entry-header"> <?php if ($post_layout == 1) { orun_single_ads_top(); if ($options['orun-opt-single-heading-design'] == 'head-2') { orun_single_breadcrumb(); post_breadcrumb_schema(); echo '<div class="orun-single-heading" style="text-align:center;justify-content:center;">'; echo '<h1>'; the_title(); echo '</h1>'; if ( !empty($metabox_options['orun-meta-opt-summary']) ) { echo '<p>' . $metabox_options['orun-meta-opt-summary'] . '</pre>'; } echo '</div>'; ?> <div class="entry-meta"> <div class="posted-on"> <span class="label">Son güncelleme: </span> <?php orun_posted_on(); ?> </div> <div class="author vcard"> <img src="<?php echo esc_url(get_avatar_url(get_the_author_meta('ID'))); ?>" class="avatar avatar-96 photo" alt="<?php echo get_the_author_meta('display_name'); ?>" height="96" width="96" loading="lazy" decoding="async"> </div> <div class="author-wrap"> <span class="label">Yazar</span> <a rel="nofollow" href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" title="<?php echo get_the_author_meta('display_name') ?> tarafından yazılmış tüm yazıları görüntüle" rel="author"> <span class="author-name" itemprop="name"> <?php echo get_the_author_meta('display_name') ?> </span> </a> </div> </div> <div class="orun-meta-right center"> <?php if (empty($metabox_options['orun-meta-opt-metabox-views'])) { if ($options['orun-opt-single-views'] == true) { get_template_part('template-parts/single/post', 'views'); } else { echo ''; } } elseif ($metabox_options['orun-meta-opt-metabox-views'] == 'show') { get_template_part('template-parts/single/post', 'views'); } elseif ($metabox_options['orun-meta-opt-metabox-views'] == 'hide') { echo ''; } if (empty($metabox_options['orun-meta-opt-metabox-comment-count'])) { if ($options['orun-opt-single-comment'] == true) { ?> <span><i class="far fa-comment"></i> <?php echo get_comments_number(); ?> </span> <?php } else { echo ''; } } elseif ($metabox_options['orun-meta-opt-metabox-comment-count'] == 'show') { ?> <span><i class="far fa-comment"></i> <?php echo get_comments_number(); ?> </span> <?php } elseif ($metabox_options['orun-meta-opt-metabox-comment-count'] == 'hide') { echo ''; } ?> </div> <?php } elseif ($options['orun-opt-single-heading-design'] == 'head-1') { do_action('orun/single_header'); } if ($options['orun-opt-single-share-buttons-position'] == 'top' || $options['orun-opt-single-share-buttons-position'] == 'both') { orun_single_share(); } do_action('orun/single_thumbnail'); } elseif ($post_layout == 2) { orun_single_ads_top(); do_action('orun/single_thumbnail'); if ($options['orun-opt-single-heading-design'] == 'head-2') { orun_single_breadcrumb(); post_breadcrumb_schema(); echo '<div class="orun-single-heading center">'; echo '<h1>'; the_title(); echo '</h1>'; if ( !empty($metabox_options['orun-meta-opt-summary']) ) { echo '<p>' . $metabox_options['orun-meta-opt-summary'] . '</pre>'; } echo '</div>'; ?> <div class="entry-meta"> <div class="posted-on"> <span class="label">Son güncelleme: </span> <?php orun_posted_on(); ?> </div> <div class="author vcard"> <img src="<?php echo esc_url(get_avatar_url(get_the_author_meta('ID'))); ?>" class="avatar avatar-96 photo" alt="<?php echo get_the_author_meta('display_name'); ?>" height="96" width="96" loading="lazy" decoding="async"> </div> <div class="author-wrap"> <span class="label">Yazar</span> <a rel="nofollow" href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" title="<?php echo get_the_author_meta('display_name') ?> tarafından yazılmış tüm yazıları görüntüle" rel="author"> <span class="author-name" itemprop="name"> <?php echo get_the_author_meta('display_name') ?> </span> </a> </div> </div> <div class="orun-meta-right center"> <?php if (empty($metabox_options['orun-meta-opt-metabox-views'])) { if ($options['orun-opt-single-views'] == true) { get_template_part('template-parts/single/post', 'views'); } else { echo ''; } } elseif ($metabox_options['orun-meta-opt-metabox-views'] == 'show') { get_template_part('template-parts/single/post', 'views'); } elseif ($metabox_options['orun-meta-opt-metabox-views'] == 'hide') { echo ''; } if (empty($metabox_options['orun-meta-opt-metabox-comment-count'])) { if ($options['orun-opt-single-comment'] == true) { ?> <span><i class="far fa-comment"></i> <?php echo get_comments_number(); ?> </span> <?php } else { echo ''; } } elseif ($metabox_options['orun-meta-opt-metabox-comment-count'] == 'show') { ?> <span><i class="far fa-comment"></i> <?php echo get_comments_number(); ?> </span> <?php } elseif ($metabox_options['orun-meta-opt-metabox-comment-count'] == 'hide') { echo ''; } ?> </div> <?php } elseif ($options['orun-opt-single-heading-design'] == 'head-1') { do_action('orun/single_header'); } } elseif ($post_layout == 3) { do_action('orun/single_thumbnail'); } elseif ($post_layout == 5) { if ($options['orun-opt-single-heading-design'] == 'head-2') { orun_single_breadcrumb(); post_breadcrumb_schema(); echo '<div class="orun-single-heading center">'; echo '<h1>'; the_title(); echo '</h1>'; if ( !empty($metabox_options['orun-meta-opt-summary']) ) { echo '<p>' . $metabox_options['orun-meta-opt-summary'] . '</pre>'; } echo '</div>'; ?> <div class="entry-meta"> <div class="posted-on"> <span class="label">Son güncelleme: </span> <?php orun_posted_on(); ?> </div> <div class="author vcard"> <img src="<?php echo esc_url(get_avatar_url(get_the_author_meta('ID'))); ?>" class="avatar avatar-96 photo" alt="<?php echo get_the_author_meta('display_name'); ?>" height="96" width="96" loading="lazy" decoding="async"> </div> <div class="author-wrap"> <span class="label">Yazar</span> <a rel="nofollow" href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" title="<?php echo get_the_author_meta('display_name') ?> tarafından yazılmış tüm yazıları görüntüle" rel="author"> <span class="author-name" itemprop="name"> <?php echo get_the_author_meta('display_name') ?> </span> </a> </div> </div> <div class="orun-meta-right center"> <?php if (empty($metabox_options['orun-meta-opt-metabox-views'])) { if ($options['orun-opt-single-views'] == true) { get_template_part('template-parts/single/post', 'views'); } else { echo ''; } } elseif ($metabox_options['orun-meta-opt-metabox-views'] == 'show') { get_template_part('template-parts/single/post', 'views'); } elseif ($metabox_options['orun-meta-opt-metabox-views'] == 'hide') { echo ''; } if (empty($metabox_options['orun-meta-opt-metabox-comment-count'])) { if ($options['orun-opt-single-comment'] == true) { ?> <span><i class="far fa-comment"></i> <?php echo get_comments_number(); ?> </span> <?php } else { echo ''; } } elseif ($metabox_options['orun-meta-opt-metabox-comment-count'] == 'show') { ?> <span><i class="far fa-comment"></i> <?php echo get_comments_number(); ?> </span> <?php } elseif ($metabox_options['orun-meta-opt-metabox-comment-count'] == 'hide') { echo ''; } ?> </div> <?php } elseif ($options['orun-opt-single-heading-design'] == 'head-1') { do_action('orun/single_header'); } } ?> </div> <?php } ?> <div class="entry-content orun-single-text"> <?php do_action('orun/entry_content'); ?> </div> <div class="entry-footer"> <?php orun_single_tags(); if ($options['orun-opt-single-share-buttons-position'] == 'bottom' || $options['orun-opt-single-share-buttons-position'] == 'both') { orun_single_share(); } do_action('orun/entry_footer'); ?> </div> <?php do_action('orun/after_entry_footer'); ?> </div> <?php if ($sidebar_layout == 'right-sidebar') { get_sidebar(); } ?> </div> </div> <script> const h1Element = document.querySelector('h1.h1-off'); if (h1Element) { h1Element.remove(); } </script> </article>