cookie-law-info-privacy_overview.php
66 lines
| 1 | <?php |
| 2 | // If this file is called directly, abort. |
| 3 | if ( ! defined( 'WPINC' ) ) { |
| 4 | die; |
| 5 | } |
| 6 | ?> |
| 7 | <style> |
| 8 | .vvv_textbox{ |
| 9 | height: 150px; |
| 10 | width: 80%; |
| 11 | } |
| 12 | .cli-textbox{ |
| 13 | width: 100%; |
| 14 | height: 35px; |
| 15 | margin-bottom: 5px; |
| 16 | } |
| 17 | .notice, div.updated, div.error{ |
| 18 | margin: 5px 20px 15px 0; |
| 19 | } |
| 20 | </style> |
| 21 | <div class="wrap"> |
| 22 | |
| 23 | <div class="cookie-law-info-form-container"> |
| 24 | <div class="cli-plugin-toolbar top"> |
| 25 | <h3><?php _e('Privacy Overview', 'cookie-law-info');?></h3> |
| 26 | </div> |
| 27 | <form method="post" action="<?php echo esc_url($_SERVER["REQUEST_URI"]); ?>"> |
| 28 | <?php wp_nonce_field('cookielawinfo-update-privacy-overview-content'); ?> |
| 29 | <table class="form-table cli_privacy_overview_form" > |
| 30 | <tr valign="top"> |
| 31 | <td> |
| 32 | <label for="privacy_overview_title"><?php _e('Title', 'cookie-law-info'); ?></label> |
| 33 | <input type="text" name="privacy_overview_title" value="<?php echo sanitize_text_field( stripslashes( $privacy_title ) ); ?>" class="cli-textbox" /> |
| 34 | </td> |
| 35 | </tr> |
| 36 | <tr valign="top"> |
| 37 | <td> |
| 38 | <label for="privacy_overview_content"><?php _e('Privacy overview is displayed when the user clicks on ‘cookie settings’ from the cookie consent bar. Edit/ modify the title and content of ‘privacy overview’ from here.', 'cookie-law-info'); ?></label> |
| 39 | <?php |
| 40 | $cli_use_editor= apply_filters('cli_use_editor_in_po',true); |
| 41 | if($cli_use_editor) |
| 42 | { |
| 43 | wp_editor( stripslashes($privacy_content) , 'cli_privacy_overview_content', $wpe_settings = array('textarea_name'=>'privacy_overview_content','textarea_rows' => 10)); |
| 44 | } |
| 45 | else |
| 46 | { |
| 47 | ?> |
| 48 | <textarea style="width:100%; height:250px;" name="privacy_overview_content"><?php echo wp_kses_post( stripslashes($privacy_content) ) ;?></textarea> |
| 49 | <?php |
| 50 | } |
| 51 | ?> |
| 52 | <div class="clearfix"></div> |
| 53 | </td> |
| 54 | </tr> |
| 55 | </table> |
| 56 | <div class="cli-plugin-toolbar bottom"> |
| 57 | <div class="left"> |
| 58 | </div> |
| 59 | <div class="right"> |
| 60 | <input type="submit" name="update_privacy_overview_content_settings_form" value="<?php _e('Save Settings', 'cookie-law-info'); ?>" style="float: right;" class="button-primary" /> |
| 61 | <span class="spinner" style="margin-top:9px"></span> |
| 62 | </div> |
| 63 | </div> |
| 64 | </form> |
| 65 | </div> |
| 66 | </div> |