Nucleus_Support - Version 1.0.3

Version Notes

Initial public release.

Download this release

Release Info

Developer Nucleus Commerce
Extension Nucleus_Support
Version 1.0.3
Comparing to
See all releases


Version 1.0.3

app/code/community/Nucleus/Support/Block/Form.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Nucleus
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the World Wide Web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the World Wide Web, please send an email
13
+ * to support@nucleuscommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade this module
18
+ * to newer versions in the future.
19
+ *
20
+ * @category Nucleus
21
+ * @package Support
22
+ * @copyright Copyright (c) 2015 Nucleus Commerce, LLC (http://www.nucleuscommerce.com)
23
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24
+ */
25
+
26
+ class Nucleus_Support_Block_Form extends Mage_Adminhtml_Block_Template
27
+ {
28
+ /**
29
+ * Generate nucleus support url
30
+ * @return string
31
+ */
32
+ public function getFormAction()
33
+ {
34
+ return $this->getUrl('adminhtml/nucleussupport/index');
35
+ }
36
+ }
app/code/community/Nucleus/Support/CHANGELOG.md ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Nucleus_Support 1.0.3 (12/30/2015)
2
+ =======================================
3
+ [CHANGED] Switched to OSL as license
4
+ [CHANGED] Backward compatibility for email format
5
+
6
+ Nucleus_Support 1.0.2 (6/19/2015)
7
+ =======================================
8
+ [CHANGED] Moved doc files to root directory
9
+ [FIXED] Emails should no longer be suspended in Zendesk
10
+ [CHANGED] Updated support email to final destination
11
+
12
+ Nucleus_Support 1.0.1 (5/19/2015)
13
+ =======================================
14
+ [CHANGED] Minor cosmetic change to ticket submit form
15
+
16
+ Nucleus_Support 1.0.0 (4/23/2015)
17
+ =======================================
18
+ Initial release
19
+ [ADDED] Live chat with Nucleus Support
20
+ [ADDED] Nucleus Support ticket submission
app/code/community/Nucleus/Support/Helper/Data.php ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Nucleus
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the World Wide Web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the World Wide Web, please send an email
13
+ * to support@nucleuscommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade this module
18
+ * to newer versions in the future.
19
+ *
20
+ * @category Nucleus
21
+ * @package Support
22
+ * @copyright Copyright (c) 2015 Nucleus Commerce, LLC (http://www.nucleuscommerce.com)
23
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24
+ */
25
+
26
+ class Nucleus_Support_Helper_Data extends Mage_Core_Helper_Abstract
27
+ {
28
+ /**
29
+ * Identifier for the Zopim chat JS URL
30
+ *
31
+ * @return string
32
+ */
33
+ public function getZopimUrlId()
34
+ {
35
+ return '2sF4JLXcMGcY0MOynYPeEuV0SzICpKlR';
36
+ }
37
+
38
+ /**
39
+ * Get email template for transactional email depending on Magento version
40
+ *
41
+ * @return string
42
+ */
43
+ public function getEmailTemplate()
44
+ {
45
+ $emailTemplateLegacy = 'nucleus_support_email_email_template';
46
+ $emailTemplateResponsive = 'nucleus_support_email_email_template_responsive';
47
+
48
+ $emailTemplate = $emailTemplateResponsive;
49
+ if ($this->isModuleEnabled('Enterprise_Enterprise')) {
50
+ if (version_compare(Mage::getVersion(), '1.14.1', '<')) {
51
+ $emailTemplate = $emailTemplateLegacy;
52
+ }
53
+ } else {
54
+ if (version_compare(Mage::getVersion(), '1.9.1', '<')) {
55
+ $emailTemplate = $emailTemplateLegacy;
56
+ }
57
+ }
58
+ return $emailTemplate;
59
+ }
60
+
61
+ /**
62
+ * Check is module exists and enabled in global config.
63
+ *
64
+ * @param string $moduleName the full module name, example Mage_Core
65
+ * @return boolean
66
+ */
67
+ public function isModuleEnabled($moduleName = NULL)
68
+ {
69
+ if (!Mage::getConfig()->getNode('modules/' . $moduleName)) {
70
+ return false;
71
+ }
72
+ $isActive = Mage::getConfig()->getNode('modules/' . $moduleName . '/active');
73
+ if (!$isActive || !in_array((string)$isActive, array('true', '1'))) {
74
+ return false;
75
+ }
76
+ return true;
77
+ }
78
+ }
app/code/community/Nucleus/Support/LICENSE.txt ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Open Software License ("OSL") v. 3.0
3
+
4
+ This Open Software License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work:
5
+
6
+ Licensed under the Open Software License version 3.0
7
+
8
+ 1. Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:
9
+
10
+ 1. to reproduce the Original Work in copies, either alone or as part of a collective work;
11
+
12
+ 2. to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work;
13
+
14
+ 3. to distribute or communicate copies of the Original Work and Derivative Works to the public, with the proviso that copies of Original Work or Derivative Works that You distribute or communicate shall be licensed under this Open Software License;
15
+
16
+ 4. to perform the Original Work publicly; and
17
+
18
+ 5. to display the Original Work publicly.
19
+
20
+ 2. Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works.
21
+
22
+ 3. Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work.
23
+
24
+ 4. Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license.
25
+
26
+ 5. External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c).
27
+
28
+ 6. Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.
29
+
30
+ 7. Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer.
31
+
32
+ 8. Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation.
33
+
34
+ 9. Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including "fair use" or "fair dealing"). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c).
35
+
36
+ 10. Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.
37
+
38
+ 11. Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License.
39
+
40
+ 12. Attorneys' Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.
41
+
42
+ 13. Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.
43
+
44
+ 14. Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
45
+
46
+ 15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
47
+
48
+ 16. Modification of This License. This License is Copyright © 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Open Software License" or "OSL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under <insert your license name here>" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
app/code/community/Nucleus/Support/README.md ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ ## Nucleus Support
2
+
3
+ ### Support Chat and Ticket Submission
4
+
5
+ Submit a Nucleus Support ticket, or even chat live with an agent, with the widgets located in the bottom right of any admin page.
6
+
app/code/community/Nucleus/Support/controllers/Adminhtml/NucleussupportController.php ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Nucleus
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the World Wide Web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the World Wide Web, please send an email
13
+ * to support@nucleuscommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade this module
18
+ * to newer versions in the future.
19
+ *
20
+ * @category Nucleus
21
+ * @package Support
22
+ * @copyright Copyright (c) 2015 Nucleus Commerce, LLC (http://www.nucleuscommerce.com)
23
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24
+ */
25
+
26
+ class Nucleus_Support_Adminhtml_NucleussupportController extends Mage_Adminhtml_Controller_Action
27
+ {
28
+ /**
29
+ * Send nucleus support ticket
30
+ *
31
+ */
32
+ public function indexAction()
33
+ {
34
+ $post = $this->getRequest()->getPost();
35
+ if ( $post ) {
36
+ $translate = Mage::getSingleton('core/translate');
37
+ /* @var $translate Mage_Core_Model_Translate */
38
+ $translate->setTranslateInline(false);
39
+ try {
40
+ $postObject = new Varien_Object();
41
+ $postObject->setData($post);
42
+
43
+ $user = Mage::getSingleton('admin/session')->getUser();
44
+
45
+ $mailTemplate = Mage::getModel('core/email_template');
46
+ /* @var $mailTemplate Mage_Core_Model_Email_Template */
47
+
48
+ $mailTemplate->setDesignConfig(array('area' => 'backend'))
49
+ ->sendTransactional(
50
+ Mage::helper('nucleus_support')->getEmailTemplate(),
51
+ array('email' => $user->getEmail(), 'name' => $user->getName()),
52
+ Mage::getStoreConfig('nucleus_support/email/recipient_email'),
53
+ null,
54
+ array(
55
+ 'data' => $postObject,
56
+ 'user' => $user)
57
+ );
58
+
59
+ if (!$mailTemplate->getSentSuccess()) {
60
+ throw new Exception();
61
+ }
62
+
63
+ $translate->setTranslateInline(true);
64
+
65
+ Mage::getSingleton('adminhtml/session')->addSuccess($this->__('Your inquiry was submitted and will be responded to as soon as possible. Thanks for your request!'));
66
+ $this->_redirectReferer();
67
+
68
+ return;
69
+ } catch (Exception $e) {
70
+
71
+ $translate->setTranslateInline(true);
72
+
73
+ Mage::getSingleton('adminhtml/session')->addError($this->__('Unable to submit your request. Please, try again later'));
74
+ $this->_redirectReferer();
75
+ return;
76
+ }
77
+
78
+ } else {
79
+ $this->_redirectReferer();
80
+ }
81
+ }
82
+ }
app/code/community/Nucleus/Support/etc/config.xml ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Nucleus
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the World Wide Web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the World Wide Web, please send an email
14
+ * to support@nucleuscommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade this module
19
+ * to newer versions in the future.
20
+ *
21
+ * @category Nucleus
22
+ * @package Support
23
+ * @copyright Copyright (c) 2015 Nucleus Commerce, LLC (http://www.nucleuscommerce.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+ -->
27
+ <config>
28
+ <modules>
29
+ <Nucleus_Support>
30
+ <version>1.0.3</version>
31
+ </Nucleus_Support>
32
+ </modules>
33
+
34
+ <global>
35
+ <helpers>
36
+ <nucleus_support>
37
+ <class>Nucleus_Support_Helper</class>
38
+ </nucleus_support>
39
+ </helpers>
40
+ <blocks>
41
+ <nucleus_support>
42
+ <class>Nucleus_Support_Block</class>
43
+ </nucleus_support>
44
+ </blocks>
45
+ <template>
46
+ <email>
47
+ <nucleus_support_email_email_template_responsive translate="label">
48
+ <label>Nucleus Support</label>
49
+ <file>nucleus/support/requestResponsive.html</file>
50
+ <type>html</type>
51
+ </nucleus_support_email_email_template_responsive>
52
+ <nucleus_support_email_email_template translate="label">
53
+ <label>Nucleus Support</label>
54
+ <file>nucleus/support/request.html</file>
55
+ <type>html</type>
56
+ </nucleus_support_email_email_template>
57
+ </email>
58
+ </template>
59
+ </global>
60
+
61
+ <adminhtml>
62
+ <translate>
63
+ <modules>
64
+ <Nucleus_Support>
65
+ <files>
66
+ <default>Nucleus_Support.csv</default>
67
+ </files>
68
+ </Nucleus_Support>
69
+ </modules>
70
+ </translate>
71
+ <layout>
72
+ <updates>
73
+ <nucleus_support>
74
+ <file>nucleus_support.xml</file>
75
+ </nucleus_support>
76
+ </updates>
77
+ </layout>
78
+ </adminhtml>
79
+
80
+ <frontend>
81
+ <translate>
82
+ <modules>
83
+ <Nucleus_Support>
84
+ <files>
85
+ <default>Nucleus_Support.csv</default>
86
+ </files>
87
+ </Nucleus_Support>
88
+ </modules>
89
+ </translate>
90
+ </frontend>
91
+
92
+ <admin>
93
+ <routers>
94
+ <adminhtml>
95
+ <args>
96
+ <modules>
97
+ <nucleus_support before="Mage_Adminhtml">Nucleus_Support_Adminhtml</nucleus_support>
98
+ </modules>
99
+ </args>
100
+ </adminhtml>
101
+ </routers>
102
+ </admin>
103
+
104
+ <default>
105
+ <nucleus_support>
106
+ <email>
107
+ <recipient_email>support@nucleussupport.com</recipient_email>
108
+ </email>
109
+ </nucleus_support>
110
+ </default>
111
+
112
+
113
+
114
+ </config>
app/design/adminhtml/default/default/layout/nucleus_support.xml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Nucleus
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the World Wide Web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the World Wide Web, please send an email
14
+ * to support@nucleuscommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade this module
19
+ * to newer versions in the future.
20
+ *
21
+ * @category Nucleus
22
+ * @package Support
23
+ * @copyright Copyright (c) 2015 Nucleus Commerce, LLC (http://www.nucleuscommerce.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+ -->
27
+ <layout version="0.1.0">
28
+ <default>
29
+ <reference name="head">
30
+ <action method="addJs"><file>nucleus/support/form.js</file></action>
31
+ <action method="addItem"><type>skin_css</type><name>nucleus/support/nucleus_support.css</name></action>
32
+ </reference>
33
+ <reference name="before_body_end">
34
+ <block type="adminhtml/template" name="zopim_chat_widget" template="nucleus/support/zopim-chat.phtml"/>
35
+ <block type="nucleus_support/form" template="nucleus/support/form.phtml" name="cls.adminticket.form" />
36
+ </reference>
37
+ </default>
38
+ </layout>
app/design/adminhtml/default/default/template/nucleus/support/form.phtml ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Nucleus
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the World Wide Web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the World Wide Web, please send an email
13
+ * to support@nucleuscommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade this module
18
+ * to newer versions in the future.
19
+ *
20
+ * @category Nucleus
21
+ * @package Support
22
+ * @copyright Copyright (c) 2015 Nucleus Commerce, LLC (http://www.nucleuscommerce.com)
23
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24
+ */
25
+ ?>
26
+ <div class="nucleus-support-ticket-button">
27
+ <div class="nucleus-support-icon"></div>
28
+ <div class="nucleus-support-text">
29
+ <div>
30
+ <?php echo $this->__('Enter a Nucleus Support Ticket'); ?>
31
+ </div>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="nucleus-support-ticket-form" class="nucleus-support-ticket-form" style="display:none;">
36
+ <form method="post" id="ticket-submit-form" action="<?php echo $this->getFormAction(); ?>">
37
+ <div id="nucleus-support-text" class="nucleus-support-text">
38
+ <div class="nucleus-support-ticket-form-message">
39
+ <div class="nucleus-left-float">
40
+
41
+ </div>
42
+ <?php echo $this->__('Nucleus Support'); ?>
43
+ <div class="nucleus-dash-sign">
44
+ &ndash;
45
+ </div>
46
+ </div>
47
+ </div>
48
+ <div class="nucleus-support-details">
49
+ <label><?php echo $this->__('Subject'); ?> *</label>
50
+ <input type="text" class="nucleus-subject input-text" name="subject">
51
+ <div style="position:relative">
52
+ <div class="complete-field-hint-subject" style="display:none"><?php echo $this->__('Complete this field'); ?></div>
53
+ </div>
54
+
55
+ <label><?php echo $this->__('Details of request'); ?> *</label>
56
+ <span class="reuqest-details-active" style="position:relative;">?
57
+ <span class="request-details" style="display:none;">
58
+ <?php echo $this->__('Time spent on any ticket you submit to Nucleus Support will be deducted from your prepaid support balance. Please let us know if you would like an estimate before work-start.'); ?>
59
+ </span>
60
+ </span>
61
+ <label class="nucleus-note"><?php echo $this->__('Note: this ticket will use your support hours'); ?></label>
62
+ <textarea class="nucleus-message" name="message"></textarea>
63
+ <div style="position:relative">
64
+ <div class="complete-field-hint" style="display:none"><?php echo $this->__('Complete this field'); ?></div>
65
+ </div>
66
+ <input value="Send Message" class="request-submit" type="submit">
67
+ <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" />
68
+ </div>
69
+ </form>
70
+ </div>
71
+
72
+ <script>
73
+
74
+
75
+ document.observe("dom:loaded", function () {
76
+
77
+ new NucleusSupportTicket({
78
+ form: $$('.nucleus-support-ticket-form')[0],
79
+ formHtml: $('ticket-submit-form'),
80
+ button: $$('.nucleus-support-ticket-button')[0],
81
+ details: $$('.request-details')[0],
82
+ close: $$('.nucleus-dash-sign')[0],
83
+ detailSign: $$('.reuqest-details-active')[0],
84
+ hint: $$('.complete-field-hint')[0],
85
+ message: $$('.nucleus-message')[0],
86
+ hintSubject: $$('.complete-field-hint-subject')[0],
87
+ subject: $$('.nucleus-subject')[0]
88
+ });
89
+
90
+ new Draggable($('nucleus-support-ticket-form'));
91
+
92
+ Draggables.addObserver({
93
+ onStart:function( eventName, draggable, event )
94
+ {
95
+ document.getElementById('nucleus-support-text').style.cursor = 'grabbing';
96
+ },
97
+ onEnd:function( eventName, draggable, event )
98
+ {
99
+ document.getElementById('nucleus-support-text').style.cursor = 'grab';
100
+ }
101
+ });
102
+
103
+
104
+
105
+ });
106
+
107
+
108
+ </script>
app/design/adminhtml/default/default/template/nucleus/support/zopim-chat.phtml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Nucleus
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the World Wide Web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the World Wide Web, please send an email
13
+ * to support@nucleuscommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade this module
18
+ * to newer versions in the future.
19
+ *
20
+ * @category Nucleus
21
+ * @package Support
22
+ * @copyright Copyright (c) 2015 Nucleus Commerce, LLC (http://www.nucleuscommerce.com)
23
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24
+ */
25
+ ?>
26
+
27
+ <!--Start of Zopim Live Chat Script-->
28
+ <script type="text/javascript">
29
+ window.$zopim||(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s=
30
+ d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set.
31
+ _.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8');
32
+ $.src='//v2.zopim.com/?<?php echo Mage::helper('nucleus_support')->getZopimUrlId() ?>';z.t=+new Date;$.
33
+ type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script');
34
+ </script>
35
+ <!--End of Zopim Live Chat Script-->
app/etc/modules/Nucleus_Support.xml ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Nucleus
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the World Wide Web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the World Wide Web, please send an email
14
+ * to support@nucleuscommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade this module
19
+ * to newer versions in the future.
20
+ *
21
+ * @category Nucleus
22
+ * @package Support
23
+ * @copyright Copyright (c) 2015 Nucleus Commerce, LLC (http://www.nucleuscommerce.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+ -->
27
+ <config>
28
+ <modules>
29
+ <Nucleus_Support>
30
+ <active>true</active>
31
+ <codePool>community</codePool>
32
+ </Nucleus_Support>
33
+ </modules>
34
+ </config>
app/locale/en_US/Nucleus_Support.csv ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ "Enter a Nucleus Support Ticket","Enter a Nucleus Support Ticket"
2
+ "Nucleus Support","Nucleus Support"
3
+ "Subject","Subject"
4
+ "Complete this field","Complete this field"
5
+ "Details of request","Details of request"
6
+ "Note: this ticket will use your support hours","Note: this ticket will use your support hours"
7
+ "Time spent on any ticket you submit to Nucleus Support will be deducted from your prepaid support balance. Please let us know if you would like an estimate before work-start","Time spent on any ticket you submit to Nucleus Support will be deducted from your prepaid support balance. Please let us know if you would like an estimate before work-start"
8
+ "Your inquiry was submitted and will be responded to as soon as possible. Thanks for your request!","Your inquiry was submitted and will be responded to as soon as possible. Thanks for your request!"
9
+ "Unable to submit your request. Please, try again later","Unable to submit your request. Please, try again later"
app/locale/en_US/template/email/nucleus/support/request.html ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var data.subject }} @-->
2
+
3
+ <!--@styles
4
+ body,td { color:#2f2f2f; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; }
5
+ @-->
6
+
7
+ <body style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;">
8
+ <div style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;">
9
+ <table cellspacing="0" cellpadding="0" border="0" width="100%">
10
+ <tr>
11
+ <td align="center" valign="top" style="padding:20px 0 20px 0">
12
+ <table bgcolor="#FFFFFF" cellspacing="0" cellpadding="10" border="0" width="650" style="border:1px solid #E0E0E0;">
13
+ <tr>
14
+ <td valign="top"><a href="{{store url=""}}"><img src="{{skin url="images/logo_email.gif" _area='frontend'}}" alt="{{var store.getFrontendName()}}" style="margin-bottom:10px;" border="0"/></a></td>
15
+ </tr>
16
+ <tr>
17
+ <td valign="top" style="padding-top:20px;padding-bottom:20px">
18
+ {{var data.message}}
19
+ </tr>
20
+ </table>
21
+ </td>
22
+ </tr>
23
+ </table>
24
+ </div>
25
+ </body>
app/locale/en_US/template/email/nucleus/support/requestResponsive.html ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var data.subject}} @-->
2
+
3
+
4
+ {{template config_path="design/email/header"}}
5
+ {{inlinecss file="email-inline.css"}}
6
+
7
+ <table cellpadding="0" cellspacing="0" border="0">
8
+ <tr>
9
+ <td>
10
+ <table cellpadding="0" cellspacing="0" border="0">
11
+ <tr>
12
+ <td class="email-heading" style="padding-top:20px;padding-bottom:20px">
13
+ {{var data.message}}
14
+ </td>
15
+ </tr>
16
+ </table>
17
+ </td>
18
+ </tr>
19
+ </table>
js/nucleus/support/form.js ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Nucleus
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the Open Software License (OSL 3.0)
7
+ * that is bundled with this package in the file LICENSE.txt.
8
+ * It is also available through the World Wide Web at this URL:
9
+ * http://opensource.org/licenses/osl-3.0.php
10
+ * If you did not receive a copy of the license and are unable to
11
+ * obtain it through the World Wide Web, please send an email
12
+ * to support@nucleuscommerce.com so we can send you a copy immediately.
13
+ *
14
+ * DISCLAIMER
15
+ *
16
+ * Do not edit or add to this file if you wish to upgrade this module
17
+ * to newer versions in the future.
18
+ *
19
+ * @category Nucleus
20
+ * @package Support
21
+ * @copyright Copyright (c) 2015 Nucleus Commerce, LLC (http://www.nucleuscommerce.com)
22
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
23
+ */
24
+
25
+ var NucleusSupportTicket = Class.create({
26
+
27
+ initialize: function(config) {
28
+ this.config = config;
29
+
30
+ Event.observe($(this.config.button), 'click', function() {
31
+ $(this.config.button).hide();
32
+ $(this.config.form).show();
33
+ }.bind(this));
34
+
35
+ Event.observe($(this.config.close), 'click', function() {
36
+ $(this.config.button).show();
37
+ $(this.config.form).hide();
38
+ }.bind(this));
39
+
40
+ Event.observe($(this.config.detailSign), 'mouseover', function() {
41
+ $(this.config.details).show();
42
+ }.bind(this));
43
+
44
+ Event.observe($(this.config.detailSign), 'mouseout', function() {
45
+ $(this.config.details).hide();
46
+ }.bind(this));
47
+
48
+ $(this.config.formHtml).onsubmit = function() {
49
+
50
+ var validate = true;;
51
+ if(config.subject.value.blank()) {
52
+ config.hintSubject.show();
53
+ config.subject.style.borderColor = '#C00';
54
+ validate = false;
55
+ }
56
+
57
+ if(config.message.value.blank()) {
58
+ config.hint.show();
59
+ config.message.style.borderColor = '#C00';
60
+ validate = false;
61
+ }
62
+
63
+ if(!validate) {
64
+ return false;
65
+ }
66
+
67
+ $('loading-mask').show();
68
+ $(config.form).hide();
69
+
70
+ return true;
71
+ }
72
+
73
+ }
74
+ });
package.xml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Nucleus_Support</name>
4
+ <version>1.0.3</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License v3</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>In the Magento Admin merchants get access to Nucleus Support via support ticket or live chat with a developer.</summary>
10
+ <description>This extension enables merchants to submit a support ticket or live chat with Nucleus Support from inside their Magento Admin panel. Nucleus Support provides easy access to quality support without the commitment of a monthly retainer.&#xD;
11
+ &#xD;
12
+ Installing the extension does not make the merchant a Nucleus Support client. If a ticket is submitted or a live chat session is started, the Nucleus Support team will first ensure that the merchant has signed up for the service. &lt;a href="http://www.nucleussupport.com/"&gt;Nucleus Support&lt;/a&gt; is a pay-as-you-go Magento support service that is easy to use and requires no commitment. Once the client signs up for the service, Nucleus Support will debit hours spent on the ticket or time spent chatting from the prepaid balance. &#xD;
13
+ &#xD;
14
+ Nucleus Support is good for custom frontend and backend Magento development, bug fixes, Admin support, as well as extension installation and configuration. If Nucleus Support estimates a ticket to be 40 hours of work or more the team will be in touch to route that project to one of their trusted agency partners. Nucleus Support is also able to assist &lt;a href="http://www.nucleuscommerce.com/"&gt;Nucleus Commerce&lt;/a&gt; merchants.&#xD;
15
+ &#xD;
16
+ About Nucleus Support: &#xD;
17
+ &lt;ul&gt;&#xD;
18
+ &lt;li&gt;Once a merchant submits a ticket or starts a live chat, the Nucleus Support team will confirm the client has signed up for Nucleus Support. If they haven&#x2019;t, they will be directed to do so. &lt;/li&gt;&#xD;
19
+ &lt;li&gt;Upon signing up and after receiving the first ticket or live chat request, the merchant will be charged for the first prepaid block of $750. Time spent working on tickets or chatting with the merchant in live chat will be deducted out of this prepaid balance at the rates of $75/hour for Level 1 and $150/hour for Level 2 with quarter hour billing increments. &lt;/li&gt;&#xD;
20
+ &lt;li&gt;Level 1 is good for basic frontend changes, Magento Admin training, and basic Magento questions. All requests submitted will first be reviewed by the Level 1 team and if they fit within the scope of Level 1 then they will be billed at the rate of $75/hour. If a request is not Level 1, it will be automatically routed to the Level 2 team at the rate of $150/hour. &lt;/li&gt;&#xD;
21
+ &lt;li&gt;If the prepaid balance reaches $0, the credit card on file will be charged for another block unless the client requests automatic billing be turned off for their account. If automatic billing is turned off, any outstanding work would be put on hold until another support block of $750 is approved. At any time the client will have the ability to login to view their used versus remaining prepaid balance and will also be able to login to the ticketing system to view tickets and submit additional requests. &lt;/li&gt;&#xD;
22
+ &lt;li&gt;Once a merchant submits a ticket, they&#x2019;ll get initial ticket communication from a developer within 8 business hours. &lt;/li&gt;&#xD;
23
+ &lt;li&gt;Live chat is good for basic Magento Admin questions and is billed at the Level 1 rate of $75/hour. If the Level 1 developer is not able to resolve a merchant&#x2019;s live chat request within 15 minutes, they will assist in creating a ticket. Live chat is support during Nucleus Support business hours, Monday-Friday 9-5 CT. &lt;/li&gt;&#xD;
24
+ &lt;li&gt;Tickets and live chat requests are handled first-come, first-served with the exception of Urgent requests which are addressed immediately during business hours (Monday-Friday 9-5 CT) for double the hourly rate ($300/hour rather than $150/hour). Merchants must approve the Urgent rate before a ticket will be handled as such. &lt;/li&gt;&#xD;
25
+ &lt;li&gt;Since tickets goes straight to a developer, merchants don't have to pay for project management like they would with a typical development retainer.&lt;/li&gt;&#xD;
26
+ &lt;li&gt;Unused hours roll over to the next task and you can use hours anytime within 12 months of purchase.&lt;/li&gt;&#xD;
27
+ &lt;li&gt;Nucleus Support is managed by Magento Certified Staff. &lt;/li&gt;&#xD;
28
+ &lt;li&gt;For more information about Nucleus Support, click &lt;a href="http://www.nucleussupport.com/"&gt;here&lt;/a&gt;.&lt;/li&gt;&#xD;
29
+ &lt;/ul&gt;</description>
30
+ <notes>Initial public release.</notes>
31
+ <authors><author><name>Nucleus Commerce</name><user>NucleusCommerce</user><email>hello@nucleuscommerce.com</email></author></authors>
32
+ <date>2015-12-30</date>
33
+ <time>21:22:45</time>
34
+ <contents><target name="magecommunity"><dir name="Nucleus"><dir name="Support"><dir><dir name="Block"><file name="Form.php" hash="1e4d6a9998aaefeaca0101a418619da0"/></dir><dir name="Helper"><file name="Data.php" hash="923e68a4c7e70ce451ac1fcb7785988f"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="NucleussupportController.php" hash="7fe81a40af7f2efeefcd15af14dc7261"/></dir></dir><dir name="etc"><file name="config.xml" hash="4ac47819cbac3e3cd84b201cb3559789"/></dir></dir><file name="CHANGELOG.md" hash="a65bc225257c75a192c002eaaa75f81d"/><file name="LICENSE.txt" hash="784a42c3b90a2b389f995d5615c26c2a"/><file name="README.md" hash="b16052559a5f9e5e987a9f7f2c5b8ed9"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="nucleus_support.xml" hash="db6276b1efced28daa95a90d2944a4f6"/></dir><dir name="template"><dir name="nucleus"><dir name="support"><file name="form.phtml" hash="6cd6d2dcc90c35826946600aae9c0234"/><file name="zopim-chat.phtml" hash="a9f4ce1c9723c98285314b02055cd32f"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Nucleus_Support.xml" hash="af8635f3400b4afcb14a95956b6cc361"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Nucleus_Support.csv" hash="3a381d16345831093774131efa0f6f82"/><dir name="template"><dir name="email"><dir name="nucleus"><dir name="support"><file name="request.html" hash="b5c80b9fae2e59df2f4dd725c27a1675"/><file name="requestResponsive.html" hash="8df80cba81d3b5b623fd15af1f10b6b6"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="nucleus"><dir name="support"><dir><dir name="images"><file name="nucleus-support-env.png" hash="f23803e91d46e02a034aec2dd0ffc2ad"/></dir></dir><file name="nucleus_support.css" hash="c58aab34dd57cc63b0eb0a3e70c3f162"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="nucleus"><dir name="support"><file name="form.js" hash="08de5a7dc5e588df67f09c9fcc80b7e4"/></dir></dir></dir></target></contents>
35
+ <compatible/>
36
+ <dependencies><required><php><min>5.3.0</min><max>8.0.0</max></php></required></dependencies>
37
+ </package>
skin/adminhtml/default/default/nucleus/support/images/nucleus-support-env.png ADDED
Binary file
skin/adminhtml/default/default/nucleus/support/nucleus_support.css ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Nucleus
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the Open Software License (OSL 3.0)
7
+ * that is bundled with this package in the file LICENSE.txt.
8
+ * It is also available through the World Wide Web at this URL:
9
+ * http://opensource.org/licenses/osl-3.0.php
10
+ * If you did not receive a copy of the license and are unable to
11
+ * obtain it through the World Wide Web, please send an email
12
+ * to support@nucleuscommerce.com so we can send you a copy immediately.
13
+ *
14
+ * DISCLAIMER
15
+ *
16
+ * Do not edit or add to this file if you wish to upgrade this module
17
+ * to newer versions in the future.
18
+ *
19
+ * @category Nucleus
20
+ * @package Support
21
+ * @copyright Copyright (c) 2015 Nucleus Commerce, LLC (http://www.nucleuscommerce.com)
22
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
23
+ */
24
+
25
+ .nucleus-support-ticket-button {
26
+ width:260px;
27
+ height:30px;
28
+ position:fixed;
29
+ right:290px;
30
+ bottom:0;
31
+ }
32
+
33
+ .nucleus-support-ticket-button div {
34
+ cursor:pointer;
35
+ margin:0;
36
+ padding:0;
37
+ }
38
+
39
+ .nucleus-support-icon {
40
+ width:37px;
41
+ height:30px;
42
+ background: #6d8c9f url(images/nucleus-support-env.png) no-repeat center center;
43
+ background-size:70%;
44
+ float:left;
45
+ -webkit-border-top-left-radius: 5px;
46
+ -moz-border-radius-topleft: 5px;
47
+ border-top-left-radius: 5px;
48
+ }
49
+
50
+ .nucleus-support-text {
51
+ background: #7a99ac;
52
+ float:left;
53
+ width:222px;
54
+ height:30px;
55
+ text-align:center;
56
+ color:white;
57
+ font-weight:bold;
58
+ cursor:grab;
59
+ font-family: Verdana,Geneva,"sans-serif";
60
+ font-size:12px;
61
+ -moz-border-radius-topright: 5px;
62
+ border-top-right-radius: 5px;
63
+ -moz-border-radius-topright: 5px;
64
+ }
65
+
66
+ .nucleus-support-text div {
67
+ margin-top:5px;
68
+ }
69
+
70
+ .nucleus-support-ticket-form {
71
+ width:320px;
72
+ height:500px;
73
+ position:fixed;
74
+ right:290px;
75
+ bottom:0;
76
+ -webkit-border-top-left-radius: 5px;
77
+ -moz-border-radius-topleft: 5px;
78
+ border-top-left-radius: 5px;
79
+ -moz-border-radius-topright: 5px;
80
+ border-top-right-radius: 5px;
81
+ -moz-border-radius-topright: 5px;
82
+ box-shadow: 0px 0px 3px 2px rgba(0, 0, 0, 0.1)
83
+ }
84
+
85
+ .nucleus-support-ticket-form .nucleus-support-text div {
86
+ margin: 0;
87
+ }
88
+
89
+ .nucleus-support-ticket-form .nucleus-support-text {
90
+ -webkit-border-top-left-radius: 5px;
91
+ -moz-border-radius-topleft: 5px;
92
+ border-top-left-radius: 5px;
93
+ width:100%;
94
+ color:#e6ecef;
95
+ font-size:12px;
96
+ height:25px;
97
+ font-family:Verdana,Geneva,sans-serif;
98
+ }
99
+
100
+ .nucleus-dash-sign {
101
+ display: inline-block;
102
+ vertical-align: middle;
103
+ text-align: center;
104
+ line-height: 24px;
105
+ font-size: 17px;
106
+ height:25px;
107
+ width:40px;
108
+ float:right;
109
+ cursor:pointer;
110
+ margin-top:-3px!important;
111
+ -moz-border-radius-topright: 5px;
112
+ border-top-right-radius: 5px;
113
+ -moz-border-radius-topright: 5px;
114
+ }
115
+
116
+
117
+ .nucleus-support-ticket-form-message {
118
+ margin-top:3px!important;
119
+ }
120
+
121
+ .nucleus-support-details {
122
+ background:white;
123
+ height:440px;
124
+ color:#666;
125
+ font-size:12px;
126
+ font-family: Verdana,Geneva,"sans-serif";
127
+ border:1px solid #DDD;
128
+ margin-top:5px;
129
+ padding:40px 20px 20px 20px;
130
+ }
131
+
132
+ .nucleus-support-details label {
133
+ display:block;
134
+ font-weight:bold;
135
+ margin-bottom:10px;
136
+ float:left;
137
+ color:#666;
138
+ }
139
+
140
+ .nucleus-support-details textarea {
141
+ display:block;
142
+ width:100%;
143
+ height:200px;
144
+ -moz-border-radius: 5px;
145
+ border-radius: 5px;
146
+ -moz-border-radius: 5px;
147
+ }
148
+
149
+ .nucleus-support-details input[type="text"] {
150
+ display:block;
151
+ width:100%;
152
+ -moz-border-radius: 5px;
153
+ border-radius: 5px;
154
+ -moz-border-radius: 5px;
155
+ }
156
+
157
+ .nucleus-support-details input[type="text"]:focus {
158
+ border-color: #6D6D6D;
159
+ }
160
+
161
+ .nucleus-support-details .nucleus-subject {
162
+ margin-bottom:20px;
163
+ }
164
+
165
+ .nucleus-support-details textarea:focus {
166
+ border-color: #6D6D6D;
167
+ }
168
+
169
+ .reuqest-details-active {
170
+ width:10px;
171
+ height:10px;
172
+ float:left;
173
+ margin-left:5px;
174
+ display:block;
175
+ cursor:pointer;
176
+ font-size:14px;
177
+ font-weight:bold;
178
+ color:#666;
179
+ }
180
+
181
+ .request-details {
182
+ position: absolute;
183
+ top: 0px;
184
+ left: 15px;
185
+ z-index: 2400;
186
+ padding: 0 10px 0 10px;
187
+ width: 250px;
188
+ font-size: 11px;
189
+ font-weight: normal;
190
+ background:white;
191
+ }
192
+
193
+ .nucleus-note {
194
+ font-size:10px;
195
+ }
196
+
197
+ .request-submit {
198
+ -moz-appearance: none;
199
+ width: 48%;
200
+ overflow: hidden;
201
+ text-overflow: ellipsis;
202
+ white-space: nowrap;
203
+ color: #FFF;
204
+ background: none repeat scroll 0% 0% #7a99ac;
205
+ padding: 6px 3px;
206
+ border-width: 1px;
207
+ border-style: solid;
208
+ border-color: #607f91;
209
+ border-radius: 3px;
210
+ box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 1px 0px rgba(255, 255, 255, 0.25) inset;
211
+ font-weight: bold;
212
+ word-wrap: normal;
213
+ cursor: pointer;
214
+ width:100%;
215
+ margin-top:70px;
216
+ height:30px;
217
+ font-size:12px;
218
+ font-family:Verdana,Geneva,sans-serif;
219
+ }
220
+
221
+ .request-submit:hover {
222
+ background-color: #8aa9bc;
223
+ }
224
+
225
+ .complete-field-hint, .complete-field-hint-subject {
226
+ margin-top: 5px;
227
+ margin-bottom: 10px;
228
+ color: #C00;
229
+ font-weight: bold;
230
+ font-style: italic;
231
+ position:absolute;
232
+ }
233
+
234
+ .complete-field-hint-subject {
235
+ margin-top:-18px;
236
+ }
237
+
238
+ .nucleus-left-float {
239
+ height:25px;
240
+ float:left;
241
+ width:35px
242
+ }