|
@@ -166,12 +166,45 @@ $GLOBALS['type_long'] = ($model->type == 6); //лонгрид
|
|
|
<?php
|
|
|
echo $this->render("@app/views/news/view/tags",["model"=>$model]);
|
|
|
?>
|
|
|
+<?
|
|
|
+/*
|
|
|
+
|
|
|
<section class="share-this">
|
|
|
<!-- ShareThis BEGIN -->
|
|
|
<div class="sharethis-inline-reaction-buttons"></div>
|
|
|
<!-- ShareThis END -->
|
|
|
<div style="clear: both;"></div>
|
|
|
</section>
|
|
|
+
|
|
|
+
|
|
|
+*/
|
|
|
+// Временно ок для конкурса
|
|
|
+?>
|
|
|
+ <section class="share-this">
|
|
|
+ <center><div id="ok_shareWidget"></div></center>
|
|
|
+ <div style="clear: both;"></div>
|
|
|
+ </section>
|
|
|
+<script>
|
|
|
+!function (d, id, did, st, title, description, image) {
|
|
|
+ function init(){
|
|
|
+ OK.CONNECT.insertShareWidget(id,did,st, title, description, image);
|
|
|
+ }
|
|
|
+ if (!window.OK || !OK.CONNECT || !OK.CONNECT.insertShareWidget) {
|
|
|
+ var js = d.createElement("script");
|
|
|
+ js.src = "https://connect.ok.ru/connect.js";
|
|
|
+ js.onload = js.onreadystatechange = function () {
|
|
|
+ if (!this.readyState || this.readyState == "loaded" || this.readyState == "complete") {
|
|
|
+ if (!this.executed) {
|
|
|
+ this.executed = true;
|
|
|
+ setTimeout(init, 0);
|
|
|
+ }
|
|
|
+ }};
|
|
|
+ d.documentElement.appendChild(js);
|
|
|
+ } else {
|
|
|
+ init();
|
|
|
+ }
|
|
|
+}(document,"ok_shareWidget",document.URL,'{"sz":30,"st":"oval","ck":1,"bgclr":"ED8207","txclr":"FFFFFF"}',"","","");
|
|
|
+</script>
|
|
|
<?
|
|
|
$stn = $story->getForNews($model->id);
|
|
|
if( count($stn) > 0 ){
|
|
@@ -470,7 +503,8 @@ if( strpos( $model->text, 'class="InviewElement' ) !== false ){
|
|
|
})()
|
|
|
</script>
|
|
|
<?
|
|
|
-if( Yii::$app->deviceDetect->isMobile() ){
|
|
|
+/*
|
|
|
+if( Yii::$app->deviceDetect->isMobile() ){
|
|
|
$this->registerJs(
|
|
|
<<<JS
|
|
|
$(function () {
|
|
@@ -493,3 +527,4 @@ JS
|
|
|
'sharethis'
|
|
|
);
|
|
|
}
|
|
|
+*/
|