Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/syn.corals.io/Corals/modules/CMS/Traits/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/syn.corals.io/Corals/modules/CMS/Traits/SEOTools.php
<?php

namespace Corals\Modules\CMS\Traits;

use Corals\Modules\CMS\Contracts\SEOFriendly;

trait SEOTools
{
    /**
     * @return \Corals\Modules\CMS\Contracts\SEOTools
     */
    protected function seo()
    {
        return app('seotools');
    }

    /**
     * @param SEOFriendly $friendly
     *
     * @return \Corals\Modules\CMS\Contracts\SEOTools
     */
    protected function loadSEO(SEOFriendly $friendly)
    {
        $SEO = $this->seo();

        $friendly->loadSEO($SEO);

        return $SEO;
    }

    protected function setSEO($item)
    {
        $this->seo()->setTitle($item->title . ' | ' . \Settings::get('site_name', 'Corals'));
        $this->seo()->setDescription($item->meta_description);
        $this->seo()->opengraph()->setUrl($item->url);
        $this->seo()->opengraph()->addProperty('type', $item->type);

        if (property_exists($item, 'image')) {
            $this->seo()->opengraph()->addProperty('image', $item->image);
        }

        if (property_exists($item, 'meta_keywords')) {
            $this->seo()->setKeywords($item->meta_keywords);
        }
    }
}

Spamworldpro Mini