-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
94 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ It supports from the box | |
* Telegram | ||
* Viber | ||
* Gmail | ||
|
||
Installation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
<?php | ||
namespace bl\socialShare\classes; | ||
|
||
use bl\socialShare\base\SocialNetwork; | ||
use yii\helpers\Html; | ||
|
||
use bl\socialShare\base\SocialNetwork; | ||
|
||
/** | ||
* @author Vladimir Kuprienko <[email protected]> | ||
* | ||
* @property string $_route | ||
* @property string $label | ||
* @property array $attributes | ||
* | ||
* @property array $bodyPattern | ||
* @property string $bodyPattern | ||
*/ | ||
class Gmail extends SocialNetwork | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
namespace bl\socialShare\classes\mobile; | ||
|
||
use yii\helpers\Html; | ||
|
||
use bl\socialShare\base\SocialNetwork; | ||
|
||
/** | ||
* Class for Viber | ||
* This link work only with mobile devices | ||
* | ||
* @author Vladimir Kuprienko <[email protected]> | ||
* | ||
* @property string $_route | ||
* @property string $label | ||
* @property array $attributes | ||
*/ | ||
class Viber extends SocialNetwork | ||
{ | ||
/** | ||
* @inheritdoc | ||
*/ | ||
public function getLink($url, $title, $description, $image, $component) | ||
{ | ||
$this->_route = "viber://forward?text=$url"; | ||
|
||
if($component->defaultIcons) { | ||
$this->label = Html::tag('i', '', ['class' => 'si-viber']); | ||
} | ||
|
||
return $this->initLink($component); | ||
} | ||
} |