403Webshell
Server IP : 65.108.144.40  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : dev ( 1000)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/coopermain/wp-content/themes/cooper/components/title-block/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/coopermain/wp-content/themes/cooper/components/title-block/ComponentTitleBlock.php
<?php

namespace LambAgency\Components;

class TitleBlock extends Component
{

    /** @var string  */
    protected $subtitle;

    /** @var string  */
    protected $title;

    /** @var string  */
    protected $intro;


    public function __construct($component = [])
    {
        parent::__construct();

        $this->setSubtitle($component);
        $this->setTitle($component);
        $this->setIntro($component);
    }


    /**
     * Get the subtitle
     * @return string
     */
    public function getSubtitle()
    {
        return $this->subtitle;
    }


    /**
     * Set the subtitle
     * @param $component
     */
    public function setSubtitle($component)
    {
        $this->subtitle = !empty($component['ctb_subtitle']) ? $component['ctb_subtitle'] : '';
    }


    /**
     * Get the title
     *
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }


    /**
     * Set the title
     *
     * @param $component
     */
    public function setTitle($component)
    {
        $this->title = !empty($component['ctb_title']) ? $component['ctb_title'] : '';
    }


    /**
     * Get the intro
     *
     * @return string
     */
    public function getIntro()
    {
        return $this->intro;
    }


    /**
     * Set the intro
     *
     * @param $component
     */
    public function setIntro($component)
    {
        $this->intro = !empty($component['ctb_intro']) ? $component['ctb_intro'] : '';
    }


    /**
     * Return if first module
     */
    public function isInFirstLayout()
    {
        global $layoutIndex;

        return $layoutIndex == 0;
    }


    /**
     * Check if title block should be shown
     *
     * @return bool
     */
    public function showTitleBlock()
    {
        return ($this->title || $this->subtitle || $this->intro);
    }


    /**
     * Renders HTML output of title block
     */
    public function renderTitleBlock()
    {
        include locate_template(COMPONENTS . '/title-block/title-block.php');
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit