<?php
$this->Admin->section(__('Socket', 'awesome-live-chat'))
->add('html', array(
    'x' => 3,
    'html' => '
    <label>'.__('Note', 'awesome-live-chat').'</label>
    <div class="boots-form-input">
        '.sprintf(__('You need to purchase the <a href="%s">Socket.IO server</a> to use sockets.', 'awesome-live-chat'), 'http://awe5o.me/live-chat-server').'
    </div>
    '
))->add('select', array(
    'title' => __('Use Socket', 'awesome-live-chat'),
    'id'    => 'alc_settings_socket_socket',
    'name'  => 'alc_settings[socket][socket]',
    'help'  => __('Use socket server?', 'awesome-live-chat'),
    'data'  => array(
        'no'  => __('No', 'awesome-live-chat'),
        'yes' => __('Yes', 'awesome-live-chat')
    ), 'value' => $Settings['socket']
))->add('textbox', array(
    'title' => __('Server Host', 'awesome-live-chat'),
    'id'    => 'alc_settings_socket_host',
    'name'  => 'alc_settings[socket][host]',
    'help'  => sprintf(__('Socket server host. E.g. %s', 'awesome-live-chat'), '<code>http://127.0.0.1</code>'),
    'value' => $Settings['host']
))->add('textbox', array(
    'title' => __('Server Port', 'awesome-live-chat'),
    'id'    => 'alc_settings_socket_port',
    'name'  => 'alc_settings[socket][port]',
    'help'  => sprintf(__('Socket server port. E.g. %s', 'awesome-live-chat'), '<code>3000</code>'),
    'value' => $Settings['port']
));