Version Notes
Open Graph Protocol Updates
Changed is_empty value check
added default price 0.00 for type 'product' as to Facebook requirements
Striping HTML Before using htmlspecialchars
Download this release
Release Info
Developer | Roy Toledo |
Extension | SocialShareOG |
Version | 3.0.3 |
Comparing to | |
See all releases |
Code changes from version 3.0.2 to 3.0.3
app/design/frontend/base/default/template/socialshare/head.phtml
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
$_socialShareOgData["og:type"] = "article";
|
15 |
$_socialShareOgData["og:title"] = strip_tags($this->getLayout()->getBlock('head')->getTitle());
|
16 |
$_socialShareOgData["og:url"] = Mage::helper('core')->escapeHtml(Mage::helper('core/url')->getCurrentUrl());
|
17 |
-
$_socialShareOgData["og:description"] = strip_tags( $this->getLayout()->getBlock('head')->getDescription() ); //Head Meta Descripion
|
18 |
//$_socialShareOgData["og:description"] = strip_tags($this->getDescription());
|
19 |
$_socialShareOgData["og:site_name"] = Mage::app()->getStore()->getFrontEndName();
|
20 |
|
@@ -26,7 +26,7 @@
|
|
26 |
$_socialShareOgData["og:url"] = $_product->getProductUrl();
|
27 |
|
28 |
if( empty($_socialShareOgData["og:description"]) )
|
29 |
-
$_socialShareOgData["og:description"] =
|
30 |
|
31 |
/* Pricing */
|
32 |
if (Mage::getStoreConfig('sales/msrp/enabled') != "1") { // MAP pricing NOT enabled
|
@@ -93,7 +93,7 @@
|
|
93 |
/* Print OG Tags */
|
94 |
foreach($_socialShareOgData as $key => $value) {
|
95 |
if(!empty($value))
|
96 |
-
echo "<meta property
|
97 |
}
|
98 |
?>
|
99 |
<!-- END SocialShare - OpenGraphTags Head -->
|
14 |
$_socialShareOgData["og:type"] = "article";
|
15 |
$_socialShareOgData["og:title"] = strip_tags($this->getLayout()->getBlock('head')->getTitle());
|
16 |
$_socialShareOgData["og:url"] = Mage::helper('core')->escapeHtml(Mage::helper('core/url')->getCurrentUrl());
|
17 |
+
$_socialShareOgData["og:description"] = str_replace("'","`",strip_tags( $this->getLayout()->getBlock('head')->getDescription() ) ); //Head Meta Descripion
|
18 |
//$_socialShareOgData["og:description"] = strip_tags($this->getDescription());
|
19 |
$_socialShareOgData["og:site_name"] = Mage::app()->getStore()->getFrontEndName();
|
20 |
|
26 |
$_socialShareOgData["og:url"] = $_product->getProductUrl();
|
27 |
|
28 |
if( empty($_socialShareOgData["og:description"]) )
|
29 |
+
$_socialShareOgData["og:description"] = str_replace("'","`",strip_tags(($_product->getShortDescription())));
|
30 |
|
31 |
/* Pricing */
|
32 |
if (Mage::getStoreConfig('sales/msrp/enabled') != "1") { // MAP pricing NOT enabled
|
93 |
/* Print OG Tags */
|
94 |
foreach($_socialShareOgData as $key => $value) {
|
95 |
if(!empty($value))
|
96 |
+
echo "<meta property='{$key}' content='{$value}' />\n";
|
97 |
}
|
98 |
?>
|
99 |
<!-- END SocialShare - OpenGraphTags Head -->
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>SocialShareOG</name>
|
4 |
-
<version>3.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU</license>
|
7 |
<channel>community</channel>
|
@@ -14,9 +14,9 @@ Changed is_empty value check
|
|
14 |
added default price 0.00 for type 'product' as to Facebook requirements
|
15 |
Striping HTML Before using htmlspecialchars</notes>
|
16 |
<authors><author><name>Roy Toledo</name><user>NikNak</user><email>toledoroy@gmail.com</email></author></authors>
|
17 |
-
<date>
|
18 |
-
<time>
|
19 |
-
<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="000d6508eaaec0ab8f9ca63d5bd1418a"/><file name="config.xml" hash="efdb49f4ced5ec95afd300797f1ec187"/><file name="system.xml" hash="bbbba32503774d6adabaf78aeafecd8c"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="socialshare"><file name="OpenGraphTags.xml" hash="fab44e385036aa51b436aee01baed864"/></dir></dir><dir name="template"><dir name="socialshare"><file name="head.phtml" hash="
|
20 |
<compatible/>
|
21 |
-
<dependencies><required><php><min>4.0.0</min><max>
|
22 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>SocialShareOG</name>
|
4 |
+
<version>3.0.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU</license>
|
7 |
<channel>community</channel>
|
14 |
added default price 0.00 for type 'product' as to Facebook requirements
|
15 |
Striping HTML Before using htmlspecialchars</notes>
|
16 |
<authors><author><name>Roy Toledo</name><user>NikNak</user><email>toledoroy@gmail.com</email></author></authors>
|
17 |
+
<date>2017-04-15</date>
|
18 |
+
<time>06:44:58</time>
|
19 |
+
<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="000d6508eaaec0ab8f9ca63d5bd1418a"/><file name="config.xml" hash="efdb49f4ced5ec95afd300797f1ec187"/><file name="system.xml" hash="bbbba32503774d6adabaf78aeafecd8c"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="socialshare"><file name="OpenGraphTags.xml" hash="fab44e385036aa51b436aee01baed864"/></dir></dir><dir name="template"><dir name="socialshare"><file name="head.phtml" hash="e3981db8f78065d04709013cabc13722"/><file name="body.phtml" hash="a978f917347c374dbe8fb9145d22df94"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="SocialShare_OpenGraphTags.xml" hash="820d4be224ecac5ad1ba1a7e23cb7b55"/></dir></target></contents>
|
20 |
<compatible/>
|
21 |
+
<dependencies><required><php><min>4.0.0</min><max>8.0.0</max></php></required></dependencies>
|
22 |
</package>
|