Plugin Directory

Changeset 2137259


Ignore:
Timestamp:
08/10/2019 02:27:37 AM (7 years ago)
Author:
greatislander
Message:

Deploy version 0.6.0

Location:
hypothesis
Files:
38 added
5 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • hypothesis/trunk/hypothesis.php

    r1557805 r2137259  
    55 * 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.
    66 * Author: The Hypothesis Project and contributors
    7  * Version: 0.5.0
     7 * Version: 0.6.0
    88 * Author URI: http://hypothes.is/
    99 * Text Domain:     hypothesis
     
    1212
    1313// Exit if called directly.
    14 defined( 'ABSPATH' ) or die( 'Cannot access pages directly.' );
     14defined( 'ABSPATH' ) || die( 'Cannot access pages directly.' );
    1515
    1616// Load textdomain
    1717function hypothesis_load_plugin_textdomain() {
    18     load_plugin_textdomain( 'hypothesis', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
     18    load_plugin_textdomain( 'hypothesis', false, basename( dirname( __FILE__ ) ) . '/languages/' );
    1919}
    2020add_action( 'plugins_loaded', 'hypothesis_load_plugin_textdomain' );
    2121
    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;
     22define( 'HYPOTHESIS_PLUGIN_VERSION', '0.6.0' );
    3223
    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 }
     24require_once __DIR__ . '/class-hypothesissettingspage.php';
    39925
    40026if ( is_admin() ) {
     
    41137 */
    41238function 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 );
    41440}
    41541
     
    41844 */
    41945function add_hypothesis() {
    420     $options = get_option( 'wp_hypothesis_options' );
     46    $options   = get_option( 'wp_hypothesis_options' );
    42147    $posttypes = HypothesisSettingsPage::get_posttypes();
    42248
     
    43056
    43157    // 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 );
    43359
    434         // Embed options.
     60    // Embed options.
    43561    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 );
    43763    endif;
    43864
    43965    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 );
    44167    endif;
    44268
    44369    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        );
    44580    endif;
    44681
  • hypothesis/trunk/js/via-pdf.js

    r1431925 r2137259  
    11var anchors = document.getElementsByTagName('a');
    2 var re = /wp-content\/uploads[.+]\.pdf/;
     2var hypRe = new RegExp( HypothesisPDF.uploadsBase + '.+\.pdf', 'i' );
    33for ( i=0; i<anchors.length; i++ ) {
    44   var href = anchors[i].href;
    5    if ( href.match(/wp-content\/uploads.+\.pdf/i) )
     5   if ( href.match(hypRe) )
    66       anchors[i].href = 'https://via.hypothes.is/' + anchors[i].href;
    77  }
  • hypothesis/trunk/languages/hypothesis.pot

    r1548022 r2137259  
    1 # Copyright (C) 2016 The Hypothesis Project and contributors
    2 # This file is distributed under the same license as the Hypothesis package.
     1# Copyright (C) 2019 The Hypothesis Project and contributors
     2# This file is distributed under the same license as the Hypothesis plugin.
    33msgid ""
    44msgstr ""
    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"
    127"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    138"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"
    2616
    27 #: hypothesis.php:49 hypothesis.php:103
     17#. Plugin Name of the plugin
     18#: class-hypothesissettingspage.php:35
     19msgid "Hypothesis"
     20msgstr ""
     21
     22#. Plugin URI of the plugin
     23#. Author URI of the plugin
     24msgid "http://hypothes.is/"
     25msgstr ""
     26
     27#. Description of the plugin
     28msgid "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."
     29msgstr ""
     30
     31#. Author of the plugin
     32msgid "The Hypothesis Project and contributors"
     33msgstr ""
     34
     35#: class-hypothesissettingspage.php:34
     36#: class-hypothesissettingspage.php:92
    2837msgid "Hypothesis Settings"
    2938msgstr ""
    3039
    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
    9541msgctxt "plural post type"
    9642msgid "posts"
    9743msgstr ""
    9844
    99 #: hypothesis.php:65
     45#: class-hypothesissettingspage.php:52
    10046msgctxt "plural post type"
    10147msgid "pages"
    10248msgstr ""
     49
     50#: class-hypothesissettingspage.php:99
     51msgid "Highlights on by default"
     52msgstr ""
     53
     54#: class-hypothesissettingspage.php:107
     55msgid "Sidebar open by default"
     56msgstr ""
     57
     58#: class-hypothesissettingspage.php:115
     59msgid "Enable annotation for PDFs in Media Library"
     60msgstr ""
     61
     62#: class-hypothesissettingspage.php:127
     63msgid "Content Settings"
     64msgstr ""
     65
     66#: class-hypothesissettingspage.php:134
     67msgid "Allow on front page"
     68msgstr ""
     69
     70#: class-hypothesissettingspage.php:142
     71msgid "Allow on blog page"
     72msgstr ""
     73
     74#. Translators: name of post type
     75#: class-hypothesissettingspage.php:158
     76msgid "Allow on %s"
     77msgstr ""
     78
     79#. Translators: plural name of post type
     80#: class-hypothesissettingspage.php:174
     81msgid "Allow on specific %1$s (list of comma-separated %1$s IDs, no spaces)"
     82msgstr ""
     83
     84#. Translators: plural name of post type
     85#: class-hypothesissettingspage.php:193
     86msgid "Disallow on specific %1$s (list of comma-separated %1$s IDs, no spaces)"
     87msgstr ""
     88
     89#: class-hypothesissettingspage.php:271
     90msgid "Customize Hypothesis defaults and behavior."
     91msgstr ""
     92
     93#: class-hypothesissettingspage.php:280
     94msgid "Control where Hypothesis is loaded."
     95msgstr ""
  • hypothesis/trunk/readme.txt

    r1557795 r2137259  
    33Tags: hypothesis, annotation, comments
    44Requires at least: 3.0.1
    5 Tested up to: 4.7
    6 Stable tag: 0.5.0
     5Tested up to: 5.2.2
     6Stable tag: 0.6.0
    77License: BSD
    88License URI: http://opensource.org/licenses/BSD-2-Clause
     
    2121
    2222== 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.
    2329
    2430= 0.5.0 =
Note: See TracChangeset for help on using the changeset viewer.