<?php
/**
 * app/plugins/contact/plugin.php
 *
 * This houses all of the main plugin info and functionality.
 *
 * @package TP Contact
 * @version 3.0
 * @author  Joey Kimsey <Joey@thetempusproject.com>
 * @link    https://TheTempusProject.com
 * @license https://opensource.org/licenses/MIT [MIT LICENSE]
 */
namespace TheTempusProject\Plugins;

use TheTempusProject\Classes\Plugin;

class Contact extends Plugin {
    public $pluginName = 'TP Contact';
    public $pluginAuthor = 'JoeyK';
    public $pluginWebsite = 'https://TheTempusProject.com';
    public $modelVersion = '1.0';
    public $pluginVersion = '3.0';
    public $pluginDescription = 'A simple plugin which adds a form and management for user submitted contact forms.';
    public $configName = 'contact';
    public $configMatrix = [
        'enabled' => [
            'type' => 'radio',
            'pretty' => 'Enable User Contact.',
            'default' => true,
        ],
        'sendEmail' => [
            'type' => 'radio',
            'pretty' => 'Email the user after submitting.',
            'default' => false,
        ],
        'emailTemplate' => [
            'type' => 'text',
            'pretty' => 'Email Template',
            'default' => 'contactEmail',
        ],
    ];
    public $permissionMatrix = [
        'contact' => [
            'pretty' => 'Can Submit Contact',
            'default' => true,
        ],
    ];
    public $contact_footer_links = [
        [
            'text' => 'Contact',
            'url' => '{ROOT_URL}contact',
        ],
    ];
    public $admin_links = [
        [
            'text' => '<i class="fa fa-fw fa-briefcase"></i> Contact',
            'url' => '{ROOT_URL}admin/contact',
        ],
    ];
}
