From 3930107cab10f55a88e4c2d2d402249af3bd638c Mon Sep 17 00:00:00 2001 From: Anastasia Date: Wed, 4 Jul 2018 13:29:14 +0300 Subject: [PATCH] - social button --- frontend/views/book/view.php | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/frontend/views/book/view.php b/frontend/views/book/view.php index fb07837..d35b308 100644 --- a/frontend/views/book/view.php +++ b/frontend/views/book/view.php @@ -5,6 +5,7 @@ */ use artbox\core\helpers\ImageHelper; use yii\helpers\Url; + use yii\web\View; $this->params[ 'breadrumbs'][] = [ 'label' => 'Книги', @@ -40,6 +41,29 @@ 'type' => 'hiddenInput', 'options' => ['value' => ''], ]]; + $link = \Yii::$app->request->absoluteUrl; + $js = <<