NexusLeads Webshell
NexusLeads


Server : LiteSpeed
System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : alsaif ( 1057)
PHP Version : 7.4.33
Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/alsaif/public_html/templates/startsik/html/layouts/joomla/content/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alsaif/public_html/templates/startsik/html/layouts/joomla/content/open_graph.php
<?php
/**
 * @package Helix Ultimate Framework
 * @author JoomShaper https://www.joomshaper.com
 * @copyright Copyright (c) 2010 - 2018 JoomShaper
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later
*/

defined ('JPATH_BASE') or die();

extract($displayData);

$doc = \JFactory::getDocument();
$config = \JFactory::getConfig();
$sitename = $config->get('sitename');

// Facebook
$doc->addCustomTag('<meta property="og:type" content="article" />');
$doc->addCustomTag('<meta property="og:url" content="'. \JURI::current() . '" />');
$doc->addCustomTag('<meta property="og:title" content="'. htmlspecialchars($title ) .'" />');
$doc->addCustomTag('<meta property="og:description" content="'. \JHtml::_('string.truncate', (strip_tags($content)), 150) .'" />');

if(isset($image) && $image)
{
    $doc->addCustomTag('<meta property="og:image" content="'. \JURI::root().ltrim($image, '/') .'" />');
}

if(isset($fb_app_id) && $fb_app_id)
{
    $doc->addCustomTag('<meta property="fb:app_id" content="'. (int) $fb_app_id . '" />');
}

$doc->addCustomTag('<meta property="og:site_name" content="'. htmlspecialchars($sitename) .'" />');

// Twitter
$doc->addCustomTag('<meta name="twitter:description" content="'. \JHtml::_('string.truncate', (strip_tags($content)), 150) .'" />');

if(isset($image) && $image)
{
    $doc->addCustomTag('<meta name="twitter:image:src" content="'. \JURI::root().ltrim($image, '/') .'" />');
}

if(isset($twitter_site) && $twitter_site)
{
    $doc->addCustomTag('<meta name="twitter:site" content="@'. htmlspecialchars($twitter_site) .'" />');
}

$doc->addCustomTag('<meta name="twitter:card" content="summary_large_image" />');

NexusLeads