Commit b7af0d73 authored by john's avatar john

3010

parent 91462954
......@@ -9,6 +9,9 @@ use common\modules\documentation\models\DocList;
DocumentationAsset::register($this);
$modelDocList = new DocList();
$encodedUrl= yii\helpers\Url::current([], true);
$encodedUrl= yii\helpers\Url::current([], true);
?>
......@@ -64,8 +67,31 @@ $modelDocList = new DocList();
<div class="column">
<div class="entry-share"><span class="text-muted">Поделиться:</span>
<div class="share-links">
<div class="pluso" data-background="transparent" data-options="big,square,line,horizontal,nocounter,theme=04" data-services="facebook,vkontakte,twitter,google"></div>
</div>
<a
class="social-button shape-circle sb-facebook"
href="https://www.facebook.com/sharer/sharer.php?u=<?=$encodedUrl?>&t=<?php echo $modelContent->name ?>"
onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false;"
target="_blank"
data-toggle="tooltip"
data-placement="top"
data-original-title="Facebook"
><i class="socicon-facebook"></i></a>
<a
class="social-button shape-circle sb-twitter"
href="https://twitter.com/share?url=<?=$encodedUrl?>&text=<?php echo $modelContent->name ?>"
onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false;"
target="_blank"
data-toggle="tooltip"
data-placement="top"
data-original-title="Twitter"><i class="socicon-twitter"></i></a>
<a
class="social-button shape-circle sb-google-plus"
href="https://plus.google.com/share?url=<?=$encodedUrl?>"
onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=350,width=480');return false;"
target="_blank"
data-toggle="tooltip"
data-placement="top"
data-original-title="Google +"><i class="socicon-googleplus"></i></a></div>
</div>
</div>
</div>
......@@ -124,20 +150,4 @@ $modelDocList = new DocList();
</div>
</div>
</div>
<?php
$js = <<<JS
(function() {
if (window.pluso)if (typeof window.pluso.start == "function") return;
if (window.ifpluso==undefined) { window.ifpluso = 1;
var d = document, s = d.createElement('script'), g = 'getElementsByTagName';
s.type = 'text/javascript'; s.charset='UTF-8'; s.async = true;
s.src = ('https:' == window.location.protocol ? 'https' : 'http') + '://share.pluso.ru/pluso-like.js';
var h=d[g]('body')[0];
h.appendChild(s);
}})();
JS;
$this->registerJs($js);
?>
<?= $this->render('@app/views/layouts/footer') ?>
\ No newline at end of file
......@@ -5,17 +5,17 @@ RewriteCond %{HTTP_HOST} ^www.task-on\.com$ [NC]
RewriteRule ^(.*)$ http://task-on.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ https://task-on.com/ [R=301,L]
RewriteRule ^index\.php$ http://task-on.com/ [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteCond %{HTTP} off
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^(.+)/$
RewriteRule ^(.+)/$ https://task-on.com/$1 [R=301,L]
RewriteRule ^(.+)/$ http://task-on.com/$1 [R=301,L]
Redirect 301 /portfolio/appl /portfolio
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment