-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmod_sp_quickcontact.php
executable file
·35 lines (28 loc) · 1.22 KB
/
mod_sp_quickcontact.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/*
# mod_sp_quickcontact - Ajax based quick contact Module by JoomShaper.com
# ------------------------------------------------------------------------
# Author JoomShaper http://www.joomshaper.com
# Copyright (C) 2010 - 2014 JoomShaper.com. All Rights Reserved.
# License - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.joomshaper.com
*/
// no direct access
defined('_JEXEC') or die;
// Include the syndicate functions only once
JHtml::_('jquery.framework');
$uniqid = $module->id;
$name_text = JText::_('NAME');
$email_text = JText::_('EMAIL');
$subject_text = JText::_('SUBJECT');
$msg_text = JText::_('MESSAGE');
$send_msg = JText::_('SEND_MESSAGE');
$formcaptcha = $params->get('formcaptcha', 1);
$captcha_question = $params->get('captcha_question');
$captcha_answer = $params->get('captcha_answer');
$document = JFactory::getDocument();
$document->addScript(JURI::base(true) . '/modules/mod_sp_quickcontact/assets/js/script.js');
$document->addStylesheet(JURI::base(true) . '/modules/mod_sp_quickcontact/assets/css/style.css');
// Include the helper.
require_once __DIR__ . '/helper.php';
require JModuleHelper::getLayoutPath('mod_sp_quickcontact', $params->get('layout', 'default'));