|
@@ -166,12 +166,45 @@ $GLOBALS['type_long'] = ($model->type == 6); //лонгрид
|
|
<?php
|
|
<?php
|
|
echo $this->render("@app/views/news/view/tags",["model"=>$model]);
|
|
echo $this->render("@app/views/news/view/tags",["model"=>$model]);
|
|
?>
|
|
?>
|
|
|
|
+<?
|
|
|
|
+/*
|
|
|
|
+
|
|
<section class="share-this">
|
|
<section class="share-this">
|
|
<!-- ShareThis BEGIN -->
|
|
<!-- ShareThis BEGIN -->
|
|
<div class="sharethis-inline-reaction-buttons"></div>
|
|
<div class="sharethis-inline-reaction-buttons"></div>
|
|
<!-- ShareThis END -->
|
|
<!-- ShareThis END -->
|
|
<div style="clear: both;"></div>
|
|
<div style="clear: both;"></div>
|
|
</section>
|
|
</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);
|
|
$stn = $story->getForNews($model->id);
|
|
if( count($stn) > 0 ){
|
|
if( count($stn) > 0 ){
|
|
@@ -470,7 +503,8 @@ if( strpos( $model->text, 'class="InviewElement' ) !== false ){
|
|
})()
|
|
})()
|
|
</script>
|
|
</script>
|
|
<?
|
|
<?
|
|
-if( Yii::$app->deviceDetect->isMobile() ){
|
|
|
|
|
|
+/*
|
|
|
|
+if( Yii::$app->deviceDetect->isMobile() ){
|
|
$this->registerJs(
|
|
$this->registerJs(
|
|
<<<JS
|
|
<<<JS
|
|
$(function () {
|
|
$(function () {
|
|
@@ -493,3 +527,4 @@ JS
|
|
'sharethis'
|
|
'sharethis'
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
+*/
|