first commit
This commit is contained in:
57
resources/views/nepcoms/partials/seo.blade.php
Normal file
57
resources/views/nepcoms/partials/seo.blade.php
Normal file
@ -0,0 +1,57 @@
|
||||
<?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;
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user