| 1 |
<?php |
| 2 |
/** |
| 3 |
* Will be included in the shariff.php only, when Xing is requested as a service. |
| 4 |
* |
| 5 |
* @package Shariff Wrapper |
| 6 |
*/ |
| 7 |
|
| 8 |
// Prevent direct calls. |
| 9 |
if ( ! class_exists( 'WP' ) ) { die(); } |
| 10 |
// and again the same because the WP Plugin Check does not understand what the line above does ;-) |
| 11 |
if ( ! defined( 'ABSPATH' ) ) exit; |
| 12 |
|
| 13 |
// Check if we need the frontend or the backend part. |
| 14 |
if ( isset( $frontend ) && 1 === $frontend ) { |
| 15 |
// Service URL. |
| 16 |
$service_url = esc_url( 'https://www.xing.com/spi/shares/new' ); |
| 17 |
|
| 18 |
// Build button URL. |
| 19 |
$button_url = $service_url . '?url=' . $share_url; |
| 20 |
|
| 21 |
// Colors. |
| 22 |
$main_color = '#126567'; |
| 23 |
$secondary_color = '#29888a'; |
| 24 |
$wcag_color = '#0F595C'; |
| 25 |
|
| 26 |
// SVG icon. |
| 27 |
$svg_icon = '<svg width="32px" height="20px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 32"><path fill="' . $main_color . '" d="M10.7 11.9q-0.2 0.3-4.6 8.2-0.5 0.8-1.2 0.8h-4.3q-0.4 0-0.5-0.3t0-0.6l4.5-8q0 0 0 0l-2.9-5q-0.2-0.4 0-0.7 0.2-0.3 0.5-0.3h4.3q0.7 0 1.2 0.8zM25.1 0.4q0.2 0.3 0 0.7l-9.4 16.7 6 11q0.2 0.4 0 0.6-0.2 0.3-0.6 0.3h-4.3q-0.7 0-1.2-0.8l-6-11.1q0.3-0.6 9.5-16.8 0.4-0.8 1.2-0.8h4.3q0.4 0 0.5 0.3z"/></svg>'; |
| 28 |
|
| 29 |
// Backend available? |
| 30 |
$backend_available = 0; |
| 31 |
|
| 32 |
// Button alt label. |
| 33 |
$button_title_array = array( |
| 34 |
'bg' => 'Сподели в XING', |
| 35 |
'cs' => 'Sdílet na XINGu', |
| 36 |
'da' => 'Del på XING', |
| 37 |
'de' => 'Bei XING teilen', |
| 38 |
'en' => 'Share on XING', |
| 39 |
'es' => 'Compartir en XING', |
| 40 |
'fi' => 'Jaa XINGissä', |
| 41 |
'fr' => 'Envoyer par XING', |
| 42 |
'hr' => 'Podijelite na XING', |
| 43 |
'hu' => 'Megosztás XINGen', |
| 44 |
'it' => 'Condividi su XING', |
| 45 |
'ja' => 'XING上で� |
| 46 |
�有', |
| 47 |
'ko' => 'XING에서 공유하기', |
| 48 |
'nl' => 'Delen op XING', |
| 49 |
'no' => 'Del på XING', |
| 50 |
'pl' => 'Udostępnij przez XING', |
| 51 |
'pt' => 'Compartilhar no XING', |
| 52 |
'ro' => 'Partajează pe XING', |
| 53 |
'ru' => 'Поделиться на XING', |
| 54 |
'sk' => 'Zdieľať na XING', |
| 55 |
'sl' => 'Deli na XING', |
| 56 |
'sr' => 'Podeli na XING-u', |
| 57 |
'sv' => 'Dela på XING', |
| 58 |
'tr' => 'XING\'ta paylaş', |
| 59 |
'zh' => '分享至XING', |
| 60 |
); |
| 61 |
} |
| 62 |
|