diff options
Diffstat (limited to 'theme')
-rwxr-xr-x | theme/javascript/utils/sharing.js | 3 | ||||
-rw-r--r-- | theme/templates/website/includes/header.html | 4 | ||||
-rw-r--r-- | theme/templates/website/layout.html | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/theme/javascript/utils/sharing.js b/theme/javascript/utils/sharing.js index f27e4a4..a0cfb59 100755 --- a/theme/javascript/utils/sharing.js +++ b/theme/javascript/utils/sharing.js @@ -16,6 +16,9 @@ define([ }, "instapaper": function($el) { window.open("http://www.instapaper.com/text?u="+encodeURIComponent(location.href)); + }, + "vk": function($el) { + window.open("http://vkontakte.ru/share.php?url="+encodeURIComponent(location.href)); } }; diff --git a/theme/templates/website/includes/header.html b/theme/templates/website/includes/header.html index 7a987b0..adaadaf 100644 --- a/theme/templates/website/includes/header.html +++ b/theme/templates/website/includes/header.html @@ -54,6 +54,10 @@ {% if options.links.sharing.weibo == true %} <a href="#" target="_blank" class="btn pull-right weibo-sharing-link sharing-link" data-sharing="weibo" aria-label="Weibo"><i class="fa fa-weibo"></i></a> {% endif %} + {% if options.links.sharing.vk == true %} + <a href="#" target="_blank" class="btn pull-right vk-sharing-link sharing-link" data-sharing="vk" aria-label="VK"><i class="fa fa-vk"></i></a> + {% endif %} + <!-- Title --> <h1> diff --git a/theme/templates/website/layout.html b/theme/templates/website/layout.html index 6f5a845..9e66799 100644 --- a/theme/templates/website/layout.html +++ b/theme/templates/website/layout.html @@ -4,7 +4,7 @@ <head> {{ htmlSnippet("head:start")|default("")|safe }} <meta charset="UTF-8"> - <meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=7; IE=EDGE" /> + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>{% block title %}{% endblock %}</title> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> <meta name="description" content="{% block description %}{% endblock %}"> @@ -17,12 +17,12 @@ <meta name="apple-mobile-web-app-status-bar-style" content="black"> <link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{ staticBase }}/images/apple-touch-icon-precomposed-152.png"> <link rel="shortcut icon" href="{{ staticBase }}/images/favicon.ico" type="image/x-icon"> + {% block style %}{% endblock %} {% block head %}{% endblock %} {{ htmlSnippet("head:end")|default("")|safe }} </head> <body> {{ htmlSnippet("body:start")|default("")|safe }} - {% block style %}{% endblock %} {% block content %}{% endblock %} {% block javascript %}{% endblock %} {{ htmlSnippet("body:end")|default("")|safe }} |