SocialShareOG - Version 1.5.2

Version Notes

Added Improved Description Tag Support

Download this release

Release Info

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


Code changes from version 1.5.1 to 1.5.2

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
@@ -7,6 +7,7 @@
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()); ?>"/>
7
  <?php endif; ?>
8
  <meta property="og:url" content="<?php echo $this->helper('core/url')->getCurrentUrl();?>" />
9
  <meta property="og:type" content="product" />
10
+ <meta property="og:description" content="<?php echo strip_tags($this->getDescription()) ?>" />
11
  <?php $product = Mage::registry('current_product');
12
  if ($product): ?>
13
  <meta property="og:title" content="<?php echo trim($product->getName()); ?>"/>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>SocialShareOG</name>
4
- <version>1.5.1</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:34:18</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"/><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>1.5.2</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 Improved Description Tag Support</notes>
12
  <authors><author><name>Roy</name><user>NikNak</user><email>toledoroy@gmail.com</email></author></authors>
13
+ <date>2012-09-29</date>
14
+ <time>04:37:43</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="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="43f9333014ceff4b68e46c03a049c00f"/><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>