Changeset 31054 for extensions/ShareThis


Ignore:
Timestamp:
Mar 23, 2015, 2:50:28 AM (9 years ago)
Author:
SergeD
Message:

version 1.0.1 - see change log for details

Location:
extensions/ShareThis
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/ShareThis/changelog.txt

    r31053 r31054  
    1616=== Changelog ===
    1717version 1.0.1
     18+ Added Facebook <meta property="og:.. support
    1819- Fixed support and download references in admin area
    1920- Fixed image reference for images. Facebook sharer may not load picture in preview, but should succeed at repeated attempt or when image is actually loaded
  • extensions/ShareThis/main.inc.php

    r31053 r31054  
    9797                   . '{if $sharethis_facebook}'
    9898                      . '{html_head}<meta property="og:title" content="">{"\n"}'
    99                        . '<meta property="og:type" content="image">{"\n"}'
    100                        . '<meta property="og:url" content="' . $url .'">{"\n"}'
    101                        . '<meta property="og:image" content="' . $image . '">{"\n"}'
     99                       . '<meta property="og:type" content="article">{"\n"}'
     100                       . '<meta property="og:url" content="{$CUR_PAGE}">{"\n"}'
     101                       . '<meta property="og:image" content="{$U_HOME}/{$current.selected_derivative->get_url()}">{"\n"}'
    102102                       . '{/html_head}'
    103103                       . '<a href="http://www.facebook.com/sharer/sharer.php?p[title]=' . $title . '&amp;p[url]=' . $url . '&amp;p[images][0]=' . $image . '&amp;p[summary]=' . $content . '" onclick="window.open(this.href, \'\', \'toolbar=0,status=0,width=700,height=500\'); return false;" title="{\'Share on Facebook\'|@translate}" target="_blank"><i class="fa fa-facebook-square"></i> <span>{\'Facebook\'|@translate}</span></a>{/if}'
Note: See TracChangeset for help on using the changeset viewer.