AdminOptions.php
3 years ago
editor.php
3 years ago
manager.php
2 years ago
metabox.php
3 years ago
settings.php
3 years ago
whatsnew.php
3 years 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 |