Changeset 1559683
- Timestamp:
- 12/22/2016 11:20:00 AM (9 years ago)
- Location:
- simple-tag-manager
- Files:
-
- 3 edited
- 6 copied
-
tags/1.1 (copied) (copied from simple-tag-manager/trunk)
-
tags/1.1/caesar-cipher.php (copied) (copied from simple-tag-manager/trunk/caesar-cipher.php)
-
tags/1.1/languages (copied) (copied from simple-tag-manager/trunk/languages)
-
tags/1.1/readme.txt (copied) (copied from simple-tag-manager/trunk/readme.txt) (1 diff)
-
tags/1.1/settings.php (copied) (copied from simple-tag-manager/trunk/settings.php) (5 diffs)
-
tags/1.1/simple-tag-manager.php (copied) (copied from simple-tag-manager/trunk/simple-tag-manager.php) (5 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/settings.php (modified) (5 diffs)
-
trunk/simple-tag-manager.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-tag-manager/tags/1.1/readme.txt
r1547377 r1559683 38 38 The page will display a message with the to add in the head and in the body. 39 39 40 == Changelog == 41 42 = 1.1 = 43 * Using Bootstrap to style the settings page 44 * Added support to translations 45 * Added support for Google Analytics and Custom Codes 46 47 = 1.0 = 48 * The first version of Simple Tag Manager 40 49 41 50 == Google Tag Manager Errors == -
simple-tag-manager/tags/1.1/settings.php
r1550615 r1559683 5 5 { 6 6 ?> 7 7 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> 8 <style> 9 body{background: #F1F1F1;} 10 .center{text-align: center;} 11 </style> 12 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> 8 13 <div style="max-width: 95%; margin: 16px 0; margin-top: 20px;"> 9 10 <h1>Simple Tag Manager</h1> 11 12 <p><?php _e( 'Version', 'stm-plugin-lang-f' ); ?> 1.0 | <a href="https://dansedmak.com" rel="nofollow" target="_blank"><?php _e( "Author's Website", 'stm-plugin-lang-f' ); ?></a></p> 13 <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> 14 <h1>Simple Tag Manager</h1> 15 <div class="row"> 16 <div class="col-md-4 center"> 17 <p><?php _e( 'Version', 'stm-plugin-lang-f' ); ?> 1.0</p> 18 <p>Copyright © 2016 <a href="https://dansedmak.com" rel="nofollow" target="_blank">Daniel Sedmak</a></p> 19 </div> 20 <div class="col-md-4 center"> 21 <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> 14 22 <input type="hidden" name="cmd" value="_s-xclick" /> 15 23 <input type="hidden" name="hosted_button_id" value="7PGYLG7MBNHK8" /> … … 17 25 <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" /> 18 26 </form> 19 <small>Copyright © 2016 Daniel Sedmak | <a href="https://github.com/dansita/simple-tag-manager/" rel="nofollow" target="_blank"><?php _e( 'Get the Source Code', 'stm-plugin-lang-f' ); ?></a> | <a href="https://raw.githubusercontent.com/dansita/simple-tag-manager/master/LICENSE" rel="nofollow" target="_blank"><?php _e( 'Read the license', 'stm-plugin-lang-f' ); ?></a></small> 20 <hr> 27 </div> 28 <div class="col-md-4 center"> 29 <p><a href="https://github.com/dansita/simple-tag-manager/" rel="nofollow" target="_blank"><?php _e( 'Get the Source Code', 'stm-plugin-lang-f' ); ?></a></p> 30 <p><a href="https://raw.githubusercontent.com/dansita/simple-tag-manager/master/LICENSE" rel="nofollow" target="_blank"><?php _e( 'Read the license', 'stm-plugin-lang-f' ); ?></a></p> 31 </div> 32 </div> 21 33 22 34 </div> … … 24 36 <div style="max-width: 95%; padding: 20px; overflow: auto; margin: 16px 0; border: 1px solid #e5e5e5; -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.04); box-shadow: 0 1px 1px rgba(0,0,0,.04); background: #fff; font-size: 13px; line-height: 2.1em;"> 25 37 <?php if(is_admin()){ ?> 26 <?php if(isset($_POST['stmx_form'])){ ?><div style="color: #106914; border: solid 1px #8BC34A; background: rgb(253, 255, 235); padding-left: 10px; padding-right: 10px; margin-bottom: 20px;"><p><?php _e( 'Preferences Saved!', 'stm-plugin-lang-f' ); ?></p></div><?php } ?>38 <?php if(isset($_POST['stmx_form'])){ ?><div class="alert alert-success" role="alert"><p><b><?php _e( 'Congratulations!', 'stm-plugin-lang-f' ); ?></b> <?php _e( 'The preferences are correctly saved', 'stm-plugin-lang-f' ); ?></p></div><?php } ?> 27 39 <form method="post"> 28 40 <?php wp_nonce_field( 'stmx_frm1', 'stmx_form' ); ?> … … 32 44 <option value="off" <?php if( ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("1") == "off"){ echo "selected"; } ?>><?php _e( 'Deactivated', 'stm-plugin-lang-f' ); ?></option> 33 45 </select> 34 <h3><?php _e( 'Head', 'stm-plugin-lang-f' ); ?></h3> 46 47 <div style="margin-top: 20px;"> 48 49 <!-- Nav tabs --> 50 <ul class="nav nav-tabs" role="tablist"> 51 <li role="presentation" class="active"><a href="#gtm" aria-controls="home" role="tab" data-toggle="tab"><?php _e( 'Google Tag Manager', 'stm-plugin-lang-f' ); ?></a></li> 52 <li role="presentation"><a href="#analytics" aria-controls="profile" role="tab" data-toggle="tab"><?php _e( 'Google Analytics', 'stm-plugin-lang-f' ); ?></a></li> 53 <li role="presentation"><a href="#custom" aria-controls="settings" role="tab" data-toggle="tab"><?php _e( 'Custom', 'stm-plugin-lang-f' ); ?></a></li> 54 </ul> 55 56 <!-- Tab panes --> 57 <div class="tab-content"> 58 <div role="tabpanel" class="tab-pane active" id="gtm"> 59 <h3><?php _e( 'Head', 'stm-plugin-lang-f' ); ?></h3> 35 60 <p><?php _e( 'The script to add within the <code>head</code> tag:', 'stm-plugin-lang-f' ); ?></p> 36 61 <textarea name="opt2" style="width: 100%; min-height:150px;"><?php echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("2"); ?></textarea> … … 38 63 <p><?php _e( 'The script to add within the <code>body</code> tag:', 'stm-plugin-lang-f' ); ?></p> 39 64 <textarea name="opt3" style="width: 100%; min-height:150px;"><?php echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("3"); ?></textarea> 65 </div> 66 <div role="tabpanel" class="tab-pane" id="analytics"> 67 <h3><?php _e( 'Head', 'stm-plugin-lang-f' ); ?></h3> 68 <p><?php _e( 'The script to add within the <code>head</code> tag:', 'stm-plugin-lang-f' ); ?></p> 69 <textarea name="opt4" style="width: 100%; min-height:150px;"><?php echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("4"); ?></textarea> 70 </div> 71 <div role="tabpanel" class="tab-pane" id="custom"> 72 <h3><?php _e( 'Head', 'stm-plugin-lang-f' ); ?></h3> 73 <p><?php _e( 'The script to add within the <code>head</code> tag:', 'stm-plugin-lang-f' ); ?></p> 74 <textarea name="opt5" style="width: 100%; min-height:150px;"><?php echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("5"); ?></textarea> 75 <h3><?php _e( 'Body', 'stm-plugin-lang-f' ); ?></h3> 76 <p><?php _e( 'The script to add within the <code>body</code> tag:', 'stm-plugin-lang-f' ); ?></p> 77 <textarea name="opt6" style="width: 100%; min-height:150px;"><?php echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("6"); ?></textarea> 78 </div> 79 </div> 80 81 </div> 82 83 84 85 40 86 <br> 41 <?php submit_button( _e( 'Save Preferences', 'stm-plugin-lang-f' )); ?>87 <?php submit_button(); ?> 42 88 </form> 43 89 <?php } else { ?> -
simple-tag-manager/tags/1.1/simple-tag-manager.php
r1550615 r1559683 36 36 add_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_2', ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate(""), '', 'yes' ); 37 37 add_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_3', ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate(""), '', 'yes' ); 38 add_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_4', ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate(""), '', 'yes' ); 39 add_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_5', ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate(""), '', 'yes' ); 40 add_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_5', ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate(""), '', 'yes' ); 38 41 } 39 42 … … 43 46 delete_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_2'); 44 47 delete_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_3'); 48 delete_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_4'); 49 delete_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_5'); 50 delete_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_6'); 45 51 } 46 52 … … 48 54 function ecpt_stm_45t5dsfzxv22_zdx_35_hook_head() { 49 55 echo "<!-- Simple Tag Manager Plugin for WordPress (head)-->"; 56 echo "<!-- Google Tag Manager -->"; 50 57 echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("2"); 58 echo "<!-- ### End ### -->"; 59 echo "<!-- Google Analytics -->"; 60 echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("4"); 61 echo "<!-- ### End ### -->"; 62 echo "<!-- Custom Code -->"; 63 echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("5"); 64 echo "<!-- ### End ### -->"; 51 65 echo "<!-- End of Simple Tag Manager -->"; 52 66 } … … 55 69 function ecpt_stm_45t5dsfzxv22_zdx_35_hook_body() { 56 70 echo "<!-- Simple Tag Manager Plugin for WordPress (footer)-->"; 71 echo "<!-- Google Tag Manager -->"; 57 72 echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("3"); 73 echo "<!-- ### End ### -->"; 74 echo "<!-- Custom Code -->"; 75 echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("6"); 76 echo "<!-- ### End ### -->"; 58 77 echo "<!-- End of Simple Tag Manager -->"; 59 78 } … … 86 105 ecpt_stm_45t5dsfzxv22_zdx_35_stm_update("2", sanitize_text_field(ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate($_POST['opt2']))); 87 106 ecpt_stm_45t5dsfzxv22_zdx_35_stm_update("3", sanitize_text_field(ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate($_POST['opt3']))); 107 ecpt_stm_45t5dsfzxv22_zdx_35_stm_update("4", sanitize_text_field(ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate($_POST['opt4']))); 108 ecpt_stm_45t5dsfzxv22_zdx_35_stm_update("5", sanitize_text_field(ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate($_POST['opt5']))); 109 ecpt_stm_45t5dsfzxv22_zdx_35_stm_update("6", sanitize_text_field(ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate($_POST['opt6']))); 88 110 } 89 111 } -
simple-tag-manager/trunk/readme.txt
r1547377 r1559683 38 38 The page will display a message with the to add in the head and in the body. 39 39 40 == Changelog == 41 42 = 1.1 = 43 * Using Bootstrap to style the settings page 44 * Added support to translations 45 * Added support for Google Analytics and Custom Codes 46 47 = 1.0 = 48 * The first version of Simple Tag Manager 40 49 41 50 == Google Tag Manager Errors == -
simple-tag-manager/trunk/settings.php
r1550615 r1559683 5 5 { 6 6 ?> 7 7 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> 8 <style> 9 body{background: #F1F1F1;} 10 .center{text-align: center;} 11 </style> 12 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> 8 13 <div style="max-width: 95%; margin: 16px 0; margin-top: 20px;"> 9 10 <h1>Simple Tag Manager</h1> 11 12 <p><?php _e( 'Version', 'stm-plugin-lang-f' ); ?> 1.0 | <a href="https://dansedmak.com" rel="nofollow" target="_blank"><?php _e( "Author's Website", 'stm-plugin-lang-f' ); ?></a></p> 13 <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> 14 <h1>Simple Tag Manager</h1> 15 <div class="row"> 16 <div class="col-md-4 center"> 17 <p><?php _e( 'Version', 'stm-plugin-lang-f' ); ?> 1.0</p> 18 <p>Copyright © 2016 <a href="https://dansedmak.com" rel="nofollow" target="_blank">Daniel Sedmak</a></p> 19 </div> 20 <div class="col-md-4 center"> 21 <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> 14 22 <input type="hidden" name="cmd" value="_s-xclick" /> 15 23 <input type="hidden" name="hosted_button_id" value="7PGYLG7MBNHK8" /> … … 17 25 <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" /> 18 26 </form> 19 <small>Copyright © 2016 Daniel Sedmak | <a href="https://github.com/dansita/simple-tag-manager/" rel="nofollow" target="_blank"><?php _e( 'Get the Source Code', 'stm-plugin-lang-f' ); ?></a> | <a href="https://raw.githubusercontent.com/dansita/simple-tag-manager/master/LICENSE" rel="nofollow" target="_blank"><?php _e( 'Read the license', 'stm-plugin-lang-f' ); ?></a></small> 20 <hr> 27 </div> 28 <div class="col-md-4 center"> 29 <p><a href="https://github.com/dansita/simple-tag-manager/" rel="nofollow" target="_blank"><?php _e( 'Get the Source Code', 'stm-plugin-lang-f' ); ?></a></p> 30 <p><a href="https://raw.githubusercontent.com/dansita/simple-tag-manager/master/LICENSE" rel="nofollow" target="_blank"><?php _e( 'Read the license', 'stm-plugin-lang-f' ); ?></a></p> 31 </div> 32 </div> 21 33 22 34 </div> … … 24 36 <div style="max-width: 95%; padding: 20px; overflow: auto; margin: 16px 0; border: 1px solid #e5e5e5; -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.04); box-shadow: 0 1px 1px rgba(0,0,0,.04); background: #fff; font-size: 13px; line-height: 2.1em;"> 25 37 <?php if(is_admin()){ ?> 26 <?php if(isset($_POST['stmx_form'])){ ?><div style="color: #106914; border: solid 1px #8BC34A; background: rgb(253, 255, 235); padding-left: 10px; padding-right: 10px; margin-bottom: 20px;"><p><?php _e( 'Preferences Saved!', 'stm-plugin-lang-f' ); ?></p></div><?php } ?>38 <?php if(isset($_POST['stmx_form'])){ ?><div class="alert alert-success" role="alert"><p><b><?php _e( 'Congratulations!', 'stm-plugin-lang-f' ); ?></b> <?php _e( 'The preferences are correctly saved', 'stm-plugin-lang-f' ); ?></p></div><?php } ?> 27 39 <form method="post"> 28 40 <?php wp_nonce_field( 'stmx_frm1', 'stmx_form' ); ?> … … 32 44 <option value="off" <?php if( ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("1") == "off"){ echo "selected"; } ?>><?php _e( 'Deactivated', 'stm-plugin-lang-f' ); ?></option> 33 45 </select> 34 <h3><?php _e( 'Head', 'stm-plugin-lang-f' ); ?></h3> 46 47 <div style="margin-top: 20px;"> 48 49 <!-- Nav tabs --> 50 <ul class="nav nav-tabs" role="tablist"> 51 <li role="presentation" class="active"><a href="#gtm" aria-controls="home" role="tab" data-toggle="tab"><?php _e( 'Google Tag Manager', 'stm-plugin-lang-f' ); ?></a></li> 52 <li role="presentation"><a href="#analytics" aria-controls="profile" role="tab" data-toggle="tab"><?php _e( 'Google Analytics', 'stm-plugin-lang-f' ); ?></a></li> 53 <li role="presentation"><a href="#custom" aria-controls="settings" role="tab" data-toggle="tab"><?php _e( 'Custom', 'stm-plugin-lang-f' ); ?></a></li> 54 </ul> 55 56 <!-- Tab panes --> 57 <div class="tab-content"> 58 <div role="tabpanel" class="tab-pane active" id="gtm"> 59 <h3><?php _e( 'Head', 'stm-plugin-lang-f' ); ?></h3> 35 60 <p><?php _e( 'The script to add within the <code>head</code> tag:', 'stm-plugin-lang-f' ); ?></p> 36 61 <textarea name="opt2" style="width: 100%; min-height:150px;"><?php echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("2"); ?></textarea> … … 38 63 <p><?php _e( 'The script to add within the <code>body</code> tag:', 'stm-plugin-lang-f' ); ?></p> 39 64 <textarea name="opt3" style="width: 100%; min-height:150px;"><?php echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("3"); ?></textarea> 65 </div> 66 <div role="tabpanel" class="tab-pane" id="analytics"> 67 <h3><?php _e( 'Head', 'stm-plugin-lang-f' ); ?></h3> 68 <p><?php _e( 'The script to add within the <code>head</code> tag:', 'stm-plugin-lang-f' ); ?></p> 69 <textarea name="opt4" style="width: 100%; min-height:150px;"><?php echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("4"); ?></textarea> 70 </div> 71 <div role="tabpanel" class="tab-pane" id="custom"> 72 <h3><?php _e( 'Head', 'stm-plugin-lang-f' ); ?></h3> 73 <p><?php _e( 'The script to add within the <code>head</code> tag:', 'stm-plugin-lang-f' ); ?></p> 74 <textarea name="opt5" style="width: 100%; min-height:150px;"><?php echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("5"); ?></textarea> 75 <h3><?php _e( 'Body', 'stm-plugin-lang-f' ); ?></h3> 76 <p><?php _e( 'The script to add within the <code>body</code> tag:', 'stm-plugin-lang-f' ); ?></p> 77 <textarea name="opt6" style="width: 100%; min-height:150px;"><?php echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("6"); ?></textarea> 78 </div> 79 </div> 80 81 </div> 82 83 84 85 40 86 <br> 41 <?php submit_button( _e( 'Save Preferences', 'stm-plugin-lang-f' )); ?>87 <?php submit_button(); ?> 42 88 </form> 43 89 <?php } else { ?> -
simple-tag-manager/trunk/simple-tag-manager.php
r1550615 r1559683 36 36 add_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_2', ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate(""), '', 'yes' ); 37 37 add_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_3', ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate(""), '', 'yes' ); 38 add_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_4', ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate(""), '', 'yes' ); 39 add_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_5', ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate(""), '', 'yes' ); 40 add_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_5', ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate(""), '', 'yes' ); 38 41 } 39 42 … … 43 46 delete_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_2'); 44 47 delete_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_3'); 48 delete_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_4'); 49 delete_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_5'); 50 delete_option( 'ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_6'); 45 51 } 46 52 … … 48 54 function ecpt_stm_45t5dsfzxv22_zdx_35_hook_head() { 49 55 echo "<!-- Simple Tag Manager Plugin for WordPress (head)-->"; 56 echo "<!-- Google Tag Manager -->"; 50 57 echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("2"); 58 echo "<!-- ### End ### -->"; 59 echo "<!-- Google Analytics -->"; 60 echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("4"); 61 echo "<!-- ### End ### -->"; 62 echo "<!-- Custom Code -->"; 63 echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("5"); 64 echo "<!-- ### End ### -->"; 51 65 echo "<!-- End of Simple Tag Manager -->"; 52 66 } … … 55 69 function ecpt_stm_45t5dsfzxv22_zdx_35_hook_body() { 56 70 echo "<!-- Simple Tag Manager Plugin for WordPress (footer)-->"; 71 echo "<!-- Google Tag Manager -->"; 57 72 echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("3"); 73 echo "<!-- ### End ### -->"; 74 echo "<!-- Custom Code -->"; 75 echo ecpt_stm_45t5dsfzxv22_zdx_35_stm_read("6"); 76 echo "<!-- ### End ### -->"; 58 77 echo "<!-- End of Simple Tag Manager -->"; 59 78 } … … 86 105 ecpt_stm_45t5dsfzxv22_zdx_35_stm_update("2", sanitize_text_field(ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate($_POST['opt2']))); 87 106 ecpt_stm_45t5dsfzxv22_zdx_35_stm_update("3", sanitize_text_field(ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate($_POST['opt3']))); 107 ecpt_stm_45t5dsfzxv22_zdx_35_stm_update("4", sanitize_text_field(ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate($_POST['opt4']))); 108 ecpt_stm_45t5dsfzxv22_zdx_35_stm_update("5", sanitize_text_field(ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate($_POST['opt5']))); 109 ecpt_stm_45t5dsfzxv22_zdx_35_stm_update("6", sanitize_text_field(ecpt_stm_45t5dsfzxv22_zdx_35_stm_ciphrate($_POST['opt6']))); 88 110 } 89 111 }
Note: See TracChangeset
for help on using the changeset viewer.