Version Notes
Hello world! :)
Download this release
Release Info
Developer | Alex Gusev |
Extension | Praxigento_EmbedZoho |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/Praxigento/EmbedZoho/Block/Frontend.php +37 -0
- app/code/community/Praxigento/EmbedZoho/Config.php +48 -0
- app/code/community/Praxigento/EmbedZoho/Helper/Data.php +27 -0
- app/code/community/Praxigento/EmbedZoho/etc/config.xml +84 -0
- app/code/community/Praxigento/EmbedZoho/etc/system.xml +73 -0
- app/design/frontend/default/default/layout/prxgt/embd_zoho/embd_zoho_frontend_layout.xml +30 -0
- app/etc/modules/Praxigento_EmbedZoho.xml +30 -0
- app/locale/en_US/prxgt/embd_zoho/prxgt_embd_zoho.csv +7 -0
- package.xml +18 -0
app/code/community/Praxigento/EmbedZoho/Block/Frontend.php
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
* User: Alex Gusev <flancer64@gmail.com>
|
23 |
+
*/
|
24 |
+
class Praxigento_EmbedZoho_Block_Frontend extends Mage_Core_Block_Abstract
|
25 |
+
{
|
26 |
+
|
27 |
+
protected function _toHtml()
|
28 |
+
{
|
29 |
+
if (Praxigento_EmbedZoho_Config::cfgFrontendEnabled()) {
|
30 |
+
$prefix = "<!-- Praxigento EmbdZoho code: -->";
|
31 |
+
return $prefix . Praxigento_EmbedZoho_Config::cfgFrontendCode();
|
32 |
+
} else {
|
33 |
+
return "<!-- Praxigento EmbdZoho is disabled -->";
|
34 |
+
}
|
35 |
+
}
|
36 |
+
|
37 |
+
}
|
app/code/community/Praxigento/EmbedZoho/Config.php
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: Alex Gusev <flancer64@gmail.com>
|
24 |
+
*/
|
25 |
+
class Praxigento_EmbedZoho_Config
|
26 |
+
{
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Enable/disable EmbdZoho component on frontend.
|
30 |
+
* @static
|
31 |
+
* @return bool
|
32 |
+
*/
|
33 |
+
public static function cfgFrontendEnabled($store = null)
|
34 |
+
{
|
35 |
+
return filter_var(Mage::getStoreConfig('prxgt_embd_zoho/general/frontend_enabled', $store), FILTER_VALIDATE_BOOLEAN);
|
36 |
+
}
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Returns components code (JS/HTML) to embed to the frontend.
|
40 |
+
* @static
|
41 |
+
* @return string
|
42 |
+
*/
|
43 |
+
public static function cfgFrontendCode($store = null)
|
44 |
+
{
|
45 |
+
$val = (string)Mage::getStoreConfig('prxgt_embd_zoho/general/frontend_code', $store);
|
46 |
+
return $val;
|
47 |
+
}
|
48 |
+
}
|
app/code/community/Praxigento/EmbedZoho/Helper/Data.php
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
* User: Alex Gusev <flancer64@gmail.com>
|
23 |
+
*/
|
24 |
+
class Praxigento_EmbedZoho_Helper_Data extends Mage_Core_Helper_Abstract
|
25 |
+
{
|
26 |
+
|
27 |
+
}
|
app/code/community/Praxigento/EmbedZoho/etc/config.xml
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_EmbedZoho>
|
26 |
+
<version>1.0.0</version>
|
27 |
+
</Praxigento_EmbedZoho>
|
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_embd_zoho translate="title" module="prxgt_embd_zoho_helper">
|
40 |
+
<title>Praxigento: Embed Zoho LiveDesk Section</title>
|
41 |
+
<sort_order>350</sort_order>
|
42 |
+
</prxgt_embd_zoho>
|
43 |
+
</children>
|
44 |
+
</config>
|
45 |
+
</children>
|
46 |
+
</system>
|
47 |
+
</children>
|
48 |
+
</admin>
|
49 |
+
</resources>
|
50 |
+
</acl>
|
51 |
+
<translate>
|
52 |
+
<modules>
|
53 |
+
<prxgt_embd_zoho>
|
54 |
+
<files>
|
55 |
+
<default>prxgt/embd_zoho/prxgt_embd_zoho.csv</default>
|
56 |
+
</files>
|
57 |
+
</prxgt_embd_zoho>
|
58 |
+
</modules>
|
59 |
+
</translate>
|
60 |
+
</adminhtml>
|
61 |
+
<frontend>
|
62 |
+
<layout>
|
63 |
+
<updates>
|
64 |
+
<prxgt_embd_zoho_front_layout>
|
65 |
+
<file>prxgt/embd_zoho/embd_zoho_frontend_layout.xml</file>
|
66 |
+
</prxgt_embd_zoho_front_layout>
|
67 |
+
</updates>
|
68 |
+
</layout>
|
69 |
+
</frontend>
|
70 |
+
<global>
|
71 |
+
<blocks>
|
72 |
+
<prxgt_embd_zoho_block>
|
73 |
+
<class>Praxigento_EmbedZoho_Block</class>
|
74 |
+
</prxgt_embd_zoho_block>
|
75 |
+
</blocks>
|
76 |
+
<helpers>
|
77 |
+
<!-- Default helper for module (prevents errors like "Class 'Nmmlm_Core_Helper_Data' not found in") -->
|
78 |
+
<!-- used in <some_node module="prxgt_embd_zoho_helper"> nodes -->
|
79 |
+
<prxgt_embd_zoho_helper>
|
80 |
+
<class>Praxigento_EmbedZoho_Helper</class>
|
81 |
+
</prxgt_embd_zoho_helper>
|
82 |
+
</helpers>
|
83 |
+
</global>
|
84 |
+
</config>
|
app/code/community/Praxigento/EmbedZoho/etc/system.xml
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_embd_zoho translate="label">
|
33 |
+
<label>Embed Zoho LiveDesk</label>
|
34 |
+
<tab>prxgt</tab>
|
35 |
+
<frontend_type>text</frontend_type>
|
36 |
+
<sort_order>350</sort_order>
|
37 |
+
<show_in_default>1</show_in_default>
|
38 |
+
<show_in_website>1</show_in_website>
|
39 |
+
<show_in_store>1</show_in_store>
|
40 |
+
<groups>
|
41 |
+
<general translate="label" module="prxgt_embd_zoho_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>1</show_in_website>
|
47 |
+
<show_in_store>1</show_in_store>
|
48 |
+
<fields>
|
49 |
+
<frontend_enabled translate="label comment">
|
50 |
+
<label>Enable Zoho LiveDesk</label>
|
51 |
+
<comment>Display Zoho LiveDesk 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>1</show_in_website>
|
57 |
+
<show_in_store>1</show_in_store>
|
58 |
+
</frontend_enabled>
|
59 |
+
<frontend_code translate="label comment">
|
60 |
+
<label>Embed Source Code</label>
|
61 |
+
<comment>HTML source code for Zoho LiveDesk.</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>1</show_in_website>
|
66 |
+
<show_in_store>1</show_in_store>
|
67 |
+
</frontend_code>
|
68 |
+
</fields>
|
69 |
+
</general>
|
70 |
+
</groups>
|
71 |
+
</prxgt_embd_zoho>
|
72 |
+
</sections>
|
73 |
+
</config>
|
app/design/frontend/default/default/layout/prxgt/embd_zoho/embd_zoho_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 Zoho LiveDesk HTML code to the page -->
|
27 |
+
<block type="prxgt_embd_zoho_block/frontend" name="prxgt_embd_zoho_block_frontend"/>
|
28 |
+
</reference>
|
29 |
+
</default>
|
30 |
+
</layout>
|
app/etc/modules/Praxigento_EmbedZoho.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_EmbedZoho>
|
26 |
+
<active>true</active>
|
27 |
+
<codePool>community</codePool>
|
28 |
+
</Praxigento_EmbedZoho>
|
29 |
+
</modules>
|
30 |
+
</config>
|
app/locale/en_US/prxgt/embd_zoho/prxgt_embd_zoho.csv
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"Display Zoho LiveDesk component on the frontend.","Display Zoho LiveDesk component on the frontend."
|
2 |
+
"Embed Source Code","Embed Source Code"
|
3 |
+
"Embed Zoho LiveDesk","Embed Zoho LiveDesk"
|
4 |
+
"Enable Zoho LiveDesk","Enable Zoho LiveDesk"
|
5 |
+
"General","General"
|
6 |
+
"HTML source code for Zoho LiveDesk.","HTML source code for Zoho LiveDesk."
|
7 |
+
"Praxigento: Embed Zoho LiveDesk Section","Praxigento: Embed Zoho LiveDesk Section"
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Praxigento_EmbedZoho</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>Zoho LiveDesk by Praxigento</summary>
|
10 |
+
<description>Gives your customers the ability to initiate chats right from your site using Zoho LiveDesk service.</description>
|
11 |
+
<notes>Hello world! :)</notes>
|
12 |
+
<authors><author><name>Alex Gusev</name><user>praxigento</user><email>alex@flancer.lv</email></author></authors>
|
13 |
+
<date>2013-03-20</date>
|
14 |
+
<time>09:20:37</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Praxigento"><dir name="EmbedZoho"><dir name="Block"><file name="Frontend.php" hash="b28a5f55b5d070d88c38bc3ca14e91b0"/></dir><file name="Config.php" hash="29681abe56b83b3f71774697e43393ec"/><dir name="Helper"><file name="Data.php" hash="d8747f8348ca5d2e3e62ba9f9db523d3"/></dir><dir name="etc"><file name="config.xml" hash="4e59f282db8bb3b31a40c9564dd4bc93"/><file name="system.xml" hash="11225c09ca7fae7917a69305c929041a"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><dir name="prxgt"><dir name="embd_zoho"><file name="embd_zoho_frontend_layout.xml" hash="f5e212eefb23fab3bf331c2b66c73d80"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><dir name="prxgt"><dir name="embd_zoho"><file name="prxgt_embd_zoho.csv" hash="187145a5ffeccd995a09ef73b451865a"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Praxigento_EmbedZoho.xml" hash="afe9c4f8c05620ce9f7a0f7b7b94dca7"/></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
+
</package>
|