Notes
![]() ![]() Notes - notes.io |
defined( 'ABSPATH' ) || exit; // Exit if accessed directly
get_header();
global $post;
?>
<?php do_action('kanews_header_ad'); ?>
<main id="main" class="site-main">
<div class="container">
<div class="row">
<div class="site-main-wrapper">
<div class="site-main-inner d-flex flex-wrap">
<?php
while ( have_posts() ) : the_post(); ?>
<?php
$pid = get_the_ID();
?>
<div class="d-flex flex-wrap">
<div class="col-12 col-lg-9 kanews-sticky kgs2 mb-1">
<article id="post-<?php echo $pid; ?>" <?php post_class('kanews-article kanews-section-box kanews-article-1'); ?>>
<?php kanews_entry_header(); ?>
<?php kanews_post_featured($pid); ?>
<?php kanews_entry_assets(); ?>
<div class="kanews-prev-post-link" hidden><?php previous_post_link('%link', '', FALSE); ?></div>
<div class="kanews-article-content entry-content">
<?php
// Entry Below
do_action('kanews_entry_below', $pid);
// Content
echo '<div class="entry-content-wrapper">';
echo '<div class="entry-content-inner">';
the_content();
// Links
kanews_link_pages();
echo '</div>';
echo '</div>';
// Entry Above
do_action('kanews_entry_above', $pid);
?>
</div>
</article>
<?php do_action('kanews_entry_comment_above'); ?>
<?php if ( comments_open() || get_comments_number() ) :
comments_template();
endif; ?>
</div>
<div class="col-12 col-lg-3 sidebar-right kanews-sticky">
<div class="row" role="complementary">
<div class="col-12">
<div class="kanews-section">
<div class="kanews-profile-card-wrapper">
<div class="kanews-profile-header d-flex flex-column align-items-center justify-content-center">
<a href="<?php echo esc_url(get_author_posts_url( get_the_author_meta( 'ID',$post->post_author ) )); ?>" class="kanews-panel-user-avatar">
<?php echo kanews_user_avatar(get_the_author_meta('ID',$post->post_author),'90'); ?>
</a>
<div class="kanews-profile-nick">
<div class="display_name"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID',$post->post_author ) ); ?>"><?php echo esc_html(get_the_author_meta('display_name',$post->post_author)); ?> <?php echo kanews_user_subscribe_badge($post->post_author); ?></a></div>
<div class="kanews-profile-badges">
<?php echo user_badge($post->post_author); ?>
</div>
</div>
<div class="kanews-profile-content">
<?php if(get_the_author_meta('description',$post->post_author)): ?>
<p><?php echo esc_html(get_the_author_meta('description',$post->post_author)); ?></p>
<?php endif; ?>
<div class="kanews-article-share">
<?php $twitter = get_the_author_meta('twitter_profile',$post->post_author); if($twitter): ?> <a rel="external nofollow noopener" target="_blank" class="social-link bg-twitter" href="https://www.twitter.com/<?php echo esc_attr($twitter); ?>"><i class="icon-twitter"></i></a><?php endif; ?>
<?php $facebook = get_the_author_meta('facebook_profile',$post->post_author); if($facebook): ?><a rel="external nofollow noopener" target="_blank" class="bg-facebook" href="https://www.facebook.com/<?php echo esc_attr($facebook); ?>"><i class="icon-facebook"></i></a> <?php endif; ?>
<?php $instagram = get_the_author_meta('instagram_profile',$post->post_author); if($instagram): ?><a rel="external nofollow noopener" target="_blank" class="bg-instagram" href="https://www.instagram.com/<?php echo esc_attr($instagram); ?>"><i class="icon-instagram"></i></a> <?php endif; ?>
<?php $linkedin = get_the_author_meta('linkedin_profile',$post->post_author); if($linkedin): ?><a rel="external nofollow noopener" target="_blank" class="bg-linkedin" href="https://www.linkedin.com/<?php echo esc_attr($linkedin); ?>"><i class="icon-linkedin"></i></a> <?php endif; ?>
<?php $youtube = get_the_author_meta('youtube_profile',$post->post_author); if($youtube): ?><a rel="external nofollow noopener" target="_blank" class="bg-youtube" href="https://www.youtube.com/channel/<?php echo esc_attr($youtube); ?>"><i class="icon-video"></i></a> <?php endif; ?>
</div>
</div>
<a class="kanews-btn kanews-btn-block kanews-btn-sm kanews-btn-o m-1 mb-0" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>"><?php esc_html_e( 'Diğer Yazıları', 'kanews' ); ?></a>
</div>
</div>
</div>
</div>
<?php
$kanews_query = new WP_Query(
array(
'author__in' => array(get_post_field ('post_author', $pid)),
'post_type' => 'columist',
'showposts' => 10,
'post__not_in' => array($pid)
)
);
?>
<?php if ($kanews_query->have_posts()) : ?>
<div class="col-12">
<div class="kanews-section">
<?php echo kanews_widget_title(sprintf(esc_html__( 'Diğer %s Yazıları', 'kanews' ), get_the_author_meta('display_name', $post->post_author))); ?>
<div class="kanews-scroll" style="max-height: 410px">
<?php while($kanews_query->have_posts()): $kanews_query->the_post(); global $post; ?>
<div class="kanews-post-item kanews-post-grid-item kanews-post-small-item">
<a href="<?php the_permalink(); ?>" class="kanews-post-href"></a>
<?php kanews_post_thumbnail('thumbnail', 'kanews-post-thumb'); ?>
<div class="kanews-post-content">
<?php the_title( sprintf( '<h3 class="kanews-post-headline truncate truncate-2"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' ); ?>
<?php echo kanews_post_date(); ?>
</div>
</div>
<?php endwhile; wp_reset_postdata(); ?>
</div>
</div>
</div>
<?php endif; ?>
<div class="col-12">
<?php
$qargs = array (
'include' => array( 1, 2, 3 ),
'exclude' => $post->post_author,
);
$wp_user_query = new WP_User_Query( $qargs );
$authors = $wp_user_query->get_results();
if($authors): ?>
<div class="kanews-section kanews_widget_authors">
<?php echo kanews_widget_title(esc_html__( 'Yazarlar', 'kanews' )); ?>
<div class="kanews_scroll" style="max-height: 400px">
<?php foreach ( $authors as $author ) { ?>
<div class="kanews-post-item kanews-post-grid-item kanews-post-small-item">
<div class="kanews-post-thumb">
<a class="author-name" href="<?php echo esc_url(get_author_posts_url( get_the_author_meta( 'ID', $author->ID )) ); ?>"><?php echo kanews_user_avatar(get_the_author_meta('ID', $author->ID),'70'); ?></a>
</div>
<div class="kanews-post-content">
<a class="kanews-post-headline" href="<?php echo esc_url(get_author_posts_url( get_the_author_meta( 'ID', $author->ID ) )); ?>">
<?php if(get_the_author_meta('first_name', $author->ID) && get_the_author_meta('last_name', $author->ID)): ?>
<?php echo esc_html(get_the_author_meta('first_name', $author->ID)); ?> <?php echo esc_html(get_the_author_meta('last_name', $author->ID)); ?>
<?php else: ?>
<?php echo esc_html(get_the_author_meta('display_name', $author->ID)); ?>
<?php endif; ?>
</a>
<div class="kanews-article-share">
<?php $twitter = get_the_author_meta('twitter_profile', $author->ID); if($twitter): ?> <a rel="external nofollow noopener" target="_blank" class="social-link bg-twitter" href="https://www.twitter.com/<?php echo esc_attr($twitter); ?>"><i class="icon-twitter"></i></a><?php endif; ?>
<?php $facebook = get_the_author_meta('facebook_profile', $author->ID); if($facebook): ?><a rel="external nofollow noopener" target="_blank" class="bg-facebook" href="https://www.facebook.com/<?php echo esc_attr($facebook); ?>"><i class="icon-facebook"></i></a> <?php endif; ?>
<?php $instagram = get_the_author_meta('instagram_profile', $author->ID); if($instagram): ?><a rel="external nofollow noopener" target="_blank" class="bg-instagram" href="https://www.instagram.com/<?php echo esc_attr($instagram); ?>"><i class="icon-instagram"></i></a> <?php endif; ?>
<?php $linkedin = get_the_author_meta('linkedin_profile', $author->ID); if($linkedin): ?><a rel="external nofollow noopener" target="_blank" class="bg-linkedin" href="https://www.linkedin.com/<?php echo esc_attr($linkedin); ?>"><i class="icon-linkedin"></i></a> <?php endif; ?>
<?php $youtube = get_the_author_meta('youtube_profile', $author->ID); if($youtube): ?><a rel="external nofollow noopener" target="_blank" class="bg-youtube" href="https://www.youtube.com/channel/<?php echo esc_attr($youtube); ?>"><i class="icon-video"></i></a> <?php endif; ?>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php endwhile;
?>
</div>
</div>
</div>
</div>
</main>
<?php
get_footer();
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team