29 октября 2013 г.

Обновил дизайн

И тут и на моем Внеочередном расстройстве
Естессно послетали все скрипты и самописные вставки. Реклама и тп. Досада.
Схороню сюда основное.

1. Блогспот редирект скрипт. Решает вопрос переадресации в зону com с других региональных.
(Шаблон-Изменить HTML-сразу за строкой <head>)
<script type='text/javascript'>
var blog = document.location.hostname;
var slug = document.location.pathname;
var ctld = blog.substr(blog.lastIndexOf(&quot;.&quot;));
if (ctld != &quot;.com&quot;) {
var ncr = &quot;http://&quot; + blog.substr(0, blog.indexOf(&quot;.&quot;));
ncr += &quot;.blogspot.com/ncr&quot; + slug;
window.location.replace(ncr);
}
</script>


2. Мета тег яши.  Публиковать не буду.

3. Блок поделиться от плюсо. Вставляется вместо  стандартного блока:
(Шаблон-Изменить HTML-находим <b:includable id='shareButtons' var='post'> выделяем все до</b:includable>- вставляем код от плюсо)

<script type='text/javascript'>(function() {
  if (window.pluso)if (typeof window.pluso.start == &quot;function&quot;) return;
  if (window.ifpluso==undefined) { window.ifpluso = 1;
    var d = document, s = d.createElement(&#39;script&#39;), g = &#39;getElementsByTagName&#39;;
    s.type = &#39;text/javascript&#39;; s.charset=&#39;UTF-8&#39;; s.async = true;
    s.src = (&#39;https:&#39; == window.location.protocol ? &#39;https&#39; : &#39;http&#39;)  + &#39;://share.pluso.ru/pluso-like.js&#39;;
    var h=d[g](&#39;body&#39;)[0];
    h.appendChild(s);
  }})();</script>
<div class='pluso' data-background='transparent' data-options='medium,round,line,horizontal,counter,theme=01' data-services='vkontakte,google,yandex,twitter,facebook,odnoklassniki,bookmark'/>

Комментариев нет :

Отправить комментарий