-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.php
89 lines (85 loc) · 4.55 KB
/
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
<?php
// exit if accessed directly
if (!defined('ABSPATH')) {
exit;
}
// require library
require_once('includes/PrivacyEmbedRationalOptionPages.php');
$pages = array(
'privacy-embed_settings-page' => array(
'page_title' => __('Privacy Embed Settings', 'privacy-embed'),
'icon_url' => 'dashicons-shield',
'sections' => array(
'privacy-embed_youtube-section' => array(
'title' => __('YouTube', 'privacy-embed'),
'fields' => array(
'youtube_embed_notice' => array(
'title' => __('Embed Notice Message', 'privacy-embed'),
'id' => 'youtube_embed_notice',
'type' => 'textarea',
'value' => __('Here is hidden external content that would have to be loaded from YouTube. We have no influence on this external content and its provision. This means that we cannot say whether and to what extent your personal data is processed by YouTube (or, for example, whether so-called tracking takes place). You can find more information in YouTube\'s privacy policy. If you still want to load the content, this decision only applies to this individual content and only until the page is reloaded.', 'privacy-embed')
),
'youtube_embed_load' => array(
'title' => __('Embed Load Text', 'privacy-embed'),
'id' => 'youtube_embed_load',
'type' => 'text',
'value' => __('Load content from YouTube anyway.', 'privacy-embed')
),
),
),
'privacy-embed_spotify-section' => array(
'title' => __('Spotify', 'privacy-embed'),
'fields' => array(
'spotify_embed_notice' => array(
'title' => __('Embed Notice Message', 'privacy-embed'),
'id' => 'spotify_embed_notice',
'type' => 'textarea',
'value' => __('There is external content hidden here that would have to be loaded by Spotify. We have no influence on this external content and its provision. This means that we cannot say whether and to what extent your personal data is processed by Spotify (or, for example, whether so-called tracking takes place). You could find more information in Spotify\'s privacy policy. If you still want to load the content, this decision only applies to this individual content and only until the page is reloaded.', 'privacy-embed')
),
'spotify_embed_load' => array(
'title' => __('Embed Load Text', 'privacy-embed'),
'id' => 'spotify_embed_load',
'type' => 'text',
'value' => __('Load content from Spotify anyway.', 'privacy-embed')
),
),
),
'privacy-embed_twitter-section' => array(
'title' => __('Twitter', 'privacy-embed'),
'fields' => array(
'twitter_embed_notice' => array(
'title' => __('Embed Notice Message', 'privacy-embed'),
'id' => 'twitter_embed_notice',
'type' => 'textarea',
'value' => __('There is external content hidden here that would have to be loaded by Twitter. We have no influence on this external content and its provision. This means that we cannot say whether and to what extent your personal data is processed by Twitter (or, for example, whether so-called tracking takes place). You could find more information in Twitter\'s privacy policy. If you still want to load the content, this decision only applies until the page is reloaded.', 'privacy-embed')
),
'twitter_embed_load' => array(
'title' => __('Embed Load Text', 'privacy-embed'),
'id' => 'twitter_embed_load',
'type' => 'text',
'value' => __('Load content from Twitter anyway.', 'privacy-embed')
),
'twitter_follow_button' => array(
'title' => __('Follow Button Text (preview only)', 'privacy-embed'),
'id' => 'twitter_follow_button',
'type' => 'text',
'value' => __('Follow @', 'privacy-embed')
),
'twitter_mention_button' => array(
'title' => __('Mention Button Text (preview only)', 'privacy-embed'),
'id' => 'twitter_mention_button',
'type' => 'text',
'value' => __('Tweet to @', 'privacy-embed')
),
'twitter_hashtag_button' => array(
'title' => __('Hashtag Button Text (preview only)', 'privacy-embed'),
'id' => 'twitter_hashtag_button',
'type' => 'text',
'value' => __('Tweet #', 'privacy-embed')
),
),
),
),
),
);
$option_page = new PrivacyEmbedRationalOptionPages($pages);