Changeset 2142334
- Timestamp:
- 08/20/2019 06:41:59 AM (7 years ago)
- Location:
- amazon-polly/trunk
- Files:
-
- 7 edited
-
README.md (modified) (2 diffs)
-
README.txt (modified) (2 diffs)
-
admin/AmazonAI-Common.php (modified) (2 diffs)
-
admin/AmazonAI-PodcastConfiguration.php (modified) (3 diffs)
-
amazonpolly.php (modified) (1 diff)
-
includes/class-amazonpolly-pollycast.php (modified) (1 diff)
-
includes/template-amazon-pollycast.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
amazon-polly/trunk/README.md
r2133617 r2142334 7 7 | Requires PHP | 5.6 | 8 8 | Tested up to | 5.2 | 9 | Stable tag | 3.1. 1|9 | Stable tag | 3.1.2 | 10 10 | License | GPLv3 ONLY | 11 11 | License URI | https://www.gnu.org/licenses/gpl-3.0.html | … … 239 239 #### Changelog 240 240 241 = 3.1.2 = 242 * Bug Fixing. 243 241 244 = 3.1.1 = 242 245 * Added support for Text-to-Speech Icelandic language -
amazon-polly/trunk/README.txt
r2133617 r2142334 5 5 Requires PHP: 5.6 6 6 Tested up to: 5.2 7 Stable tag: 3.1. 17 Stable tag: 3.1.2 8 8 License: GPLv3 ONLY 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 230 230 == Changelog == 231 231 232 = 3.1.2 = 233 * Bug Fixing. 234 232 235 = 3.1.1 = 233 236 * Added support for Text-to-Speech Icelandic language -
amazon-polly/trunk/admin/AmazonAI-Common.php
r2133617 r2142334 58 58 } 59 59 60 61 60 62 public function get_subscribe_link() { 61 63 … … 869 871 return false; 870 872 } 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 871 886 872 887 /** -
amazon-polly/trunk/admin/AmazonAI-PodcastConfiguration.php
r2047075 r2142334 61 61 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' ) ); 62 62 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' ) ); 64 64 65 65 register_setting('amazon_ai_podcast', 'amazon_polly_podcast_title'); … … 75 75 register_setting('amazon_ai_podcast', 'amazon_polly_podcast_button'); 76 76 register_setting('amazon_ai_podcast', 'amazon_polly_podcast_button_link'); 77 register_setting('amazon_ai_podcast', 'podcast_rss2namespace'); 78 77 79 } 78 80 } … … 112 114 113 115 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' ) . '> '; 114 122 115 123 } -
amazon-polly/trunk/amazonpolly.php
r2133617 r2142334 17 17 * Plugin URI: https://wordpress.org/plugins/amazon-polly/ 18 18 * 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. 119 * Version: 3.1.2 20 20 * Author: AWS Labs, WP Engine 21 21 * Author URI: https://aws.amazon.com/ -
amazon-polly/trunk/includes/class-amazonpolly-pollycast.php
r2131960 r2142334 278 278 public function get_copyright() { 279 279 $all_posts = get_posts( 'post_status=publish&order=ASC' ); 280 281 if (empty($all_posts)) { 282 return "N/A"; 283 } 284 285 280 286 $first_post = $all_posts[0]; 281 287 $first_date = $first_post->post_date_gmt; -
amazon-polly/trunk/includes/template-amazon-pollycast.php
r2131960 r2142334 47 47 xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" 48 48 <?php 49 50 51 49 52 /** 50 53 * Fires at the end of the RSS root to add namespaces. … … 52 55 * @since 2.0.0 53 56 */ 54 do_action( 'rss2_ns' ); 57 $rss2namespace = $common->is_rss2namespace_enabled(); 58 if ($rss2namespace) { 59 do_action( 'rss2_ns' ); 60 } 55 61 56 62 ?>
Note: See TracChangeset
for help on using the changeset viewer.