Skip to content

Commit

Permalink
added Sms provider #14
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jun 17, 2016
1 parent f8a5374 commit 00c88f9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions demo/index.php
Expand Up @@ -92,6 +92,7 @@
'plus',
'reddit',
'scoopit',
'sms',
'stumbleupon',
'telegram',
'tumblr',
Expand Down
16 changes: 16 additions & 0 deletions src/Providers/Sms.php
@@ -0,0 +1,16 @@
<?php

namespace SocialLinks\Providers;

class Sms extends ProviderBase implements ProviderInterface
{
/**
* {@inheritdoc}
*/
public function shareUrl()
{
$info = $this->page->get();

return 'sms:?&amp;body='.rawurlencode($info['title'].' '.$info['url']);
}
}

0 comments on commit 00c88f9

Please sign in to comment.