HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/tops.komma.pro/wwwroot/lib/content/call_us.class.php
<?php
/**
 * generate_content.class.php
 * Created by Komma Mediadesign.
 * Author: mike
 * Date: 12/02/14
 */

class Call_Us extends Content_Block
{
    /*
    * Constructor
    */
    public function __construct($xml)
    {
        parent::__construct();

        $this->block = $xml->call_us;
    }

    /*
     * Get Call Us row
     */
    protected function getCallUs($obj)
    {
        $text = $obj->text;
        $btn = $obj->btn;
        $name = $obj->name;
        $lastName = $obj->lastName;
        $function = $obj->function;

        $output = '<section class="call_us">

                        <span class="phone">
                            ' . $text. '
                            <a class="btn" href="' . LANG_ROOT . $this->urls['offer'] . '">
                                <span class="label">' . $btn . '<span class="arrow"></span></span>
                                <span class="hover"></span>
                                <span class="up"></span>
                            </a>
                        </span>

                        <span class="person">
                            <img src="/public/images/static/people/' . strtolower($name) .'.png" alt="' . $name . ' ' . $lastName . '" />
                            <span class="info">
                                <span itemscope="itemscope" itemtype="http://www.data-vocabulary.org/Person/" title="Firstname Lastname">
                                    ' . $name . ' ' . $lastName . '<br />
                                </span>
                                <span class="function">' . $function. '</span>
                            </span>
                        </span>


                        <div class="clear"></div></section>';
        return $output;
    }


    /*
     * Get Call Us row
     */
    protected function getCallUsNoButton($obj)
    {
        $text = $obj->text;
        $name = $obj->name;
        $lastName = $obj->lastName;
        $function = $obj->function;

        $output = '<section class="call_us">

                        <span class="phone">
                            ' . $text. '
                        </span>

                        <span class="person">
                            <img src="/public/images/static/people/' . strtolower($name) .'.png" alt="' . $name . ' ' . $lastName . '" />
                            <span class="info">
                                <span itemscope="itemscope" itemtype="http://www.data-vocabulary.org/Person/" title="Firstname Lastname">
                                    ' . $name . ' ' . $lastName . '<br />
                                </span>
                                <span class="function">' . $function. '</span>
                            </span>
                        </span>


                        <div class="clear"></div></section>';
        return $output;
    }

}