admin-settings-advanced.php
2 weeks ago
admin-settings-buttons.php
2 weeks ago
admin-settings-general.php
2 weeks ago
admin-settings-help.php
2 weeks ago
admin-settings-messagebar.php
2 weeks ago
admin-settings-save-button.php
2 weeks ago
admin-settings-help.php
126 lines
| 1 | <?php |
| 2 | // If this file is called directly, abort. |
| 3 | if ( ! defined( 'WPINC' ) ) { |
| 4 | die; |
| 5 | } |
| 6 | ?> |
| 7 | <div class="cookie-law-info-tab-content" data-id="<?php echo esc_attr( $target_id ); ?>"> |
| 8 | <ul class="cli_sub_tab"> |
| 9 | <li style="border-left:none; padding-left: 0px;" data-target="shortcodes"><a><?php echo esc_html__( 'Shortcodes', 'cookie-law-info' ); ?></a></li> |
| 10 | <li data-target="help-links"><a><?php echo esc_html__( 'Help Links', 'cookie-law-info' ); ?></a></li> |
| 11 | </ul> |
| 12 | |
| 13 | <div class="cli_sub_tab_container"> |
| 14 | <div class="cli_sub_tab_content" data-id="shortcodes" style="display:block;"> |
| 15 | <div style="font-size: 14px;"> |
| 16 | <h3><?php echo esc_html__( 'Cookie bar shortcodes', 'cookie-law-info' ); ?></h3> |
| 17 | <?php echo esc_html__( 'You can insert the shortcodes in the Settings > Customise Cookie Bar > Cookie bar > Message to get it rendered on the cookie consent bar of your site.', 'cookie-law-info' ); ?> |
| 18 | </div> |
| 19 | <ul class="cli-shortcodes"> |
| 20 | <li> |
| 21 | <div style="font-weight: bold;">[cookie_button]</div> |
| 22 | <?php echo esc_html__( 'This is the "main button" you customise above.', 'cookie-law-info' ); ?> |
| 23 | </li> |
| 24 | |
| 25 | <li><div style="font-weight: bold;">[cookie_reject]</div> |
| 26 | <?php echo esc_html__( 'This is the cookie reject button shortcode.', 'cookie-law-info' ); ?> |
| 27 | </li> |
| 28 | <li> |
| 29 | <div style="font-weight: bold;">[cookie_settings]</div> |
| 30 | <?php echo esc_html__( 'This is the cookie settings button rendering shortcode.', 'cookie-law-info' ); ?> |
| 31 | </li> |
| 32 | <li><div style="font-weight: bold;">[cookie_link]</div> |
| 33 | <?php echo esc_html__( 'This is the "read more" link you customise above.', 'cookie-law-info' ); ?> |
| 34 | </li> |
| 35 | |
| 36 | <li><div style="font-weight: bold;"><?php echo esc_html__( 'Setup margin for above buttons', 'cookie-law-info' ); ?></div> |
| 37 | Eg: [cookie_button margin="10px"] |
| 38 | <pre> |
| 39 | margin: 5%; /* All sides: 5% margin */ |
| 40 | |
| 41 | margin: 10px; /* All sides: 10px margin */ |
| 42 | |
| 43 | margin: 1.6em 20px; /* top and bottom: 1.6em margin */ |
| 44 | /* left and right: 20px margin */ |
| 45 | |
| 46 | margin: 10px 3% -1em; /* top: 10px margin */ |
| 47 | /* left and right: 3% margin */ |
| 48 | /* bottom: -1em margin */ |
| 49 | |
| 50 | margin: 10px 3px 30px 5px; /* top: 10px margin */ |
| 51 | /* right: 3px margin */ |
| 52 | /* bottom: 30px margin */ |
| 53 | /* left: 5px margin */ |
| 54 | |
| 55 | margin: 2em auto; /* top and bottom: 2em margin */ |
| 56 | /* Box is horizontally centered */ |
| 57 | |
| 58 | margin: auto; /* top and bottom: 0 margin */ |
| 59 | /* Box is horizontally centered */ |
| 60 | </pre> |
| 61 | </li> |
| 62 | |
| 63 | </ul> |
| 64 | <div style="font-size: 14px;"> |
| 65 | <h3 style="margin-bottom:5px; margin-top:25px;"><?php echo esc_html__( 'Other shortcodes', 'cookie-law-info' ); ?></h3> |
| 66 | <?php echo esc_html__( 'These shortcodes can be used in pages and posts on your website. It is not recommended to use these inside the cookie bar itself.', 'cookie-law-info' ); ?> |
| 67 | </div> |
| 68 | |
| 69 | <ul class="cli-shortcodes"> |
| 70 | <li> |
| 71 | <div style="font-weight: bold;">[cookie_audit]</div> |
| 72 | <?php echo esc_html__( 'This prints out a nice table of cookies, in line with the guidance given by the ICO.', 'cookie-law-info' ); ?> <em><?php echo esc_html__( 'You need to enter the cookies your website uses via the GDPR Cookie Consent > Cookie List menu in your WordPress dashboard.', 'cookie-law-info' ); ?></em> |
| 73 | <div style="font-weight: bold;"> |
| 74 | [cookie_audit style="winter"] <br /> |
| 75 | [cookie_audit not_shown_message="No records found"] <br /> |
| 76 | [cookie_audit style="winter" not_shown_message="Not found"]<br /> |
| 77 | [cookie_audit columns="cookie,description"] <br /> |
| 78 | [cookie_audit category="categoryslug"] <br /> |
| 79 | [cookie_audit heading="The below list details the cookies used in our website."] |
| 80 | </div> |
| 81 | <?php echo esc_html__( 'Styles included', 'cookie-law-info' ); ?>: simple, classic, modern, rounded, elegant, winter. Default is classic. |
| 82 | <br /> |
| 83 | <?php echo esc_html__( 'Columns available', 'cookie-law-info' ); ?>: cookie, description, type, duration. <?php echo esc_html__( 'Will print all columns by default.', 'cookie-law-info' ); ?> |
| 84 | </li> |
| 85 | <li> |
| 86 | <div style="font-weight: bold;">[delete_cookies]</div> |
| 87 | <?php echo esc_html__( 'This shortcode will display a normal HTML link which when clicked, will delete the cookie set by Cookie Law Info (this cookie is used to remember that the cookie bar is closed).', 'cookie-law-info' ); ?> |
| 88 | </li> |
| 89 | <li> |
| 90 | <div style="font-weight: bold;">[delete_cookies text="Click here to delete"]</div> |
| 91 | <?php echo esc_html__( 'Add any text you like- useful if you want e.g. another language to English.', 'cookie-law-info' ); ?> |
| 92 | </li> |
| 93 | <li> |
| 94 | <div style="font-weight: bold;">[cookie_after_accept] Your content goes here... [/cookie_after_accept]</div> |
| 95 | <?php echo esc_html__( 'Add content after accepting the cookie notice.', 'cookie-law-info' ); ?> |
| 96 | You can use `do_shortcode` function to add shortcodes inside the template file. |
| 97 | </li> |
| 98 | </ul> |
| 99 | </div> |
| 100 | <div class="cli_sub_tab_content" data-id="help-links" style="float: left; height:auto;"> |
| 101 | <?php |
| 102 | $admin_img_path = CLI_PLUGIN_URL . 'admin/images/'; |
| 103 | ?> |
| 104 | <h3><?php echo esc_html__( 'Help Links', 'cookie-law-info' ); ?></h3> |
| 105 | <ul class="cli-help-links"> |
| 106 | <li> |
| 107 | <img src="<?php echo esc_url( $admin_img_path ); ?>documentation.png"> |
| 108 | <h3><?php echo esc_html__( 'Documentation', 'cookie-law-info' ); ?></h3> |
| 109 | <p><?php echo esc_html__( 'Refer to our documentation to set and get started', 'cookie-law-info' ); ?></p> |
| 110 | <a target="_blank" href="https://www.cookieyes.com/documentation/gdpr-cookie-consent-plugin/" class="button button-primary"> |
| 111 | <?php echo esc_html__( 'Documentation', 'cookie-law-info' ); ?> |
| 112 | </a> |
| 113 | </li> |
| 114 | <li> |
| 115 | <img src="<?php echo esc_url( $admin_img_path ); ?>support.png"> |
| 116 | <h3><?php echo esc_html__( 'Help and Support', 'cookie-law-info' ); ?></h3> |
| 117 | <p><?php echo esc_html__( 'We would love to help you on any queries or issues.', 'cookie-law-info' ); ?></p> |
| 118 | <a target="_blank" href="https://wordpress.org/support/plugin/cookie-law-info/" class="button button-primary"> |
| 119 | <?php echo esc_html__( 'Contact Us', 'cookie-law-info' ); ?> |
| 120 | </a> |
| 121 | </li> |
| 122 | </ul> |
| 123 | </div> |
| 124 | </div> |
| 125 | </div> |
| 126 |