2017 © Pedro Peláez
 

streams-addon shares-plugin

Plugin which provides users with a quick way of adding customizable share links.

image

wirelab/shares-plugin

Plugin which provides users with a quick way of adding customizable share links.

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 6 % Grown

The README.md

Shares plugin

⚠️ This repository has been deprecated ⚠️

Plugin which provides users with a quick way of adding customizable share links with GA tracking. Works with any module that sets a meta_title and meta_description., (*1)

Installation

composer require wirelab/shares-plugin, (*2)

Usage

  1. Set your facebook app key in settings > plugins > shares plugin (optional)
  2. Selects the networks that are enabled by default settings > plugins > shares plugin (optional)
  3. put {{ shares_scripts()|raw }} in your theme to load all javascript files
  4. call {{ shares({title: '', url: '', description: '', networks: ['']|raw }} in any twig file.

All parameters are optional, (*3)

Parameters

Name Description Optional Default value Type
title The title used in the shares yes template.meta_title String
description The description used in the shares yes template.meta_description String
url The url that gets shares yes the current url String
networks List of social media networks to return yes all (configurable in the settings) Array

Enable facebook shares

Set the following cookie: cconsent=isAccepted using javascript. Then call callCbIfConsentGiven(callback)., (*4)

Examples

{{ shares() }} {# Guessing all data #}

{{ shares({'networks':['twitter','facebook']}) }} {# Limiting to certain networks #}

{# Manually setting data #}
{{
    shares({
        'title': 'Wirelab',
        'description': 'The website of Wirelab',
        'url': 'http:://www.wirelab.nl'
    })
}}

{{ shares_data() }} {# Get an array of all data instead of views #}

Adding google analytics

Add the following code near the top of the <head> tag. Replace UA-XXXXX-Y with the property ID (also called the "tracking ID") of the Google Analytics property you wish to track., (*5)



For the most recent snippet please check Google's documentation, (*6)

The Versions

06/06 2018

dev-master

9999999-dev http://wirelab.nl/

Plugin which provides users with a quick way of adding customizable share links.

  Sources   Download

MIT

plugin pyrocms shares wirelab pyrocms 3

06/06 2018

2.0.0

2.0.0.0 http://wirelab.nl/

Plugin which provides users with a quick way of adding customizable share links.

  Sources   Download

MIT

plugin pyrocms shares wirelab pyrocms 3

08/05 2017

1.5.4

1.5.4.0 http://wirelab.nl/

Plugin which provides users with a quick way of adding customizable share links.

  Sources   Download

MIT

plugin pyrocms shares wirelab pyrocms 3

08/05 2017

1.5.3

1.5.3.0 http://wirelab.nl/

Plugin which provides users with a quick way of adding customizable share links.

  Sources   Download

MIT

plugin pyrocms shares wirelab pyrocms 3

01/05 2017

1.5.2

1.5.2.0 http://wirelab.nl/

Plugin which provides users with a quick way of adding customizable share links.

  Sources   Download

MIT

plugin pyrocms shares wirelab pyrocms 3

21/04 2017

1.5.1

1.5.1.0 http://wirelab.nl/

Plugin which provides users with a quick way of adding customizable share links.

  Sources   Download

MIT

plugin pyrocms shares wirelab pyrocms 3

21/04 2017

1.5

1.5.0.0 http://wirelab.nl/

Plugin which provides users with a quick way of adding customizable share links.

  Sources   Download

MIT

plugin pyrocms shares wirelab pyrocms 3

21/04 2017

1.4

1.4.0.0 http://wirelab.nl/

Plugin which provides users with a quick way of adding customizable share links.

  Sources   Download

MIT

plugin pyrocms shares wirelab pyrocms 3

19/04 2017

1.3

1.3.0.0 http://wirelab.nl/

Plugin which provides users with a quick way of adding customizable share links.

  Sources   Download

MIT

plugin pyrocms shares wirelab pyrocms 3

31/03 2017

1.2

1.2.0.0 http://wirelab.nl/

Plugin which provides users with a quick way of adding customizable share links.

  Sources   Download

MIT

plugin pyrocms shares wirelab pyrocms 3

30/03 2017

1.1

1.1.0.0 http://wirelab.nl/

Plugin which provides users with a quick way of adding customizable share links.

  Sources   Download

MIT

plugin pyrocms shares wirelab pyrocms 3

30/03 2017

1.0

1.0.0.0 http://wirelab.nl/

Plugin which provides users with a quick way of adding customizable share links.

  Sources   Download

MIT

plugin pyrocms shares wirelab pyrocms 3