Raffales-LMS/resources/views/nirvana/partials/seo.blade.php
2024-04-16 15:43:24 +05:45

57 lines
2.6 KiB
PHP

<?php // dd($data); ?>
<title>
<?php if (isset($data)) {
echo ($data->seo_title != "") ? $data->seo_title : $data->title;
echo " | " . SITEVARS->title;
} else {
echo SITEVARS->seo_title;
}
?>
</title>
<meta name="description" content="<?php
if (isset($data)) {
echo ($data->seo_descriptions != "") ? $data->seo_descriptions : SITEVARS->seo_description;
} else {
echo SITEVARS->seo_description;
}
?>">
<meta name="keywords" content="<?php
if (isset($data)) {
echo ($data->seo_keywords != "") ? $data->seo_keywords : SITEVARS->seo_keywords;
} else {
echo SITEVARS->seo_keywords;
}
?>">
<meta name="author" content="Bibhuti Solution Pvt. Ltd.">
<meta name="subject" content="<?php
if (isset($data)) {
echo ($data->seo_descriptions != "") ? $data->seo_descriptions : SITEVARS->seo_description;
} else {
echo SITEVARS->seo_description;
}
?>">
<meta property="og:title" content="<?php if (isset($data)) {
echo ($data->seo_title != "") ? $data->seo_title : $data->title;
echo " | " . SITEVARS->title;
} else {
echo SITEVARS->seo_title;
}
?>">
<meta property="og:description" content="<?php
if (isset($data)) {
echo ($data->seo_descriptions != "") ? $data->seo_descriptions : SITEVARS->seo_description;
} else {
echo SITEVARS->seo_description;
}
?>">
<meta property="og:image" content="<?php echo site_url(SITEVARS->og_image); ?>">
<meta property="og:url" content="<?php echo site_url(); ?>">
<meta property="og:site_name" content="<?php echo SITEVARS->title; ?>">
<?php if(isset($data))
{
echo $data->og_tags;
}
?>