Skip to content

Commit

Permalink
Change addon name to fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
aerni committed Jul 7, 2020
1 parent 1802b26 commit 9dfe7be
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Social ![Statamic](https://img.shields.io/badge/statamic-2.10-blue.svg?style=flat-square)
# SocialLinks ![Statamic](https://img.shields.io/badge/statamic-2.10-blue.svg?style=flat-square)
This addon provides an easy way to generate social sharing links for channels like Facebook, Twitter and more.

## Installation

1. Simply copy the `Social` folder into `site/addons/`.
1. Simply copy the `SocialLinks` folder into `site/addons/`.
2. That’s it, you’re done!

***

## Social Channels
## Supported Channels

This addon supports the following social channels:
`Facebook`, `Twitter`, `LinkedIn`, `Pinterest`, `WhatsApp`, `Email`
Expand All @@ -21,28 +21,28 @@ To create a sharing link, you have to call the tag followed by the channel of yo

```template
<!-- Facebook -->
{{ social:facebook }}
{{ sociallinks:facebook }}
<!-- Twitter -->
{{ social:twitter }}
{{ sociallinks:twitter }}
<!-- LinkedIn -->
{{ social:linkedin }}
{{ sociallinks:linkedin }}
<!-- Pinterest -->
{{ social:pinterest }}
{{ sociallinks:pinterest }}
<!-- WhatsApp -->
{{ social:whatsapp }}
{{ sociallinks:whatsapp }}
<!-- Email -->
{{ social:mail }}
{{ sociallinks:mail }}
```

The `{{ social }}` tag will use the URL of the current page by default. If you want to share a different URL, you may pass it using the `url` parameter.
The `{{ sociallinks }}` tag will use the URL of the current page by default. If you want to share a different URL, you may pass it using the `url` parameter.

```template
{{ social:facebook url="https://www.myveryspecialwebsite.com" }}
{{ sociallinks:facebook url="https://www.myveryspecialwebsite.com" }}
```

***
Expand Down
2 changes: 1 addition & 1 deletion Social/SocialTags.php → SocialLinks/SocialLinksTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Statamic\Extend\Tags;
use Illuminate\Support\Facades\Request;

class SocialTags extends Tags
class SocialLinksTags extends Tags
{
/**
* Maps to {{ social:channel }}
Expand Down
2 changes: 1 addition & 1 deletion Social/meta.yaml → SocialLinks/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Social
name: SocialLinks
version: '1.0'
description: 'Easily generate Social Sharing Links'
url: 'https://github.com/aerni/statamic-social'
Expand Down

0 comments on commit 9dfe7be

Please sign in to comment.