forked from 51Degrees/pipeline-wordpress
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.php
More file actions
76 lines (61 loc) · 3.02 KB
/
Copy pathsetup.php
File metadata and controls
76 lines (61 loc) · 3.02 KB
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
<!--
This Original Work is copyright of 51 Degrees Mobile Experts Limited.
Copyright 2019 51 Degrees Mobile Experts Limited, 5 Charlotte Close,
Caversham, Reading, Berkshire, United Kingdom RG4 7BY.
This Original Work is licensed under the European Union Public Licence (EUPL)
v.1.2 and is subject to its terms as set out below.
If a copy of the EUPL was not distributed with this file, You can obtain
one at https://opensource.org/licenses/EUPL-1.2.
The 'Compatible Licences' set out in the Appendix to the EUPL (as may be
amended by the European Commission) shall be deemed incompatible for
the purposes of the Work and the provisions of the compatibility
clause in Article 5 of the EUPL shall not apply.
-->
<form method="post" action="options.php">
<?php settings_fields(Options::GROUP_KEY); ?>
<?php
$cachedPipeline = get_option(Options::PIPELINE);
if (isset($cachedPipeline['error'])) {
echo '<p></p><span class="fod-pipeline-status error"><b>' .
esc_html($cachedPipeline['error']) . '</b></span>';
}
if (isset($cachedPipeline['pipeline'])) {
echo '<p></p><span class="fod-pipeline-status good"><b>This ' .
'Resource Key is valid and allows access to the custom ' .
'properties selected in the following categories: ' .
esc_html(json_encode($cachedPipeline['available_engines'])) .
' </br>To continue, connect to Google Analytics via the ' .
'<a href="options-general.php?page=51Degrees&tab=google-analytics">' .
'Google Analytics</a> tab. See the ' .
'<a href="options-general.php?page=51Degrees&tab=properties">Properties</a>' .
' tab for a list of all the custom properties.</b></span>';
}
?>
<p>
To get started visit
<a href="https://configure.51degrees.com/" target="_blank">
https://configure.51degrees.com/
</a>
to get a 51Degrees Resource Key for the device detection properties you
want to get access to.
</br>
For more information on how to use our Configurator, view our explainer
video
<a href="https://51degrees.com/documentation/_concepts__configurator.html" target="_blank">
here
</a>.
</p>
<table class="form-table" role="presentation">
<tbody>
<tr>
<th scope="row">
<label for="<?php echo Options::RESOURCE_KEY; ?>">Resource Key</label>
</th>
<td>
<input name="<?php echo Options::RESOURCE_KEY; ?>" type="text" id="<?php echo Options::RESOURCE_KEY; ?>" value="<?php echo esc_attr(get_option(Options::RESOURCE_KEY));?>" class="regular-text">
</td>
</tr>
</tbody>
</table>
<input type="submit" class="button-primary" value="Save Changes"/>
</form>