HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpprm/wp-content/themes/ronneby/templates/entry-meta/mini-share-blog.php
<?php
if ( ! defined( 'ABSPATH' ) ) { exit; }
	$data_title = get_the_title();
	$data_link = get_permalink();
				
	$shared_image = get_the_post_thumbnail_url();

	if(!$shared_image) {
		$shared_image = get_template_directory_uri() . '/assets/images/no_image_resized_480-360.jpg';
	}
?>
<div class="dfd-blog-share-popup-wrap" data-directory="<?php echo get_template_directory_uri(); ?>" data-url="<?php echo esc_url($data_link) ?>" data-text="<?php _e('Share','dfd') ?>" data-title="<?php _e('Share','dfd') ?>">
	<div class="box">
		<div class="dfd-share-icons">
			<ul class="rrssb-buttons">
				<li class="rrssb-facebook facebook soc_icon-facebook">
					<!--  Replace with your URL. For best results, make sure you page has the proper FB Open Graph tags in header:
						  https://developers.facebook.com/docs/opengraph/howtos/maximizing-distribution-media-content/ -->
					<a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo esc_attr($data_link) ?>" class="popup"></a>
				</li>
				<li class="rrssb-linkedin linkedin soc_icon-linkedin">
					<!-- Replace href with your meta and URL information -->
					<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=<?php echo esc_attr($data_link) ?>" class="popup"></a>
				</li>
				<li class="rrssb-pinterest pinterest soc_icon-pinterest">
					<!-- Replace href with your meta and URL information.  -->
					<a href="http://pinterest.com/pin/create/button/?url=<?php echo esc_attr($data_link) ?>&image_url=<?php echo esc_url($shared_image) ?>" class="popup"></a>
				</li>
				<li class="rrssb-twitter twitter soc_icon-twitter-3">
					<!-- Replace href with your Meta and URL information  -->
					<a href="https://twitter.com/intent/tweet?text=<?php echo esc_attr($data_link) ?>" class="popup"></a>
				</li>
			</ul>
		</div>
		<div class="dfd-share-title box-name"><?php esc_html_e('Share','dfd') ?></div>
	</div>
</div>