Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coding standard #259

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions EmbedPress/Ends/Back/Settings/templates/spotify.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
?>

<div class="embedpress__settings background__white radius-25 p40">
<h3><?php esc_html_e( "Spotify Settings", "embedpress-pro" ); ?></h3>
<h3><?php esc_html_e( "Spotify Settings", "embedpress" ); ?></h3>
<div class="embedpress__settings__form">
<form action="" method="post" class="embedpress-settings-form" >
<?php
do_action( 'embedpress_before_spotify_settings_fields');
echo $nonce_field ; ?>
<div class="form__group">
<label class="form__label" for="spotify_theme"><?php esc_html_e( "Player Background Color", "embedpress-pro" ); ?></label>
<label class="form__label" for="spotify_theme"><?php esc_html_e( "Player Background Color", "embedpress" ); ?></label>
<div class="form__control__wrap">
<div class="embedpress__select">
<span><i class="ep-icon ep-caret-down"></i></span>
<select name="spotify_theme" id="spotify_theme" data-default="<?php echo esc_attr( $spotify_theme ); ?>">
<option value="1" <?php selected( '1', $spotify_theme); ?> ><?php esc_html_e( "Dynamic", "embedpress-pro" ); ?></option>
<option value="0" <?php selected( '0', $spotify_theme); ?> ><?php esc_html_e( "Black & White", "embedpress-pro" ); ?></option>
<option value="1" <?php selected( '1', $spotify_theme); ?> ><?php esc_html_e( "Dynamic", "embedpress" ); ?></option>
<option value="0" <?php selected( '0', $spotify_theme); ?> ><?php esc_html_e( "Black & White", "embedpress" ); ?></option>
</select>
</div>

Expand Down
6 changes: 3 additions & 3 deletions EmbedPress/Includes/Classes/Elementor_Enhancer.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,9 @@ public static function wistia( $embed, $setting ) {
];

$labels = [
'watch_from_beginning' => __( 'Watch from the beginning', 'embedpress-pro' ),
'skip_to_where_you_left_off' => __( 'Skip to where you left off', 'embedpress-pro' ),
'you_have_watched_it_before' => __( 'It looks like you\'ve watched<br />part of this video before!', 'embedpress-pro' ),
'watch_from_beginning' => __( 'Watch from the beginning', 'embedpress' ),
'skip_to_where_you_left_off' => __( 'Skip to where you left off', 'embedpress' ),
'you_have_watched_it_before' => __( 'It looks like you\'ve watched<br />part of this video before!', 'embedpress' ),
];
$labels = json_encode( $labels );

Expand Down
10 changes: 5 additions & 5 deletions EmbedPress/Includes/Traits/Shared.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,30 +86,30 @@ public function notices()
'later' => array(
'link' => 'https://wordpress.org/support/plugin/embedpress/reviews/',
'target' => '_blank',
'label' => __('Ok, you deserve it!', 'wp-scheduled-posts'),
'label' => __('Ok, you deserve it!', 'embedpress'),
'icon_class' => 'dashicons dashicons-external',
),
'allready' => array(
'label' => __('I already did', 'wp-scheduled-posts'),
'label' => __('I already did', 'embedpress'),
'icon_class' => 'dashicons dashicons-smiley',
'attributes' => [
'data-dismiss' => true
],
),
'maybe_later' => array(
'label' => __('Maybe Later', 'wp-scheduled-posts'),
'label' => __('Maybe Later', 'embedpress'),
'icon_class' => 'dashicons dashicons-calendar-alt',
'attributes' => [
'data-later' => true
],
),
'support' => array(
'link' => 'https://wpdeveloper.com/support',
'label' => __('I need help', 'wp-scheduled-posts'),
'label' => __('I need help', 'embedpress'),
'icon_class' => 'dashicons dashicons-sos',
),
'never_show_again' => array(
'label' => __('Never show again', 'wp-scheduled-posts'),
'label' => __('Never show again', 'embedpress'),
'icon_class' => 'dashicons dashicons-dismiss',
'attributes' => [
'data-dismiss' => true
Expand Down