Version Notes
Initial version
Download this release
Release Info
Developer | Alex Gusev |
Extension | Praxigento_JiraFeedback |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/Praxigento/JiraFeedback/Block/Adminhtml.php +42 -0
- app/code/community/Praxigento/JiraFeedback/Block/Frontend.php +40 -0
- app/code/community/Praxigento/JiraFeedback/Config.php +70 -0
- app/code/community/Praxigento/JiraFeedback/Helper/Data.php +30 -0
- app/code/community/Praxigento/JiraFeedback/etc/config.xml +82 -0
- app/code/community/Praxigento/JiraFeedback/etc/system.xml +92 -0
- app/design/adminhtml/default/default/layout/prxgt/jfb/jfb_adminhtml_layout.xml +29 -0
- app/design/frontend/default/default/layout/prxgt/jfb/jfb_frontend_layout.xml +30 -0
- app/etc/modules/Praxigento_JiraFeedback.xml +30 -0
- package.xml +18 -0
app/code/community/Praxigento/JiraFeedback/Block/Adminhtml.php
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Copyright (c) 2013, Praxigento
|
4 |
+
* All rights reserved.
|
5 |
+
*
|
6 |
+
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
7 |
+
* following conditions are met:
|
8 |
+
* - Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
9 |
+
* disclaimer.
|
10 |
+
* - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
11 |
+
* following disclaimer in the documentation and/or other materials provided with the distribution.
|
12 |
+
*
|
13 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
14 |
+
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
15 |
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
16 |
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
17 |
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
18 |
+
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
19 |
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
20 |
+
*/
|
21 |
+
/**
|
22 |
+
* Created by JetBrains PhpStorm.
|
23 |
+
* User: Flancer
|
24 |
+
* Date: 13.10.2
|
25 |
+
* Time: 12:28
|
26 |
+
*/
|
27 |
+
class Praxigento_JiraFeedback_Block_Adminhtml extends Mage_Core_Block_Abstract
|
28 |
+
{
|
29 |
+
|
30 |
+
protected function _toHtml()
|
31 |
+
{
|
32 |
+
if (Praxigento_JiraFeedback_Config::cfgAdminEnabled()) {
|
33 |
+
$prefix = "<!-- Praxigento JIRA Feedback code: -->";
|
34 |
+
return $prefix . Praxigento_JiraFeedback_Config::cfgAdminCode();
|
35 |
+
} else {
|
36 |
+
return "<!-- Praxigento JIRA Feedback is disabled -->";
|
37 |
+
}
|
38 |
+
}
|
39 |
+
|
40 |
+
|
41 |
+
|
42 |
+
}
|
app/code/community/Praxigento/JiraFeedback/Block/Frontend.php
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Copyright (c) 2013, Praxigento
|
4 |
+
* All rights reserved.
|
5 |
+
*
|
6 |
+
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
7 |
+
* following conditions are met:
|
8 |
+
* - Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
9 |
+
* disclaimer.
|
10 |
+
* - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
11 |
+
* following disclaimer in the documentation and/or other materials provided with the distribution.
|
12 |
+
*
|
13 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
14 |
+
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
15 |
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
16 |
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
17 |
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
18 |
+
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
19 |
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
20 |
+
*/
|
21 |
+
/**
|
22 |
+
* Created by JetBrains PhpStorm.
|
23 |
+
* User: Flancer
|
24 |
+
* Date: 13.10.2
|
25 |
+
* Time: 12:28
|
26 |
+
*/
|
27 |
+
class Praxigento_JiraFeedback_Block_Frontend extends Mage_Core_Block_Abstract
|
28 |
+
{
|
29 |
+
|
30 |
+
protected function _toHtml()
|
31 |
+
{
|
32 |
+
if (Praxigento_JiraFeedback_Config::cfgFrontendEnabled()) {
|
33 |
+
$prefix = "<!-- Praxigento JIRA Feedback code: -->";
|
34 |
+
return $prefix . Praxigento_JiraFeedback_Config::cfgFrontendCode();
|
35 |
+
} else {
|
36 |
+
return "<!-- Praxigento JIRA Feedback is disabled -->";
|
37 |
+
}
|
38 |
+
}
|
39 |
+
|
40 |
+
}
|
app/code/community/Praxigento/JiraFeedback/Config.php
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Copyright (c) 2013, F. Lancer, MUN
|
4 |
+
* All rights reserved.
|
5 |
+
*
|
6 |
+
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
7 |
+
* following conditions are met:
|
8 |
+
* - Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
9 |
+
* disclaimer.
|
10 |
+
* - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
11 |
+
* following disclaimer in the documentation and/or other materials provided with the distribution.
|
12 |
+
*
|
13 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
14 |
+
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
15 |
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
16 |
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
17 |
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
18 |
+
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
19 |
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
20 |
+
*/
|
21 |
+
/**
|
22 |
+
* Created by JetBrains PhpStorm.
|
23 |
+
* User: Flancer
|
24 |
+
* Date: 13.10.2
|
25 |
+
* Time: 09:07
|
26 |
+
*/
|
27 |
+
class Praxigento_JiraFeedback_Config
|
28 |
+
{
|
29 |
+
/**
|
30 |
+
* Enable/disable JIRA Feedback component on adminhtml.
|
31 |
+
* @static
|
32 |
+
* @return bool
|
33 |
+
*/
|
34 |
+
public static function cfgAdminEnabled()
|
35 |
+
{
|
36 |
+
return filter_var(Mage::getStoreConfig('prxgt_jfb/general/adminhtml_enabled'), FILTER_VALIDATE_BOOLEAN);
|
37 |
+
}
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Returns issue collector's code (HTML) to embed to the adminhtml.
|
41 |
+
* @static
|
42 |
+
* @return string
|
43 |
+
*/
|
44 |
+
public static function cfgAdminCode()
|
45 |
+
{
|
46 |
+
$val = (string)Mage::getStoreConfig('prxgt_jfb/general/adminhtml_feedback_code');
|
47 |
+
return $val;
|
48 |
+
}
|
49 |
+
|
50 |
+
/**
|
51 |
+
* Enable/disable JIRA Feedback component on frontend.
|
52 |
+
* @static
|
53 |
+
* @return bool
|
54 |
+
*/
|
55 |
+
public static function cfgFrontendEnabled()
|
56 |
+
{
|
57 |
+
return filter_var(Mage::getStoreConfig('prxgt_jfb/general/frontend_enabled'), FILTER_VALIDATE_BOOLEAN);
|
58 |
+
}
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Returns issue collector's code (HTML) to embed to the frontend.
|
62 |
+
* @static
|
63 |
+
* @return string
|
64 |
+
*/
|
65 |
+
public static function cfgFrontendCode()
|
66 |
+
{
|
67 |
+
$val = (string)Mage::getStoreConfig('prxgt_jfb/general/frontend_feedback_code');
|
68 |
+
return $val;
|
69 |
+
}
|
70 |
+
}
|
app/code/community/Praxigento/JiraFeedback/Helper/Data.php
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Copyright (c) 2013, F. Lancer, MUN
|
4 |
+
* All rights reserved.
|
5 |
+
*
|
6 |
+
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
7 |
+
* following conditions are met:
|
8 |
+
* - Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
9 |
+
* disclaimer.
|
10 |
+
* - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
11 |
+
* following disclaimer in the documentation and/or other materials provided with the distribution.
|
12 |
+
*
|
13 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
14 |
+
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
15 |
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
16 |
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
17 |
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
18 |
+
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
19 |
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
20 |
+
*/
|
21 |
+
/**
|
22 |
+
* Created by JetBrains PhpStorm.
|
23 |
+
* User: Flancer
|
24 |
+
* Date: 2/8/13
|
25 |
+
* Time: 6:00 PM
|
26 |
+
*/
|
27 |
+
class Praxigento_JiraFeedback_Helper_Data extends Mage_Core_Helper_Abstract
|
28 |
+
{
|
29 |
+
|
30 |
+
}
|
app/code/community/Praxigento/JiraFeedback/etc/config.xml
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2013, Praxigento
|
5 |
+
* All rights reserved.
|
6 |
+
*
|
7 |
+
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
8 |
+
* following conditions are met:
|
9 |
+
* - Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
10 |
+
* disclaimer.
|
11 |
+
* - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
12 |
+
* following disclaimer in the documentation and/or other materials provided with the distribution.
|
13 |
+
*
|
14 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
15 |
+
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
16 |
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
17 |
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
18 |
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
19 |
+
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
20 |
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
21 |
+
*/
|
22 |
+
-->
|
23 |
+
<config>
|
24 |
+
<modules>
|
25 |
+
<Praxigento_JiraFeedback>
|
26 |
+
<version>1.0.0</version>
|
27 |
+
</Praxigento_JiraFeedback>
|
28 |
+
</modules>
|
29 |
+
<adminhtml>
|
30 |
+
<acl>
|
31 |
+
<resources>
|
32 |
+
<admin>
|
33 |
+
<children>
|
34 |
+
<system>
|
35 |
+
<children>
|
36 |
+
<config>
|
37 |
+
<children>
|
38 |
+
<!-- Section on the "System/Configuration" panel -->
|
39 |
+
<prxgt_jfb translate="title" module="prxgt_jfb_helper">
|
40 |
+
<title>Praxigento: JIRA Feedback Section</title>
|
41 |
+
<sort_order>10500</sort_order>
|
42 |
+
</prxgt_jfb>
|
43 |
+
</children>
|
44 |
+
</config>
|
45 |
+
</children>
|
46 |
+
</system>
|
47 |
+
</children>
|
48 |
+
</admin>
|
49 |
+
</resources>
|
50 |
+
</acl>
|
51 |
+
<layout>
|
52 |
+
<updates>
|
53 |
+
<prxgt_jfb_admin_layout>
|
54 |
+
<file>prxgt/jfb/jfb_adminhtml_layout.xml</file>
|
55 |
+
</prxgt_jfb_admin_layout>
|
56 |
+
</updates>
|
57 |
+
</layout>
|
58 |
+
</adminhtml>
|
59 |
+
<frontend>
|
60 |
+
<layout>
|
61 |
+
<updates>
|
62 |
+
<prxgt_jfb_front_layout>
|
63 |
+
<file>prxgt/jfb/jfb_frontend_layout.xml</file>
|
64 |
+
</prxgt_jfb_front_layout>
|
65 |
+
</updates>
|
66 |
+
</layout>
|
67 |
+
</frontend>
|
68 |
+
<global>
|
69 |
+
<blocks>
|
70 |
+
<prxgt_jfb_block>
|
71 |
+
<class>Praxigento_JiraFeedback_Block</class>
|
72 |
+
</prxgt_jfb_block>
|
73 |
+
</blocks>
|
74 |
+
<helpers>
|
75 |
+
<!-- Default helper for module (prevents errors like "Class 'Nmmlm_Core_Helper_Data' not found in") -->
|
76 |
+
<!-- used in <some_node module="prxgt_jfb_helper"> nodes -->
|
77 |
+
<prxgt_jfb_helper>
|
78 |
+
<class>Praxigento_JiraFeedback_Helper</class>
|
79 |
+
</prxgt_jfb_helper>
|
80 |
+
</helpers>
|
81 |
+
</global>
|
82 |
+
</config>
|
app/code/community/Praxigento/JiraFeedback/etc/system.xml
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2013, Praxigento
|
5 |
+
* All rights reserved.
|
6 |
+
*
|
7 |
+
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
8 |
+
* following conditions are met:
|
9 |
+
* - Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
10 |
+
* disclaimer.
|
11 |
+
* - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
12 |
+
* following disclaimer in the documentation and/or other materials provided with the distribution.
|
13 |
+
*
|
14 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
15 |
+
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
16 |
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
17 |
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
18 |
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
19 |
+
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
20 |
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
21 |
+
*/
|
22 |
+
-->
|
23 |
+
<config>
|
24 |
+
<tabs>
|
25 |
+
<prxgt>
|
26 |
+
<!-- This is all module's common tab (should be the same for all modules) -->
|
27 |
+
<label>Praxigento</label>
|
28 |
+
<sort_order>1024</sort_order>
|
29 |
+
</prxgt>
|
30 |
+
</tabs>
|
31 |
+
<sections>
|
32 |
+
<prxgt_jfb translate="label">
|
33 |
+
<label>JIRA Feedback</label>
|
34 |
+
<tab>prxgt</tab>
|
35 |
+
<frontend_type>text</frontend_type>
|
36 |
+
<sort_order>10500</sort_order>
|
37 |
+
<show_in_default>1</show_in_default>
|
38 |
+
<show_in_website>0</show_in_website>
|
39 |
+
<show_in_store>0</show_in_store>
|
40 |
+
<groups>
|
41 |
+
<general translate="label" module="prxgt_jfb_helper">
|
42 |
+
<label>General</label>
|
43 |
+
<frontend_type>text</frontend_type>
|
44 |
+
<sort_order>1000</sort_order>
|
45 |
+
<show_in_default>1</show_in_default>
|
46 |
+
<show_in_website>0</show_in_website>
|
47 |
+
<show_in_store>0</show_in_store>
|
48 |
+
<fields>
|
49 |
+
<frontend_enabled translate="label comment">
|
50 |
+
<label>Enable Frontend Feedback</label>
|
51 |
+
<comment>Display JIRA feedback component on the frontend.</comment>
|
52 |
+
<frontend_type>select</frontend_type>
|
53 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
54 |
+
<sort_order>200</sort_order>
|
55 |
+
<show_in_default>1</show_in_default>
|
56 |
+
<show_in_website>0</show_in_website>
|
57 |
+
<show_in_store>0</show_in_store>
|
58 |
+
</frontend_enabled>
|
59 |
+
<frontend_feedback_code translate="label comment">
|
60 |
+
<label>Frontend Source Code</label>
|
61 |
+
<comment>HTML source code for JIRA Issue Collector on the frontend.</comment>
|
62 |
+
<frontend_type>textarea</frontend_type>
|
63 |
+
<sort_order>400</sort_order>
|
64 |
+
<show_in_default>1</show_in_default>
|
65 |
+
<show_in_website>0</show_in_website>
|
66 |
+
<show_in_store>0</show_in_store>
|
67 |
+
</frontend_feedback_code>
|
68 |
+
<adminhtml_enabled translate="label comment">
|
69 |
+
<label>Enable Admin Feedback</label>
|
70 |
+
<comment>Display JIRA feedback component on the admin panel.</comment>
|
71 |
+
<frontend_type>select</frontend_type>
|
72 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
73 |
+
<sort_order>600</sort_order>
|
74 |
+
<show_in_default>1</show_in_default>
|
75 |
+
<show_in_website>0</show_in_website>
|
76 |
+
<show_in_store>0</show_in_store>
|
77 |
+
</adminhtml_enabled>
|
78 |
+
<adminhtml_feedback_code translate="label comment">
|
79 |
+
<label>Admin Source Code</label>
|
80 |
+
<comment>HTML source code for JIRA Issue Collector on the admin panel.</comment>
|
81 |
+
<frontend_type>textarea</frontend_type>
|
82 |
+
<sort_order>800</sort_order>
|
83 |
+
<show_in_default>1</show_in_default>
|
84 |
+
<show_in_website>0</show_in_website>
|
85 |
+
<show_in_store>0</show_in_store>
|
86 |
+
</adminhtml_feedback_code>
|
87 |
+
</fields>
|
88 |
+
</general>
|
89 |
+
</groups>
|
90 |
+
</prxgt_jfb>
|
91 |
+
</sections>
|
92 |
+
</config>
|
app/design/adminhtml/default/default/layout/prxgt/jfb/jfb_adminhtml_layout.xml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2013, Praxigento
|
5 |
+
* All rights reserved.
|
6 |
+
*
|
7 |
+
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
8 |
+
* following conditions are met:
|
9 |
+
* - Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
10 |
+
* disclaimer.
|
11 |
+
* - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
12 |
+
* following disclaimer in the documentation and/or other materials provided with the distribution.
|
13 |
+
*
|
14 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
15 |
+
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
16 |
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
17 |
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
18 |
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
19 |
+
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
20 |
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
21 |
+
*/
|
22 |
+
-->
|
23 |
+
<layout version="0.1.0">
|
24 |
+
<default>
|
25 |
+
<reference name="content">
|
26 |
+
<block type="prxgt_jfb_block/adminhtml" name="prxgt_jfb_block_adminhtml"/>
|
27 |
+
</reference>
|
28 |
+
</default>
|
29 |
+
</layout>
|
app/design/frontend/default/default/layout/prxgt/jfb/jfb_frontend_layout.xml
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2013, Praxigento
|
5 |
+
* All rights reserved.
|
6 |
+
*
|
7 |
+
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
8 |
+
* following conditions are met:
|
9 |
+
* - Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
10 |
+
* disclaimer.
|
11 |
+
* - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
12 |
+
* following disclaimer in the documentation and/or other materials provided with the distribution.
|
13 |
+
*
|
14 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
15 |
+
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
16 |
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
17 |
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
18 |
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
19 |
+
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
20 |
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
21 |
+
*/
|
22 |
+
-->
|
23 |
+
<layout version="0.1.0">
|
24 |
+
<default>
|
25 |
+
<reference name="content">
|
26 |
+
<!-- add Issues Collector HTML code to HEAD node of the page -->
|
27 |
+
<block type="prxgt_jfb_block/frontend" name="prxgt_jfb_block_frontend"/>
|
28 |
+
</reference>
|
29 |
+
</default>
|
30 |
+
</layout>
|
app/etc/modules/Praxigento_JiraFeedback.xml
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2013, Praxigento
|
5 |
+
* All rights reserved.
|
6 |
+
*
|
7 |
+
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
8 |
+
* following conditions are met:
|
9 |
+
* - Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
10 |
+
* disclaimer.
|
11 |
+
* - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
12 |
+
* following disclaimer in the documentation and/or other materials provided with the distribution.
|
13 |
+
*
|
14 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
15 |
+
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
16 |
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
17 |
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
18 |
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
19 |
+
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
20 |
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
21 |
+
*/
|
22 |
+
-->
|
23 |
+
<config>
|
24 |
+
<modules>
|
25 |
+
<Praxigento_JiraFeedback>
|
26 |
+
<active>true</active>
|
27 |
+
<codePool>community</codePool>
|
28 |
+
</Praxigento_JiraFeedback>
|
29 |
+
</modules>
|
30 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Praxigento_JiraFeedback</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/apachepl-1.1.php">Apache Software License</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>JIRA Feedback by Praxigento</summary>
|
10 |
+
<description>Allows your customers to create issues in your JIRA bug tracker right from Magento storefront or admin panel.</description>
|
11 |
+
<notes>Initial version</notes>
|
12 |
+
<authors><author><name>Alex Gusev</name><user>praxigento</user><email>info@flancer.lv</email></author></authors>
|
13 |
+
<date>2013-02-28</date>
|
14 |
+
<time>07:40:27</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Praxigento"><dir name="JiraFeedback"><dir name="Block"><file name="Adminhtml.php" hash="687714a6eda01b5705dabc0ab8398779"/><file name="Frontend.php" hash="427d960fddcb30234fd4706ccdc2adef"/></dir><file name="Config.php" hash="f96b685389063adf8344f65dce1cf76e"/><dir name="Helper"><file name="Data.php" hash="a686a9b4ffa5ce82ed17b2bcc48f30b0"/></dir><dir name="etc"><file name="config.xml" hash="307d296c03d8ceba9356ab6ac4c8f239"/><file name="system.xml" hash="eef300d7851f9ec67e145731377e4041"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="prxgt"><dir name="jfb"><file name="jfb_adminhtml_layout.xml" hash="6782340221a5a365d4706a3dcbd38d26"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><dir name="prxgt"><dir name="jfb"><file name="jfb_frontend_layout.xml" hash="68419452a763f5fd237638fda8e46e5f"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Praxigento_JiraFeedback.xml" hash="6105441f37b181ff9dce520d1b5fb696"/></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
+
</package>
|