PluginProbe ʕ •ᴥ•ʔ
Tracking Code Manager / 2.5.0
Tracking Code Manager v2.5.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 2.3.0 2.4.0 2.5.0 2.6.0
tracking-code-manager / includes / admin / AdminOptions.php
tracking-code-manager / includes / admin Last commit date
AdminOptions.php 1 year ago editor.php 1 year ago manager.php 1 year ago metabox.php 1 year ago settings.php 1 year ago whatsnew.php 1 year ago
AdminOptions.php
52 lines
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