-
Notifications
You must be signed in to change notification settings - Fork 13
/
qa-social-share-options.php
69 lines (61 loc) · 4.02 KB
/
qa-social-share-options.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
if ( !defined( 'QA_VERSION' ) ) { // don't allow this page to be requested directly from browser
exit;
}
class qa_sss_opt
{
const PREFIX = 'ami_sss_';
const SHARE_TEXT = 'ami_sss_text';
const SHARE_TEXT_HOME = 'ami_sss_text_home';
const SHARE_TEXT_BLOG_POST = 'ami_sss_text_blog_post';
const CUSTOM_CSS = 'ami_sss_costum_css';
const ADMIN_SAVE_BTN = 'ami_sss_save_button';
const FB_BUTTON = 'ami_sss_btn_fb';
const GP_BUTTON = 'ami_sss_btn_gp';
const TW_BUTTON = 'ami_sss_btn_tw';
const LI_BUTTON = 'ami_sss_btn_li';
const RE_BUTTON = 'ami_sss_btn_re';
const EM_BUTTON = 'ami_sss_btn_em';
const VK_BUTTON = 'ami_sss_btn_vk';
const WA_BUTTON = 'ami_sss_btn_wa';
const ST_BUTTON = 'ami_sss_btn_st';
const TG_BUTTON = 'ami_sss_btn_tg';
const BUTTON_STATUS = 'ami_sss_btn_status';
const ENABLE_OPEN_GRAPH_SUPPORT = 'ami_sss_enable_opengraph';
const FACEBOOK_APP_ID = 'ami_sss_fb_id';
const TWITTER_HANDLE = 'ami_sss_twitter_handle';
const WEBSITE_DESCRIPTION = 'ami_sss_website_desc';
const DEFAULT_SHARE_IMAGE = 'ami_sss_default_share_image';
const GP_URL_TEMPLATE = 'https://plus.google.com/share?url={{page_url}}';
const FB_URL_TEMPLATE = 'https://www.facebook.com/sharer/sharer.php?u={{page_url}}&ref=fbshare&t={{page_title}}';
const TW_URL_TEMPLATE = 'https://twitter.com/intent/tweet?text={{page_title}}&url={{page_url}}';
const LI_URL_TEMPLATE = 'http://www.linkedin.com/shareArticle?mini=true&url={{page_url}}&title={{page_title}}&summary={{page_title}}';
const RE_URL_TEMPLATE = 'http://www.reddit.com/submit?url={{page_url}}&title={{page_title}}';
const VK_URL_TEMPLATE = 'http://vkontakte.ru/share.php?url={{page_url}}&title={{page_title}}';
const EM_URL_TEMPLATE = 'mailto:?subject={{page_title}}&body=Check this out: {{page_title}} - {{page_url}}';
const WA_URL_TEMPLATE = 'whatsapp://send?text={{page_title}} - {{page_url}}';
const TG_URL_TEMPLATE = 'tg://msg?text={{page_title}} - {{page_url}}';
const ST_URL_TEMPLATE = 'http://www.stumbleupon.com/submit?url={{page_url}}&title={{page_title}}';
/*constants for the types of the social buttons */
const SHARE_TYPE_POST_DESKTOP_OPTION = 'ami_sss_type_q_desktop_opt';
const SHARE_TYPE_POST_MOBILE_OPTION = 'ami_sss_type_q_mob_opt';
const SHARE_TYPE_WIDGET_DESKTOP_OPTION = 'ami_sss_type_w_desktop_opt';
const SHARE_TYPE_WIDGET_MOBILE_OPTION = 'ami_sss_type_w_mob_opt';
const SHARE_TYPE_IMAGE = 'image';
const SHARE_TYPE_TEXT = 'text_only';
const SHARE_TYPE_COLORED_BTNS = 'colored_buttons';
const SHARE_TYPE_COLORED_BTNS_WITH_ICON = 'colored_buttons_with_icon';
const SHARE_TYPE_FI_SQ = 'squared_btns_with_icon';
const SHARE_TYPE_FI_SEMI_ROUNDED = 'semi_rounded_buttons';
const SHARE_TYPE_FI_ROUNDED = 'rounded_buttons_with_icon';
const SHARE_TYPE_ANIMATED_FI = 'animated_buttons_with_icon';
/*templates depending which type we are using */
const SHARE_TYPE_NORMAL_TEMPLATE = '{{separator}} <a href="{{url}}" target="_blank" rel="external nofollow" class="{{class}}" title="{{title}}">{{text}}</a>';
const SHARE_TYPE_IMAGE_TEMPLATE = '<a href="{{url}}" target="_blank" rel="external nofollow" class="{{class}}" title="{{title}}"></a>';
const SHARE_TYPE_ICON_TEXT_TEMPLATE = '<a href="{{url}}" target="_blank" rel="external nofollow" class="{{class}}" title="{{title}}">{{icon}} {{text}}</a>';
const SHARE_TYPE_ICON_ONLY_TEMPLATE = '<a href="{{url}}" target="_blank" rel="external nofollow" class="{{class}}" title="{{title}}">{{icon}}</a>';
const SHARE_TYPE_COLORED_TEXT_TEMPLATE = '<a href="{{url}}" target="_blank" rel="external nofollow" class="{{class}}" title="{{title}}">{{text}}</a>';
}
/*
Omit PHP closing tag to help avoid accidental output
*/