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/wpamazingsecret/wp-content/themes/porto/views/posts/single/share.php
<?php
global $porto_settings;

$share = porto_get_meta_value( 'post_share' );
if ( $porto_settings['share-enable'] && 'no' !== $share && ( 'yes' === $share || ( 'yes' !== $share && ! empty( $porto_settings['post-share'] ) ) ) ) : ?>
	<?php
		$classes = array( 'post-share' );
	if ( ! isset( $style ) || 'inline' != $style ) {
		$classes[] = 'post-block';
	}
	if ( isset( $porto_settings['post-share-position'] ) && 'advance' === $porto_settings['post-share-position'] ) {
		$classes[] = 'post-share-advance';
	}
	?>
	<div class="<?php echo implode( ' ', $classes ); ?>">
		<?php if ( isset( $style ) && 'inline' == $style ) : ?>
			<span><i class="fas fa-share-alt"></i><?php esc_html_e( 'Share:', 'porto' ); ?></span>
		<?php elseif ( isset( $porto_settings['post-title-style'] ) && 'without-icon' == $porto_settings['post-title-style'] ) : ?>
			<h3><?php esc_html_e( 'Share this post', 'porto' ); ?></h3>
		<?php else : ?>
			<h3><i class="fas fa-share"></i><?php esc_html_e( 'Share this post', 'porto' ); ?></h3>
		<?php endif; ?>
		<?php if ( isset( $porto_settings['post-share-position'] ) && 'advance' === $porto_settings['post-share-position'] ) : ?>
			<div class="post-share-advance-bg">
				<?php get_template_part( 'share' ); ?>
				<i class="fas fa-share-alt"></i>
			</div>
		<?php else : ?>
			<?php get_template_part( 'share' ); ?>
		<?php endif; ?>
	</div>
	<?php
endif;