Version Notes
1.0.0 Stable
Download this release
Release Info
Developer | Dmitry Poddubny |
Extension | Magazento_Meebo_Bar |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/Magazento/Meebobar/Block/Developer.php +61 -0
- app/code/community/Magazento/Meebobar/Helper/Data.php +5 -0
- app/code/community/Magazento/Meebobar/etc/config.xml +78 -0
- app/code/community/Magazento/Meebobar/etc/system.xml +59 -0
- app/design/frontend/default/default/layout/magazento_meebobar.xml +17 -0
- app/design/frontend/default/default/template/magazento/meebobar/footer.phtml +3 -0
- app/design/frontend/default/default/template/magazento/meebobar/header.phtml +16 -0
- app/etc/modules/Magazento_Meebobar.xml +9 -0
- package.xml +18 -0
- skin/frontend/default/default/magazento/meebobar/promo.jpg +0 -0
app/code/community/Magazento/Meebobar/Block/Developer.php
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Magazento_Meebobar_Block_Developer extends Mage_Adminhtml_Block_System_Config_Form_Fieldset {
|
4 |
+
|
5 |
+
public function render(Varien_Data_Form_Element_Abstract $element) {
|
6 |
+
$content = '<p></p>';
|
7 |
+
$content.= '<style>';
|
8 |
+
$content.= '.magazento {
|
9 |
+
background:#FAFAFA;
|
10 |
+
border: 1px solid #CCCCCC;
|
11 |
+
margin-bottom: 10px;
|
12 |
+
padding: 10px;
|
13 |
+
height:auto;
|
14 |
+
|
15 |
+
}
|
16 |
+
.magazento h3 {
|
17 |
+
color: #EA7601;
|
18 |
+
}
|
19 |
+
.contact-type {
|
20 |
+
color: #EA7601;
|
21 |
+
font-weight:bold;
|
22 |
+
}
|
23 |
+
.magazento img {
|
24 |
+
border: 1px solid #CCCCCC;
|
25 |
+
float:left;
|
26 |
+
height:235px;
|
27 |
+
}
|
28 |
+
.magazento .info {
|
29 |
+
border: 1px solid #CCCCCC;
|
30 |
+
background:#E7EFEF;
|
31 |
+
padding: 5px 10px 0 5px;
|
32 |
+
margin-left:210px;
|
33 |
+
height:230px;
|
34 |
+
}
|
35 |
+
';
|
36 |
+
$content.= '</style>';
|
37 |
+
|
38 |
+
|
39 |
+
$content.= '<div class="magazento">';
|
40 |
+
$content.= '<a href="http://www.magazento.com/" target="_blank"><img src="'.Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN).'frontend/default/default/magazento/meebobar/promo.jpg" alt="www.magazento.com" /></a>';
|
41 |
+
$content.= '<div class="info">';
|
42 |
+
$content.= '<h3>Magento extensions</h3>';
|
43 |
+
$content.= '<p><a href="http://www.magazento.com/" target="_blank">www.magazento.com</a> - experts are specializing in custom extension development for the world\'s fastest growing eCommerce platform - Magento. All extensions are designed for the Magento CMS archetecture, using native libraries and only the most efficient approaches to development. If you need Magento development or have a concept for an extension you\'d like developed for the Magento CMS platform, please contact us.</p>';
|
44 |
+
$content.= '--------------------------------------------------------<br>';
|
45 |
+
$content.= '<span class="contact-type">Company website:</span> <a href="http://www.magazento.com/" target="_blank">www.magazento.com</a> <br/>';
|
46 |
+
$content.= '<span class="contact-type">E-mail:</span> magazento@gmail.com <br/>';
|
47 |
+
$content.= '<span class="contact-type">Skype:</span> karser2p <br/>';
|
48 |
+
$content.= '<span class="contact-type">Magento:</span> <a href="http://www.magentocommerce.com/magento-connect/developer/Magazento" target="_blank">visit</a> <br/>';
|
49 |
+
$content.= '<span class="contact-type">Facebook:</span> <a href="http://www.meebobar.com/dmitry.poddubny" target="_blank">visit</a> <br/>';
|
50 |
+
|
51 |
+
$content.= '</div>';
|
52 |
+
|
53 |
+
$content.= '</div>';
|
54 |
+
|
55 |
+
return $content;
|
56 |
+
|
57 |
+
|
58 |
+
}
|
59 |
+
|
60 |
+
|
61 |
+
}
|
app/code/community/Magazento/Meebobar/Helper/Data.php
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Magazento_Meebobar_Helper_Data extends Mage_Core_Helper_Abstract
|
3 |
+
{
|
4 |
+
|
5 |
+
}
|
app/code/community/Magazento/Meebobar/etc/config.xml
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
|
3 |
+
<config>
|
4 |
+
<modules>
|
5 |
+
<Magazento_Meebobar>
|
6 |
+
<version>1.0.0</version>
|
7 |
+
</Magazento_Meebobar>
|
8 |
+
</modules>
|
9 |
+
<frontend>
|
10 |
+
<layout>
|
11 |
+
<updates>
|
12 |
+
<meebobar>
|
13 |
+
<file>magazento_meebobar.xml</file>
|
14 |
+
</meebobar>
|
15 |
+
</updates>
|
16 |
+
</layout>
|
17 |
+
</frontend>
|
18 |
+
|
19 |
+
<global>
|
20 |
+
<blocks>
|
21 |
+
<meebobar>
|
22 |
+
<class>Magazento_Meebobar_Block</class>
|
23 |
+
</meebobar>
|
24 |
+
</blocks>
|
25 |
+
<helpers>
|
26 |
+
<meebobar>
|
27 |
+
<class>Magazento_Meebobar_Helper</class>
|
28 |
+
</meebobar>
|
29 |
+
</helpers>
|
30 |
+
</global>
|
31 |
+
<adminhtml>
|
32 |
+
<acl>
|
33 |
+
<resources>
|
34 |
+
<admin>
|
35 |
+
<children>
|
36 |
+
<system>
|
37 |
+
<children>
|
38 |
+
<config>
|
39 |
+
<children>
|
40 |
+
<meebobar translate="title" module="meebobar">
|
41 |
+
<title>meebobar</title>
|
42 |
+
</meebobar>
|
43 |
+
</children>
|
44 |
+
</config>
|
45 |
+
</children>
|
46 |
+
</system>
|
47 |
+
</children>
|
48 |
+
</admin>
|
49 |
+
</resources>
|
50 |
+
</acl>
|
51 |
+
<menu>
|
52 |
+
<magazento translate="title" module="meebobar">
|
53 |
+
<title>Magazento</title>
|
54 |
+
<sort_order>65</sort_order>
|
55 |
+
<children>
|
56 |
+
<meebobar translate="title" module="meebobar">
|
57 |
+
<title>Meebobar</title>
|
58 |
+
<sort_order>65</sort_order>
|
59 |
+
<children>
|
60 |
+
<settings translate="title" module="meebobar">
|
61 |
+
<title>Settings</title>
|
62 |
+
<action>adminhtml/system_config/edit/section/meebobar</action>
|
63 |
+
<sort_order>40</sort_order>
|
64 |
+
</settings>
|
65 |
+
</children>
|
66 |
+
</meebobar>
|
67 |
+
</children>
|
68 |
+
</magazento>
|
69 |
+
</menu>
|
70 |
+
</adminhtml>
|
71 |
+
<default>
|
72 |
+
<meebobar>
|
73 |
+
<general>
|
74 |
+
<enabled>1</enabled>
|
75 |
+
</general>
|
76 |
+
</meebobar>
|
77 |
+
</default>
|
78 |
+
</config>
|
app/code/community/Magazento/Meebobar/etc/system.xml
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<magazento translate="label">
|
5 |
+
<label>Magazento.com</label>
|
6 |
+
<sort_order>250</sort_order>
|
7 |
+
</magazento>
|
8 |
+
</tabs>
|
9 |
+
<sections>
|
10 |
+
<meebobar translate="label" module="meebobar">
|
11 |
+
<label>Meebo Bar</label>
|
12 |
+
<tab>magazento</tab>
|
13 |
+
<frontend_type>text</frontend_type>
|
14 |
+
<sort_order>100</sort_order>
|
15 |
+
<show_in_default>1</show_in_default>
|
16 |
+
<show_in_website>1</show_in_website>
|
17 |
+
<show_in_store>1</show_in_store>
|
18 |
+
<groups>
|
19 |
+
<general translate="label">
|
20 |
+
<label>General</label>
|
21 |
+
<sort_order>100</sort_order>
|
22 |
+
<show_in_default>1</show_in_default>
|
23 |
+
<show_in_website>1</show_in_website>
|
24 |
+
<show_in_store>1</show_in_store>
|
25 |
+
<fields>
|
26 |
+
<enabled translate="label">
|
27 |
+
<label>Enabled</label>
|
28 |
+
<frontend_type>select</frontend_type>
|
29 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
30 |
+
<sort_order>10</sort_order>
|
31 |
+
<show_in_default>1</show_in_default>
|
32 |
+
<show_in_website>1</show_in_website>
|
33 |
+
<show_in_store>1</show_in_store>
|
34 |
+
</enabled>
|
35 |
+
<network translate="label">
|
36 |
+
<label>Network</label>
|
37 |
+
<comment><![CDATA[e.g magazento_qe95si. <a href="https://bar.meebo.com/setup/1/">Get network</a> ]]>
|
38 |
+
</comment>
|
39 |
+
<frontend_type>text</frontend_type>
|
40 |
+
<sort_order>20</sort_order>
|
41 |
+
<show_in_default>1</show_in_default>
|
42 |
+
<show_in_website>1</show_in_website>
|
43 |
+
<show_in_store>1</show_in_store>
|
44 |
+
</network>
|
45 |
+
</fields>
|
46 |
+
</general>
|
47 |
+
<developer>
|
48 |
+
<frontend_model>meebobar/developer</frontend_model>
|
49 |
+
<sort_order>999</sort_order>
|
50 |
+
<show_in_default>1</show_in_default>
|
51 |
+
<show_in_website>1</show_in_website>
|
52 |
+
<show_in_store>1</show_in_store>
|
53 |
+
</developer>
|
54 |
+
</groups>
|
55 |
+
</meebobar>
|
56 |
+
</sections>
|
57 |
+
</config>
|
58 |
+
|
59 |
+
|
app/design/frontend/default/default/layout/magazento_meebobar.xml
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
<reference name="content">
|
5 |
+
<block type="page/html" name="meebobar_header" before="-" >
|
6 |
+
<action method="setTemplate" ifconfig="meebobar/general/enabled">
|
7 |
+
<template>magazento/meebobar/header.phtml</template>
|
8 |
+
</action>
|
9 |
+
</block>
|
10 |
+
<block type="page/html" name="meebobar_footer" after="-" >
|
11 |
+
<action method="setTemplate" ifconfig="meebobar/general/enabled">
|
12 |
+
<template>magazento/meebobar/footer.phtml</template>
|
13 |
+
</action>
|
14 |
+
</block>
|
15 |
+
</reference>
|
16 |
+
</default>
|
17 |
+
</layout>
|
app/design/frontend/default/default/template/magazento/meebobar/footer.phtml
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
<script type="text/javascript">
|
2 |
+
Meebo("domReady");
|
3 |
+
</script>
|
app/design/frontend/default/default/template/magazento/meebobar/header.phtml
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script type="text/javascript">
|
2 |
+
window.Meebo||function(c){function p(){return["<",i,' onload="var d=',g,";d.getElementsByTagName('head')[0].",
|
3 |
+
j,"(d.",h,"('script')).",k,"='//cim.meebo.com/cim?iv=",a.v,"&",q,"=",c[q],c[l]?
|
4 |
+
"&"+l+"="+c[l]:"",c[e]?"&"+e+"="+c[e]:"","'\"></",i,">"].join("")}var f=window,
|
5 |
+
a=f.Meebo=f.Meebo||function(){(a._=a._||[]).push(arguments)},d=document,i="body",
|
6 |
+
m=d[i],r;if(!m){r=arguments.callee;return setTimeout(function(){r(c)},100)}a.$=
|
7 |
+
{0:+new Date};a.T=function(u){a.$[u]=new Date-a.$[0]};a.v=5;var j="appendChild",
|
8 |
+
h="createElement",k="src",l="lang",q="network",e="domain",n=d[h]("div"),v=n[j](d[h]("m")),
|
9 |
+
b=d[h]("iframe"),g="document",o,s=function(){a.T("load");a("load")};f.addEventListener?
|
10 |
+
f.addEventListener("load",s,false):f.attachEvent("onload",s);n.style.display="none";
|
11 |
+
m.insertBefore(n,m.firstChild).id="meebo";b.frameBorder="0";b.name=b.id="meebo-iframe";
|
12 |
+
b.allowTransparency="true";v[j](b);try{b.contentWindow[g].open()}catch(w){c[e]=
|
13 |
+
d[e];o="javascript:var d="+g+".open();d.domain='"+d.domain+"';";b[k]=o+"void(0);"}try{var t=
|
14 |
+
b.contentWindow[g];t.write(p());t.close()}catch(x){b[k]=o+'d.write("'+p().replace(/"/g,
|
15 |
+
'\\"')+'");d.close();'}a.T(1)}({network:"<?php echo Mage::getStoreConfig('meebobar/general/network'); ?>"});
|
16 |
+
</script>
|
app/etc/modules/Magazento_Meebobar.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Magazento_Meebobar>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Magazento_Meebobar>
|
8 |
+
</modules>
|
9 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Magazento_Meebo_Bar</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license>GPL</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>The Meebo Bar is a sharing platform that connects your visitors to their friends on any social network.</summary>
|
10 |
+
<description>The Meebo Bar is a sharing platform that connects your visitors to their friends on any social network.</description>
|
11 |
+
<notes>1.0.0 Stable</notes>
|
12 |
+
<authors><author><name>Dmitry Poddubny</name><user>Magazento</user><email>magazento@gmail.com</email></author></authors>
|
13 |
+
<date>2011-06-25</date>
|
14 |
+
<time>11:17:42</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Magazento"><dir name="Meebobar"><dir name="Block"><file name="Developer.php" hash="c520aefcc2880fe58c7e413d139ad69a"/></dir><dir name="Helper"><file name="Data.php" hash="9237422e4fd5155f7dcfe02e0d875492"/></dir><dir name="etc"><file name="config.xml" hash="7504ad28444d21e49d563816b36f012e"/><file name="system.xml" hash="632363bd20d4196dcf51d10fed2b136d"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magazento_Meebobar.xml" hash="1dc60744f0dc76a699cd8d019e6c7555"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="magazento"><dir name="meebobar"><file name="promo.jpg" hash="88520d456df68c98130433b5184b8e7f"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="magazento_meebobar.xml" hash="bb159ea36263f20642dc91236e2c000b"/></dir><dir name="template"><dir name="magazento"><dir name="meebobar"><file name="footer.phtml" hash="15fa5adac6cc7c232bbed36293e35f88"/><file name="header.phtml" hash="d31bcae1e450d6244502c0fd2912bcbe"/></dir></dir></dir></dir></dir></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
+
</package>
|
skin/frontend/default/default/magazento/meebobar/promo.jpg
ADDED
Binary file
|