Changeset 1557795
- Timestamp:
- 12/19/2016 06:52:12 PM (9 years ago)
- Location:
- hypothesis/trunk
- Files:
-
- 2 edited
-
hypothesis.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hypothesis/trunk/hypothesis.php
r1548022 r1557795 1 1 <?php 2 2 /* 3 Plugin Name: Hypothesis 4 Plugin URI: http://hypothes.is/ 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 Author: The Hypothesis Project and contributors 7 Version: 0.4.9 8 Author URI: http://hypothes.is/ 9 Text Domain: hypothesis 10 Domain Path: /languages 11 12 @package Hypothesis 3 * Plugin Name: Hypothesis 4 * Plugin URI: http://hypothes.is/ 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 * Author: The Hypothesis Project and contributors 7 * Version: 0.5.0 8 * Author URI: http://hypothes.is/ 9 * Text Domain: hypothesis 10 * Domain Path: /languages 13 11 */ 14 12 15 13 // Exit if called directly. 16 14 defined( 'ABSPATH' ) or die( 'Cannot access pages directly.' ); 15 16 // Load textdomain 17 function hypothesis_load_plugin_textdomain() { 18 load_plugin_textdomain( 'my-plugin', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' ); 19 } 20 add_action( 'plugins_loaded', 'hypothesis_load_plugin_textdomain' ); 17 21 18 22 /** … … 407 411 */ 408 412 function enqueue_hypothesis() { 409 wp_enqueue_script( 'hypothesis', 'https://hypothes.is/embed.js', [], false, true );413 wp_enqueue_script( 'hypothesis', 'https://hypothes.is/embed.js', array(), false, true ); 410 414 } 411 415 … … 426 430 427 431 // Otherwise highlighting is on by default. 428 wp_enqueue_script( 'nohighlights', plugins_url( 'js/nohighlights.js', __FILE__ ), [], false, true );432 wp_enqueue_script( 'nohighlights', plugins_url( 'js/nohighlights.js', __FILE__ ), array(), false, true ); 429 433 430 434 // Embed options. 431 435 if ( isset( $options['highlights-on-by-default'] ) ) : 432 wp_enqueue_script( 'showhighlights', plugins_url( 'js/showhighlights.js', __FILE__ ), [], false, true );436 wp_enqueue_script( 'showhighlights', plugins_url( 'js/showhighlights.js', __FILE__ ), array(), false, true ); 433 437 endif; 434 438 435 439 if ( isset( $options['sidebar-open-by-default'] ) ) : 436 wp_enqueue_script( 'sidebaropen', plugins_url( 'js/sidebaropen.js', __FILE__ ), [], false, true );440 wp_enqueue_script( 'sidebaropen', plugins_url( 'js/sidebaropen.js', __FILE__ ), array(), false, true ); 437 441 endif; 438 442 439 443 if ( isset( $options['serve-pdfs-with-via'] ) ) : 440 wp_enqueue_script( 'pdfs-with-via', plugins_url( 'js/via-pdf.js', __FILE__ ), [], false, true );444 wp_enqueue_script( 'pdfs-with-via', plugins_url( 'js/via-pdf.js', __FILE__ ), array(), false, true ); 441 445 endif; 442 446 -
hypothesis/trunk/readme.txt
r1548172 r1557795 4 4 Requires at least: 3.0.1 5 5 Tested up to: 4.7 6 Stable tag: 0. 4.96 Stable tag: 0.5.0 7 7 License: BSD 8 8 License URI: http://opensource.org/licenses/BSD-2-Clause … … 21 21 22 22 == Changelog == 23 24 = 0.5.0 = 25 - Fix an incompatibility with PHP < 5.4 introduced in the last release. 26 - Load plugin textdomain. 23 27 24 28 = 0.4.9 =
Note: See TracChangeset
for help on using the changeset viewer.