Changeset 3452615
- Timestamp:
- 02/03/2026 07:01:07 AM (8 weeks ago)
- Location:
- header-footer
- Files:
-
- 20 added
- 1 deleted
- 5 edited
-
tags/3.3.3 (added)
-
tags/3.3.3/admin (added)
-
tags/3.3.3/admin/admin.css (added)
-
tags/3.3.3/admin/admin.php (added)
-
tags/3.3.3/admin/controls.php (added)
-
tags/3.3.3/admin/options.php (added)
-
tags/3.3.3/images (added)
-
tags/3.3.3/images/donate.png (added)
-
tags/3.3.3/plugin.php (added)
-
tags/3.3.3/readme.txt (added)
-
tags/3.3.3/vendor (added)
-
tags/3.3.3/vendor/jquery-ui (added)
-
tags/3.3.3/vendor/jquery-ui/images (added)
-
tags/3.3.3/vendor/jquery-ui/images/ui-icons_444444_256x240.png (added)
-
tags/3.3.3/vendor/jquery-ui/images/ui-icons_555555_256x240.png (added)
-
tags/3.3.3/vendor/jquery-ui/images/ui-icons_777620_256x240.png (added)
-
tags/3.3.3/vendor/jquery-ui/images/ui-icons_777777_256x240.png (added)
-
tags/3.3.3/vendor/jquery-ui/images/ui-icons_cc0000_256x240.png (added)
-
tags/3.3.3/vendor/jquery-ui/images/ui-icons_ffffff_256x240.png (added)
-
tags/3.3.3/vendor/jquery-ui/jquery-ui.min.css (added)
-
trunk (modified) (1 prop)
-
trunk/admin/admin.min.css (deleted)
-
trunk/admin/controls.php (modified) (4 diffs)
-
trunk/admin/options.php (modified) (9 diffs)
-
trunk/plugin.php (modified) (7 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
header-footer/trunk
- Property svn:ignore
-
old new 1 phpstan.php 2 build.xml 3 phpstan.neon 1 4 nbproject 2 5 phpstan.inc
-
- Property svn:ignore
-
header-footer/trunk/admin/controls.php
r2986296 r3452615 23 23 echo '<td><input type="checkbox" name="options[' . esc_attr($name) . ']" value="1" ' . 24 24 (isset($options[$name]) ? 'checked' : '') . '/>'; 25 echo ' ' . $tips;25 echo ' ' . wp_kses_post($tips); 26 26 if ($link) { 27 27 echo '<br><a href="' . esc_attr($link) . '" target="_blank">Read more</a>.'; … … 34 34 echo '<td><input type="checkbox" name="options[' . esc_attr($name) . ']" value="1" ' . 35 35 (!empty($options[$name]) ? 'checked' : '') . '/>'; 36 echo ' ' . $tips;36 echo ' ' . wp_kses_post($tips); 37 37 if ($link) { 38 38 echo '<br><a href="' . esc_attr($link) . '" target="_blank">Read more</a>.'; … … 52 52 echo '<td><input type="text" name="options[' . esc_attr($name) . ']" value="' . 53 53 esc_attr($options[$name]) . '" size="50"/>'; 54 echo '<br /> ' . $tips;54 echo '<br /> ' . wp_kses_post($tips); 55 55 echo '</td>'; 56 56 } … … 104 104 echo esc_html($options[$name]); 105 105 echo '</textarea>'; 106 echo '<p class="description">' . $tips .'</p>';106 echo '<p class="description">', wp_kses_post($tips), '</p>'; 107 107 } 108 108 -
header-footer/trunk/admin/options.php
r3244015 r3452615 78 78 I never asked before and I'm curious: <a href="http://wordpress.org/extend/plugins/header-footer/" target="_blank"><strong>would you rate this plugin</strong></a>? 79 79 (takes only few seconds required - account on WordPress.org, every blog owner should have one...). <strong>Really appreciated, Stefano</strong>. 80 <a class="hefo-dismiss" href="<? php echo wp_nonce_url($_SERVER['REQUEST_URI'] . '&dismiss=rate&noheader=1', 'dismiss') ?>">×</a>80 <a class="hefo-dismiss" href="<?= esc_attr(wp_nonce_url($_SERVER['REQUEST_URI'] . '&dismiss=rate&noheader=1', 'dismiss')) ?>">×</a> 81 81 </div> 82 82 <?php } ?> … … 85 85 <div class="notice notice-success"> 86 86 If you want to be informed of important updated of this plugin, you may want to subscribe to my (rare) newsletter<br> 87 <form action="http ://www.satollo.net/?na=s" target="_blank" method="post">87 <form action="https://www.satollo.net/?na=s" target="_blank" method="post"> 88 88 <input type="hidden" value="header-footer" name="nr"> 89 89 <input type="hidden" value="2" name="nl[]"> … … 91 91 <input type="submit" value="Subscribe"> 92 92 </form> 93 <a class="hefo-dismiss" href="<? php echo wp_nonce_url($_SERVER['REQUEST_URI'] . '&dismiss=newsletter&noheader=1', 'dismiss') ?>">×</a>93 <a class="hefo-dismiss" href="<?= esc_attr(wp_nonce_url($_SERVER['REQUEST_URI'] . '&dismiss=newsletter&noheader=1', 'dismiss')) ?>">×</a> 94 94 95 95 </div> … … 114 114 <div class="notice notice-success"> 115 115 Did this plugin save you lot of time and troubles? 116 <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5PHGDGNHAYLJ8" target="_blank"><img style="vertical-align: bottom" src="<? php echo plugins_url('header-footer') ?>/images/donate.png"></a>116 <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5PHGDGNHAYLJ8" target="_blank"><img style="vertical-align: bottom" src="<?= esc_attr(plugins_url('header-footer')) ?>/images/donate.png"></a> 117 117 To help children. Even <b>2$</b> help. <a href="http://www.satollo.net/donations" target="_blank">Please read more</a>. Thank you. 118 118 <br> … … 207 207 208 208 <?php for ($i = 1; $i <= 5; $i++) { ?> 209 <h3>Generic injection <? php echo$i; ?></h3>209 <h3>Generic injection <?= (int)$i; ?></h3> 210 210 <p>Inject before the <?php hefo_base_text('generic_tag_' . $i); ?> marker</p> 211 211 <div class="row"> … … 308 308 309 309 <?php for ($i = 1; $i <= 5; $i++) { ?> 310 <h3>Inner post injection <? php echo$i; ?></h3>310 <h3>Inner post injection <?= (int)$i; ?></h3> 311 311 <?php hefo_rule($i); ?> 312 312 <div class="row"> … … 335 335 336 336 <div class="col-2"> 337 <label><?php _e('Desktop', 'header-footer') ?>*</label>337 <label><?php esc_html_e('Desktop', 'header-footer') ?>*</label> 338 338 <?php hefo_base_textarea_cm('page_before'); ?> 339 339 </div> … … 346 346 <div class="clearfix"></div> 347 347 348 <h3><?php _e('After the page content', 'header-footer') ?></h3>349 <div class="row"> 350 351 <div class="col-2"> 352 <label><?php _e('Desktop', 'header-footer') ?>*</label>348 <h3><?php esc_html_e('After the page content', 'header-footer') ?></h3> 349 <div class="row"> 350 351 <div class="col-2"> 352 <label><?php esc_html_e('Desktop', 'header-footer') ?>*</label> 353 353 <?php hefo_base_textarea_cm('page_after'); ?> 354 354 </div> … … 451 451 <table class="form-table"> 452 452 <?php for ($i = 1; $i <= 5; $i++) { ?> 453 <tr valign="top"><?php hefo_field_textarea('snippet_' . $i, __('Snippet ' . $i, 'header-footer'), ''); ?></tr>453 <tr valign="top"><?php hefo_field_textarea('snippet_' . $i, __('Snippet', 'header-footer') . $i, ''); ?></tr> 454 454 <?php } ?> 455 455 </table> -
header-footer/trunk/plugin.php
r3244018 r3452615 1 1 <?php 2 3 defined('ABSPATH') || exit; 2 4 3 5 /* … … 5 7 Plugin URI: https://www.satollo.net/plugins/header-footer 6 8 Description: Header and Footer lets to add html/javascript code to the head and footer and posts of your blog. Some examples are provided on the <a href="http://www.satollo.net/plugins/header-footer">official page</a>. 7 Version: 3.3. 29 Version: 3.3.3 8 10 Requires PHP: 7.0 9 Requires at least: 5.611 Requires at least: 6.1 10 12 Author: Stefano Lissa 11 13 Author URI: https://www.satollo.net … … 13 15 */ 14 16 15 /*16 Copyright 2008-2024 Stefano Lissa ([email protected])17 18 This program is free software; you can redistribute it and/or modify19 it under the terms of the GNU General Public License as published by20 the Free Software Foundation; either version 2 of the License, or21 (at your option) any later version.22 23 This program is distributed in the hope that it will be useful,24 but WITHOUT ANY WARRANTY; without even the implied warranty of25 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the26 GNU General Public License for more details.27 28 You should have received a copy of the GNU General Public License29 along with this program; if not, write to the Free Software30 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA31 */32 33 defined('ABSPATH') || exit;34 17 35 18 if (!defined('HEADER_FOOTER_ALLOW_PHP')) { … … 160 143 161 144 if (isset($hefo_options['disable_wp_shortlink_wp_head'])) { 162 remove_action('wp_head', 'wp_shortlink_wp_head', 10 , 0);145 remove_action('wp_head', 'wp_shortlink_wp_head', 10); 163 146 } 164 147 165 148 if (isset($hefo_options['disable_wp_shortlink_wp_head'])) { 166 remove_action('wp_head', 'wp_shortlink_wp_head', 10 , 0);149 remove_action('wp_head', 'wp_shortlink_wp_head', 10); 167 150 } 168 151 } … … 179 162 180 163 add_action('amp_post_template_head', function () { 181 echohefo_execute_option('amp_head', true);164 hefo_execute_option('amp_head', true); 182 165 }, 100); 183 166 … … 197 180 198 181 function hefo_wp_footer() { 199 global $hefo_is_mobile ;182 global $hefo_is_mobile, $hefo_options; 200 183 201 184 if ($hefo_is_mobile && isset($hefo_options['mobile_footer_enabled'])) { … … 381 364 $buffer = hefo_replace($hefo_options[$key]); 382 365 if ($echo) 366 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 383 367 echo hefo_execute($buffer); 384 368 else -
header-footer/trunk/readme.txt
r3244018 r3452615 1 1 === Head, Footer and Post Injections === 2 2 Tags: header, footer, ads, analytics, amp 3 Tested up to: 6. 7.24 Stable tag: 3.3. 23 Tested up to: 6.9 4 Stable tag: 3.3.3 5 5 Donate link: https://www.satollo.net/donations 6 6 Contributors: satollo … … 84 84 85 85 == Changelog == 86 87 = 3.3.3 = 88 89 * WP 6.9 check 90 * PCP Check 86 91 87 92 = 3.3.1, 3.3.2 =
Note: See TracChangeset
for help on using the changeset viewer.