SocialShareOG - Version 2.6.0

Version Notes

Extra OG Fields Added

Download this release

Release Info

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


Code changes from version 2.5.0 to 2.6.0

app/code/community/SocialShare/OpenGraphTags/Adminhtml/Model/System/Config/Source/Color.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class OE_SocialShare_Adminhtml_Model_System_Config_Source_Color
3
+ {
4
+ public function toOptionArray()
5
+ {
6
+ return array(
7
+ array('value'=>'light', 'label'=>Mage::helper('socialshare')->__('Light')),
8
+ array('value'=>'dark', 'label'=>Mage::helper('socialshare')->__('Dark'))
9
+ );
10
+ }
11
+ }
app/code/community/SocialShare/OpenGraphTags/Adminhtml/Model/System/Config/Source/Font.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ exit("FacebookComments");
4
+
5
+
6
+ class SocialShare_FacebookComments_Adminhtml_Model_System_Config_Source_Font
7
+ {
8
+ public function toOptionArray()
9
+ {
10
+ return array(
11
+ array('value'=>'', 'label'=>Mage::helper('socialshare')->__('')),
12
+ array('value'=>'arial', 'label'=>Mage::helper('socialshare')->__('arial')),
13
+ array('value'=>'lucida grande', 'label'=>Mage::helper('socialshare')->__('lucida grande')),
14
+ array('value'=>'segoe ui', 'label'=>Mage::helper('socialshare')->__('segoe ui')),
15
+ array('value'=>'tahoma', 'label'=>Mage::helper('socialshare')->__('tahoma')),
16
+ array('value'=>'trebuchet ms', 'label'=>Mage::helper('socialshare')->__('trebuchet ms')),
17
+ array('value'=>'verdana', 'label'=>Mage::helper('socialshare')->__('verdana'))
18
+ );
19
+ }
20
+ }
app/code/community/SocialShare/OpenGraphTags/Adminhtml/Model/System/Config/Source/Language.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class SocialShare_OpenGraphTags_Adminhtml_Model_System_Config_Source_Language
3
+ {
4
+ public function toOptionArray()
5
+ {
6
+ return array(
7
+ array('value'=>'en_US', 'label'=>Mage::helper('opengraphtags')->__('English US')),
8
+ array('value'=>'de_DE', 'label'=>Mage::helper('opengraphtags')->__('German'))
9
+ );
10
+ }
11
+ }
app/code/community/SocialShare/OpenGraphTags/Adminhtml/Model/System/Config/Source/Layout.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class OE_SocialShare_Adminhtml_Model_System_Config_Source_Layout
3
+ {
4
+ public function toOptionArray()
5
+ {
6
+ return array(
7
+ array('value'=>'button_count', 'label'=>Mage::helper('socialshare')->__('button_count')),
8
+ array('value'=>'standard', 'label'=>Mage::helper('socialshare')->__('standard'))
9
+ );
10
+ }
11
+ }
app/code/community/SocialShare/OpenGraphTags/Adminhtml/Model/System/Config/Source/Verb.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class OE_SocialShare_Adminhtml_Model_System_Config_Source_Verb
3
+ {
4
+ public function toOptionArray()
5
+ {
6
+ return array(
7
+ array('value'=>'like', 'label'=>Mage::helper('socialshare')->__('Like')),
8
+ array('value'=>'recommend', 'label'=>Mage::helper('socialshare')->__('Recommend'))
9
+ );
10
+ }
11
+ }
app/design/frontend/default/default/template/socialshare/head.phtml CHANGED
@@ -6,10 +6,14 @@
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 -->
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:site_name" content="<?php echo Mage::app()->getStore()->getName(); ?>" />
10
+ <?php $_product = Mage::registry('current_product');
11
+ if ($_product): ?>
12
  <meta property="og:type" content="product" />
13
+ <meta property="og:title" content="<?php echo trim($_product->getName()); ?>"/>
14
+ <meta property="og:image" content="<?php echo Mage::helper('catalog/image')->init($_product, 'image');?>"/>
15
+ <meta property="og:price:amount" content="<?php echo $_product->getSpecialPrice() ?>" />
16
+ <meta property="og:price:standard_amount" content="<?php echo $_product->getPrice() ?>" />
17
+ <meta property="og:price:currency" content="<?php echo Mage::app()->getStore()->getCurrentCurrencyCode(); ?>" />
18
  <?php endif; ?>
19
  <!-- SocialShare - OpenGraphTags Head END -->
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>SocialShareOG</name>
4
- <version>2.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 Open Graph Tags support for magento store and enables the use of Open Graph analitics and more advanced social Addons</description>
11
- <notes>Full Multilingual Support and Bug Fixes</notes>
12
- <authors><author><name>Roy_Toledo</name><user>Roy_Toledo</user><email>toledoroy@gmail.com</email></author></authors>
13
- <date>2013-02-02</date>
14
- <time>23:12:35</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="124bfcf8e6be20123772da9c5c458989"/></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="146cfccd1058c6438a2def18897b4d95"/></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"/><file name="body.phtml" hash="dfce724a1cfac0fa7002155f35fde1b3"/></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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>SocialShareOG</name>
4
+ <version>2.6.0</version>
5
  <stability>stable</stability>
6
+ <license>GNU</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Open Graph Tags support for magento store</summary>
10
+ <description>Open Graph Tags support for magento store</description>
11
+ <notes>Extra OG Fields Added</notes>
12
+ <authors><author><name>Roy Toledo</name><user>NikNak</user><email>toledoroy@gmail.com</email></author></authors>
13
+ <date>2014-05-22</date>
14
+ <time>13:44:31</time>
15
+ <contents><target name="magecommunity"><dir name="SocialShare"><dir name="OpenGraphTags"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Color.php" hash="ec237e9de0c6de32f75f1419a337defb"/><file name="Font.php" hash="a25370be2d6777fc30fa295888d59800"/><file name="Language.php" hash="d31bd885a47e85565d2b553d41664cdf"/><file name="Layout.php" hash="0e0c072db9b994d340e5a876fabfc470"/><file name="Verb.php" hash="502714d6b8e0b6dfb592e8f78753869a"/></dir></dir></dir></dir></dir><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="124bfcf8e6be20123772da9c5c458989"/></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="146cfccd1058c6438a2def18897b4d95"/></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="fae0f4cb102282d0f06f018014fb5411"/><file name="body.phtml" hash="dfce724a1cfac0fa7002155f35fde1b3"/></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.0.0</min><max>6.8.0</max></php></required></dependencies>
18
  </package>