Plugin Directory

Changeset 2142334


Ignore:
Timestamp:
08/20/2019 06:41:59 AM (7 years ago)
Author:
awslabs
Message:

trunk 3.1.2

Location:
amazon-polly/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • amazon-polly/trunk/README.md

    r2133617 r2142334  
    77| Requires PHP | 5.6 |
    88| Tested up to | 5.2 |
    9 | Stable tag | 3.1.1 |
     9| Stable tag | 3.1.2 |
    1010| License | GPLv3 ONLY |
    1111| License URI | https://www.gnu.org/licenses/gpl-3.0.html |
     
    239239#### Changelog
    240240
     241= 3.1.2 =
     242* Bug Fixing.
     243
    241244= 3.1.1 =
    242245* Added support for Text-to-Speech Icelandic language
  • amazon-polly/trunk/README.txt

    r2133617 r2142334  
    55Requires PHP: 5.6
    66Tested up to: 5.2
    7 Stable tag: 3.1.1
     7Stable tag: 3.1.2
    88License: GPLv3 ONLY
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    230230== Changelog ==
    231231
     232= 3.1.2 =
     233* Bug Fixing.
     234
    232235= 3.1.1 =
    233236* Added support for Text-to-Speech Icelandic language
  • amazon-polly/trunk/admin/AmazonAI-Common.php

    r2133617 r2142334  
    5858    }
    5959
     60
     61
    6062    public function get_subscribe_link() {
    6163
     
    869871        return false;
    870872    }
     873
     874    public function is_rss2namespace_enabled()
     875    {
     876        $value = get_option('podcast_rss2namespace', 'on');
     877        if (empty($value)) {
     878            $result = false;
     879        }
     880        else {
     881            $result = true;
     882        }
     883        return false;
     884    }
     885
    871886
    872887    /**
  • amazon-polly/trunk/admin/AmazonAI-PodcastConfiguration.php

    r2047075 r2142334  
    6161                add_settings_field( 'amazon_polly_podcast_button', __( 'Show subscribe button:', 'amazonpolly' ), array( $this, 'podcast_subscribe_button_gui' ), 'amazon_ai_podcast', 'amazon_ai_podcast', array( 'label_for' => 'amazon_polly_podcast_button' ) );
    6262                add_settings_field( 'amazon_polly_podcast_button_link', __( 'Subscribe link:', 'amazonpolly' ), array( $this, 'podcast_subscribe_button_link_gui' ), 'amazon_ai_podcast', 'amazon_ai_podcast', array( 'label_for' => 'amazon_polly_podcast_button_link' ) );
    63 
     63                                add_settings_field( 'amazon_polly_podcast_button', __( 'Include RSS2 Namespaces:', 'amazonpolly' ), array( $this, 'podcast_rss2namespace_gui' ), 'amazon_ai_podcast', 'amazon_ai_podcast', array( 'label_for' => 'podcast_rss2namespace' ) );
    6464
    6565                register_setting('amazon_ai_podcast', 'amazon_polly_podcast_title');
     
    7575                register_setting('amazon_ai_podcast', 'amazon_polly_podcast_button');
    7676                register_setting('amazon_ai_podcast', 'amazon_polly_podcast_button_link');
     77                                register_setting('amazon_ai_podcast', 'podcast_rss2namespace');
     78
    7779            }
    7880        }
     
    112114
    113115            echo '<input type="checkbox" name="amazon_polly_podcast_button" id="amazon_polly_podcast_button" ' . $this->common->checked_validator( 'amazon_polly_podcast_button' ) . '> ';
     116
     117        }
     118
     119        public function podcast_rss2namespace_gui() {
     120
     121            echo '<input type="checkbox" name="podcast_rss2namespace" id="podcast_rss2namespace" ' . $this->common->checked_validator( 'podcast_rss2namespace' ) . '> ';
    114122
    115123        }
  • amazon-polly/trunk/amazonpolly.php

    r2133617 r2142334  
    1717 * Plugin URI:        https://wordpress.org/plugins/amazon-polly/
    1818 * Description:       Create audio version of your posts, translate them into other languages and create podcasts! Amazon Polly is a service that turns text into lifelike speech. With dozens of voices across a variety of languages, you can select the ideal voice and build engaging speech-enabled applications that work in many different countries. The Amazon Polly plugin for WordPress is a sample application that shows how WordPress creators can easily add Text-to-Speech capabilities to written content with Amazon Polly. You can generate an audio feed for text-based content and insert it into an embedded player to increase the accessibility of your WordPress site. The sample code also enables you to publish podcasts directly from your site and make them available for listeners in the form of podcasts. In addition, the plugin allows to translate your text from one language to another using Amazon Translate– which is a neural machine translation service that delivers fast, high-quality, and affordable language translation. Amazon Translate allows you to localize content - such as websites and applications - for international users, and to easily translate large volumes of text efficiently.
    19  * Version:           3.1.1
     19 * Version:           3.1.2
    2020 * Author:            AWS Labs, WP Engine
    2121 * Author URI:        https://aws.amazon.com/
  • amazon-polly/trunk/includes/class-amazonpolly-pollycast.php

    r2131960 r2142334  
    278278    public function get_copyright() {
    279279        $all_posts  = get_posts( 'post_status=publish&order=ASC' );
     280
     281        if (empty($all_posts)) {
     282            return "N/A";
     283        }
     284
     285
    280286        $first_post = $all_posts[0];
    281287        $first_date = $first_post->post_date_gmt;
  • amazon-polly/trunk/includes/template-amazon-pollycast.php

    r2131960 r2142334  
    4747    xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
    4848    <?php
     49
     50
     51
    4952    /**
    5053     * Fires at the end of the RSS root to add namespaces.
     
    5255     * @since 2.0.0
    5356     */
    54     do_action( 'rss2_ns' );
     57     $rss2namespace = $common->is_rss2namespace_enabled();
     58     if ($rss2namespace) {
     59         do_action( 'rss2_ns' );
     60     }
    5561
    5662    ?>
Note: See TracChangeset for help on using the changeset viewer.