Plugin Directory

Changeset 3168055


Ignore:
Timestamp:
10/13/2024 06:08:16 PM (18 months ago)
Author:
janiko
Message:

New icon

Location:
zotero-notes/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • zotero-notes/trunk/class.zotero-notes-admin.php

    r2008431 r3168055  
    66        $screen->add_help_tab( array(
    77            'id'      => 'overview',
    8             'title'   => __('Overview'),
     8            'title'   => esc_attr__('Overview','zotero-notes'),
    99            'content' => '<p>'.__('This extension helps you to include footnotes references in your posts, ','zotero-notes').
    10             __('by using a Zotero Library. All you need is a Zotero account with its API (private) access key and the reference ID. ','zotero-notes').
     10            esc_attr__('by using a Zotero Library. All you need is a Zotero account with its API (private) access key and the reference ID. ','zotero-notes').
    1111            '</p><p>'.
    12             __('Example of use: ','zotero-notes').
     12            esc_attr__('Example of use: ','zotero-notes').
    1313            '</p><p>'.
    14             __('<code>...blabla[zref]1A6BE9[/zref] blablabla...</code> ','zotero-notes').
     14            esc_attr__('<code>...blabla[zref]1A6BE9[/zref] blablabla...</code> ','zotero-notes').
    1515            '</p><p>'.
    16             __('You can change in this page the shortcode and the attributes used to construct references. ','zotero-notes').
    17             __('But you should keep in mind the posts written with the old codes won\'t be parsed anymore! ','zotero-notes').
    18             __('Consequently, you should only change these settings before using this extension. ','zotero-notes').'</p><p>'.
    19             __('A footnote will be  added (automatically) at the end of the post.','zotero-notes').
     16            esc_attr__('You can change in this page the shortcode and the attributes used to construct references. ','zotero-notes').
     17            esc_attr__('But you should keep in mind the posts written with the old codes won\'t be parsed anymore! ','zotero-notes').
     18            esc_attr__('Consequently, you should only change these settings before using this extension. ','zotero-notes').'</p><p>'.
     19            esc_attr__('A footnote will be  added (automatically) at the end of the post.','zotero-notes').
    2020            '</p>'
    2121        ) );
     
    7070        ?>
    7171        <div class="wrap">
    72             <h1><?php _e( 'Zotero Notes plugin Page', 'zotero-notes' ) ?></h1>
     72            <h1><?php esc_attr__( 'Zotero Notes plugin Page', 'zotero-notes' ) ?></h1>
    7373            <form method="post" action="options.php">
    7474            <?php
     
    9898        add_settings_section(
    9999            'setting_section_id', // ID
    100             __( 'Zotero Notes Plugin Settings', 'zotero-notes' ), // Title
     100            esc_attr__( 'Zotero Notes Plugin Settings', 'zotero-notes' ), // Title
    101101            array( $this, 'print_section_info' ), // Callback
    102102            'ZoteroNotes-setting-admin' // Page
     
    105105        add_settings_field(
    106106            'code_name',
    107             __( 'Shortcode Name', 'zotero-notes' ), // Shortcode name
     107            esc_attr__( 'Shortcode Name', 'zotero-notes' ), // Shortcode name
    108108            array( $this, 'code_name_callback' ), // Callback
    109109            'ZoteroNotes-setting-admin', // Page
     
    113113        add_settings_field(
    114114            'zotero_id', // ID
    115             __( 'Zotero User ID (API)', 'zotero-notes' ), // Zotero's account ID
     115            esc_attr__( 'Zotero User ID (API)', 'zotero-notes' ), // Zotero's account ID
    116116            array( $this, 'zotero_id_callback' ), // Callback
    117117            'ZoteroNotes-setting-admin', // Page
     
    121121        add_settings_field(
    122122            'zotero_key', // ID
    123             __( 'Zotero Private Key (API)', 'zotero-notes' ), // Zotero Private Key (API)
     123            esc_attr__( 'Zotero Private Key (API)', 'zotero-notes' ), // Zotero Private Key (API)
    124124            array( $this, 'zotero_key_callback' ), // Callback
    125125            'ZoteroNotes-setting-admin', // Page
     
    165165    public function print_section_info()
    166166    {
    167         print __( 'Enter your settings below:', 'zotero-notes' );
     167        print esc_attr__( 'Enter your settings below:', 'zotero-notes' );
    168168    }
    169169
  • zotero-notes/trunk/class.zotero-notes-citation.php

    r2044221 r3168055  
    214214                $editor = $this->_editor;
    215215                if ( strcmp("", $editor) == 0 ) {
    216                     $editor = parse_url($this->_url, PHP_URL_HOST);
     216                    $editor = wp_parse_url($this->_url, PHP_URL_HOST);
    217217                }
    218218                $html .= " ".__('on','zotero-notes')." <i>".$editor."</i>";
  • zotero-notes/trunk/class.zotero-notes-referencesList.php

    r3165917 r3168055  
    128128        ob_start();
    129129        $current_reference = $this->handle_reference( new Zotero_Notes_Citation( $atts, $content ) );
    130         $res = "<sup class='sup-ref-note' id='note-" . $current_reference->get_anchor() . "'>";
    131         $res .= "<a class='sup-ref-note' href='#zotero-ref-p" . $current_reference->get_post_id() . "-r" . $current_reference->get_ref_num() . "'>" . $current_reference->get_ref_num() . "</a></sup>";
    132         print( $res );
     130        $res = "<sup class='sup-ref-note' id='note-" . esc_html($current_reference->get_anchor()) . "'>";
     131        $res .= "<a class='sup-ref-note' href='#zotero-ref-p" . esc_html($current_reference->get_post_id()) . "-r" . esc_html($current_reference->get_ref_num()) . "'>" . esc_html($current_reference->get_ref_num()) . "</a></sup>";
     132        print( wp_kses_post( $res, $allowed_tags ));
     133        //print( $res );
    133134
    134135        return ob_get_clean();
  • zotero-notes/trunk/readme.txt

    r3165926 r3168055  
    44Requires at least: 4.7
    55Tested up to: 6.6.2
    6 Stable tag: trunk
     6Stable tag: 1.2.3
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5151== Changelog ==
    5252
     53= 1.2.3 =
     54Securing the plugin (sanitazing, escaping, etc.)
     55
    5356= 1.1.1 =
    5457Display rules modified.
  • zotero-notes/trunk/zotero-notes.php

    r3165926 r3168055  
    33 * Plugin Name: Zotero Notes
    44 * Description: Simple footnote references using Zotero
    5  * Version: 1.2.2
     5 * Version: 1.2.3
    66 * Author: Janiko 
    77 * Author URI: http://geba.fr
     
    2626        /** Add translation(s) */
    2727        function zotero_notes_load_plugin_textdomain() {
    28             load_plugin_textdomain( 'zotero-notes', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
     28            load_plugin_textdomain( 'zotero-notes' );
    2929        }
    3030        add_action( 'plugins_loaded', 'zotero_notes_load_plugin_textdomain' );
Note: See TracChangeset for help on using the changeset viewer.