Changeset 2137259
- Timestamp:
- 08/10/2019 02:27:37 AM (7 years ago)
- Location:
- hypothesis
- Files:
-
- 38 added
- 5 deleted
- 4 edited
-
tags/0.6.0 (added)
-
tags/0.6.0/README.md (added)
-
tags/0.6.0/class-hypothesissettingspage.php (added)
-
tags/0.6.0/hypothesis.php (added)
-
tags/0.6.0/js (added)
-
tags/0.6.0/js/nohighlights.js (added)
-
tags/0.6.0/js/showhighlights.js (added)
-
tags/0.6.0/js/sidebaropen.js (added)
-
tags/0.6.0/js/via-pdf.js (added)
-
tags/0.6.0/languages (added)
-
tags/0.6.0/languages/hypothesis.pot (added)
-
tags/0.6.0/license.txt (added)
-
tags/0.6.0/package-lock.json (added)
-
tags/0.6.0/readme.txt (added)
-
tags/0.6.0/vendor (added)
-
tags/0.6.0/vendor/autoload.php (added)
-
tags/0.6.0/vendor/composer (added)
-
tags/0.6.0/vendor/composer/ClassLoader.php (added)
-
tags/0.6.0/vendor/composer/LICENSE (added)
-
tags/0.6.0/vendor/composer/autoload_classmap.php (added)
-
tags/0.6.0/vendor/composer/autoload_namespaces.php (added)
-
tags/0.6.0/vendor/composer/autoload_psr4.php (added)
-
tags/0.6.0/vendor/composer/autoload_real.php (added)
-
tags/0.6.0/vendor/composer/autoload_static.php (added)
-
tags/0.6.0/vendor/composer/installed.json (added)
-
trunk/Gruntfile.js (deleted)
-
trunk/class-hypothesissettingspage.php (added)
-
trunk/composer.json (deleted)
-
trunk/composer.lock (deleted)
-
trunk/hypothesis.php (modified) (5 diffs)
-
trunk/js/via-pdf.js (modified) (1 diff)
-
trunk/languages/hypothesis.pot (modified) (1 diff)
-
trunk/package-lock.json (added)
-
trunk/package.json (deleted)
-
trunk/phpcs.xml (deleted)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor (added)
-
trunk/vendor/autoload.php (added)
-
trunk/vendor/composer (added)
-
trunk/vendor/composer/ClassLoader.php (added)
-
trunk/vendor/composer/LICENSE (added)
-
trunk/vendor/composer/autoload_classmap.php (added)
-
trunk/vendor/composer/autoload_namespaces.php (added)
-
trunk/vendor/composer/autoload_psr4.php (added)
-
trunk/vendor/composer/autoload_real.php (added)
-
trunk/vendor/composer/autoload_static.php (added)
-
trunk/vendor/composer/installed.json (added)
Legend:
- Unmodified
- Added
- Removed
-
hypothesis/trunk/hypothesis.php
r1557805 r2137259 5 5 * Description: Hypothesis is an open platform for the collaborative evaluation of knowledge. This plugin embeds the necessary scripts in your Wordpress site to enable any user to use Hypothesis without installing any extensions. 6 6 * Author: The Hypothesis Project and contributors 7 * Version: 0. 5.07 * Version: 0.6.0 8 8 * Author URI: http://hypothes.is/ 9 9 * Text Domain: hypothesis … … 12 12 13 13 // Exit if called directly. 14 defined( 'ABSPATH' ) ordie( 'Cannot access pages directly.' );14 defined( 'ABSPATH' ) || die( 'Cannot access pages directly.' ); 15 15 16 16 // Load textdomain 17 17 function hypothesis_load_plugin_textdomain() { 18 load_plugin_textdomain( 'hypothesis', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );18 load_plugin_textdomain( 'hypothesis', false, basename( dirname( __FILE__ ) ) . '/languages/' ); 19 19 } 20 20 add_action( 'plugins_loaded', 'hypothesis_load_plugin_textdomain' ); 21 21 22 /** 23 * Create settings page (see https://codex.wordpress.org/Creating_Options_Pages) 24 */ 25 class HypothesisSettingsPage { 26 /** 27 * Holds the values to be used in the fields callbacks 28 * 29 * @var array 30 */ 31 private $options; 22 define( 'HYPOTHESIS_PLUGIN_VERSION', '0.6.0' ); 32 23 33 /** 34 * Holds the posttypes to be used in the fields callbacks 35 * 36 * @var array 37 */ 38 private $posttypes; 39 40 /** 41 * Start up 42 */ 43 public function __construct() { 44 add_action( 'admin_menu', array( $this, 'add_plugin_page' ) ); 45 add_action( 'admin_init', array( $this, 'page_init' ) ); 46 } 47 48 /** 49 * Add options page 50 */ 51 public function add_plugin_page() { 52 add_options_page( 53 __( 'Hypothesis Settings', 'hypothesis' ), 54 __( 'Hypothesis', 'hypothesis' ), 55 'manage_options', 56 'hypothesis-setting-admin', 57 array( $this, 'create_admin_page' ) 58 ); 59 } 60 61 /** 62 * Return an array of post type slugs and corresponding plural display names for options page. 63 * 64 * @returns array 65 */ 66 public static function get_posttypes() { 67 return apply_filters('hypothesis_supported_posttypes', array( 68 'post' => _x( 'posts', 'plural post type', 'hypothesis' ), 69 'page' => _x( 'pages', 'plural post type', 'hypothesis' ), 70 ) ); 71 } 72 73 /** 74 * Options page callback 75 */ 76 public function create_admin_page() { 77 // Set class property. 78 $this->options = get_option( 'wp_hypothesis_options' ); ?> 79 <div class="wrap"> 80 <form method="post" action="options.php"> 81 <?php 82 settings_fields( 'hypothesis_option_group' ); 83 do_settings_sections( 'hypothesis-setting-admin' ); 84 submit_button(); 85 ?> 86 </form> 87 </div> 88 <?php } 89 90 /** 91 * Register and add settings 92 */ 93 public function page_init() { 94 $posttypes = $this->get_posttypes(); 95 96 register_setting( 97 'hypothesis_option_group', // Option group. 98 'wp_hypothesis_options', // Option name. 99 array( $this, 'sanitize' ) // Sanitize callback. 100 ); 101 102 /** 103 * Hypothesis Settings 104 */ 105 add_settings_section( 106 'hypothesis_settings_section', // ID. 107 __( 'Hypothesis Settings', 'hypothesis' ), // Title. 108 array( $this, 'settings_section_info' ), // Callback. 109 'hypothesis-setting-admin' // Page. 110 ); 111 112 add_settings_field( 113 'highlights-on-by-default', 114 __( 'Highlights on by default', 'hypothesis' ), 115 array( $this, 'highlights_on_by_default_callback' ), 116 'hypothesis-setting-admin', 117 'hypothesis_settings_section' 118 ); 119 120 add_settings_field( 121 'sidebar-open-by-default', 122 __( 'Sidebar open by default', 'hypothesis' ), 123 array( $this, 'sidebar_open_by_default_callback' ), 124 'hypothesis-setting-admin', 125 'hypothesis_settings_section' 126 ); 127 128 add_settings_field( 129 'serve-pdfs-with-via', 130 __( 'Enable annotation for PDFs in Media Library', 'hypothesis' ), 131 array( $this, 'serve_pdfs_with_via_default_callback' ), 132 'hypothesis-setting-admin', 133 'hypothesis_settings_section' 134 ); 135 136 /** 137 * Content Settings 138 * Control which pages / posts / custom post types Hypothesis is loaded on. 139 */ 140 add_settings_section( 141 'hypothesis_content_section', // ID. 142 __( 'Content Settings', 'hypothesis' ), // Title. 143 array( $this, 'content_section_info' ), // Callback. 144 'hypothesis-setting-admin' // Page. 145 ); 146 147 add_settings_field( 148 'allow-on-front-page', 149 __( 'Allow on front page', 'hypothesis' ), 150 array( $this, 'allow_on_front_page_callback' ), 151 'hypothesis-setting-admin', 152 'hypothesis_content_section' 153 ); 154 155 add_settings_field( 156 'allow-on-blog-page', 157 __( 'Allow on blog page', 'hypothesis' ), 158 array( $this, 'allow_on_blog_page_callback' ), 159 'hypothesis-setting-admin', 160 'hypothesis_content_section' 161 ); 162 163 foreach ( $posttypes as $slug => $name ) { 164 if ( 'post' === $slug ) { 165 $slug = 'posts'; 166 } elseif ( 'page' === $slug ) { 167 $slug = 'pages'; 168 } 169 170 add_settings_field( 171 "allow-on-$slug", 172 sprintf( __( 'Allow on %s', 'hypothesis' ), $name ), 173 array( $this, 'allow_on_posttype_callback' ), 174 'hypothesis-setting-admin', 175 'hypothesis_content_section', 176 array( 177 $slug, 178 $name, 179 ) 180 ); 181 } 182 183 foreach ( $posttypes as $slug => $name ) { 184 add_settings_field( 185 $slug . '_ids_show_h', // ID. 186 sprintf( 187 __( 'Allow on specific %1$s (list of comma-separated %1$s IDs, no spaces)', 'hypothesis' ), 188 $name, 189 $slug 190 ), // Title. 191 array( $this, 'posttype_ids_show_h_callback' ), // Callback. 192 'hypothesis-setting-admin', // Page. 193 'hypothesis_content_section', // Section. 194 array( 195 $slug, 196 $name, 197 ) 198 ); 199 } 200 201 foreach ( $posttypes as $slug => $name ) { 202 add_settings_field( 203 $slug . '_ids_override', // ID. 204 sprintf( 205 __( 'Disallow on specific %1$s (list of comma-separated %1$s IDs, no spaces)', 'hypothesis' ), 206 $name, 207 $slug 208 ), // Title. 209 array( $this, 'posttype_ids_override_callback' ), // Callback. 210 'hypothesis-setting-admin', // Page. 211 'hypothesis_content_section', // Section. 212 array( 213 $slug, 214 $name, 215 ) 216 ); 217 } 218 } 219 220 /** 221 * Sanitize each setting field as needed 222 * 223 * @param array $input Contains all settings fields as array keys. 224 */ 225 public function sanitize( $input ) { 226 $posttypes = $this->get_posttypes(); 227 $new_input = array(); 228 229 if ( isset( $input['highlights-on-by-default'] ) ) { 230 $new_input['highlights-on-by-default'] = absint( $input['highlights-on-by-default'] ); 231 } 232 233 if ( isset( $input['sidebar-open-by-default'] ) ) { 234 $new_input['sidebar-open-by-default'] = absint( $input['sidebar-open-by-default'] ); 235 } 236 237 if ( isset( $input['serve-pdfs-with-via'] ) ) { 238 $new_input['serve-pdfs-with-via'] = absint( $input['serve-pdfs-with-via'] ); 239 } 240 241 if ( isset( $input['allow-on-blog-page'] ) ) { 242 $new_input['allow-on-blog-page'] = absint( $input['allow-on-blog-page'] ); 243 } 244 245 if ( isset( $input['allow-on-front-page'] ) ) { 246 $new_input['allow-on-front-page'] = absint( $input['allow-on-front-page'] ); 247 } 248 249 foreach ( $posttypes as $slug => $name ) { 250 if ( 'post' === $slug ) { // Adjust for backwards compatibility. 251 $slug = 'posts'; 252 } elseif ( 'page' === $slug ) { 253 $slug = 'pages'; 254 } 255 256 if ( isset( $input[ "allow-on-$slug" ] ) ) { 257 $new_input[ "allow-on-$slug" ] = absint( $input[ "allow-on-$slug" ] ); 258 } 259 260 if ( 'posts' === $slug ) { // Adjust for backwards compatibility. 261 $slug = 'post'; 262 } elseif ( 'pages' === $slug ) { 263 $slug = 'page'; 264 } 265 266 if ( isset( $input[ $slug . '_ids_show_h' ] ) && '' != $input[ $slug . '_ids_show_h' ] ) { 267 $new_input[ $slug . '_ids_show_h' ] = explode( ',', esc_attr( $input[ $slug . '_ids_show_h' ] ) ); 268 } 269 270 if ( isset( $input[ $slug . '_ids_override' ] ) && '' != $input[ $slug . '_ids_override' ] ) { 271 $new_input[ $slug . '_ids_override' ] = explode( ',', esc_attr( $input[ $slug . '_ids_override' ] ) ); 272 } 273 } 274 275 return $new_input; 276 } 277 278 /** 279 * Print the Hypothesis Settings section text 280 */ 281 public function settings_section_info() { 282 ?> 283 <p><?php esc_attr_e( 'Customize Hypothesis defaults and behavior.', 'hypothesis' ); ?></p> 284 <?php } 285 286 /** 287 * Print the Content Settings section text 288 */ 289 public function content_section_info() { 290 ?> 291 <p><?php esc_attr_e( 'Control where Hypothesis is loaded.', 'hypothesis' ); ?></p> 292 <?php } 293 294 /** 295 * Callback for 'highlights-on-by-default'. 296 */ 297 public function highlights_on_by_default_callback() { 298 $val = isset( $this->options['highlights-on-by-default'] ) ? esc_attr( $this->options['highlights-on-by-default'] ) : 0; 299 300 printf( 301 '<input type="checkbox" id="highlights-on-by-default" name="wp_hypothesis_options[highlights-on-by-default]" value="1" %s/>', 302 checked( $val, 1, false ) 303 ); 304 } 305 306 /** 307 * Callback for 'sidebar-open-by-default'. 308 */ 309 public function sidebar_open_by_default_callback() { 310 $val = isset( $this->options['sidebar-open-by-default'] ) ? esc_attr( $this->options['sidebar-open-by-default'] ) : 0; 311 printf( 312 '<input type="checkbox" id="sidebar-open-by-default" name="wp_hypothesis_options[sidebar-open-by-default]" value="1" %s/>', 313 checked( $val, 1, false ) 314 ); 315 } 316 317 /** 318 * Callback for 'serve-pdfs-with-via'. 319 */ 320 public function serve_pdfs_with_via_default_callback() { 321 $val = isset( $this->options['serve-pdfs-with-via'] ) ? esc_attr( $this->options['serve-pdfs-with-via'] ) : 0; 322 printf( 323 '<input type="checkbox" id="serve-pdfs-with-via" name="wp_hypothesis_options[serve-pdfs-with-via]" value="1" %s/>', 324 checked( $val, 1, false ) 325 ); 326 } 327 328 /** 329 * Callback for 'allow_on_blog_page'. 330 */ 331 public function allow_on_blog_page_callback() { 332 $val = isset( $this->options['allow-on-blog-page'] ) ? esc_attr( $this->options['allow-on-blog-page'] ) : 0; 333 printf( 334 '<input type="checkbox" id="allow-on-blog-page" name="wp_hypothesis_options[allow-on-blog-page]" value="1" %s/>', 335 checked( $val, 1, false ) 336 ); 337 } 338 339 /** 340 * Callback for 'allow-on-front-page'. 341 */ 342 public function allow_on_front_page_callback() { 343 $val = isset( $this->options['allow-on-front-page'] ) ? esc_attr( $this->options['allow-on-front-page'] ) : 0; 344 printf( 345 '<input type="checkbox" id="allow-on-front-page" name="wp_hypothesis_options[allow-on-front-page]" value="1" %s/>', 346 checked( $val, 1, false ) 347 ); 348 } 349 350 /** 351 * Callback for 'allow-on-<posttype>'. 352 */ 353 public function allow_on_posttype_callback( $args ) { 354 $slug = $args[0]; 355 $val = isset( $this->options[ "allow-on-$slug" ] ) ? esc_attr( $this->options[ "allow-on-$slug" ] ) : 0; 356 357 printf( 358 '<input type="checkbox" id="allow-on-%s" name="wp_hypothesis_options[allow-on-%s]" value="1" %s/>', 359 esc_attr( $slug ), 360 esc_attr( $slug ), 361 checked( $val, 1, false ) 362 ); 363 } 364 365 /** 366 * Callback for '<posttype>_ids_show_h'. 367 * 368 * @param array $args An arry containing the post type slug and the post type name (plural). 369 */ 370 public function posttype_ids_show_h_callback( $args ) { 371 $slug = $args[0]; 372 $val = isset( $this->options[ $slug . '_ids_show_h' ] ) ? esc_attr( implode( ',', $this->options[ $slug . '_ids_show_h' ] ) ) : ''; 373 374 printf( 375 '<input type="text" id="%s_ids_show_h" name="wp_hypothesis_options[%s_ids_show_h]" value="%s" />', 376 esc_attr( $slug ), 377 esc_attr( $slug ), 378 esc_attr( $val ) 379 ); 380 } 381 382 /** 383 * Callback for '<posttype>_ids_override'. 384 * 385 * @param array $args An arry containing the post type slug and the post type name (plural). 386 */ 387 public function posttype_ids_override_callback( $args ) { 388 $slug = $args[0]; 389 $val = isset( $this->options[ $slug . '_ids_override' ] ) ? esc_attr( implode( ',', $this->options[ $slug . '_ids_override' ] ) ) : ''; 390 391 printf( 392 '<input type="text" id="%s_ids_override" name="wp_hypothesis_options[%s_ids_override]" value="%s" />', 393 esc_attr( $slug ), 394 esc_attr( $slug ), 395 esc_attr( $val ) 396 ); 397 } 398 } 24 require_once __DIR__ . '/class-hypothesissettingspage.php'; 399 25 400 26 if ( is_admin() ) { … … 411 37 */ 412 38 function enqueue_hypothesis() { 413 wp_enqueue_script( 'hypothesis', 'https://hypothes.is/embed.js', array(), false, true );39 wp_enqueue_script( 'hypothesis', 'https://hypothes.is/embed.js', array(), HYPOTHESIS_PLUGIN_VERSION, true ); 414 40 } 415 41 … … 418 44 */ 419 45 function add_hypothesis() { 420 $options = get_option( 'wp_hypothesis_options' );46 $options = get_option( 'wp_hypothesis_options' ); 421 47 $posttypes = HypothesisSettingsPage::get_posttypes(); 422 48 … … 430 56 431 57 // Otherwise highlighting is on by default. 432 wp_enqueue_script( 'nohighlights', plugins_url( 'js/nohighlights.js', __FILE__ ), array(), false, true );58 wp_enqueue_script( 'nohighlights', plugins_url( 'js/nohighlights.js', __FILE__ ), array(), HYPOTHESIS_PLUGIN_VERSION, true ); 433 59 434 // Embed options.60 // Embed options. 435 61 if ( isset( $options['highlights-on-by-default'] ) ) : 436 wp_enqueue_script( 'showhighlights', plugins_url( 'js/showhighlights.js', __FILE__ ), array(), false, true );62 wp_enqueue_script( 'showhighlights', plugins_url( 'js/showhighlights.js', __FILE__ ), array(), HYPOTHESIS_PLUGIN_VERSION, true ); 437 63 endif; 438 64 439 65 if ( isset( $options['sidebar-open-by-default'] ) ) : 440 wp_enqueue_script( 'sidebaropen', plugins_url( 'js/sidebaropen.js', __FILE__ ), array(), false, true );66 wp_enqueue_script( 'sidebaropen', plugins_url( 'js/sidebaropen.js', __FILE__ ), array(), HYPOTHESIS_PLUGIN_VERSION, true ); 441 67 endif; 442 68 443 69 if ( isset( $options['serve-pdfs-with-via'] ) ) : 444 wp_enqueue_script( 'pdfs-with-via', plugins_url( 'js/via-pdf.js', __FILE__ ), array(), false, true ); 70 wp_enqueue_script( 'pdfs-with-via', plugins_url( 'js/via-pdf.js', __FILE__ ), array(), HYPOTHESIS_PLUGIN_VERSION, true ); 71 72 $uploads = wp_upload_dir(); 73 wp_localize_script( 74 'pdfs-with-via', 75 'HypothesisPDF', 76 array( 77 'uploadsBase' => trailingslashit( $uploads['baseurl'] ), 78 ) 79 ); 445 80 endif; 446 81 -
hypothesis/trunk/js/via-pdf.js
r1431925 r2137259 1 1 var anchors = document.getElementsByTagName('a'); 2 var re = /wp-content\/uploads[.+]\.pdf/;2 var hypRe = new RegExp( HypothesisPDF.uploadsBase + '.+\.pdf', 'i' ); 3 3 for ( i=0; i<anchors.length; i++ ) { 4 4 var href = anchors[i].href; 5 if ( href.match( /wp-content\/uploads.+\.pdf/i) )5 if ( href.match(hypRe) ) 6 6 anchors[i].href = 'https://via.hypothes.is/' + anchors[i].href; 7 7 } -
hypothesis/trunk/languages/hypothesis.pot
r1548022 r2137259 1 # Copyright (C) 201 6The Hypothesis Project and contributors2 # This file is distributed under the same license as the Hypothesis p ackage.1 # Copyright (C) 2019 The Hypothesis Project and contributors 2 # This file is distributed under the same license as the Hypothesis plugin. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Hypothesis 0.4.8\n" 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hypothesis\n" 7 "POT-Creation-Date: 2016-12-05 14:07:56+00:00\n" 8 "MIME-Version: 1.0\n" 9 "Content-Type: text/plain; charset=utf-8\n" 10 "Content-Transfer-Encoding: 8bit\n" 11 "PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n" 5 "Project-Id-Version: Hypothesis 0.6.0\n" 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-hypothesis\n" 12 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 13 8 "Language-Team: LANGUAGE <[email protected]>\n" 14 "X-Generator: grunt-wp-i18n 0.5.4\n" 15 "X-Poedit-KeywordsList: " 16 "__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_" 17 "attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n" 18 "Language: en\n" 19 "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 "X-Poedit-Country: United States\n" 21 "X-Poedit-SourceCharset: UTF-8\n" 22 "X-Poedit-Basepath: ../\n" 23 "X-Poedit-SearchPath-0: .\n" 24 "X-Poedit-Bookmarks: \n" 25 "X-Textdomain-Support: yes\n" 9 "MIME-Version: 1.0\n" 10 "Content-Type: text/plain; charset=UTF-8\n" 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2019-08-10T02:27:20+00:00\n" 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2.2.0\n" 15 "X-Domain: hypothesis\n" 26 16 27 #: hypothesis.php:49 hypothesis.php:103 17 #. Plugin Name of the plugin 18 #: class-hypothesissettingspage.php:35 19 msgid "Hypothesis" 20 msgstr "" 21 22 #. Plugin URI of the plugin 23 #. Author URI of the plugin 24 msgid "http://hypothes.is/" 25 msgstr "" 26 27 #. Description of the plugin 28 msgid "Hypothesis is an open platform for the collaborative evaluation of knowledge. This plugin embeds the necessary scripts in your Wordpress site to enable any user to use Hypothesis without installing any extensions." 29 msgstr "" 30 31 #. Author of the plugin 32 msgid "The Hypothesis Project and contributors" 33 msgstr "" 34 35 #: class-hypothesissettingspage.php:34 36 #: class-hypothesissettingspage.php:92 28 37 msgid "Hypothesis Settings" 29 38 msgstr "" 30 39 31 #. Plugin Name of the plugin/theme 32 msgid "Hypothesis" 33 msgstr "" 34 35 #: hypothesis.php:110 36 msgid "Highlights on by default" 37 msgstr "" 38 39 #: hypothesis.php:118 40 msgid "Sidebar open by default" 41 msgstr "" 42 43 #: hypothesis.php:126 44 msgid "Enable annotation for PDFs in Media Library" 45 msgstr "" 46 47 #: hypothesis.php:138 48 msgid "Content Settings" 49 msgstr "" 50 51 #: hypothesis.php:145 52 msgid "Allow on front page" 53 msgstr "" 54 55 #: hypothesis.php:153 56 msgid "Allow on blog page" 57 msgstr "" 58 59 #: hypothesis.php:168 60 msgid "Allow on %s" 61 msgstr "" 62 63 #: hypothesis.php:183 64 msgid "Allow on specific %1$s (list of comma-separated %1$s IDs, no spaces)" 65 msgstr "" 66 67 #: hypothesis.php:201 68 msgid "Disallow on specific %1$s (list of comma-separated %1$s IDs, no spaces)" 69 msgstr "" 70 71 #: hypothesis.php:279 72 msgid "Customize Hypothesis defaults and behavior." 73 msgstr "" 74 75 #: hypothesis.php:287 76 msgid "Control where Hypothesis is loaded." 77 msgstr "" 78 79 #. Author URI of the plugin/theme 80 msgid "http://hypothes.is/" 81 msgstr "" 82 83 #. Description of the plugin/theme 84 msgid "" 85 "Hypothesis is an open platform for the collaborative evaluation of " 86 "knowledge. This plugin embeds the necessary scripts in your Wordpress site " 87 "to enable any user to use Hypothesis without installing any extensions." 88 msgstr "" 89 90 #. Author of the plugin/theme 91 msgid "The Hypothesis Project and contributors" 92 msgstr "" 93 94 #: hypothesis.php:64 40 #: class-hypothesissettingspage.php:51 95 41 msgctxt "plural post type" 96 42 msgid "posts" 97 43 msgstr "" 98 44 99 #: hypothesis.php:6545 #: class-hypothesissettingspage.php:52 100 46 msgctxt "plural post type" 101 47 msgid "pages" 102 48 msgstr "" 49 50 #: class-hypothesissettingspage.php:99 51 msgid "Highlights on by default" 52 msgstr "" 53 54 #: class-hypothesissettingspage.php:107 55 msgid "Sidebar open by default" 56 msgstr "" 57 58 #: class-hypothesissettingspage.php:115 59 msgid "Enable annotation for PDFs in Media Library" 60 msgstr "" 61 62 #: class-hypothesissettingspage.php:127 63 msgid "Content Settings" 64 msgstr "" 65 66 #: class-hypothesissettingspage.php:134 67 msgid "Allow on front page" 68 msgstr "" 69 70 #: class-hypothesissettingspage.php:142 71 msgid "Allow on blog page" 72 msgstr "" 73 74 #. Translators: name of post type 75 #: class-hypothesissettingspage.php:158 76 msgid "Allow on %s" 77 msgstr "" 78 79 #. Translators: plural name of post type 80 #: class-hypothesissettingspage.php:174 81 msgid "Allow on specific %1$s (list of comma-separated %1$s IDs, no spaces)" 82 msgstr "" 83 84 #. Translators: plural name of post type 85 #: class-hypothesissettingspage.php:193 86 msgid "Disallow on specific %1$s (list of comma-separated %1$s IDs, no spaces)" 87 msgstr "" 88 89 #: class-hypothesissettingspage.php:271 90 msgid "Customize Hypothesis defaults and behavior." 91 msgstr "" 92 93 #: class-hypothesissettingspage.php:280 94 msgid "Control where Hypothesis is loaded." 95 msgstr "" -
hypothesis/trunk/readme.txt
r1557795 r2137259 3 3 Tags: hypothesis, annotation, comments 4 4 Requires at least: 3.0.1 5 Tested up to: 4.76 Stable tag: 0. 5.05 Tested up to: 5.2.2 6 Stable tag: 0.6.0 7 7 License: BSD 8 8 License URI: http://opensource.org/licenses/BSD-2-Clause … … 21 21 22 22 == Changelog == 23 24 = 0.6.0 = 25 * Fix PDF links in multisite and other customized installations (props @boonbgorges). 26 * Tested up to WordPress 5.2.2. 27 * Updated to current WordPress Coding Standards. 28 * Automated deploys to WordPress plugin directory. 23 29 24 30 = 0.5.0 =
Note: See TracChangeset
for help on using the changeset viewer.