Plugin Directory

Changeset 3452615


Ignore:
Timestamp:
02/03/2026 07:01:07 AM (8 weeks ago)
Author:
satollo
Message:

Version 3.3.3

Location:
header-footer
Files:
20 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • header-footer/trunk

    • Property svn:ignore
      •  

        old new  
         1phpstan.php
         2build.xml
         3phpstan.neon
        14nbproject
        2 
         5phpstan.inc
  • header-footer/trunk/admin/controls.php

    r2986296 r3452615  
    2323    echo '<td><input type="checkbox" name="options[' . esc_attr($name) . ']" value="1" ' .
    2424    (isset($options[$name]) ? 'checked' : '') . '/>';
    25     echo ' ' . $tips;
     25    echo ' ' . wp_kses_post($tips);
    2626    if ($link) {
    2727        echo '<br><a href="' . esc_attr($link) . '" target="_blank">Read more</a>.';
     
    3434    echo '<td><input type="checkbox" name="options[' . esc_attr($name) . ']" value="1" ' .
    3535    (!empty($options[$name]) ? 'checked' : '') . '/>';
    36     echo ' ' . $tips;
     36    echo ' ' . wp_kses_post($tips);
    3737    if ($link) {
    3838        echo '<br><a href="' . esc_attr($link) . '" target="_blank">Read more</a>.';
     
    5252    echo '<td><input type="text" name="options[' . esc_attr($name) . ']" value="' .
    5353    esc_attr($options[$name]) . '" size="50"/>';
    54     echo '<br /> ' . $tips;
     54    echo '<br /> ' . wp_kses_post($tips);
    5555    echo '</td>';
    5656}
     
    104104    echo esc_html($options[$name]);
    105105    echo '</textarea>';
    106     echo '<p class="description">' . $tips . '</p>';
     106    echo '<p class="description">', wp_kses_post($tips), '</p>';
    107107}
    108108
  • header-footer/trunk/admin/options.php

    r3244015 r3452615  
    7878                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>?
    7979                (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') ?>">&times;</a>
     80                <a class="hefo-dismiss" href="<?= esc_attr(wp_nonce_url($_SERVER['REQUEST_URI'] . '&dismiss=rate&noheader=1', 'dismiss')) ?>">&times;</a>
    8181        </div>
    8282    <?php } ?>
     
    8585        <div class="notice notice-success">
    8686                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">
    8888                <input type="hidden" value="header-footer" name="nr">
    8989                <input type="hidden" value="2" name="nl[]">
     
    9191                <input type="submit" value="Subscribe">
    9292            </form>
    93             <a class="hefo-dismiss" href="<?php echo wp_nonce_url($_SERVER['REQUEST_URI'] . '&dismiss=newsletter&noheader=1', 'dismiss') ?>">&times;</a>
     93            <a class="hefo-dismiss" href="<?= esc_attr(wp_nonce_url($_SERVER['REQUEST_URI'] . '&dismiss=newsletter&noheader=1', 'dismiss')) ?>">&times;</a>
    9494
    9595        </div>
     
    114114    <div class="notice notice-success">
    115115        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>
    117117        To help children. Even <b>2$</b> help. <a href="http://www.satollo.net/donations" target="_blank">Please read more</a>. Thank you.
    118118        <br>
     
    207207
    208208                <?php for ($i = 1; $i <= 5; $i++) { ?>
    209                     <h3>Generic injection <?php echo $i; ?></h3>
     209                    <h3>Generic injection <?= (int)$i; ?></h3>
    210210                    <p>Inject before the <?php hefo_base_text('generic_tag_' . $i); ?> marker</p>
    211211                    <div class="row">
     
    308308
    309309                <?php for ($i = 1; $i <= 5; $i++) { ?>
    310                     <h3>Inner post injection <?php echo $i; ?></h3>
     310                    <h3>Inner post injection <?= (int)$i; ?></h3>
    311311                    <?php hefo_rule($i); ?>
    312312                    <div class="row">
     
    335335
    336336                    <div class="col-2">
    337                         <label><?php _e('Desktop', 'header-footer') ?>*</label>
     337                        <label><?php esc_html_e('Desktop', 'header-footer') ?>*</label>
    338338                        <?php hefo_base_textarea_cm('page_before'); ?>
    339339                    </div>
     
    346346                <div class="clearfix"></div>
    347347
    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>
    353353                        <?php hefo_base_textarea_cm('page_after'); ?>
    354354                    </div>
     
    451451                <table class="form-table">
    452452                    <?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>
    454454                    <?php } ?>
    455455                </table>
  • header-footer/trunk/plugin.php

    r3244018 r3452615  
    11<?php
     2
     3defined('ABSPATH') || exit;
    24
    35/*
     
    57  Plugin URI: https://www.satollo.net/plugins/header-footer
    68  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.2
     9  Version: 3.3.3
    810  Requires PHP: 7.0
    9   Requires at least: 5.6
     11  Requires at least: 6.1
    1012  Author: Stefano Lissa
    1113  Author URI: https://www.satollo.net
     
    1315 */
    1416
    15 /*
    16   Copyright 2008-2024 Stefano Lissa ([email protected])
    17 
    18   This program is free software; you can redistribute it and/or modify
    19   it under the terms of the GNU General Public License as published by
    20   the Free Software Foundation; either version 2 of the License, or
    21   (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 of
    25   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    26   GNU General Public License for more details.
    27 
    28   You should have received a copy of the GNU General Public License
    29   along with this program; if not, write to the Free Software
    30   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    31  */
    32 
    33 defined('ABSPATH') || exit;
    3417
    3518if (!defined('HEADER_FOOTER_ALLOW_PHP')) {
     
    160143
    161144    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);
    163146    }
    164147
    165148    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);
    167150    }
    168151}
     
    179162
    180163add_action('amp_post_template_head', function () {
    181     echo hefo_execute_option('amp_head', true);
     164    hefo_execute_option('amp_head', true);
    182165}, 100);
    183166
     
    197180
    198181function hefo_wp_footer() {
    199     global $hefo_is_mobile;
     182    global $hefo_is_mobile, $hefo_options;
    200183
    201184    if ($hefo_is_mobile && isset($hefo_options['mobile_footer_enabled'])) {
     
    381364    $buffer = hefo_replace($hefo_options[$key]);
    382365    if ($echo)
     366        // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    383367        echo hefo_execute($buffer);
    384368    else
  • header-footer/trunk/readme.txt

    r3244018 r3452615  
    11=== Head, Footer and Post Injections ===
    22Tags: header, footer, ads, analytics, amp
    3 Tested up to: 6.7.2
    4 Stable tag: 3.3.2
     3Tested up to: 6.9
     4Stable tag: 3.3.3
    55Donate link: https://www.satollo.net/donations
    66Contributors: satollo
     
    8484
    8585== Changelog ==
     86
     87= 3.3.3 =
     88
     89* WP 6.9 check
     90* PCP Check
    8691
    8792= 3.3.1, 3.3.2 =
Note: See TracChangeset for help on using the changeset viewer.