Version Notes
Initial release.
Download this release
Release Info
Developer | Damir Perkosan |
Extension | Naya_FacebookComments |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/Naya/Base/Helper/Data.php +5 -0
- app/code/community/Naya/Base/etc/config.xml +40 -0
- app/code/community/Naya/Base/etc/system.xml +9 -0
- app/code/community/Naya/FacebookComments/Block/Facebookcomments.php +23 -0
- app/code/community/Naya/FacebookComments/Helper/Data.php +5 -0
- app/code/community/Naya/FacebookComments/Model/Languages.php +94 -0
- app/code/community/Naya/FacebookComments/etc/adminhtml.xml +22 -0
- app/code/community/Naya/FacebookComments/etc/config.xml +66 -0
- app/code/community/Naya/FacebookComments/etc/system.xml +52 -0
- app/design/frontend/base/default/layout/naya_facebookcomments.xml +9 -0
- app/design/frontend/base/default/template/naya/facebookcomments/facebookcomments.phtml +11 -0
- app/etc/modules/Naya_Base.xml +12 -0
- app/etc/modules/Naya_FacebookComments.xml +12 -0
- app/locale/en_US/Naya_Base.csv +0 -0
- app/locale/en_US/Naya_FacebookComments.csv +0 -0
- package.xml +18 -0
app/code/community/Naya/Base/Helper/Data.php
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Naya_Base_Helper_Data extends Mage_Core_Helper_Abstract {
|
3 |
+
|
4 |
+
|
5 |
+
}
|
app/code/community/Naya/Base/etc/config.xml
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Naya_Base>
|
5 |
+
<version>1.0.0</version>
|
6 |
+
</Naya_Base>
|
7 |
+
</modules>
|
8 |
+
|
9 |
+
<global>
|
10 |
+
<helpers>
|
11 |
+
<naya_base>
|
12 |
+
<class>Naya_Base_Helper</class>
|
13 |
+
</naya_base>
|
14 |
+
</helpers>
|
15 |
+
</global>
|
16 |
+
|
17 |
+
<adminhtml>
|
18 |
+
<translate>
|
19 |
+
<modules>
|
20 |
+
<Naya_Base>
|
21 |
+
<files>
|
22 |
+
<default>Naya_Base.csv</default>
|
23 |
+
</files>
|
24 |
+
</Naya_Base>
|
25 |
+
</modules>
|
26 |
+
</translate>
|
27 |
+
</adminhtml>
|
28 |
+
|
29 |
+
<frontend>
|
30 |
+
<translate>
|
31 |
+
<modules>
|
32 |
+
<Naya_Base>
|
33 |
+
<files>
|
34 |
+
<default>Naya_Base.csv</default>
|
35 |
+
</files>
|
36 |
+
</Naya_Base>
|
37 |
+
</modules>
|
38 |
+
</translate>
|
39 |
+
</frontend>
|
40 |
+
</config>
|
app/code/community/Naya/Base/etc/system.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<naya translate="label" module="naya_base">
|
5 |
+
<label>Naya</label>
|
6 |
+
<sort_order>2000</sort_order>
|
7 |
+
</naya>
|
8 |
+
</tabs>
|
9 |
+
</config>
|
app/code/community/Naya/FacebookComments/Block/Facebookcomments.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Naya_FacebookComments_Block_Facebookcomments extends Mage_Core_Block_Template
|
3 |
+
{
|
4 |
+
public function getLanguage(){
|
5 |
+
return Mage::getStoreConfig('naya_facebookcomments/general/language');
|
6 |
+
}
|
7 |
+
|
8 |
+
public function getAppId(){
|
9 |
+
$appID = Mage::getStoreConfig('naya_facebookcomments/general/site_id');
|
10 |
+
if($appID != ''){
|
11 |
+
return '&appId='.$appID;
|
12 |
+
}
|
13 |
+
return '';
|
14 |
+
}
|
15 |
+
|
16 |
+
public function getNumOfComments(){
|
17 |
+
return Mage::getStoreConfig('naya_facebookcomments/general/num_post');
|
18 |
+
}
|
19 |
+
|
20 |
+
public function getProductUrl(){
|
21 |
+
return Mage::registry('current_product')->getProductUrl();
|
22 |
+
}
|
23 |
+
}
|
app/code/community/Naya/FacebookComments/Helper/Data.php
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Naya_FacebookComments_Helper_Data extends Mage_Core_Helper_Abstract {
|
3 |
+
|
4 |
+
|
5 |
+
}
|
app/code/community/Naya/FacebookComments/Model/Languages.php
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Naya_FacebookComments_Model_Languages
|
4 |
+
{
|
5 |
+
public function toOptionArray()
|
6 |
+
{
|
7 |
+
$options = array(
|
8 |
+
array('value'=>'af_ZA','label'=> Mage::helper('naya_facebookcomments')->__('Afrikaans')),
|
9 |
+
array('value'=>'sq_AL','label'=> Mage::helper('naya_facebookcomments')->__('Albanian')),
|
10 |
+
array('value'=>'ar_AR','label'=> Mage::helper('naya_facebookcomments')->__('Arabic')),
|
11 |
+
array('value'=>'hy_AM','label'=> Mage::helper('naya_facebookcomments')->__('Armenian')),
|
12 |
+
array('value'=>'az_AZ','label'=> Mage::helper('naya_facebookcomments')->__('Azerbaijani')),
|
13 |
+
array('value'=>'eu_ES','label'=> Mage::helper('naya_facebookcomments')->__('Basque')),
|
14 |
+
array('value'=>'be_BY','label'=> Mage::helper('naya_facebookcomments')->__('Belarusian')),
|
15 |
+
array('value'=>'bn_IN','label'=> Mage::helper('naya_facebookcomments')->__('Bengali')),
|
16 |
+
array('value'=>'bs_BA','label'=> Mage::helper('naya_facebookcomments')->__('Bosnian')),
|
17 |
+
array('value'=>'bg_BG','label'=> Mage::helper('naya_facebookcomments')->__('Bulgarian')),
|
18 |
+
array('value'=>'ca_ES','label'=> Mage::helper('naya_facebookcomments')->__('Catalan')),
|
19 |
+
array('value'=>'cx_PH','label'=> Mage::helper('naya_facebookcomments')->__('Cebuano')),
|
20 |
+
array('value'=>'hr_HR','label'=> Mage::helper('naya_facebookcomments')->__('Croatian')),
|
21 |
+
array('value'=>'cs_CZ','label'=> Mage::helper('naya_facebookcomments')->__('Czech')),
|
22 |
+
array('value'=>'da_DK','label'=> Mage::helper('naya_facebookcomments')->__('Danish')),
|
23 |
+
array('value'=>'nl_NL','label'=> Mage::helper('naya_facebookcomments')->__('Dutch')),
|
24 |
+
array('value'=>'en_PI','label'=> Mage::helper('naya_facebookcomments')->__('English (Pirate)')),
|
25 |
+
array('value'=>'en_GB','label'=> Mage::helper('naya_facebookcomments')->__('English (UK)')),
|
26 |
+
array('value'=>'en_US','label'=> Mage::helper('naya_facebookcomments')->__('English (US)')),
|
27 |
+
array('value'=>'en_UD','label'=> Mage::helper('naya_facebookcomments')->__('English (Upside Down)')),
|
28 |
+
array('value'=>'eo_EO','label'=> Mage::helper('naya_facebookcomments')->__('Esperanto')),
|
29 |
+
array('value'=>'et_EE','label'=> Mage::helper('naya_facebookcomments')->__('Estonian')),
|
30 |
+
array('value'=>'fo_FO','label'=> Mage::helper('naya_facebookcomments')->__('Faroese')),
|
31 |
+
array('value'=>'tl_PH','label'=> Mage::helper('naya_facebookcomments')->__('Filipino')),
|
32 |
+
array('value'=>'fi_FI','label'=> Mage::helper('naya_facebookcomments')->__('Finnish')),
|
33 |
+
array('value'=>'fr_CA','label'=> Mage::helper('naya_facebookcomments')->__('French (Canada)')),
|
34 |
+
array('value'=>'fr_FR','label'=> Mage::helper('naya_facebookcomments')->__('French (France)')),
|
35 |
+
array('value'=>'fy_NL','label'=> Mage::helper('naya_facebookcomments')->__('Frisian')),
|
36 |
+
array('value'=>'gl_ES','label'=> Mage::helper('naya_facebookcomments')->__('Galician')),
|
37 |
+
array('value'=>'ka_GE','label'=> Mage::helper('naya_facebookcomments')->__('Georgian')),
|
38 |
+
array('value'=>'de_DE','label'=> Mage::helper('naya_facebookcomments')->__('German')),
|
39 |
+
array('value'=>'el_GR','label'=> Mage::helper('naya_facebookcomments')->__('Greek')),
|
40 |
+
array('value'=>'gn_PY','label'=> Mage::helper('naya_facebookcomments')->__('Guarani')),
|
41 |
+
array('value'=>'he_IL','label'=> Mage::helper('naya_facebookcomments')->__('Hebrew')),
|
42 |
+
array('value'=>'hi_IN','label'=> Mage::helper('naya_facebookcomments')->__('Hindi')),
|
43 |
+
array('value'=>'hu_HU','label'=> Mage::helper('naya_facebookcomments')->__('Hungarian')),
|
44 |
+
array('value'=>'is_IS','label'=> Mage::helper('naya_facebookcomments')->__('Icelandic')),
|
45 |
+
array('value'=>'id_ID','label'=> Mage::helper('naya_facebookcomments')->__('Indonesian')),
|
46 |
+
array('value'=>'ga_IE','label'=> Mage::helper('naya_facebookcomments')->__('Irish')),
|
47 |
+
array('value'=>'it_IT','label'=> Mage::helper('naya_facebookcomments')->__('Italian')),
|
48 |
+
array('value'=>'ja_JP','label'=> Mage::helper('naya_facebookcomments')->__('Japanese')),
|
49 |
+
array('value'=>'jv_ID','label'=> Mage::helper('naya_facebookcomments')->__('Javanese')),
|
50 |
+
array('value'=>'kn_IN','label'=> Mage::helper('naya_facebookcomments')->__('Kannada')),
|
51 |
+
array('value'=>'km_KH','label'=> Mage::helper('naya_facebookcomments')->__('Khmer')),
|
52 |
+
array('value'=>'ko_KR','label'=> Mage::helper('naya_facebookcomments')->__('Korean')),
|
53 |
+
array('value'=>'ku_TR','label'=> Mage::helper('naya_facebookcomments')->__('Kurdish')),
|
54 |
+
array('value'=>'la_VA','label'=> Mage::helper('naya_facebookcomments')->__('Latin')),
|
55 |
+
array('value'=>'lv_LV','label'=> Mage::helper('naya_facebookcomments')->__('Latvian')),
|
56 |
+
array('value'=>'fb_LT','label'=> Mage::helper('naya_facebookcomments')->__('Leet Speak')),
|
57 |
+
array('value'=>'lt_LT','label'=> Mage::helper('naya_facebookcomments')->__('Lithuanian')),
|
58 |
+
array('value'=>'mk_MK','label'=> Mage::helper('naya_facebookcomments')->__('Macedonian')),
|
59 |
+
array('value'=>'ms_MY','label'=> Mage::helper('naya_facebookcomments')->__('Malay')),
|
60 |
+
array('value'=>'ml_IN','label'=> Mage::helper('naya_facebookcomments')->__('Malayalam')),
|
61 |
+
array('value'=>'ne_NP','label'=> Mage::helper('naya_facebookcomments')->__('Nepali')),
|
62 |
+
array('value'=>'nb_NO','label'=> Mage::helper('naya_facebookcomments')->__('Norwegian (bokmal)')),
|
63 |
+
array('value'=>'nn_NO','label'=> Mage::helper('naya_facebookcomments')->__('Norwegian (nynorsk)')),
|
64 |
+
array('value'=>'ps_AF','label'=> Mage::helper('naya_facebookcomments')->__('Pashto')),
|
65 |
+
array('value'=>'fa_IR','label'=> Mage::helper('naya_facebookcomments')->__('Persian')),
|
66 |
+
array('value'=>'pl_PL','label'=> Mage::helper('naya_facebookcomments')->__('Polish')),
|
67 |
+
array('value'=>'pt_BR','label'=> Mage::helper('naya_facebookcomments')->__('Portuguese (Brazil)')),
|
68 |
+
array('value'=>'pt_PT','label'=> Mage::helper('naya_facebookcomments')->__('Portuguese (Portugal)')),
|
69 |
+
array('value'=>'pa_IN','label'=> Mage::helper('naya_facebookcomments')->__('Punjabi')),
|
70 |
+
array('value'=>'ro_RO','label'=> Mage::helper('naya_facebookcomments')->__('Romanian')),
|
71 |
+
array('value'=>'ru_RU','label'=> Mage::helper('naya_facebookcomments')->__('Russian')),
|
72 |
+
array('value'=>'sr_RS','label'=> Mage::helper('naya_facebookcomments')->__('Serbian')),
|
73 |
+
array('value'=>'zh_CN','label'=> Mage::helper('naya_facebookcomments')->__('Simplified Chinese (China)')),
|
74 |
+
array('value'=>'si_LK','label'=> Mage::helper('naya_facebookcomments')->__('Sinhala')),
|
75 |
+
array('value'=>'sk_SK','label'=> Mage::helper('naya_facebookcomments')->__('Slovak')),
|
76 |
+
array('value'=>'sl_SI','label'=> Mage::helper('naya_facebookcomments')->__('Slovenian')),
|
77 |
+
array('value'=>'es_LA','label'=> Mage::helper('naya_facebookcomments')->__('Spanish')),
|
78 |
+
array('value'=>'es_ES','label'=> Mage::helper('naya_facebookcomments')->__('Spanish (Spain)')),
|
79 |
+
array('value'=>'sw_KE','label'=> Mage::helper('naya_facebookcomments')->__('Swahili')),
|
80 |
+
array('value'=>'sv_SE','label'=> Mage::helper('naya_facebookcomments')->__('Swedish')),
|
81 |
+
array('value'=>'ta_IN','label'=> Mage::helper('naya_facebookcomments')->__('Tamil')),
|
82 |
+
array('value'=>'te_IN','label'=> Mage::helper('naya_facebookcomments')->__('Telugu')),
|
83 |
+
array('value'=>'th_TH','label'=> Mage::helper('naya_facebookcomments')->__('Thai')),
|
84 |
+
array('value'=>'zh_HK','label'=> Mage::helper('naya_facebookcomments')->__('Traditional Chinese (Hong Kong)')),
|
85 |
+
array('value'=>'zh_TW','label'=> Mage::helper('naya_facebookcomments')->__('Traditional Chinese (Taiwan)')),
|
86 |
+
array('value'=>'tr_TR','label'=> Mage::helper('naya_facebookcomments')->__('Turkish')),
|
87 |
+
array('value'=>'uk_UA','label'=> Mage::helper('naya_facebookcomments')->__('Ukrainian')),
|
88 |
+
array('value'=>'ur_PK','label'=> Mage::helper('naya_facebookcomments')->__('Urdu')),
|
89 |
+
array('value'=>'vi_VN','label'=> Mage::helper('naya_facebookcomments')->__('Vietnamese')),
|
90 |
+
array('value'=>'cy_GB','label'=> Mage::helper('naya_facebookcomments')->__('Welsh'))
|
91 |
+
);
|
92 |
+
return $options;
|
93 |
+
}
|
94 |
+
}
|
app/code/community/Naya/FacebookComments/etc/adminhtml.xml
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<acl>
|
4 |
+
<resources>
|
5 |
+
<admin>
|
6 |
+
<children>
|
7 |
+
<system>
|
8 |
+
<children>
|
9 |
+
<config>
|
10 |
+
<children>
|
11 |
+
<naya_facebookcomments translate="title" module="naya_facebookcomments">
|
12 |
+
<title>Facebook comments</title>
|
13 |
+
</naya_facebookcomments>
|
14 |
+
</children>
|
15 |
+
</config>
|
16 |
+
</children>
|
17 |
+
</system>
|
18 |
+
</children>
|
19 |
+
</admin>
|
20 |
+
</resources>
|
21 |
+
</acl>
|
22 |
+
</config>
|
app/code/community/Naya/FacebookComments/etc/config.xml
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Naya_FacebookComments>
|
5 |
+
<version>1.0.0</version>
|
6 |
+
</Naya_FacebookComments>
|
7 |
+
</modules>
|
8 |
+
|
9 |
+
<global>
|
10 |
+
<models>
|
11 |
+
<naya_facebookcomments>
|
12 |
+
<class>Naya_FacebookComments_Model</class>
|
13 |
+
</naya_facebookcomments>
|
14 |
+
</models>
|
15 |
+
<blocks>
|
16 |
+
<naya_facebookcomments>
|
17 |
+
<class>Naya_FacebookComments_Block</class>
|
18 |
+
</naya_facebookcomments>
|
19 |
+
</blocks>
|
20 |
+
<helpers>
|
21 |
+
<naya_facebookcomments>
|
22 |
+
<class>Naya_FacebookComments_Helper</class>
|
23 |
+
</naya_facebookcomments>
|
24 |
+
</helpers>
|
25 |
+
</global>
|
26 |
+
|
27 |
+
<adminhtml>
|
28 |
+
<translate>
|
29 |
+
<modules>
|
30 |
+
<Naya_FacebookComments>
|
31 |
+
<files>
|
32 |
+
<default>Naya_FacebookComments.csv</default>
|
33 |
+
</files>
|
34 |
+
</Naya_FacebookComments>
|
35 |
+
</modules>
|
36 |
+
</translate>
|
37 |
+
</adminhtml>
|
38 |
+
|
39 |
+
<frontend>
|
40 |
+
<layout>
|
41 |
+
<updates>
|
42 |
+
<naya_facebookcomments>
|
43 |
+
<file>naya_facebookcomments.xml</file>
|
44 |
+
</naya_facebookcomments>
|
45 |
+
</updates>
|
46 |
+
</layout>
|
47 |
+
<translate>
|
48 |
+
<modules>
|
49 |
+
<Naya_FacebookComments>
|
50 |
+
<files>
|
51 |
+
<default>Naya_FacebookComments.csv</default>
|
52 |
+
</files>
|
53 |
+
</Naya_FacebookComments>
|
54 |
+
</modules>
|
55 |
+
</translate>
|
56 |
+
</frontend>
|
57 |
+
|
58 |
+
<default>
|
59 |
+
<naya_facebookcomments>
|
60 |
+
<general>
|
61 |
+
<language>en_US</language>
|
62 |
+
<num_post>5</num_post>
|
63 |
+
</general>
|
64 |
+
</naya_facebookcomments>
|
65 |
+
</default>
|
66 |
+
</config>
|
app/code/community/Naya/FacebookComments/etc/system.xml
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<sections>
|
4 |
+
<naya_facebookcomments translate="label" module="naya_facebookcomments">
|
5 |
+
<class>separator-top</class>
|
6 |
+
<label>Facebook comments</label>
|
7 |
+
<tab>naya</tab>
|
8 |
+
<frontend_type>text</frontend_type>
|
9 |
+
<sort_order>1</sort_order>
|
10 |
+
<show_in_default>1</show_in_default>
|
11 |
+
<show_in_website>1</show_in_website>
|
12 |
+
<show_in_store>1</show_in_store>
|
13 |
+
<groups>
|
14 |
+
<general translate="label" module="naya_facebookcomments">
|
15 |
+
<label>General settings</label>
|
16 |
+
<sort_order>1</sort_order>
|
17 |
+
<show_in_default>1</show_in_default>
|
18 |
+
<show_in_website>1</show_in_website>
|
19 |
+
<show_in_store>1</show_in_store>
|
20 |
+
<fields>
|
21 |
+
<site_id translate="label">
|
22 |
+
<label>ID of your site</label>
|
23 |
+
<frontend_type>text</frontend_type>
|
24 |
+
<sort_order>1</sort_order>
|
25 |
+
<show_in_default>1</show_in_default>
|
26 |
+
<show_in_website>1</show_in_website>
|
27 |
+
<show_in_store>1</show_in_store>
|
28 |
+
<comment><![CDATA[<a href="http://developers.facebook.com/setup/" target="_bank">Register here</a>]]></comment>
|
29 |
+
</site_id>
|
30 |
+
<language translate="label">
|
31 |
+
<label>Language</label>
|
32 |
+
<source_model>naya_facebookcomments/languages</source_model>
|
33 |
+
<frontend_type>select</frontend_type>
|
34 |
+
<sort_order>1</sort_order>
|
35 |
+
<show_in_default>1</show_in_default>
|
36 |
+
<show_in_website>1</show_in_website>
|
37 |
+
<show_in_store>1</show_in_store>
|
38 |
+
</language>
|
39 |
+
<num_post translate="label">
|
40 |
+
<label>Number of comments</label>
|
41 |
+
<frontend_type>text</frontend_type>
|
42 |
+
<sort_order>2</sort_order>
|
43 |
+
<show_in_default>1</show_in_default>
|
44 |
+
<show_in_website>1</show_in_website>
|
45 |
+
<show_in_store>1</show_in_store>
|
46 |
+
</num_post>
|
47 |
+
</fields>
|
48 |
+
</general>
|
49 |
+
</groups>
|
50 |
+
</naya_facebookcomments>
|
51 |
+
</sections>
|
52 |
+
</config>
|
app/design/frontend/base/default/layout/naya_facebookcomments.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
|
3 |
+
<layout>
|
4 |
+
<catalog_product_view>
|
5 |
+
<reference name="product.info.additional">
|
6 |
+
<block type="naya_facebookcomments/facebookcomments" name="naya.facebook.comments" as="naya_facebook_comments" before="-" template="naya/facebookcomments/facebookcomments.phtml" />
|
7 |
+
</reference>
|
8 |
+
</catalog_product_view>
|
9 |
+
</layout>
|
app/design/frontend/base/default/template/naya/facebookcomments/facebookcomments.phtml
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<h2><?php echo $this->__('Comments') ?></h2>
|
2 |
+
<div id="fb-root"></div>
|
3 |
+
<script>(function(d, s, id) {
|
4 |
+
var js, fjs = d.getElementsByTagName(s)[0];
|
5 |
+
if (d.getElementById(id)) return;
|
6 |
+
js = d.createElement(s); js.id = id;
|
7 |
+
js.src = "//connect.facebook.net/<?php echo (string)$this->getLanguage(); ?>/sdk.js#xfbml=1<?php echo (string)$this->getAppId(); ?>&version=v2.0";
|
8 |
+
fjs.parentNode.insertBefore(js, fjs);
|
9 |
+
}(document, 'script', 'facebook-jssdk'));</script>
|
10 |
+
|
11 |
+
<div class="fb-comments" data-href="<?php echo $this->getProductUrl(); ?>" data-numposts="<?php echo (int)$this->getNumOfComments(); ?>" data-colorscheme="light" data-width="100%"></div>
|
app/etc/modules/Naya_Base.xml
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Naya_Base>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
<depends>
|
8 |
+
<Mage_Core />
|
9 |
+
</depends>
|
10 |
+
</Naya_Base>
|
11 |
+
</modules>
|
12 |
+
</config>
|
app/etc/modules/Naya_FacebookComments.xml
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Naya_FacebookComments>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
<depends>
|
8 |
+
<Mage_Core />
|
9 |
+
</depends>
|
10 |
+
</Naya_FacebookComments>
|
11 |
+
</modules>
|
12 |
+
</config>
|
app/locale/en_US/Naya_Base.csv
ADDED
File without changes
|
app/locale/en_US/Naya_FacebookComments.csv
ADDED
File without changes
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Naya_FacebookComments</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>"Naya - Facebook Comments" extension allow visitors to post Facebook comments on your product page.</summary>
|
10 |
+
<description>Improve your Magento commenting experience and enhance your site traffic with "Naya - Facebook Comments" extension. Visitors can easily post the comments using their Facebook accounts and the posts will also appear in their Facebook wall.</description>
|
11 |
+
<notes>Initial release.</notes>
|
12 |
+
<authors><author><name>Damir Perkosan</name><user>dperkosan</user><email>dperkosan@gmail.com</email></author></authors>
|
13 |
+
<date>2014-09-12</date>
|
14 |
+
<time>15:10:49</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Naya"><dir name="Base"><dir name="Helper"><file name="Data.php" hash="c8e570f1b43c26fc283c671d08500b73"/></dir><dir name="etc"><file name="config.xml" hash="f8e52dc85832a20709958cca13402daa"/><file name="system.xml" hash="19d728b32254cae1eb3b0a89b0b3a1f4"/></dir></dir><dir name="FacebookComments"><dir name="Block"><file name="Facebookcomments.php" hash="a6be26582d503cb098ecacd02f29af33"/></dir><dir name="Helper"><file name="Data.php" hash="506c5f4389e0d9b0b8e835a86029aa11"/></dir><dir name="Model"><file name="Languages.php" hash="25d96573a6a74b5058ce2cee6cd51115"/></dir><dir name="etc"><file name="adminhtml.xml" hash="7b4ea23a3ab190a723bcc3195506bf33"/><file name="config.xml" hash="1ead3a62aa35a5a050c09ffebd80dada"/><file name="system.xml" hash="987ff79ceeb1fd2bea36982f4b4d93b1"/></dir></dir></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Naya_Base.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Naya_FacebookComments.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Naya_Base.xml" hash="5a34d072400c7079ce8f79e3d288b7e8"/><file name="Naya_FacebookComments.xml" hash="9eab96fcdc73d3a8eccdb5297bfaa986"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="naya_facebookcomments.xml" hash="90d54b8ed5fb051827f7f4c245a066a4"/></dir><dir name="template"><dir name="naya"><dir name="facebookcomments"><file name="facebookcomments.phtml" hash="cb5c8ca3d67b3bb212aeb1d5c29d6cc9"/></dir></dir></dir></dir></dir></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
+
</package>
|