SocialShareOG - Version 1.5.0

Version Notes

Added Spanish German and France Support

Download this release

Release Info

Developer Roy Toledo
Extension SocialShareOG
Version 1.5.0
Comparing to
See all releases


Version 1.5.0

app/code/community/SocialShare/OpenGraphTags/Helper/Data.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class SocialShare_OpenGraphTags_Helper_Data extends Mage_Core_Helper_Abstract
4
+ {
5
+
6
+ }
app/code/community/SocialShare/OpenGraphTags/Model/System/Config/Source/Dropdown/Localization.php ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class SocialShare_OpenGraphTags_Model_System_Config_Source_Dropdown_Localization
4
+ {
5
+ public function toOptionArray()
6
+ {
7
+ return array(
8
+ array( 'value' => 'en_US', 'label' => 'English' ),
9
+ array( 'value' => 'es_LA', 'label' => 'Spanish' ),
10
+ array( 'value' => 'de_DE', 'label' => 'German' ),
11
+ array( 'value' => 'fr_FR', 'label' => 'French' ),
12
+
13
+
14
+ );
15
+ }
16
+ }
app/code/community/SocialShare/OpenGraphTags/etc/adminhtml.xml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <admin>
6
+ <children>
7
+ <system>
8
+ <children>
9
+ <config>
10
+ <children>
11
+ <opengraphtags translate="title" module="opengraphtags">
12
+ <title>Open Graph Tags</title>
13
+ </opengraphtags>
14
+ </children>
15
+ </config>
16
+ </children>
17
+ </system>
18
+ </children>
19
+ </admin>
20
+ </resources>
21
+ </acl>
22
+ </config>
app/code/community/SocialShare/OpenGraphTags/etc/config.xml ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <modules>
4
+ <SocialShare_OpenGraphTags>
5
+ <version>1.0</version>
6
+ </SocialShare_OpenGraphTags>
7
+ </modules>
8
+
9
+ <frontend>
10
+ <layout>
11
+ <updates>
12
+ <OpenGraphTags>
13
+ <file>OpenGraphTags.xml</file>
14
+ </OpenGraphTags>
15
+ </updates>
16
+ </layout>
17
+
18
+ </frontend>
19
+
20
+ <adminhtml>
21
+ <!--
22
+ <translate>
23
+ <modules>
24
+ <SocialShare_OpenGraphTags>
25
+ <files>
26
+ <default>SocialShare_OpenGraphTags.csv</default>
27
+ </files>
28
+ </SocialShare_OpenGraphTags>
29
+ </modules>
30
+ </translate>
31
+ -->
32
+ <acl>
33
+ <resources>
34
+ <admin>
35
+ <children>
36
+ <system>
37
+ <children>
38
+ <config>
39
+ <children>
40
+ <opengraphtags translate="title" module="opengraphtags">
41
+ <title>Social Share - Open Graph</title>
42
+ </opengraphtags>
43
+ </children>
44
+ </config>
45
+ </children>
46
+ </system>
47
+ </children>
48
+ </admin>
49
+ </resources>
50
+ </acl>
51
+ </adminhtml>
52
+
53
+ <global>
54
+ <resources>
55
+ <OpenGraphTags_setup>
56
+ <setup>
57
+ <module>SocialShare_OpenGraphTags</module>
58
+ </setup>
59
+ <connection>
60
+ <use>core_setup</use>
61
+ </connection>
62
+ </OpenGraphTags_setup>
63
+ <OpenGraphTags_write>
64
+ <connection>
65
+ <use>core_write</use>
66
+ </connection>
67
+ </OpenGraphTags_write>
68
+ <OpenGraphTags_read>
69
+ <connection>
70
+ <use>core_read</use>
71
+ </connection>
72
+ </OpenGraphTags_read>
73
+ </resources>
74
+ <blocks>
75
+ <OpenGraphTags>
76
+ <class>SocialShare_OpenGraphTags_Block</class>
77
+ </OpenGraphTags>
78
+ </blocks>
79
+ <helpers>
80
+ <opengraphtags>
81
+ <class>SocialShare_OpenGraphTags_Helper</class>
82
+ </opengraphtags>
83
+ </helpers>
84
+ <models>
85
+ <opengraphtags>
86
+ <class>SocialShare_OpenGraphTags_Model</class>
87
+ </opengraphtags>
88
+ </models>
89
+ </global>
90
+
91
+ <default>
92
+ <opengraphtags>
93
+
94
+ <conf>
95
+ <enabled>1</enabled>
96
+ <lang>en_US</lang>
97
+ </conf>
98
+
99
+ <!--
100
+ <general>
101
+ <enabled>1</enabled>
102
+ <color>2</color>
103
+ <lang>en_US</lang>
104
+ </general>
105
+ <opengraph>
106
+ <enabled_op>0</enabled_op>
107
+ <color>2</color>
108
+ <lang>en_US</lang>
109
+ </opengraph>
110
+ -->
111
+ </opengraphtags>
112
+ </default>
113
+ </config>
app/code/community/SocialShare/OpenGraphTags/etc/system.xml ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <tabs>
4
+ <socialshare>
5
+ <label>Social Share</label>
6
+ <sort_order>150</sort_order>
7
+ </socialshare>
8
+ </tabs>
9
+ <sections>
10
+ <opengraphtags translate="label" module="opengraphtags">
11
+ <label>Basic Configuration</label>
12
+ <tab>socialshare</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>10</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
+ <conf translate="label">
20
+ <label>General Configurations</label>
21
+ <sort_order>10</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
+ <active translate="label">
27
+ <label>Extentions Active</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
+ </active>
35
+ <lang translate="label">
36
+ <label>Language</label>
37
+ <frontend_type>select</frontend_type>
38
+ <source_model>opengraphtags/system_config_source_dropdown_localization</source_model>
39
+ <sort_order>20</sort_order>
40
+ <show_in_default>1</show_in_default>
41
+ <show_in_website>1</show_in_website>
42
+ <show_in_store>1</show_in_store>
43
+ </lang>
44
+ </fields>
45
+ </conf>
46
+ <facebook>
47
+ <label>Facebook</label>
48
+ <sort_order>20</sort_order>
49
+ <show_in_default>1</show_in_default>
50
+ <show_in_website>1</show_in_website>
51
+ <show_in_store>1</show_in_store>
52
+ <fields>
53
+ <fb_appid translate="label">
54
+ <label>Application id / key</label>
55
+ <comment><![CDATA[ Get a <a target="_blank" href="http://www.facebook.com/developers/createapp.php">Facebook API Key</a>]]></comment>
56
+ <frontend_type>text</frontend_type>
57
+ <sort_order>20</sort_order>
58
+ <show_in_default>1</show_in_default>
59
+ <show_in_website>1</show_in_website>
60
+ <show_in_store>1</show_in_store>
61
+ </fb_appid>
62
+ <fb_admins translate="label">
63
+ <label>Admin id</label>
64
+ <comment><![CDATA[ Your Facebook ID (For Analytics and Admin Rights) <br /> * Optional ]]></comment>
65
+ <frontend_type>text</frontend_type>
66
+ <sort_order>30</sort_order>
67
+ <show_in_default>1</show_in_default>
68
+ <show_in_website>1</show_in_website>
69
+ <show_in_store>1</show_in_store>
70
+ </fb_admins>
71
+ </fields>
72
+ </facebook>
73
+ <twitter>
74
+ <label>Twitter</label>
75
+ <sort_order>30</sort_order>
76
+ <show_in_default>1</show_in_default>
77
+ <show_in_website>1</show_in_website>
78
+ <show_in_store>1</show_in_store>
79
+ <fields>
80
+ <account translate="label">
81
+ <label>Tweeter Account</label>
82
+ <comment><![CDATA[ Open a <a target="_blank" href="http://twitter.com/">Twitter Account</a>]]></comment>
83
+ <frontend_type>text</frontend_type>
84
+ <sort_order>52</sort_order>
85
+ <show_in_default>1</show_in_default>
86
+ <show_in_website>1</show_in_website>
87
+ <show_in_store>1</show_in_store>
88
+ </account>
89
+ </fields>
90
+ </twitter>
91
+ </groups>
92
+ </opengraphtags>
93
+ </sections>
94
+ </config>
app/design/frontend/default/default/layout/OpenGraphTags.xml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ <reference name="head">
5
+ <block type="core/template" name="og_meta">
6
+ <action method="setTemplate" ifconfig="opengraphtags/conf/active">
7
+ <template>socialshare/head.phtml</template>
8
+ </action>
9
+ </block>
10
+ </reference>
11
+
12
+ <reference name="after_body_start">
13
+ <block type="core/template" name="og_meta">
14
+ <action method="setTemplate" ifconfig="opengraphtags/conf/active">
15
+ <template>socialshare/body.phtml</template>
16
+ </action>
17
+ </block>
18
+ </reference>
19
+
20
+ </default>
21
+ </layout>
app/design/frontend/default/default/template/socialshare/head.phtml ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!-- SocialShare - OpenGraphTags Head -->
2
+ <?php if (Mage::getStoreConfig('opengraphtags/facebook/fb_appid') != ''): ?>
3
+ <meta property="fb:app_id" content="<?php echo trim(Mage::getStoreConfig('opengraphtags/facebook/fb_appid'));?>" />
4
+ <?php endif; ?>
5
+ <?php if (Mage::getStoreConfig('opengraphtags/facebook/fb_admins') != ''): ?>
6
+ <meta property="fb:admins" content="<?php echo trim(Mage::getStoreConfig('opengraphtags/facebook/fb_admins'));?>" />
7
+ <?php endif; ?>
8
+ <meta property="og:url" content="<?php echo $this->helper('core/url')->getCurrentUrl();?>" />
9
+ <meta property="og:type" content="product" />
10
+ <?php $product = Mage::registry('current_product');
11
+ if ($product): ?>
12
+ <meta property="og:title" content="<?php echo trim($product->getName()); ?>"/>
13
+ <meta property="og:image" content="<?php echo Mage::helper('catalog/image')->init($product, 'image');?>"/>
14
+ <?php endif; ?>
15
+ <!-- SocialShare - OpenGraphTags Head END -->
app/etc/modules/SocialShare_OpenGraphTags.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <modules>
4
+ <SocialShare_OpenGraphTags>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </SocialShare_OpenGraphTags>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>SocialShareOG</name>
4
+ <version>1.5.0</version>
5
+ <stability>stable</stability>
6
+ <license>OSL</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Open Graph Tags support for magento store</summary>
10
+ <description>This extention provides Multilengual Open Graph Tags support for magento store and enables the use of Facebook connect, Open Graph analitics and more social Addons</description>
11
+ <notes>Added Spanish German and France Support</notes>
12
+ <authors><author><name>Roy</name><user>NikNak</user><email>toledoroy@gmail.com</email></author></authors>
13
+ <date>2012-09-21</date>
14
+ <time>21:23:12</time>
15
+ <contents><target name="magecommunity"><dir name="SocialShare"><dir name="OpenGraphTags"><dir name="Helper"><file name="Data.php" hash="0d955fa9a94fddc4e5fe8b6c87f1cece"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Dropdown"><file name="Localization.php" hash="b85253ee39c4483e3201b8c5bf8b5ba4"/></dir></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="d9864cf4645ba6cc01f1e8d04a4bd735"/><file name="config.xml" hash="e354c871847c66b08376f0446c7512d5"/><file name="system.xml" hash="64cfa42e7f3a4aebffcf354d4b08f441"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="OpenGraphTags.xml" hash="1d5d69364bbee107d37fb128511ee94a"/></dir><dir name="template"><dir name="socialshare"><file name="head.phtml" hash="23e5ab205f5d6c46eb60f98dce129f25"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="SocialShare_OpenGraphTags.xml" hash="820d4be224ecac5ad1ba1a7e23cb7b55"/></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies><required><php><min>4.3.0</min><max>6.0.0</max></php></required></dependencies>
18
+ </package>