This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy paththeme-settings.php
127 lines (114 loc) · 4.56 KB
/
theme-settings.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?php
/**
* Implements hook_form_system_theme_settings_alter().
*
* Custom theme settings
*/
function infinite_form_system_theme_settings_alter(&$form, &$form_state) {
/*--------------- Share button Settings --------------*/
$form['share'] = array(
'#type' => 'fieldset',
'#title' => t('Share button settings'),
'#collapsed' => TRUE,
'#collapsible' => TRUE,
);
$form['share']['gtm_id'] = array(
'#type' => 'textfield',
'#title' => t('Google tag manager ID'),
'#default_value' => theme_get_setting('gtm_id'),
'#size' => 80,
'#description' => t('Enter your Google tag manager ID.'),
'#prefix' => '<div id="gtm-id-wrapper">',
'#suffix' => '</div>',
);
$form['share']['share_image_style'] = array(
'#type' => 'select',
'#title' => t('Image style for sharing'),
'#options' => image_style_options(),
'#default_value' => theme_get_setting('share_image_style'),
'#description' => t('Select the image style, that will be used for sharing on social media.'),
'#prefix' => '<div id="share-image-style-wrapper">',
'#suffix' => '</div>',
);
$form['share']['facebook_share_button'] = array(
'#type' => 'textfield',
'#title' => t('Facebook share button text'),
'#default_value' => theme_get_setting('facebook_share_button'),
'#size' => 80,
'#description' => t('Enter the the text, that will be shown on the facebook share button.'),
'#prefix' => '<div id="facebook-share-button-wrapper">',
'#suffix' => '</div>',
);
$form['share']['whatsapp_share_button'] = array(
'#type' => 'textfield',
'#title' => t('Whatsapp share button text'),
'#default_value' => theme_get_setting('whatsapp_share_button'),
'#size' => 80,
'#description' => t('Enter the the text, that will be shown on the whatsapp share button.'),
'#prefix' => '<div id="whatsapp-share-button-wrapper">',
'#suffix' => '</div>',
);
$form['share']['whatsapp_share_text'] = array(
'#type' => 'textfield',
'#title' => t('Whatsapp share text'),
'#default_value' => theme_get_setting('whatsapp_share_text'),
'#size' => 80,
'#description' => t('Enter the the text, that will be shown as share whatsapp text.'),
'#prefix' => '<div id="whatsapp-share-text-wrapper">',
'#suffix' => '</div>',
);
$form['share']['pinterest_share_button'] = array(
'#type' => 'textfield',
'#title' => t('Pinterest share button text'),
'#default_value' => theme_get_setting('pinterest_share_button'),
'#size' => 80,
'#description' => t('Enter the the text, that will be shown on the pinterest share button.'),
'#prefix' => '<div id="pinterest-share-button-wrapper">',
'#suffix' => '</div>',
);
$form['share']['twitter_share_button'] = array(
'#type' => 'textfield',
'#title' => t('Twitter share button text'),
'#default_value' => theme_get_setting('twitter_share_button'),
'#size' => 80,
'#description' => t('Enter the the text, that will be shown on the twitter share button.'),
'#prefix' => '<div id="twitter-share-button-wrapper">',
'#suffix' => '</div>',
);
$form['share']['twitter_share_via'] = array(
'#type' => 'textfield',
'#title' => t('Via wich twitter handle to share.'),
'#default_value' => theme_get_setting('twitter_share_via'),
'#size' => 80,
'#description' => t('Enter the the twitter handle, that will be shown when sharing content.'),
'#prefix' => '<div id="twitter-share-via-wrapper">',
'#suffix' => '</div>',
);
$form['share']['email_share_button'] = array(
'#type' => 'textfield',
'#title' => t('Email share button text'),
'#default_value' => theme_get_setting('email_share_button'),
'#size' => 80,
'#description' => t('Enter the the text, that will be shown on the email share button.'),
'#prefix' => '<div id="email-share-button-wrapper">',
'#suffix' => '</div>',
);
$form['share']['email_share_text'] = array(
'#type' => 'textfield',
'#title' => t('Email share text'),
'#default_value' => theme_get_setting('email_share_text'),
'#size' => 80,
'#description' => t('Enter the the text, that will be shown in the email.'),
'#prefix' => '<div id="email-share-button-wrapper">',
'#suffix' => '</div>',
);
$form['share']['email_subject'] = array(
'#type' => 'textfield',
'#title' => t('Email subject text'),
'#default_value' => theme_get_setting('email_subject'),
'#size' => 80,
'#description' => t('Enter the the text, that will be shown as the email subject.'),
'#prefix' => '<div id="email-share-subject-wrapper">',
'#suffix' => '</div>',
);
}