PluginProbe
Add Custom Codes – Insert Header, Footer, Custom PHP Snippets, CSS, Javascript / 4.7
Add Custom Codes – Insert Header, Footer, Custom PHP Snippets, CSS, Javascript v4.7
trunk 1.0 2.0 3.0 3.5 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.71 4.80 5.0
add-custom-codes / global-form.php

global-form.php in Add Custom Codes – Insert Header, Footer, Custom PHP Snippets, CSS, Javascript 4.7, at global-form.php

72 lines 4.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // If this file was called directly, abort.
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit;
5 }
6 ?>
7 <?php if (isset($_GET['settings-updated'])) : ?>
8 <div class="notice notice-success is-dismissible"><p><?php esc_html_e('Changes saved! Please clear your cache if the changes are not reflected on the website.', 'add-custom-codes'); ?></p></div>
9 <?php endif ?>
10
11 <div class="wrap">
12 <h2><?php esc_html_e( 'Add Custom Codes by Mak', 'add-custom-codes' ) ?></h2>
13 <div class="full_row">
14 <div class="accodes_cols">
15 <form method="post" action="options.php">
16 <?php settings_fields( 'accodes-settings-group' ); ?>
17 <?php wp_nonce_field('accodes_save_settings', 'accodes_nonce'); ?>
18 <?php do_settings_sections( 'accodes-settings-group' ); ?>
19
20 <?php
21 $global_css = "";
22 $global_css = get_option('custom-css-codes-input');
23 ?>
24 <p><label for="custom-css-codes-input" class="accodes-label green-label"><?php esc_html_e( 'Custom CSS (Global)', 'add-custom-codes' ) ?></label><br/>
25 You can add custom css (global) codes below. DO NOT INCLUDE <em>&lt;style&gt;</em> and <em>&lt;/style&gt;</em> tags:</p>
26 <textarea class="codemirror-accodes-css" id="custom-css-codes-input" name="custom-css-codes-input"><?php echo esc_attr( $global_css ); ?></textarea>
27
28 <?php
29 // $css_on_footer ='';
30 $css_on_footer = get_option('accodes_global_css_on_footer', false);
31 ?>
32 <p>
33 <label for="accodes_global_css_on_footer" class="accodes-checkbox-label">
34 <input type="checkbox" <?php echo checked( $css_on_footer, 1, false ); ?>
35 name="accodes_global_css_on_footer" id="accodes_global_css_on_footer" value="1"/>
36 <?php esc_html_e( "Insert Custom CSS before <em>&lt;/body&gt;</em> of website.", 'add-custom-codes' ); ?>
37 </label><br/>
38 <?php esc_html_e( "By default, Custom CSS will be added before <em>&lt;/head&gt;</em> section of your website.", 'add-custom-codes' ); ?>
39 </p>
40 <?php submit_button(); ?>
41
42
43 <div class="accodes-spacer"></div>
44
45 <p><label for="custom-header-codes-input" class="accodes-label green-label">
46 <?php esc_html_e( 'Global Header Codes', 'add-custom-codes' ) ?></label><br/>
47 Global Codes or scripts to add before <em>&lt;/head&gt;</em> section of your website. Google Search Console Verification, Bing Verification and any other codes. Include <em>&lt;script&gt;</em> and <em>&lt;/script&gt;</em> tags when necessary: </p>
48 <textarea class="codemirror" id="custom-verification-codes-input" name="custom-header-codes-input"><?php echo esc_attr(get_option('custom-header-codes-input') ); ?></textarea>
49 <?php submit_button(); ?>
50
51 <div class="accodes-spacer" style="border: ;background: #dce4e6;width: 100%;height: 1px;margin: 30px 0px;"></div>
52
53 <p><label for="custom-footer-codes-input" class="accodes-label green-label">
54 <?php esc_html_e( 'Global Footer Codes', 'add-custom-codes' ) ?></label><br/>
55 Global Codes or scripts to add before <em>&lt;/body&gt;</em> section of your website. You can add Google Anaylytics Tracking Code, Facebook Scripts, third party ad scripts etc here. Include <em>&lt;script&gt;</em> and <em>&lt;/script&gt;</em> tags when necessary: </p>
56 <textarea class="codemirror" placeholder="" id="custom-analytics-codes-input" name="custom-footer-codes-input"><?php echo esc_attr( get_option('custom-footer-codes-input') ); ?></textarea>
57 <?php submit_button(); ?>
58
59 </form>
60 </div>
61 <div class="accodes_cols2">
62 <div class="accodes_box">
63 <h3>Hey, How is the plugin?</h3>
64 <p>Thank you for using <em>Add Custom Codes by Mak</em>. It will be free forever to use, pinky promise! To report bugs & issues or to request additional features, please visit plugin's <a href="https://wordpress.org/support/plugin/add-custom-codes/" target="_blank" >support forum</a> or <a href="https://maktalseo.com/contact-us/" target="_blank" >contact us</a>. <br/><br/>If you found this plugin useful, please donate something or hire us for your next project!</p>
65
66 <center><a class="accodes_donate blue" href="https://donate.stripe.com/9AQdRz5xJ87c9i0bIS" target="_blank">Donate now</a></center>
67
68 <center><a class="accodes_donate orange" href="https://maktalseo.com/" target="_blank">Hire us!</a></center>
69 </div>
70 </div>
71 <div class="clear"></div>
72 </div>