Twitter_ProfileBox - Version 0.1.0

Version Notes

Versions:
I've tested the modul with the versions 1.4. Older versions maybe run correct but without guarantee.

Versionen:
Ich konnte das Modul mit der Version 1.4 testen. Andere Versionen sind möglich, aber nicht garantiert.

Download this release

Release Info

Developer Magento Core Team
Extension Twitter_ProfileBox
Version 0.1.0
Comparing to
See all releases


Version 0.1.0

app/code/local/Eisbehr/TwitterBox/Block/Box.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Frontend_Base_Default_Template_TwitterBox_Box
4
+ */
5
+
6
+ class Eisbehr_TwitterBox_Block_Box extends Mage_Core_Block_Template
7
+ {
8
+ public $_helper;
9
+
10
+ protected function _construct()
11
+ {
12
+ $this->_helper = Mage::helper('twitterbox');
13
+ return;
14
+ }
15
+ }
app/code/local/Eisbehr/TwitterBox/Block/Script.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Frontend_Base_Default_Template_TwitterBox_Script
4
+ */
5
+
6
+ class Eisbehr_TwitterBox_Block_Script extends Mage_Core_Block_Template
7
+ {
8
+ public $_helper;
9
+
10
+ protected function _construct()
11
+ {
12
+ $this->_helper = Mage::helper('twitterbox');
13
+ return;
14
+ }
15
+ }
app/code/local/Eisbehr/TwitterBox/Helper/Data.php ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Eisbehr_TwitterBox_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+ public function configValue($path, $name)
5
+ {
6
+ $basePath = 'twitterbox/';
7
+ $basePath .= $path;
8
+
9
+ if( substr($basePath, 0, -1) != '/' )
10
+ {
11
+ $basePath .= '/';
12
+ }
13
+
14
+ return Mage::getStoreConfig( $basePath . $name );
15
+ }
16
+
17
+ /* general */
18
+
19
+ public function getActive()
20
+ {
21
+ $value = $this->configValue('general', 'active');
22
+ return ( $value ) ? true : false ;
23
+ }
24
+
25
+ public function getUserName()
26
+ {
27
+ $value = $this->configValue('general', 'username');
28
+ return $value;
29
+ }
30
+
31
+ /* tweets */
32
+
33
+ public function getCount()
34
+ {
35
+ $value = $this->configValue('tweets', 'count');
36
+
37
+ if( !is_numeric($value) || empty($value) )
38
+ {
39
+ return '4';
40
+ }
41
+
42
+ return $value;
43
+ }
44
+
45
+ public function getLive()
46
+ {
47
+ $value = $this->configValue('tweets', 'poll');
48
+ return ( $value ) ? "true" : "false" ;
49
+ }
50
+
51
+ public function getBehavior()
52
+ {
53
+ $value = $this->configValue('tweets', 'behavior');
54
+
55
+ if( empty($value) )
56
+ {
57
+ return 'all';
58
+ }
59
+
60
+ return $value;
61
+ }
62
+
63
+ public function getInterval()
64
+ {
65
+ $value = $this->configValue('tweets', 'interval');
66
+
67
+ if( !is_numeric($value) || empty($value) )
68
+ {
69
+ return '2000';
70
+ }
71
+
72
+ return ($value * 1000);
73
+ }
74
+
75
+ public function getLoop()
76
+ {
77
+ $value = $this->configValue('tweets', 'loop');
78
+ return ( $value ) ? "true" : "false" ;
79
+ }
80
+
81
+ public function getHashtags()
82
+ {
83
+ $value = $this->configValue('tweets', 'hashtag');
84
+ return ( $value ) ? "true" : "false" ;
85
+ }
86
+
87
+ public function getTimestamps()
88
+ {
89
+ $value = $this->configValue('tweets', 'timestamp');
90
+ return ( $value ) ? "true" : "false" ;
91
+ }
92
+
93
+ public function getAvatars()
94
+ {
95
+ $value = $this->configValue('tweets', 'avatar');
96
+ return ( $value ) ? "true" : "false" ;
97
+ }
98
+
99
+ /* size */
100
+
101
+ public function getAutoWidth()
102
+ {
103
+ $value = $this->configValue('size', 'auto');
104
+ return ( $value ) ? true : false ;
105
+ }
106
+
107
+ public function getWidth()
108
+ {
109
+ if( $this->getAutoWidth() )
110
+ {
111
+ return "'auto'";
112
+ }
113
+
114
+ $value = $this->configValue('size', 'width');
115
+
116
+ if( !is_numeric($value) || empty($value) )
117
+ {
118
+ return '250';
119
+ }
120
+
121
+ return $value;
122
+ }
123
+
124
+ public function getHeight()
125
+ {
126
+ $value = $this->configValue('size', 'height');
127
+
128
+ if( !is_numeric($value) || empty($value) )
129
+ {
130
+ return '350';
131
+ }
132
+
133
+ return $value;
134
+ }
135
+
136
+ public function getScrollbar()
137
+ {
138
+ $value = $this->configValue('size', 'scrollbar');
139
+ return ( $value ) ? "true" : "false" ;
140
+ }
141
+
142
+ /* colors */
143
+
144
+ public function getShellColor()
145
+ {
146
+ $value = $this->configValue('color', 'shell');
147
+
148
+ if( empty($value) || strlen($value) != 7 || $value{0} != '#' )
149
+ {
150
+ return "#ffffff";
151
+ }
152
+
153
+ return $value;
154
+ }
155
+
156
+ public function getTweetColor()
157
+ {
158
+ $value = $this->configValue('color', 'tweet');
159
+
160
+ if( empty($value) || strlen($value) != 7 || $value{0} != '#' )
161
+ {
162
+ return "#ffffff";
163
+ }
164
+
165
+ return $value;
166
+ }
167
+
168
+ public function getTweetLinkColor()
169
+ {
170
+ $value = $this->configValue('color', 'link');
171
+
172
+ if( empty($value) || strlen($value) != 7 || $value{0} != '#' )
173
+ {
174
+ return "#4aed05";
175
+ }
176
+
177
+ return $value;
178
+ }
179
+
180
+ public function getShellBackgroundColor()
181
+ {
182
+ $value = $this->configValue('color', 'shellbackground');
183
+
184
+ if( empty($value) || strlen($value) != 7 || $value{0} != '#' )
185
+ {
186
+ return "#333333";
187
+ }
188
+
189
+ return $value;
190
+ }
191
+
192
+ public function getTweetBackgroundColor()
193
+ {
194
+ $value = $this->configValue('color', 'tweetbackground');
195
+
196
+ if( empty($value) || strlen($value) != 7 || $value{0} != '#' )
197
+ {
198
+ return "#000000";
199
+ }
200
+
201
+ return $value;
202
+ }
203
+ }
app/code/local/Eisbehr/TwitterBox/Model/Behavior.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?PHP
2
+ class Eisbehr_TwitterBox_Model_Behavior
3
+ {
4
+ public function toOptionArray()
5
+ {
6
+ return array(
7
+ array('value' => 'all', 'label' => 'Load all tweets'),
8
+ array('value' => 'default', 'label' => 'Timed Interval'),
9
+ );
10
+ }
11
+ }
app/code/local/Eisbehr/TwitterBox/etc/config.xml ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Eisbehr_TwitterBox>
5
+ <version>0.1.0</version>
6
+ </Eisbehr_TwitterBox>
7
+ </modules>
8
+ <global>
9
+ <models>
10
+ <twitterbox>
11
+ <class>Eisbehr_TwitterBox_Model</class>
12
+ </twitterbox>
13
+ </models>
14
+ <blocks>
15
+ <twitterbox>
16
+ <class>Eisbehr_TwitterBox_Block</class>
17
+ </twitterbox>
18
+ </blocks>
19
+ <helpers>
20
+ <twitterbox>
21
+ <class>Eisbehr_TwitterBox_Helper</class>
22
+ </twitterbox>
23
+ </helpers>
24
+ </global>
25
+ <frontend>
26
+ <layout>
27
+ <updates>
28
+ <twitterbox>
29
+ <file>twitterbox.xml</file>
30
+ </twitterbox>
31
+ </updates>
32
+ </layout>
33
+ <translate>
34
+ <modules>
35
+ <Eisbehr_TwitterBox>
36
+ <files>
37
+ <default>Eisbehr_TwitterBox.csv</default>
38
+ </files>
39
+ </Eisbehr_TwitterBox>
40
+ </modules>
41
+ </translate>
42
+ </frontend>
43
+ <adminhtml>
44
+ <acl>
45
+ <resources>
46
+ <admin>
47
+ <children>
48
+ <system>
49
+ <children>
50
+ <config>
51
+ <children>
52
+ <twitterbox translate="title" module="twitterbox">
53
+ <title>Eisbehr Twitter Box</title>
54
+ <sort_order>100</sort_order>
55
+ </twitterbox>
56
+ </children>
57
+ </config>
58
+ </children>
59
+ </system>
60
+ </children>
61
+ </admin>
62
+ </resources>
63
+ </acl>
64
+ </adminhtml>
65
+ </config>
app/code/local/Eisbehr/TwitterBox/etc/system.xml ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <sections>
4
+ <twitterbox translate="label comment" module="twitterbox">
5
+ <tab>general</tab>
6
+ <label>Twitter Profile Box</label>
7
+ <frontend_type>text</frontend_type>
8
+ <sort_order>100</sort_order>
9
+ <show_in_default>1</show_in_default>
10
+ <show_in_website>1</show_in_website>
11
+ <show_in_store>1</show_in_store>
12
+ <groups>
13
+ <general translate="label comment" module="twitterbox">
14
+ <label>General</label>
15
+ <frontend_type>text</frontend_type>
16
+ <sort_order>0</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
+ <active translate="label">
22
+ <label>Active:</label>
23
+ <frontend_type>select</frontend_type>
24
+ <source_model>adminhtml/system_config_source_yesno</source_model>
25
+ <sort_order>0</sort_order>
26
+ <show_in_default>1</show_in_default>
27
+ <show_in_website>1</show_in_website>
28
+ <show_in_store>1</show_in_store>
29
+ <comment>Activate box and script including.</comment>
30
+ </active>
31
+ <username translate="label">
32
+ <label>Twitter Username:</label>
33
+ <frontend_type>text</frontend_type>
34
+ <sort_order>5</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
+ <comment>Your twitter user name to show in profile box.</comment>
39
+ </username>
40
+ </fields>
41
+ </general>
42
+ <tweets translate="label comment" module="twitterbox">
43
+ <label>Tweets</label>
44
+ <frontend_type>text</frontend_type>
45
+ <sort_order>5</sort_order>
46
+ <show_in_default>1</show_in_default>
47
+ <show_in_website>1</show_in_website>
48
+ <show_in_store>1</show_in_store>
49
+ <fields>
50
+ <count translate="label">
51
+ <label>Tweet Count:</label>
52
+ <frontend_type>text</frontend_type>
53
+ <sort_order>0</sort_order>
54
+ <show_in_default>1</show_in_default>
55
+ <show_in_website>1</show_in_website>
56
+ <show_in_store>1</show_in_store>
57
+ <comment>Tweet count shown in frontend box. (default: 4)</comment>
58
+ </count>
59
+ <poll translate="label">
60
+ <label>Polling:</label>
61
+ <frontend_type>select</frontend_type>
62
+ <source_model>adminhtml/system_config_source_yesno</source_model>
63
+ <sort_order>5</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>Poll for new results? (default: yes)</comment>
68
+ </poll>
69
+ <behavior translate="label">
70
+ <label>Behavior:</label>
71
+ <frontend_type>select</frontend_type>
72
+ <source_model>twitterbox/behavior</source_model>
73
+ <sort_order>10</sort_order>
74
+ <show_in_default>1</show_in_default>
75
+ <show_in_website>1</show_in_website>
76
+ <show_in_store>1</show_in_store>
77
+ <comment>(default: 'Load all tweets')</comment>
78
+ </behavior>
79
+ <interval translate="label">
80
+ <label>Update Interval:</label>
81
+ <frontend_type>text</frontend_type>
82
+ <sort_order>15</sort_order>
83
+ <show_in_default>1</show_in_default>
84
+ <show_in_website>1</show_in_website>
85
+ <show_in_store>1</show_in_store>
86
+ <comment>Tweet update intervall in seconds for timed behavior. (default: 2)</comment>
87
+ </interval>
88
+ <loop translate="label">
89
+ <label>Loop Event:</label>
90
+ <frontend_type>select</frontend_type>
91
+ <source_model>adminhtml/system_config_source_yesno</source_model>
92
+ <sort_order>20</sort_order>
93
+ <show_in_default>1</show_in_default>
94
+ <show_in_website>1</show_in_website>
95
+ <show_in_store>1</show_in_store>
96
+ <comment>Loop polling? (default: yes)</comment>
97
+ </loop>
98
+ <hashtag translate="label">
99
+ <label>Show Hashtags:</label>
100
+ <frontend_type>select</frontend_type>
101
+ <source_model>adminhtml/system_config_source_yesno</source_model>
102
+ <sort_order>25</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
+ <comment>Show hashtags in tweets? (default: no)</comment>
107
+ </hashtag>
108
+ <timestamp translate="label">
109
+ <label>Show Timestamps:</label>
110
+ <frontend_type>select</frontend_type>
111
+ <source_model>adminhtml/system_config_source_yesno</source_model>
112
+ <sort_order>30</sort_order>
113
+ <show_in_default>1</show_in_default>
114
+ <show_in_website>1</show_in_website>
115
+ <show_in_store>1</show_in_store>
116
+ <comment>Show timestamps in tweets? (default: no)</comment>
117
+ </timestamp>
118
+ <avatar translate="label">
119
+ <label>Show Avatars:</label>
120
+ <frontend_type>select</frontend_type>
121
+ <source_model>adminhtml/system_config_source_yesno</source_model>
122
+ <sort_order>35</sort_order>
123
+ <show_in_default>1</show_in_default>
124
+ <show_in_website>1</show_in_website>
125
+ <show_in_store>1</show_in_store>
126
+ <comment>Show avatars in tweets? (default: no)</comment>
127
+ </avatar>
128
+ </fields>
129
+ </tweets>
130
+ <size translate="label comment" module="twitterbox">
131
+ <label>Size</label>
132
+ <frontend_type>text</frontend_type>
133
+ <sort_order>10</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
+ <fields>
138
+ <auto translate="label">
139
+ <label>Auto Width:</label>
140
+ <frontend_type>select</frontend_type>
141
+ <source_model>adminhtml/system_config_source_yesno</source_model>
142
+ <sort_order>0</sort_order>
143
+ <show_in_default>1</show_in_default>
144
+ <show_in_website>1</show_in_website>
145
+ <show_in_store>1</show_in_store>
146
+ <comment>(default: no)</comment>
147
+ </auto>
148
+ <width translate="label">
149
+ <label>Width:</label>
150
+ <frontend_type>text</frontend_type>
151
+ <sort_order>5</sort_order>
152
+ <show_in_default>1</show_in_default>
153
+ <show_in_website>1</show_in_website>
154
+ <show_in_store>1</show_in_store>
155
+ <comment>Box width, if auto width is false. (default: 250)</comment>
156
+ </width>
157
+ <height translate="label">
158
+ <label>Height:</label>
159
+ <frontend_type>text</frontend_type>
160
+ <sort_order>10</sort_order>
161
+ <show_in_default>1</show_in_default>
162
+ <show_in_website>1</show_in_website>
163
+ <show_in_store>1</show_in_store>
164
+ <comment>Box height. (default: 350)</comment>
165
+ </height>
166
+ <scrollbar translate="label">
167
+ <label>Include scrollbar:</label>
168
+ <frontend_type>select</frontend_type>
169
+ <source_model>adminhtml/system_config_source_yesno</source_model>
170
+ <sort_order>15</sort_order>
171
+ <show_in_default>1</show_in_default>
172
+ <show_in_website>1</show_in_website>
173
+ <show_in_store>1</show_in_store>
174
+ <comment>(default: no)</comment>
175
+ </scrollbar>
176
+ </fields>
177
+ </size>
178
+ <color translate="label comment" module="twitterbox">
179
+ <label>Colors</label>
180
+ <frontend_type>text</frontend_type>
181
+ <sort_order>15</sort_order>
182
+ <show_in_default>1</show_in_default>
183
+ <show_in_website>1</show_in_website>
184
+ <show_in_store>1</show_in_store>
185
+ <fields>
186
+ <shell translate="label">
187
+ <label>Shell Text Color:</label>
188
+ <frontend_type>text</frontend_type>
189
+ <sort_order>0</sort_order>
190
+ <show_in_default>1</show_in_default>
191
+ <show_in_website>1</show_in_website>
192
+ <show_in_store>1</show_in_store>
193
+ <comment>Shell text color. (default: #ffffff, format: start with '#' and 6 digits long)</comment>
194
+ </shell>
195
+ <tweet translate="label">
196
+ <label>Tweet Text Color:</label>
197
+ <frontend_type>text</frontend_type>
198
+ <sort_order>10</sort_order>
199
+ <show_in_default>1</show_in_default>
200
+ <show_in_website>1</show_in_website>
201
+ <show_in_store>1</show_in_store>
202
+ <comment>Tweet text color. (default: #ffffff, format: start with '#' and 6 digits long)</comment>
203
+ </tweet>
204
+ <link translate="label">
205
+ <label>Link Text Color:</label>
206
+ <frontend_type>text</frontend_type>
207
+ <sort_order>15</sort_order>
208
+ <show_in_default>1</show_in_default>
209
+ <show_in_website>1</show_in_website>
210
+ <show_in_store>1</show_in_store>
211
+ <comment>Link text color. (default: #4aed05, format: start with '#' and 6 digits long)</comment>
212
+ </link>
213
+ <shellbackground translate="label">
214
+ <label>Shell Background Color:</label>
215
+ <frontend_type>text</frontend_type>
216
+ <sort_order>20</sort_order>
217
+ <show_in_default>1</show_in_default>
218
+ <show_in_website>1</show_in_website>
219
+ <show_in_store>1</show_in_store>
220
+ <comment>Shell background color. (default: #333333, format: start with '#' and 6 digits long)</comment>
221
+ </shellbackground>
222
+ <tweetbackground translate="label">
223
+ <label>Tweet Background Color:</label>
224
+ <frontend_type>text</frontend_type>
225
+ <sort_order>25</sort_order>
226
+ <show_in_default>1</show_in_default>
227
+ <show_in_website>1</show_in_website>
228
+ <show_in_store>1</show_in_store>
229
+ <comment>Tweet background color. (default: #000000, format: start with '#' and 6 digits long)</comment>
230
+ </tweetbackground>
231
+ </fields>
232
+ </color>
233
+ </groups>
234
+ </twitterbox>
235
+ </sections>
236
+ </config>
app/design/frontend/base/default/layout/twitterbox.xml ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <cms_index_index>
4
+ <reference name="left">
5
+ <block type="twitterbox/box" name="twitterbox.box.left" before="." template="twitterbox/box.phtml">
6
+ <block type="twitterbox/script" name="twitterbox.script" as="script" template="twitterbox/script.phtml"/>
7
+ </block>
8
+ </reference>
9
+ <reference name="right">
10
+ <block type="twitterbox/box" name="twitterbox.box.right" after="overview_random" template="twitterbox/box.phtml">
11
+ <block type="twitterbox/script" name="twitterbox.script" as="script" template="twitterbox/script.phtml"/>
12
+ </block>
13
+ </reference>
14
+ </cms_index_index>
15
+ </layout>
app/design/frontend/base/default/template/twitterbox/box.phtml ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php if( $this->_helper->getActive() ): ?>
2
+ <div class="block block-twitterbox" style="border: 0px;">
3
+ <?php echo $this->getChildHtml('script'); ?>
4
+ </div>
5
+ <?php endif; ?>
app/design/frontend/base/default/template/twitterbox/script.phtml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script src="http://widgets.twimg.com/j/2/widget.js" type="text/javascript"></script>
2
+ <script type="text/javascript">
3
+ <!--
4
+ var twitterBoxWidget = new TWTR.Widget(
5
+ {
6
+ version: 2,
7
+ type: 'profile',
8
+ rpp: <?php echo $this->_helper->getCount(); ?>,
9
+ interval: <?php echo $this->_helper->getInterval(); ?>,
10
+ width: <?php echo $this->_helper->getWidth(); ?>,
11
+ height: <?php echo $this->_helper->getHeight(); ?>,
12
+ theme:
13
+ {
14
+ shell:
15
+ {
16
+ background: '<?php echo $this->_helper->getShellBackgroundColor(); ?>',
17
+ color: '<?php echo $this->_helper->getShellColor(); ?>'
18
+ },
19
+ tweets:
20
+ {
21
+ background: '<?php echo $this->_helper->getTweetBackgroundColor(); ?>',
22
+ color: '<?php echo $this->_helper->getTweetColor(); ?>',
23
+ links: '<?php echo $this->_helper->getTweetLinkColor(); ?>'
24
+ }
25
+ },
26
+ features:
27
+ {
28
+ scrollbar: <?php echo $this->_helper->getScrollbar(); ?>,
29
+ loop: <?php echo $this->_helper->getLoop(); ?>,
30
+ live: <?php echo $this->_helper->getLive(); ?>,
31
+ hashtags: <?php echo $this->_helper->getHashtags(); ?>,
32
+ timestamp: <?php echo $this->_helper->getTimestamps(); ?>,
33
+ avatars: <?php echo $this->_helper->getAvatars(); ?>,
34
+ behavior: '<?php echo $this->_helper->getBehavior(); ?>'
35
+ }
36
+ });
37
+
38
+ twitterBoxWidget.render().setUser('<?php echo $this->_helper->getUserName(); ?>').start();
39
+ -->
40
+ </script>
app/etc/modules/Eisbehr_TwitterBox.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Eisbehr_TwitterBox>
5
+ <active>true</active>
6
+ <codePool>local</codePool>
7
+ </Eisbehr_TwitterBox>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Twitter_ProfileBox</name>
4
+ <version>0.1.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://www.gnu.org/licenses/gpl-3.0.html">GPL</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Adds Twitter Profile Box / Widget with your Username to your Store. Many options and all Features supported. Customizable.</summary>
10
+ <description>English
11
+
12
+ Feature List:
13
+ - quick insert on every page in your store
14
+ - customizable with own colors
15
+ - easy to use administration
16
+ - full twitter feature support
17
+ - tweets animation possible
18
+
19
+ Installation:
20
+ After installation you have access to the twitter profile box at your magento store. You can customize the block at your own. Please take care of following steps:
21
+
22
+ 1.) After correct modul installation re-login to magento admin panel. Now you have access to configure all options.
23
+
24
+ 2.) Activate the modul and insert your twitter username.
25
+
26
+ 3.) With this modul you have the ability to customize the box at your own. You just have to set up the color values. Insert the six digits long hex color keys with a leading pound key.
27
+
28
+ 4.) To use the box on diffent pages in your magento store, you can add or change this in the 'twitterbox.xml' in the layout-folder.
29
+
30
+ Versions:
31
+ I've tested the modul with the version 1.4.
32
+ Older versions maybe run correct but without guarantee.
33
+
34
+ Other Problems?
35
+ You can send me a message with your problem. ;)
36
+
37
+ Changelog:
38
+ - 0.1.0: public release
39
+
40
+
41
+
42
+ German
43
+
44
+ Feature List:
45
+ - Schnell auf jeder Seite Ihres Shops anzuzeigen
46
+ - Anpassbar mittels eigenen Farben
47
+ - Einfach Adminstration
48
+ - Volle Unterst&#xFC;tzung aller Twitter Besonderheiten
49
+ - Animationen der tweets m&#xF6;glich
50
+
51
+ Installation:
52
+ Nach der Installation steht Ihnen ein Block zur verf&#xFC;gung, in dem sich eine Profile Box von Twitter befindet. Um die Box an Ihre Bed&#xFC;rfnise anzupassen, beachten Sie folgende Schritte:
53
+
54
+ 1.) Nachdem das Modul installiert wurde, loggen Sie sich aus dem Admin-Bereich aus und erneut wieder an. Konfigurieren Sie im Anschluss alle Optionen im Konfigurations-Bereich.
55
+
56
+ 2.) Aktivieren Sie das Modul und tragen Sie ihren Twitter Benutzernamen ein.
57
+
58
+ 3.) Mit dem Modul besteht die M&#xF6;glichkeit, die Twitter Profile Box nach eigenen W&#xFC;nschen mittels Farbcodes zu gestalten. Hierf&#xFC;r m&#xFC;ssen Sie die sechstelligen Hex Farbwerte mit einer f&#xFC;hrenden Raute eintragen.
59
+
60
+ 4.) Wenn Sie das Modul nicht nur auf der Startseite verwenden m&#xF6;chten, so passen Sie einfach die Bereiche in der 'twitterbox.xml' im Layout-Ordner an.
61
+
62
+ Versionen:
63
+ Ich konnte das Modul mit der Version 1.4 testen.
64
+ Andere Versionen sind m&#xF6;glich, aber nicht garantiert.
65
+
66
+ Andere Probleme?
67
+ Sie k&#xF6;nnen mir eine Nachricht mit Ihren Problemen schreiben. ;)
68
+
69
+ &#xC4;nderungen:
70
+ - 0.1.0: Erster &#xF6;ffendlicher Release</description>
71
+ <notes>Versions:
72
+ I've tested the modul with the versions 1.4. Older versions maybe run correct but without guarantee.
73
+
74
+ Versionen:
75
+ Ich konnte das Modul mit der Version 1.4 testen. Andere Versionen sind m&#xF6;glich, aber nicht garantiert.</notes>
76
+ <authors><author><name>Daniel Kern</name><user>auto-converted</user><email>work@eisbehr.de</email></author></authors>
77
+ <date>2010-12-13</date>
78
+ <time>13:36:46</time>
79
+ <contents><target name="magelocal"><dir name="Eisbehr"><dir name="TwitterBox"><dir name="Block"><file name="Box.php" hash="e15fc48b067735223bab3bb8625f1721"/><file name="Script.php" hash="1ad86d6b6b67ce600d41dca29d1bdbd8"/></dir><dir name="etc"><file name="config.xml" hash="0476937a6c226555ae988c9ff16b814f"/><file name="system.xml" hash="2c969de3109e1e10cac9e0120a5c60ad"/></dir><dir name="Helper"><file name="Data.php" hash="2b4f3a649b8531295496bf0cb53ba914"/></dir><dir name="Model"><file name="Behavior.php" hash="118e7dfd86f10104af54e41cf75880c4"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="twitterbox.xml" hash="50505263e73536b9b5149cb4e14ccb78"/></dir><dir name="template"><dir name="twitterbox"><file name="box.phtml" hash="84235268d62b1c73e9a1901dfb76be58"/><file name="script.phtml" hash="3d5900d6674a78893557d7853670066b"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Eisbehr_TwitterBox.xml" hash="d7a476649adf6a8ec658da96be5a027f"/></dir></target></contents>
80
+ <compatible/>
81
+ <dependencies/>
82
+ </package>