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 / taxonomy-meta.php

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

76 lines 3.2 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
8 <?php $taxonomy_obj = get_taxonomy($taxonomy);
9 if ($taxonomy_obj) {
10 $taxonomy_name = $taxonomy_obj->labels->singular_name;
11 } ?>
12 <div class="acc-ind-col-1 accodes-taxonomy-edit">
13 <?php echo "<h4>Add custom codes to this ".esc_html($taxonomy_name)."</h4>"; ?>
14 <?php wp_nonce_field('accodes_save_tax_meta', 'accodes_tax_meta_nonce'); ?>
15
16 <fieldset class="accodes_ind_field">
17 <div>
18 <p class="acc_info">
19 <label for="_accodes_header_metabox" class="first-label accodes-label green-label">
20 <?php
21 // escape
22 esc_html_e( 'Header Codes', 'add-custom-codes' );
23 ?>
24 </label>
25 <?php esc_html_e( "Codes & scripts to add before <em>&lt;/head&gt;</em> section of this page. Use <em>&lt;script&gt; &lt;/script&gt;</em>, <em>&lt;style&gt; &lt;/style&gt;</em> tags when necessary.", 'add-custom-codes' ); ?>
26 </p>
27 <textarea
28 type="text"
29 name="_accodes_header_metabox"
30 id="_accodes_header_metabox" class="codemirror small-codemirror"
31 ><?php echo esc_attr( $header_script ); ?></textarea>
32 </div>
33 <p>
34 <label for="accodes_hide_header" class="accodes-checkbox-label">
35 <input type="checkbox" <?php echo checked( $hide_header, 'on', false ) ?>
36 name="accodes_hide_header" id="accodes_hide_header"/>
37 <?php esc_html_e( "Hide Global Header Codes on this page", 'add-custom-codes' ); ?>
38 </label>
39 <?php esc_html_e( "Go to <em>Appearance -> Add Custom Codes</em> to see your Global Header Codes", 'add-custom-codes' ); ?>
40 </p>
41 </fieldset>
42
43 <fieldset class="accodes_ind_field">
44 <div>
45 <p class="acc_info">
46 <label for="_accodes_footer_metabox" class="accodes-label green-label">
47 <?php
48 esc_html_e( 'Footer Codes', 'add-custom-codes' );
49 ?>
50 </label>
51 <?php esc_html_e( "Codes & scripts to add before <em>&lt;/body&gt;</em> section of this page. Use <em>&lt;script&gt; &lt;/script&gt;</em>, <em>&lt;style&gt; &lt;/style&gt;</em> tags when necessary.", 'add-custom-codes' ); ?>
52 </p>
53 <textarea
54 type="text"
55 name="_accodes_footer_metabox"
56 id="_accodes_footer_metabox" class="codemirror small-codemirror"
57 ><?php echo esc_attr( $footer_script ); ?></textarea>
58 <p>
59 <label for="accodes_hide_footer" class="accodes-checkbox-label">
60 <input type="checkbox" <?php echo checked( $hide_footer, 'on', false ) ?>
61 name="accodes_hide_footer" id="accodes_hide_footer"/>
62 <?php esc_html_e( "Hide Global Footer Codes on this page", 'add-custom-codes' ); ?>
63 </label>
64 <?php esc_html_e( "Go to <em>Appearance -> Add Custom Codes</em> to see your Global Footer Codes", 'add-custom-codes' ); ?>
65 </p>
66 </div>
67 </fieldset>
68
69 </div>
70 <div class="acc-ind-col-2">
71 <p>
72 <em>Add Custom Codes by Mak</em> plugin is <span>Free Forever</span> to use! <a class="acc-link1" href="https://donate.stripe.com/9AQdRz5xJ87c9i0bIS" target="_blank">Donate</a> or <a class="acc-link1" href="https://maktalseo.com/" target="_blank">Hire us for your next project</a> to support us!
73 </p>
74 </div>
75 <div style="clear:both;"></div>
76