Giter Club home page Giter Club logo

social-sharing-modx's Introduction

Social Sharing MODX

Add social sharing links and buttons without the bloat for MODX Revolution (based on Social Sharing).

The widgets provided by Twitter, Facebook, and other services require numerous HTTP requests and can really hurt the performance of your sites and apps. These simple CSS and HTML snippets make it easy for you to go social - without hurting site performance.

How It Works

MODX tag that are used

  • [[*longtitle:empty=`[[*pagetitle]]`]] - The longtitle of the page (if it is empty the pagetitle is used)
  • [[!++site_url]][[*uri]] - The URL of page
  • [[*description]] - The page description
  • [[*description]] - The page description

Extra Template Variables that are used (these need to be created)

  • [[*social-sharing-modx_twitter_id]] - Needed for the Twitter ID
  • [[*social-sharing-modx_pinterest_img]] - Needed for the Pinterest thumbnail

The MODX tags

Twitter
<a target="_blank" href="https://twitter.com/intent/tweet?text=[[*longtitle:empty=`[[*pagetitle]]`]]&url=[[!++site_url]][[*uri]]&via=[[*social-sharing-modx_twitter_id]]">Twitter</a>

Facebook
<a target="_blank" href="http://www.facebook.com/sharer/sharer.php?u=[[!++site_url]][[*uri]]">Facebook</a>

Google+
<a target="_blank" href="https://plus.google.com/share?url=[[!++site_url]][[*uri]]">Google+</a>

LinkedIn
<a target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&url=[[!++site_url]][[*uri]]&title=[[*longtitle:empty=`[[*pagetitle]]`]]&summary=[[*description]]&source=[[!++site_url]][[*uri]]">LinkedIn</a>

Pinterest
<a target="_blank" href="http://pinterest.com/pin/create/button/?url=[[!++site_url]][[*uri]]&description=[[*description]]&media=[[++site_url]][[*social-sharing-modx_pinterest_img]]">Pinterest</a>

Changelog

  • Version 1.0 (november 6, 2013)
    • Initial release.

License

Social Sharing MODX is free to use under the MIT License.

Thanks

Social Sharing MODX is based on Social Sharing from Chris Ferdinandi. Forked and updated for MODX Revolution by Menno Pietersen from Any Screen Size

social-sharing-modx's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

social-sharing-modx's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.