From 223cad80a23029b127c64356d4af69c1306eaf86 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=A1=D0=B0=D0=B2=D0=B5=D0=BB=D0=B8=D0=B9=20=D0=9A=D1=80?=
=?UTF-8?q?=D0=B0=D1=81=D0=BE=D0=B2=D1=81=D0=BA=D0=B8=D0=B9?=
<Савелий Красовский>
Date: Sun, 17 Jul 2016 23:52:43 +0300
Subject: [PATCH] VK sharing support + LinkedIn fix.
---
public/config-sample.php | 3 ++-
public/images/vk.svg | 40 ++++++++++++++++++++++++++++++++++++++++
public/style.css | 4 ++++
result.php | 4 +++-
4 files changed, 49 insertions(+), 2 deletions(-)
create mode 100644 public/images/vk.svg
diff --git a/public/config-sample.php b/public/config-sample.php
index 6d65a38..6376739 100644
--- a/public/config-sample.php
+++ b/public/config-sample.php
@@ -36,7 +36,8 @@ ISQ::$social = array(
'facebook' => TRUE,
'linkedin' => TRUE,
'tumblr' => TRUE,
- 'googleplus' => TRUE
+ 'googleplus' => TRUE,
+ 'vk' => TRUE,
);
// reCAPTCHA API KEYS
diff --git a/public/images/vk.svg b/public/images/vk.svg
new file mode 100644
index 0000000..a110a7f
--- /dev/null
+++ b/public/images/vk.svg
@@ -0,0 +1,40 @@
+
+
+
+
\ No newline at end of file
diff --git a/public/style.css b/public/style.css
index ae6c78c..b19e2ce 100644
--- a/public/style.css
+++ b/public/style.css
@@ -304,6 +304,10 @@ input[type=submit] {
background-color: #DD4B39;
}
+.social-button.vk {
+ background-color: #4D7198;
+}
+
svg#url-qr-code {
width: 50%;
height: 50%;
diff --git a/result.php b/result.php
index 2b19b29..837230a 100644
--- a/result.php
+++ b/result.php
@@ -132,7 +132,9 @@ $encoded_title = urlencode($title);
if ( ISQ::$social['linkedin'] ) { echo '' . file_get_contents('public/images/linkedin.svg') . ''; }
- if ( ISQ::$social['googleplus'] ) { echo '' . file_get_contents('public/images/googleplus.svg') . ''; }
+ if ( ISQ::$social['googleplus'] ) { echo '' . file_get_contents('public/images/googleplus.svg') . ''; }
+
+ if ( ISQ::$social['vk'] ) { echo '' . file_get_contents('public/images/vk.svg') . ''; }
?>