diff --git a/header.php b/header.php index 6757c4d..612cda4 100644 --- a/header.php +++ b/header.php @@ -27,11 +27,6 @@ isq_load_textdomain(); - - - diff --git a/public/config-sample.php b/public/config-sample.php index cb9e5f2..3388bc4 100644 --- a/public/config-sample.php +++ b/public/config-sample.php @@ -30,11 +30,12 @@ ISQ::$links = array( // SOCIAL SHARING ISQ::$social = array( - 'facebook' => TRUE, 'twitter' => TRUE, - 'plus' => TRUE, + 'appdotnet' => TRUE, + 'facebook' => TRUE, 'linkedin' => TRUE, - 'tumblr' => TRUE + 'tumblr' => TRUE, + 'googleplus' => TRUE ); // reCAPTCHA API KEYS diff --git a/public/images/appdotnet.svg b/public/images/appdotnet.svg new file mode 100644 index 0000000..53d2614 --- /dev/null +++ b/public/images/appdotnet.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/facebook.svg b/public/images/facebook.svg new file mode 100644 index 0000000..f17eeb9 --- /dev/null +++ b/public/images/facebook.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/googleplus.svg b/public/images/googleplus.svg new file mode 100644 index 0000000..eaa2bb1 --- /dev/null +++ b/public/images/googleplus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/linkedin.svg b/public/images/linkedin.svg new file mode 100644 index 0000000..e41256a --- /dev/null +++ b/public/images/linkedin.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/tumblr.svg b/public/images/tumblr.svg new file mode 100644 index 0000000..0219ea7 --- /dev/null +++ b/public/images/tumblr.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/twitter.svg b/public/images/twitter.svg new file mode 100644 index 0000000..55105e2 --- /dev/null +++ b/public/images/twitter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/img/facebook.png b/public/img/facebook.png deleted file mode 100644 index ae98d7e..0000000 Binary files a/public/img/facebook.png and /dev/null differ diff --git a/public/img/noise.png b/public/img/noise.png deleted file mode 100644 index bb186f7..0000000 Binary files a/public/img/noise.png and /dev/null differ diff --git a/public/img/tumblr.png b/public/img/tumblr.png deleted file mode 100644 index 2468c87..0000000 Binary files a/public/img/tumblr.png and /dev/null differ diff --git a/public/style.css b/public/style.css index ae4f75b..10e956a 100644 --- a/public/style.css +++ b/public/style.css @@ -195,9 +195,40 @@ input[type=submit] { margin-top: 2px; } -.social-sharer { +.social-button { display: inline-block; - padding: 0 2px; + border-color: #F0F0F0; +} + +.social-button.twitter { + background-color: #55ACEE; +} + +.social-button.appdotnet { + background-color: #49474B; +} + +.social-button.facebook { + background-color: #3B5998; +} + +.social-button.tumblr { + background-color: #35465C; +} + +.social-button.linkedin { + background-color: #0976B4; +} + +.social-button.googleplus { + background-color: #DD4B39; +} + +.social-button svg { + width: 40px; + height: 40px; + padding: 6px; + fill: white; } svg#url-qr-code { diff --git a/result.php b/result.php index 1b4bef5..079b809 100644 --- a/result.php +++ b/result.php @@ -22,6 +22,9 @@ $shorturl = isset( $return['shorturl'] ) ? $return['shorturl'] : ''; $message = isset( $return['message'] ) ? $return['message'] : ''; $title = isset( $return['title'] ) ? $return['title'] : ''; +$encoded_shorturl = urlencode($shorturl); +$encoded_title = urlencode($title); + // QR code shenanigans if ( ISQ::$general['qr'] ) { @@ -73,11 +76,21 @@ if ( ISQ::$general['qr'] ) {

- Facebook'; } ?> - Tweet'; } ?> - '; } ?> - '; } ?> - Share on Tumblr'; } ?> +
+ ' . file_get_contents('public/images/twitter.svg') . ''; } + + if ( ISQ::$social['appdotnet'] ) { echo '' . file_get_contents('public/images/appdotnet.svg') . ''; } + + if ( ISQ::$social['facebook'] ) { echo '' . file_get_contents('public/images/facebook.svg') . ''; } + + if ( ISQ::$social['tumblr'] ) { echo '' . file_get_contents('public/images/tumblr.svg') . ''; } + + if ( ISQ::$social['linkedin'] ) { echo '' . file_get_contents('public/images/linkedin.svg') . ''; } + + if ( ISQ::$social['googleplus'] ) { echo '' . file_get_contents('public/images/googleplus.svg') . ''; } + ?> +
' . yourls__( 'QR code', 'isq-translation' ) . '

' . yourls__( 'Share your link with external devices', 'isq-translation' ) . '

' . $qrCode; } ?>