PluginProbe
Tracking Code Manager / 2.0.15
Tracking Code Manager v2.0.15
2.8.0 2.7.0 trunk 1.11.8 1.11.9 1.12.0 1.12.1 1.12.2 1.12.3 1.4 1.5 2.0.0 2.0.1 2.0.13 2.0.14 2.0.15 2.0.16 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.1.0 2.2.0 All 29 releases
tracking-code-manager / includes / admin / AdminOptions.php
AdminOptions.php
52 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 function tcmp_ui_admin_options() {
3 global $tcmp;
4
5 ?>
6 <div style="float:left; min-width:750px">
7
8 <?php
9
10 $tcmp->form->prefix = 'AdminOptions';
11 $tcmp->form->form_starts();
12
13 if ( $tcmp->check->nonce( 'tcmp_admin_options' ) ) {
14 $tcmp->options->setSkipCodeSanitization( $tcmp->utils->iqs( 'skipCodeSanitization' ) );
15 $tcmp->options->setModifySuperglobalVariable( $tcmp->utils->iqs( 'checkbox' ) );
16 $tcmp->options->setAdditionalRecognizedTags( $tcmp->utils->qs( 'tags' ) );
17 $tcmp->options->setAdditionalRecognizedAttributes( $tcmp->utils->qs( 'attributes' ) );
18 tcmp_free_add_additional_tags_atts();
19 $tcmp->options->writeMessages();
20 }
21
22 $tcmp->form->p( __( 'Add additional tags and/or attributes to the code whitelist' ) );
23
24 $tags = $tcmp->options->getAdditionalRecognizedTags();
25 $attributes = $tcmp->options->getAdditionalRecognizedAttributes();
26
27 $tcmp->form->textarea( 'tags', $tags, array('rows' => 2) );
28 $tcmp->form->textarea( 'attributes', $attributes, array('rows' => 2) );
29
30 $tcmp->form->p( __( 'Skip the Sanitization of all Tracking Codes' ) );
31
32 $skip = $tcmp->options->getSkipCodeSanitization();
33
34 $tcmp->form->checkbox( 'skipCodeSanitization', $skip );
35
36 $tcmp->form->p( __( 'Enable option to change cache behavior' ) );
37
38 $modify = $tcmp->options->getModifySuperglobalVariable();
39
40 $tcmp->form->checkbox( 'checkbox', $modify );
41 $tcmp->form->p( 'NOTE: From time to time, Support may recommend the superglobal switch to be turned on. Please do not turn it on unless support gives you direction to do so.' );
42
43 $tcmp->form->nonce( 'tcmp_admin_options' );
44 $tcmp->form->br();
45 $tcmp->form->submit( 'Save' );
46 $tcmp->form->form_ends();
47
48 ?>
49 </div>
50 <?php
51 }
52