| Server IP : 208.109.34.209 / Your IP : 216.73.217.134 Web Server : Apache System : Linux 209.34.109.208.host.secureserver.net 5.14.0-687.29.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 23 16:18:48 EDT 2026 x86_64 User : oceanproject ( 1012) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/oceanproject/public_html/wp-content/themes/reda/template-parts/post/ |
Upload File : |
<?php
$shareData = array();
$shareData = array('title'=>get_the_title(), 'url'=>get_the_permalink());
$shareImage = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );
if(isset($shareImage[0])) {
$shareImage = $shareImage[0];
$shareData['image'] = $shareImage;
}
; ?>
<div class="post-item animate-text page-bg-color">
<div class="post-image">
<?php reda_blog_image(); ?>
</div>
<div class="post-header">
<div class="post-date accent-color">
<?php
if ( is_single() ) :
reda_posted_on();
else :
echo reda_time_link();
reda_edit_link();
endif;
?>
</div>
<h4 class="post-title header-color"><a href="<?php echo esc_url(get_permalink()); ?>"><?php the_title(); ?></a></h4>
<div class="post-content text-color">
<?php the_excerpt(); ?>
</div>
<div class="post-content-footer">
<?php if(reda_check_share_links()) : ?>
<div class="reda-shares text-left">
<div class="shares-wrapper-inner">
<span class="accent-color"><?php echo esc_html__('Share', 'reda'); ?></span>
<i class="fa fa-share-alt accent-color"></i>
</div>
<?php echo reda_get_share_links($shareData); ?>
</div>
<?php endif; ?>
<div class="post-btn-more text-right">
<a href="<?php echo esc_url(get_permalink()); ?>" class="btn-single btn btn-xs btn-border btn-accent"><span class="btn-text"><?php esc_html_e('Read more', 'reda'); ?></span></a>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>