Version Notes
Backup files before installation
Download this release
Release Info
Developer | Magento Core Team |
Extension | OnlineBiz_GoogleSocial |
Version | 1.0 |
Comparing to | |
See all releases |
Version 1.0
- app/code/local/OnlineBiz_GoogleSocial/app/code/local/OnlineBiz/Googlesocial/Block/Widget.php +26 -0
- app/code/local/OnlineBiz_GoogleSocial/app/code/local/OnlineBiz/Googlesocial/Block/vssver.scc +0 -0
- app/code/local/OnlineBiz_GoogleSocial/app/code/local/OnlineBiz/Googlesocial/Helper/Data.php +7 -0
- app/code/local/OnlineBiz_GoogleSocial/app/code/local/OnlineBiz/Googlesocial/Helper/vssver.scc +0 -0
- app/code/local/OnlineBiz_GoogleSocial/app/code/local/OnlineBiz/Googlesocial/Model/Config/DisplayPositionOptions.php +44 -0
- app/code/local/OnlineBiz_GoogleSocial/app/code/local/OnlineBiz/Googlesocial/Model/Config/vssver.scc +0 -0
- app/code/local/OnlineBiz_GoogleSocial/app/code/local/OnlineBiz/Googlesocial/etc/config.xml +72 -0
- app/code/local/OnlineBiz_GoogleSocial/app/code/local/OnlineBiz/Googlesocial/etc/system.xml +179 -0
- app/code/local/OnlineBiz_GoogleSocial/app/code/local/OnlineBiz/Googlesocial/etc/vssver.scc +0 -0
- app/code/local/OnlineBiz_GoogleSocial/app/design/frontend/default/default/layout/googlesocial.xml +69 -0
- app/code/local/OnlineBiz_GoogleSocial/app/design/frontend/default/default/layout/vssver.scc +0 -0
- app/code/local/OnlineBiz_GoogleSocial/app/design/frontend/default/default/template/googlesocial/vssver.scc +0 -0
- app/code/local/OnlineBiz_GoogleSocial/app/design/frontend/default/default/template/googlesocial/widget.phtml +8 -0
- app/code/local/OnlineBiz_GoogleSocial/app/etc/modules/OnlineBiz_Googlesocial.xml +10 -0
- app/code/local/OnlineBiz_GoogleSocial/app/etc/modules/vssver.scc +0 -0
- package.xml +18 -0
app/code/local/OnlineBiz_GoogleSocial/app/code/local/OnlineBiz/Googlesocial/Block/Widget.php
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class OnlineBiz_Googlesocial_Block_Widget extends Mage_Catalog_Block_Product_Abstract {
|
4 |
+
protected function _construct()
|
5 |
+
{
|
6 |
+
parent::_construct();
|
7 |
+
$this->setTemplate('googlesocial/widget.phtml');
|
8 |
+
}
|
9 |
+
function displayWidget() {
|
10 |
+
if ($this->getControl()) {
|
11 |
+
$position = Mage::getStoreConfig($this->getXmlConfigPath());
|
12 |
+
if ($position == 1 && $this->getPosition() == 'left') {
|
13 |
+
|
14 |
+
return Mage::getStoreConfig($this->getXmlCodePath());
|
15 |
+
}
|
16 |
+
if ($position == 2 && $this->getPosition() == 'right') {
|
17 |
+
return Mage::getStoreConfig($this->getXmlCodePath());
|
18 |
+
}
|
19 |
+
|
20 |
+
} else {
|
21 |
+
|
22 |
+
}
|
23 |
+
|
24 |
+
return '';
|
25 |
+
}
|
26 |
+
}
|
app/code/local/OnlineBiz_GoogleSocial/app/code/local/OnlineBiz/Googlesocial/Block/vssver.scc
ADDED
Binary file
|
app/code/local/OnlineBiz_GoogleSocial/app/code/local/OnlineBiz/Googlesocial/Helper/Data.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class OnlineBiz_Googlesocial_Helper_Data extends Mage_Core_Helper_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
}
|
7 |
+
|
app/code/local/OnlineBiz_GoogleSocial/app/code/local/OnlineBiz/Googlesocial/Helper/vssver.scc
ADDED
Binary file
|
app/code/local/OnlineBiz_GoogleSocial/app/code/local/OnlineBiz/Googlesocial/Model/Config/DisplayPositionOptions.php
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class OnlineBiz_Googlesocial_Model_Config_DisplayPositionOptions extends Mage_Core_Model_Config_Data
|
4 |
+
{
|
5 |
+
/**
|
6 |
+
* Xml config path to value of samplefield1fromgroup1 field from system.xml
|
7 |
+
*
|
8 |
+
*/
|
9 |
+
const XML_PATH_COOLDASH_GROUP1_VALUES = 'samplesection1/samplegroup1/samplefield1fromgroup1';
|
10 |
+
|
11 |
+
const OPTION1_VALUE = 0;
|
12 |
+
const OPTION2_VALUE = 1;
|
13 |
+
const OPTION3_VALUE = 2;
|
14 |
+
|
15 |
+
|
16 |
+
public function getSomeValueFromSystemConfigFile()
|
17 |
+
{
|
18 |
+
return Mage::getStoreConfig(self::XML_PATH_COOLDASH_GROUP1_VALUES);
|
19 |
+
}
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Fills the select field with values
|
23 |
+
*
|
24 |
+
* @return array
|
25 |
+
*/
|
26 |
+
public function toOptionArray()
|
27 |
+
{
|
28 |
+
|
29 |
+
/**
|
30 |
+
*
|
31 |
+
* If we were to choose "Cool custom value 4" from admin backend then
|
32 |
+
* var_dump would result in "3" which is the value of const OPTION4_VALUE.
|
33 |
+
*
|
34 |
+
*/
|
35 |
+
//var_dump($this->getSomeValueFromSystemConfigFile());
|
36 |
+
|
37 |
+
|
38 |
+
return array(
|
39 |
+
self::OPTION1_VALUE => Mage::helper('googlesocial')->__('No display'),
|
40 |
+
self::OPTION2_VALUE => Mage::helper('googlesocial')->__('Left column'),
|
41 |
+
self::OPTION3_VALUE => Mage::helper('googlesocial')->__('Right column'),
|
42 |
+
);
|
43 |
+
}
|
44 |
+
}
|
app/code/local/OnlineBiz_GoogleSocial/app/code/local/OnlineBiz/Googlesocial/Model/Config/vssver.scc
ADDED
Binary file
|
app/code/local/OnlineBiz_GoogleSocial/app/code/local/OnlineBiz/Googlesocial/etc/config.xml
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<OnlineBiz_Googlesocial>
|
5 |
+
<version>0.1.0</version>
|
6 |
+
</OnlineBiz_Googlesocial>
|
7 |
+
</modules>
|
8 |
+
<frontend>
|
9 |
+
<routers>
|
10 |
+
<googlesocial>
|
11 |
+
<use>standard</use>
|
12 |
+
<args>
|
13 |
+
<module>OnlineBiz_Googlesocial</module>
|
14 |
+
<frontName>googlesocial</frontName>
|
15 |
+
</args>
|
16 |
+
</googlesocial>
|
17 |
+
</routers>
|
18 |
+
<layout>
|
19 |
+
<updates>
|
20 |
+
<googlesocial>
|
21 |
+
<file>googlesocial.xml</file>
|
22 |
+
</googlesocial>
|
23 |
+
</updates>
|
24 |
+
</layout>
|
25 |
+
</frontend>
|
26 |
+
<global>
|
27 |
+
<helpers>
|
28 |
+
<googlesocial>
|
29 |
+
<class>OnlineBiz_Googlesocial_Helper</class>
|
30 |
+
</googlesocial>
|
31 |
+
</helpers>
|
32 |
+
<blocks>
|
33 |
+
<googlesocialblock>
|
34 |
+
<class>OnlineBiz_Googlesocial_Block</class>
|
35 |
+
</googlesocialblock>
|
36 |
+
</blocks>
|
37 |
+
<models>
|
38 |
+
<googlesocialmodel>
|
39 |
+
<class>OnlineBiz_Googlesocial_Model</class>
|
40 |
+
</googlesocialmodel>
|
41 |
+
</models>
|
42 |
+
<models>
|
43 |
+
<googlesocialmodelconfig>
|
44 |
+
<class>OnlineBiz_Googlesocial_Model_Config</class>
|
45 |
+
</googlesocialmodelconfig>
|
46 |
+
</models>
|
47 |
+
|
48 |
+
</global>
|
49 |
+
|
50 |
+
<adminhtml>
|
51 |
+
<acl>
|
52 |
+
<resources>
|
53 |
+
<admin>
|
54 |
+
<children>
|
55 |
+
<system>
|
56 |
+
<children>
|
57 |
+
<config>
|
58 |
+
<children>
|
59 |
+
<googlesocial translate="title" module="googlesocial">
|
60 |
+
<title>CoolDash Section by Branko</title>
|
61 |
+
<sort_order>50</sort_order>
|
62 |
+
</googlesocial>
|
63 |
+
</children>
|
64 |
+
</config>
|
65 |
+
</children>
|
66 |
+
</system>
|
67 |
+
</children>
|
68 |
+
</admin>
|
69 |
+
</resources>
|
70 |
+
</acl>
|
71 |
+
</adminhtml>
|
72 |
+
</config>
|
app/code/local/OnlineBiz_GoogleSocial/app/code/local/OnlineBiz/Googlesocial/etc/system.xml
ADDED
@@ -0,0 +1,179 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
|
3 |
+
<config>
|
4 |
+
|
5 |
+
<tabs>
|
6 |
+
<onlinebiz_extensionmanager translate="label" module="extensionmanager">
|
7 |
+
<label>OnlineBizSoft</label>
|
8 |
+
<sort_order>300</sort_order>
|
9 |
+
</onlinebiz_extensionmanager>
|
10 |
+
</tabs>
|
11 |
+
|
12 |
+
<sections>
|
13 |
+
<googlesocial translate="label" module="googlesocial">
|
14 |
+
<label>Google Social</label>
|
15 |
+
<tab>onlinebiz_extensionmanager</tab>
|
16 |
+
<sort_order>130</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 |
+
<groups>
|
21 |
+
<featurecontent translate="label">
|
22 |
+
<label>Featured Content</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 |
+
<fields>
|
29 |
+
<featurecontentcode translate="label">
|
30 |
+
<label>Gadget Code</label>
|
31 |
+
<frontend_type>textarea</frontend_type>
|
32 |
+
<sort_order>1</sort_order>
|
33 |
+
<show_in_default>1</show_in_default>
|
34 |
+
<show_in_website>1</show_in_website>
|
35 |
+
<show_in_store>1</show_in_store>
|
36 |
+
<comment>Get gadget code <a href="http://www.google.com/friendconnect/">here</a> and see it in action (<a href="http://blog.onlinebizsoft.com/">more help</a>)</comment>
|
37 |
+
</featurecontentcode>
|
38 |
+
<featurecontentposition translate="label">
|
39 |
+
<label>Position</label>
|
40 |
+
<frontend_type>select</frontend_type>
|
41 |
+
<sort_order>2</sort_order>
|
42 |
+
<show_in_default>1</show_in_default>
|
43 |
+
<show_in_website>1</show_in_website>
|
44 |
+
<show_in_store>1</show_in_store>
|
45 |
+
<backend_model>googlesocialmodelconfig/DisplayPositionOptions</backend_model>
|
46 |
+
<source_model>googlesocialmodelconfig/DisplayPositionOptions</source_model>
|
47 |
+
|
48 |
+
</featurecontentposition>
|
49 |
+
</fields>
|
50 |
+
</featurecontent>
|
51 |
+
|
52 |
+
<joinsignin translate="label">
|
53 |
+
<label>Become members</label>
|
54 |
+
<frontend_type>text</frontend_type>
|
55 |
+
<sort_order>2</sort_order>
|
56 |
+
<show_in_default>1</show_in_default>
|
57 |
+
<show_in_website>1</show_in_website>
|
58 |
+
<show_in_store>1</show_in_store>
|
59 |
+
<fields>
|
60 |
+
<joinsignincode translate="label">
|
61 |
+
<label>Gadget Code</label>
|
62 |
+
<frontend_type>textarea</frontend_type>
|
63 |
+
<sort_order>1</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 |
+
<comment>Get gadget code <a href="http://www.google.com/friendconnect/">here</a> and see it in action (<a href="http://blog.onlinebizsoft.com/">more help</a>)</comment>
|
68 |
+
</joinsignincode>
|
69 |
+
<joinsigninposition translate="label">
|
70 |
+
<label>Position</label>
|
71 |
+
<frontend_type>select</frontend_type>
|
72 |
+
<sort_order>2</sort_order>
|
73 |
+
<show_in_default>1</show_in_default>
|
74 |
+
<show_in_website>1</show_in_website>
|
75 |
+
<show_in_store>1</show_in_store>
|
76 |
+
<backend_model>googlesocialmodelconfig/DisplayPositionOptions</backend_model>
|
77 |
+
<source_model>googlesocialmodelconfig/DisplayPositionOptions</source_model>
|
78 |
+
|
79 |
+
</joinsigninposition>
|
80 |
+
</fields>
|
81 |
+
</joinsignin>
|
82 |
+
<members translate="label">
|
83 |
+
<label>Members</label>
|
84 |
+
<frontend_type>text</frontend_type>
|
85 |
+
<sort_order>3</sort_order>
|
86 |
+
<show_in_default>1</show_in_default>
|
87 |
+
<show_in_website>1</show_in_website>
|
88 |
+
<show_in_store>1</show_in_store>
|
89 |
+
<fields>
|
90 |
+
<memberscode translate="label">
|
91 |
+
<label>Gadget Code</label>
|
92 |
+
<frontend_type>textarea</frontend_type>
|
93 |
+
<sort_order>1</sort_order>
|
94 |
+
<show_in_default>1</show_in_default>
|
95 |
+
<show_in_website>1</show_in_website>
|
96 |
+
<show_in_store>1</show_in_store>
|
97 |
+
<comment>Get gadget code <a href="http://www.google.com/friendconnect/">here</a> and see it in action (<a href="http://blog.onlinebizsoft.com/">more help</a>)</comment>
|
98 |
+
</memberscode>
|
99 |
+
<membersposition translate="label">
|
100 |
+
<label>Position</label>
|
101 |
+
<frontend_type>select</frontend_type>
|
102 |
+
<sort_order>2</sort_order>
|
103 |
+
<show_in_default>1</show_in_default>
|
104 |
+
<show_in_website>1</show_in_website>
|
105 |
+
<show_in_store>1</show_in_store>
|
106 |
+
<backend_model>googlesocialmodelconfig/DisplayPositionOptions</backend_model>
|
107 |
+
<source_model>googlesocialmodelconfig/DisplayPositionOptions</source_model>
|
108 |
+
|
109 |
+
</membersposition>
|
110 |
+
</fields>
|
111 |
+
</members>
|
112 |
+
|
113 |
+
<recommendation translate="label">
|
114 |
+
<label>Most Recommendation Content</label>
|
115 |
+
<frontend_type>text</frontend_type>
|
116 |
+
<sort_order>4</sort_order>
|
117 |
+
<show_in_default>1</show_in_default>
|
118 |
+
<show_in_website>1</show_in_website>
|
119 |
+
<show_in_store>1</show_in_store>
|
120 |
+
<fields>
|
121 |
+
<recommendationcode translate="label">
|
122 |
+
<label>Gadget Code</label>
|
123 |
+
<frontend_type>textarea</frontend_type>
|
124 |
+
<sort_order>1</sort_order>
|
125 |
+
<show_in_default>1</show_in_default>
|
126 |
+
<show_in_website>1</show_in_website>
|
127 |
+
<show_in_store>1</show_in_store>
|
128 |
+
<comment>Get gadget code <a href="http://www.google.com/friendconnect/">here</a> and see it in action (<a href="http://blog.onlinebizsoft.com/">more help</a>)</comment>
|
129 |
+
</recommendationcode>
|
130 |
+
<recommendationposition translate="label">
|
131 |
+
<label>Position</label>
|
132 |
+
<frontend_type>select</frontend_type>
|
133 |
+
<sort_order>2</sort_order>
|
134 |
+
<show_in_default>1</show_in_default>
|
135 |
+
<show_in_website>1</show_in_website>
|
136 |
+
<show_in_store>1</show_in_store>
|
137 |
+
<backend_model>googlesocialmodelconfig/DisplayPositionOptions</backend_model>
|
138 |
+
<source_model>googlesocialmodelconfig/DisplayPositionOptions</source_model>
|
139 |
+
|
140 |
+
</recommendationposition>
|
141 |
+
</fields>
|
142 |
+
</recommendation>
|
143 |
+
|
144 |
+
<vistors translate="label">
|
145 |
+
<label>Last visitors</label>
|
146 |
+
<frontend_type>text</frontend_type>
|
147 |
+
<sort_order>5</sort_order>
|
148 |
+
<show_in_default>1</show_in_default>
|
149 |
+
<show_in_website>1</show_in_website>
|
150 |
+
<show_in_store>1</show_in_store>
|
151 |
+
<fields>
|
152 |
+
<vistorscode translate="label">
|
153 |
+
<label>Gadget Code</label>
|
154 |
+
<frontend_type>textarea</frontend_type>
|
155 |
+
<sort_order>1</sort_order>
|
156 |
+
<show_in_default>1</show_in_default>
|
157 |
+
<show_in_website>1</show_in_website>
|
158 |
+
<show_in_store>1</show_in_store>
|
159 |
+
<comment>Get gadget code <a href="http://www.google.com/friendconnect/">here</a> and see it in action (<a href="http://blog.onlinebizsoft.com/">more help</a>)</comment>
|
160 |
+
</vistorscode>
|
161 |
+
<vistorsposition translate="label">
|
162 |
+
<label>Position</label>
|
163 |
+
<frontend_type>select</frontend_type>
|
164 |
+
<sort_order>2</sort_order>
|
165 |
+
<show_in_default>1</show_in_default>
|
166 |
+
<show_in_website>1</show_in_website>
|
167 |
+
<show_in_store>1</show_in_store>
|
168 |
+
<backend_model>googlesocialmodelconfig/DisplayPositionOptions</backend_model>
|
169 |
+
<source_model>googlesocialmodelconfig/DisplayPositionOptions</source_model>
|
170 |
+
|
171 |
+
</vistorsposition>
|
172 |
+
</fields>
|
173 |
+
</vistors>
|
174 |
+
|
175 |
+
</groups>
|
176 |
+
</googlesocial>
|
177 |
+
</sections>
|
178 |
+
|
179 |
+
</config>
|
app/code/local/OnlineBiz_GoogleSocial/app/code/local/OnlineBiz/Googlesocial/etc/vssver.scc
ADDED
Binary file
|
app/code/local/OnlineBiz_GoogleSocial/app/design/frontend/default/default/layout/googlesocial.xml
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
<reference name="left">
|
5 |
+
<block type="googlesocialblock/widget" name="left.socialwidget1">
|
6 |
+
<action method="setData"><name>position</name><value>left</value></action>
|
7 |
+
<action method="setData"><name>control</name><value>admin</value></action>
|
8 |
+
<action method="setData"><name>xml_code_path</name><value>googlesocial/featurecontent/featurecontentcode</value></action>
|
9 |
+
<action method="setData"><name>xml_config_path</name><value>googlesocial/featurecontent/featurecontentposition</value></action>
|
10 |
+
</block>
|
11 |
+
<block type="googlesocialblock/widget" name="left.socialwidget2">
|
12 |
+
<action method="setData"><name>position</name><value>left</value></action>
|
13 |
+
<action method="setData"><name>control</name><value>admin</value></action>
|
14 |
+
<action method="setData"><name>xml_code_path</name><value>googlesocial/joinsignin/joinsignincode</value></action>
|
15 |
+
<action method="setData"><name>xml_config_path</name><value>googlesocial/joinsignin/joinsigninposition</value></action>
|
16 |
+
</block>
|
17 |
+
<block type="googlesocialblock/widget" name="left.socialwidget3">
|
18 |
+
<action method="setData"><name>position</name><value>left</value></action>
|
19 |
+
<action method="setData"><name>control</name><value>admin</value></action>
|
20 |
+
<action method="setData"><name>xml_code_path</name><value>googlesocial/members/memberscode</value></action>
|
21 |
+
<action method="setData"><name>xml_config_path</name><value>googlesocial/members/membersposition</value></action>
|
22 |
+
</block>
|
23 |
+
<block type="googlesocialblock/widget" name="left.socialwidget4">
|
24 |
+
<action method="setData"><name>position</name><value>left</value></action>
|
25 |
+
<action method="setData"><name>control</name><value>admin</value></action>
|
26 |
+
<action method="setData"><name>xml_code_path</name><value>googlesocial/recommendation/recommendationcode</value></action>
|
27 |
+
<action method="setData"><name>xml_config_path</name><value>googlesocial/recommendation/recommendationposition</value></action>
|
28 |
+
</block>
|
29 |
+
<block type="googlesocialblock/widget" name="left.socialwidget5">
|
30 |
+
<action method="setData"><name>position</name><value>left</value></action>
|
31 |
+
<action method="setData"><name>control</name><value>admin</value></action>
|
32 |
+
<action method="setData"><name>xml_code_path</name><value>googlesocial/vistors/vistorscode</value></action>
|
33 |
+
<action method="setData"><name>xml_config_path</name><value>googlesocial/vistors/vistorsposition</value></action>
|
34 |
+
</block>
|
35 |
+
</reference>
|
36 |
+
<reference name="right">
|
37 |
+
<block type="googlesocialblock/widget" name="right.socialwidget1">
|
38 |
+
<action method="setData"><name>position</name><value>right</value></action>
|
39 |
+
<action method="setData"><name>control</name><value>admin</value></action>
|
40 |
+
<action method="setData"><name>xml_code_path</name><value>googlesocial/featurecontent/featurecontentcode</value></action>
|
41 |
+
<action method="setData"><name>xml_config_path</name><value>googlesocial/featurecontent/featurecontentposition</value></action>
|
42 |
+
</block>
|
43 |
+
<block type="googlesocialblock/widget" name="right.socialwidget2">
|
44 |
+
<action method="setData"><name>position</name><value>right</value></action>
|
45 |
+
<action method="setData"><name>control</name><value>admin</value></action>
|
46 |
+
<action method="setData"><name>xml_code_path</name><value>googlesocial/joinsignin/joinsignincode</value></action>
|
47 |
+
<action method="setData"><name>xml_config_path</name><value>googlesocial/joinsignin/joinsigninposition</value></action>
|
48 |
+
</block>
|
49 |
+
<block type="googlesocialblock/widget" name="right.socialwidget3">
|
50 |
+
<action method="setData"><name>position</name><value>right</value></action>
|
51 |
+
<action method="setData"><name>control</name><value>admin</value></action>
|
52 |
+
<action method="setData"><name>xml_code_path</name><value>googlesocial/members/memberscode</value></action>
|
53 |
+
<action method="setData"><name>xml_config_path</name><value>googlesocial/members/membersposition</value></action>
|
54 |
+
</block>
|
55 |
+
<block type="googlesocialblock/widget" name="right.socialwidget4">
|
56 |
+
<action method="setData"><name>position</name><value>right</value></action>
|
57 |
+
<action method="setData"><name>control</name><value>admin</value></action>
|
58 |
+
<action method="setData"><name>xml_code_path</name><value>googlesocial/recommendation/recommendationcode</value></action>
|
59 |
+
<action method="setData"><name>xml_config_path</name><value>googlesocial/recommendation/recommendationposition</value></action>
|
60 |
+
</block>
|
61 |
+
<block type="googlesocialblock/widget" name="right.socialwidget5">
|
62 |
+
<action method="setData"><name>position</name><value>right</value></action>
|
63 |
+
<action method="setData"><name>control</name><value>admin</value></action>
|
64 |
+
<action method="setData"><name>xml_code_path</name><value>googlesocial/vistors/vistorscode</value></action>
|
65 |
+
<action method="setData"><name>xml_config_path</name><value>googlesocial/vistors/vistorsposition</value></action>
|
66 |
+
</block>
|
67 |
+
</reference>
|
68 |
+
</default>
|
69 |
+
</layout>
|
app/code/local/OnlineBiz_GoogleSocial/app/design/frontend/default/default/layout/vssver.scc
ADDED
Binary file
|
app/code/local/OnlineBiz_GoogleSocial/app/design/frontend/default/default/template/googlesocial/vssver.scc
ADDED
Binary file
|
app/code/local/OnlineBiz_GoogleSocial/app/design/frontend/default/default/template/googlesocial/widget.phtml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $widget = $this->displayWidget();
|
2 |
+
if (!empty($widget)) {
|
3 |
+
?>
|
4 |
+
<div class="social_widget">
|
5 |
+
<?php echo $this->displayWidget(); ?>
|
6 |
+
<p style="font-size:9px;">Powered by <a href="http://store.onlinebizsoft.com/google-social.html">Magento Social Extension</a></p>
|
7 |
+
</div>
|
8 |
+
<?php } ?>
|
app/code/local/OnlineBiz_GoogleSocial/app/etc/modules/OnlineBiz_Googlesocial.xml
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<OnlineBiz_Googlesocial>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>local</codePool>
|
7 |
+
<version>0.1.0</version>
|
8 |
+
</OnlineBiz_Googlesocial>
|
9 |
+
</modules>
|
10 |
+
</config>
|
app/code/local/OnlineBiz_GoogleSocial/app/etc/modules/vssver.scc
ADDED
Binary file
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>OnlineBiz_GoogleSocial</name>
|
4 |
+
<version>1.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license>OSL v3.0</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Allow various widget of new Google Social Network platform (Google Friend Connect)</summary>
|
10 |
+
<description>Support Members Gadget, Last Visitors, Featured Content, Recommendation Contents,...... be ahead of your competitors to attractive members for your store.</description>
|
11 |
+
<notes>Backup files before installation</notes>
|
12 |
+
<authors><author><name>Thannd</name><user>auto-converted</user><email>than@onlinebizsoft.com</email></author></authors>
|
13 |
+
<date>2011-07-25</date>
|
14 |
+
<time>08:57:55</time>
|
15 |
+
<contents><target name="magelocal"><dir name="OnlineBiz_GoogleSocial"><dir name="app"><dir name="code"><dir name="local"><dir name="OnlineBiz"><dir name="Googlesocial"><dir name="Block"><file name="vssver.scc" hash="4299a70eee49a6f89ef3d08635f0b94b"/><file name="Widget.php" hash="feda1394440af70f518fe56c5fbd37da"/></dir><dir name="etc"><file name="config.xml" hash="78a7cb80ae9af3a77433b40765b6e4a5"/><file name="system.xml" hash="64b25bc99b2ab82cf6227fedd129fb5b"/><file name="vssver.scc" hash="7b907c0c4850d10e014e21022791afd5"/></dir><dir name="Helper"><file name="Data.php" hash="9633c8fefa1767b4f33a3a408b9b055d"/><file name="vssver.scc" hash="20723220e658d15d8b8fd6f4cca40b09"/></dir><dir name="Model"><dir name="Config"><file name="DisplayPositionOptions.php" hash="476c8daa57e6ef3ab4690c037bf24dfc"/><file name="vssver.scc" hash="5d8993b7e7fd8762d2ca047cc7137f21"/></dir></dir></dir></dir></dir></dir><dir name="design"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="googlesocial.xml" hash="dd081286ada4238f8ab5e70d1104744a"/><file name="vssver.scc" hash="2040e5b151e8205397d224d637d4c2c7"/></dir><dir name="template"><dir name="googlesocial"><file name="vssver.scc" hash="c1bf376398bc3613702b57dd6b346989"/><file name="widget.phtml" hash="9019d6c4d019bf4c6af9d6c5fb12a89e"/></dir></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="OnlineBiz_Googlesocial.xml" hash="f0c253537dc8124d6557ef78f601b4ee"/><file name="vssver.scc" hash="0c7a7e43eb57d6150037e78a4fa9423a"/></dir></dir></dir></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies><required><package><name></name><channel>community</channel><min></min><max></max></package></required></dependencies>
|
18 |
+
</package>
|