Skip to content

Commit

Permalink
Corrected admin settings Player Settings callback.
Browse files Browse the repository at this point in the history
  • Loading branch information
B-Interactive committed Jun 9, 2023
1 parent d37ea8c commit 2dc4125
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/inc/class-cloudflare-stream-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function action_admin_init() {
add_settings_section(
self::SETTING_SECTION_PLAYER,
esc_html__( 'Player Settings', 'cloudflare-stream-wordpress' ),
array( $this, 'settings_section_api_keys' ),
array( $this, 'settings_section_player' ),
self::SETTING_PAGE
);

Expand Down Expand Up @@ -232,8 +232,8 @@ public function media_domain_cb() {
/** PLAYER SETTINGS CALLBACKS **/

/**
* Callback for rendering the poster time field
*/
* Callback for rendering the poster time field
*/
public function poster_time_cb() {
$poster_time = get_option( self::OPTION_POSTER_TIME );
echo '<label for="cloudflare_stream_poster_time"><input type="number" class="regular-text" name="cloudflare_stream_poster_time" id="cloudflare_stream_poster_time" value="' . esc_attr( intval( $poster_time ) ) . '" autocomplete="off"> seconds</label>'
Expand Down Expand Up @@ -411,6 +411,17 @@ public function settings_section_api_keys() {
echo '</p>';
}

/**
* Render Player Settings Section
*
* @since 1.9.4
*/
public function settings_section_player() {
echo '<p>';
echo esc_html__( 'Global settings for the player. Some of these can be overridden on a per video basis with shortcode arguments.', 'cloudflare-stream-wordpress' );
echo '</p>';
}

/**
* Helper function for determining if the user has attempted to setup their API keys.
*/
Expand Down

0 comments on commit 2dc4125

Please sign in to comment.