CRM-15036 - force emailed social media image URLs to use HTTP.
authorKeith Morgan <keith@wellebee.com>
Fri, 25 Jul 2014 14:39:07 +0000 (09:39 -0500)
committerKeith Morgan <keith@wellebee.com>
Fri, 25 Jul 2014 14:39:07 +0000 (09:39 -0500)
----------------------------------------
* CRM-15036: Social media image URLs should always use HTTP in emails
  https://issues.civicrm.org/jira/browse/CRM-15036

templates/CRM/common/SocialNetwork.tpl

index d10f3c36e4b2b7bb4fd13ef43d2714f99b5dda9e..1bf6cd68b937708f90ed716a11bcf28dcbb36dad 100644 (file)
         {if $emailMode eq true}
             {*use images for email*}
             <a href="http://twitter.com/share?url={$url}&amp;text={$title}" id="crm_tweet">
-                <img title="Twitter Tweet Button" src="{$config->userFrameworkResourceURL}/i/tweet.png" width="55px" height="20px"  alt="Tweet Button">
+                <img title="Twitter Tweet Button" src="{$config->userFrameworkResourceURL|replace:'https://':'http://'}/i/tweet.png" width="55px" height="20px"  alt="Tweet Button">
             </a>
             <a href="http://www.facebook.com/plugins/like.php?href={$url}" target="_blank">
-                <img title="Facebook Like Button" src="{$config->userFrameworkResourceURL}/i/fblike.png" alt="Facebook Button" />
+                <img title="Facebook Like Button" src="{$config->userFrameworkResourceURL|replace:'https://':'http://'}/i/fblike.png" alt="Facebook Button" />
             </a>
         {else}
             {*use advanced buttons for pages*}