partials
3 years ago
custom-logo.php
3 years ago
dailymotion.php
4 years ago
elements.php
3 years ago
general.php
3 years ago
go-premium.php
4 years ago
google-calendar.php
3 years ago
license.php
5 years ago
main-template.php
5 years ago
opensea.php
3 years ago
shortcode.php
5 years ago
soundcloud.php
4 years ago
spotify.php
4 years ago
twitch.php
4 years ago
vimeo.php
3 years ago
wistia.php
4 years ago
youtube.php
3 years ago
spotify.php
38 lines
| 1 | <?php |
| 2 | /* |
| 3 | * Spotify Settings page template |
| 4 | * All undefined vars comes from 'render_settings_page' method |
| 5 | * */ |
| 6 | $settings = get_option( EMBEDPRESS_PLG_NAME.':spotify'); |
| 7 | $spotify_theme = isset( $settings['theme']) ? $settings['theme'] : '1'; |
| 8 | |
| 9 | ?> |
| 10 | |
| 11 | <div class="embedpress__settings background__white radius-25 p40"> |
| 12 | <h3><?php esc_html_e( "Spotify Settings", "embedpress-pro" ); ?></h3> |
| 13 | <div class="embedpress__settings__form"> |
| 14 | <form action="" method="post" class="embedpress-settings-form" > |
| 15 | <?php |
| 16 | do_action( 'embedpress_before_spotify_settings_fields'); |
| 17 | echo $nonce_field ; ?> |
| 18 | <div class="form__group"> |
| 19 | <label class="form__label" for="spotify_theme"><?php esc_html_e( "Player Background Color", "embedpress-pro" ); ?></label> |
| 20 | <div class="form__control__wrap"> |
| 21 | <div class="embedpress__select"> |
| 22 | <span><i class="ep-icon ep-caret-down"></i></span> |
| 23 | <select name="spotify_theme" id="spotify_theme" data-default="<?php echo esc_attr( $spotify_theme ); ?>"> |
| 24 | <option value="1" <?php selected( '1', $spotify_theme); ?> ><?php esc_html_e( "Dynamic", "embedpress-pro" ); ?></option> |
| 25 | <option value="0" <?php selected( '0', $spotify_theme); ?> ><?php esc_html_e( "Black & White", "embedpress-pro" ); ?></option> |
| 26 | </select> |
| 27 | </div> |
| 28 | |
| 29 | <p><?php printf( esc_html__( "Dynamic option will use the most vibrant color from the album art.", 'embedpress'), '<br>'); ?></p> |
| 30 | </div> |
| 31 | </div> |
| 32 | |
| 33 | <?php do_action( 'embedpress_after_spotify_settings_fields'); ?> |
| 34 | <button class="button button__themeColor radius-10 embedpress-submit-btn" name="submit" value="spotify"><?php esc_html_e( 'Save Changes', 'embedpress'); ?></button> |
| 35 | </form> |
| 36 | </div> |
| 37 | </div> |
| 38 |