Changeset 3168055
- Timestamp:
- 10/13/2024 06:08:16 PM (18 months ago)
- Location:
- zotero-notes/trunk
- Files:
-
- 5 edited
-
class.zotero-notes-admin.php (modified) (7 diffs)
-
class.zotero-notes-citation.php (modified) (1 diff)
-
class.zotero-notes-referencesList.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
zotero-notes.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zotero-notes/trunk/class.zotero-notes-admin.php
r2008431 r3168055 6 6 $screen->add_help_tab( array( 7 7 'id' => 'overview', 8 'title' => __('Overview'),8 'title' => esc_attr__('Overview','zotero-notes'), 9 9 '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'). 11 11 '</p><p>'. 12 __('Example of use: ','zotero-notes').12 esc_attr__('Example of use: ','zotero-notes'). 13 13 '</p><p>'. 14 __('<code>...blabla[zref]1A6BE9[/zref] blablabla...</code> ','zotero-notes').14 esc_attr__('<code>...blabla[zref]1A6BE9[/zref] blablabla...</code> ','zotero-notes'). 15 15 '</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'). 20 20 '</p>' 21 21 ) ); … … 70 70 ?> 71 71 <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> 73 73 <form method="post" action="options.php"> 74 74 <?php … … 98 98 add_settings_section( 99 99 'setting_section_id', // ID 100 __( 'Zotero Notes Plugin Settings', 'zotero-notes' ), // Title100 esc_attr__( 'Zotero Notes Plugin Settings', 'zotero-notes' ), // Title 101 101 array( $this, 'print_section_info' ), // Callback 102 102 'ZoteroNotes-setting-admin' // Page … … 105 105 add_settings_field( 106 106 'code_name', 107 __( 'Shortcode Name', 'zotero-notes' ), // Shortcode name107 esc_attr__( 'Shortcode Name', 'zotero-notes' ), // Shortcode name 108 108 array( $this, 'code_name_callback' ), // Callback 109 109 'ZoteroNotes-setting-admin', // Page … … 113 113 add_settings_field( 114 114 'zotero_id', // ID 115 __( 'Zotero User ID (API)', 'zotero-notes' ), // Zotero's account ID115 esc_attr__( 'Zotero User ID (API)', 'zotero-notes' ), // Zotero's account ID 116 116 array( $this, 'zotero_id_callback' ), // Callback 117 117 'ZoteroNotes-setting-admin', // Page … … 121 121 add_settings_field( 122 122 '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) 124 124 array( $this, 'zotero_key_callback' ), // Callback 125 125 'ZoteroNotes-setting-admin', // Page … … 165 165 public function print_section_info() 166 166 { 167 print __( 'Enter your settings below:', 'zotero-notes' );167 print esc_attr__( 'Enter your settings below:', 'zotero-notes' ); 168 168 } 169 169 -
zotero-notes/trunk/class.zotero-notes-citation.php
r2044221 r3168055 214 214 $editor = $this->_editor; 215 215 if ( strcmp("", $editor) == 0 ) { 216 $editor = parse_url($this->_url, PHP_URL_HOST);216 $editor = wp_parse_url($this->_url, PHP_URL_HOST); 217 217 } 218 218 $html .= " ".__('on','zotero-notes')." <i>".$editor."</i>"; -
zotero-notes/trunk/class.zotero-notes-referencesList.php
r3165917 r3168055 128 128 ob_start(); 129 129 $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 ); 133 134 134 135 return ob_get_clean(); -
zotero-notes/trunk/readme.txt
r3165926 r3168055 4 4 Requires at least: 4.7 5 5 Tested up to: 6.6.2 6 Stable tag: trunk6 Stable tag: 1.2.3 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 51 51 == Changelog == 52 52 53 = 1.2.3 = 54 Securing the plugin (sanitazing, escaping, etc.) 55 53 56 = 1.1.1 = 54 57 Display rules modified. -
zotero-notes/trunk/zotero-notes.php
r3165926 r3168055 3 3 * Plugin Name: Zotero Notes 4 4 * Description: Simple footnote references using Zotero 5 * Version: 1.2. 25 * Version: 1.2.3 6 6 * Author: Janiko 7 7 * Author URI: http://geba.fr … … 26 26 /** Add translation(s) */ 27 27 function zotero_notes_load_plugin_textdomain() { 28 load_plugin_textdomain( 'zotero-notes' , FALSE, basename( dirname( __FILE__ ) ) . '/languages/');28 load_plugin_textdomain( 'zotero-notes' ); 29 29 } 30 30 add_action( 'plugins_loaded', 'zotero_notes_load_plugin_textdomain' );
Note: See TracChangeset
for help on using the changeset viewer.