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
soundcloud.php
193 lines
| 1 | <?php |
| 2 | /* |
| 3 | * SoundCloud Settings page |
| 4 | * All undefined vars comes from 'render_settings_page' method |
| 5 | * */ |
| 6 | $sc_settings = get_option( EMBEDPRESS_PLG_NAME.':soundcloud'); |
| 7 | $visual = isset( $sc_settings['visual']) ? $sc_settings['visual'] : ''; |
| 8 | $autoplay = isset( $sc_settings['autoplay']) ? $sc_settings['autoplay'] : ''; |
| 9 | $share_button = isset( $sc_settings['share_button']) ? $sc_settings['share_button'] : ''; |
| 10 | $comments = isset( $sc_settings['comments']) ? $sc_settings['comments'] : 1; |
| 11 | $color = isset( $sc_settings['color']) ? $sc_settings['color'] : '#dd3333'; |
| 12 | $artwork = isset( $sc_settings['artwork']) ? $sc_settings['artwork'] : ''; |
| 13 | $play_count = isset( $sc_settings['play_count']) ? $sc_settings['play_count'] : 1; |
| 14 | $username = isset( $sc_settings['username']) ? $sc_settings['username'] : 1; |
| 15 | // pro |
| 16 | $download_button = isset( $sc_settings['download_button']) ? $sc_settings['download_button'] : 1; |
| 17 | $buy_button = isset( $sc_settings['buy_button']) ? $sc_settings['buy_button'] : 1; |
| 18 | |
| 19 | ?> |
| 20 | |
| 21 | <div class="embedpress__settings background__white radius-25 p40"> |
| 22 | <h3><?php esc_html_e( "SoundCloud Settings", "embedpress" ); ?></h3> |
| 23 | <div class="embedpress__settings__form"> |
| 24 | <form action="" method="post" class="embedpress-settings-form" > |
| 25 | <?php |
| 26 | do_action( 'embedpress_before_dailymotion_settings_fields'); |
| 27 | echo $nonce_field ; ?> |
| 28 | <div class="form__group"> |
| 29 | <p class="form__label"><?php esc_html_e( "Visual Player", "embedpress" ); ?></p> |
| 30 | <div class="form__control__wrap"> |
| 31 | <div class="input__flex input__radio_wrap" data-default="<?php echo esc_attr( $visual ); ?>" data-value="<?php echo esc_attr( $visual ); ?>"> |
| 32 | <label class="input__radio"> |
| 33 | <input type="radio" name="visual" value="" <?php checked( '', $visual); ?>> |
| 34 | <span><?php esc_html_e( "No", "embedpress" ); ?></span> |
| 35 | </label> |
| 36 | <label class="input__radio"> |
| 37 | <input type="radio" name="visual" value="1" <?php checked( '1', $visual); ?>> |
| 38 | <span><?php esc_html_e( "Yes", "embedpress" ); ?></span> |
| 39 | </label> |
| 40 | </div> |
| 41 | </div> |
| 42 | </div> |
| 43 | <div class="form__group"> |
| 44 | <p class="form__label"><?php esc_html_e( "Scheme", "embedpress" ); ?></p> |
| 45 | <div class="form__control__wrap"> |
| 46 | <input type="text" class="form__control ep-color-picker" name="color" value="<?php echo esc_attr( $color); ?>" data-default="<?php echo esc_attr( $color ); ?>"> |
| 47 | </div> |
| 48 | </div> |
| 49 | |
| 50 | <div class="form__group"> |
| 51 | <p class="form__label"><?php esc_html_e( "Auto Play", "embedpress" ); ?></p> |
| 52 | <div class="form__control__wrap"> |
| 53 | <div class="input__flex input__radio_wrap" data-default="<?php echo esc_attr( $autoplay ); ?>" data-value="<?php echo esc_attr( $autoplay ); ?>"> |
| 54 | <label class="input__radio"> |
| 55 | <input type="radio" name="autoplay" value="" <?php checked( '', $autoplay); ?>> |
| 56 | <span><?php esc_html_e( "No", "embedpress" ); ?></span> |
| 57 | </label> |
| 58 | <label class="input__radio"> |
| 59 | <input type="radio" name="autoplay" value="1" <?php checked( '1', $autoplay); ?>> |
| 60 | <span><?php esc_html_e( "Yes", "embedpress" ); ?></span> |
| 61 | </label> |
| 62 | </div> |
| 63 | <p><?php esc_html_e( "Automatically start to play the videos when the player loads.", "embedpress" ); ?></p> |
| 64 | </div> |
| 65 | </div> |
| 66 | |
| 67 | |
| 68 | <div class="form__group"> |
| 69 | <p class="form__label"><?php esc_html_e( "Buy Button", "embedpress" ); echo !$pro_active ? ' <span class="isPro">PRO</span>': ''; ?></p> |
| 70 | <div class="form__control__wrap"> |
| 71 | <div class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>" data-default="<?php echo esc_attr( $buy_button ); ?>" data-value="<?php echo esc_attr( $buy_button ); ?>"> |
| 72 | <label class="input__radio"> |
| 73 | <input type="radio" name="buy_button" value="" <?php echo !$pro_active ? 'disabled ' : ''; checked( '', $buy_button); ?>> |
| 74 | <span><?php esc_html_e( "Hide", "embedpress" ); ?></span> |
| 75 | </label> |
| 76 | <label class="input__radio"> |
| 77 | <input type="radio" name="buy_button" value="1" <?php echo !$pro_active ? 'disabled ' : ''; checked( '1', $buy_button);?>> |
| 78 | <span><?php esc_html_e( "Show", "embedpress" ); ?></span> |
| 79 | </label> |
| 80 | </div> |
| 81 | <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?> |
| 82 | </div> |
| 83 | </div> |
| 84 | |
| 85 | |
| 86 | <div class="form__group"> |
| 87 | <p class="form__label"><?php esc_html_e( "Download Button", "embedpress" ); echo !$pro_active ? ' <span class="isPro">PRO</span>': ''; ?></p> |
| 88 | <div class="form__control__wrap"> |
| 89 | <div class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>" data-default="<?php echo esc_attr( $download_button ); ?>" data-value="<?php echo esc_attr( $download_button ); ?>"> |
| 90 | <label class="input__radio"> |
| 91 | <input type="radio" name="download_button" value="" <?php echo !$pro_active ? 'disabled ' : ''; checked( '', $download_button); ?>> |
| 92 | <span><?php esc_html_e( "Hide", "embedpress" ); ?></span> |
| 93 | </label> |
| 94 | <label class="input__radio"> |
| 95 | <input type="radio" name="download_button" value="1" <?php echo !$pro_active ? 'disabled ' : ''; checked( '1', $download_button);?>> |
| 96 | <span><?php esc_html_e( "Show", "embedpress" ); ?></span> |
| 97 | </label> |
| 98 | </div> |
| 99 | <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?> |
| 100 | </div> |
| 101 | </div> |
| 102 | |
| 103 | <div class="form__group"> |
| 104 | <p class="form__label"><?php esc_html_e( "Share Button", "embedpress" ); ?></p> |
| 105 | <div class="form__control__wrap"> |
| 106 | <div class="input__flex input__radio_wrap" data-default="<?php echo esc_attr( $share_button ); ?>" data-value="<?php echo esc_attr( $share_button ); ?>"> |
| 107 | <label class="input__radio"> |
| 108 | <input type="radio" name="share_button" value="" <?php checked( '', $share_button); ?>> |
| 109 | <span><?php esc_html_e( "Hide", "embedpress" ); ?></span> |
| 110 | </label> |
| 111 | <label class="input__radio"> |
| 112 | <input type="radio" name="share_button" value="1" <?php checked( '1', $share_button); ?>> |
| 113 | <span><?php esc_html_e( "Show", "embedpress" ); ?></span> |
| 114 | </label> |
| 115 | </div> |
| 116 | </div> |
| 117 | </div> |
| 118 | <div class="form__group"> |
| 119 | <p class="form__label"><?php esc_html_e( "Comments", "embedpress" ); ?></p> |
| 120 | <div class="form__control__wrap"> |
| 121 | <div class="input__flex input__radio_wrap" data-default="<?php echo esc_attr( $comments ); ?>" data-value="<?php echo esc_attr( $comments ); ?>"> |
| 122 | <label class="input__radio"> |
| 123 | <input type="radio" name="comments" value="" <?php checked( '', $comments); ?>> |
| 124 | <span><?php esc_html_e( "Hide", "embedpress" ); ?></span> |
| 125 | </label> |
| 126 | <label class="input__radio"> |
| 127 | <input type="radio" name="comments" value="1" <?php checked( '1', $comments); ?>> |
| 128 | <span><?php esc_html_e( "Show", "embedpress" ); ?></span> |
| 129 | </label> |
| 130 | </div> |
| 131 | </div> |
| 132 | </div> |
| 133 | |
| 134 | <div class="form__group"> |
| 135 | <p class="form__label"><?php esc_html_e( "Artwork", "embedpress" ); ?></p> |
| 136 | <div class="form__control__wrap"> |
| 137 | <div class="input__flex input__radio_wrap" data-default="<?php echo esc_attr( $artwork ); ?>" data-value="<?php echo esc_attr( $artwork ); ?>"> |
| 138 | <label class="input__radio"> |
| 139 | <input type="radio" name="artwork" value="" <?php checked( '', $artwork); ?>> |
| 140 | <span><?php esc_html_e( "Hide", "embedpress" ); ?></span> |
| 141 | </label> |
| 142 | <label class="input__radio"> |
| 143 | <input type="radio" name="artwork" value="1" <?php checked( '1', $artwork); ?>> |
| 144 | <span><?php esc_html_e( "Show", "embedpress" ); ?></span> |
| 145 | </label> |
| 146 | </div> |
| 147 | <p><?php esc_html_e( 'Artwork option works when Visual option is disabled', 'embedpress'); ?> </p> |
| 148 | |
| 149 | </div> |
| 150 | </div> |
| 151 | |
| 152 | |
| 153 | <div class="form__group"> |
| 154 | <p class="form__label"><?php esc_html_e( "Play Count", "embedpress" ); ?></p> |
| 155 | <div class="form__control__wrap"> |
| 156 | <div class="input__flex input__radio_wrap" data-default="<?php echo esc_attr( $play_count ); ?>" data-value="<?php echo esc_attr( $play_count ); ?>"> |
| 157 | <label class="input__radio"> |
| 158 | <input type="radio" name="play_count" value="" <?php checked( '', $play_count); ?>> |
| 159 | <span><?php esc_html_e( "Hide", "embedpress" ); ?></span> |
| 160 | </label> |
| 161 | <label class="input__radio"> |
| 162 | <input type="radio" name="play_count" value="1" <?php checked( '1', $play_count); ?>> |
| 163 | <span><?php esc_html_e( "Show", "embedpress" ); ?></span> |
| 164 | </label> |
| 165 | </div> |
| 166 | <p><?php esc_html_e( 'Play count option works when Visual option is disabled', 'embedpress'); ?> </p> |
| 167 | |
| 168 | </div> |
| 169 | </div> |
| 170 | |
| 171 | |
| 172 | <div class="form__group"> |
| 173 | <p class="form__label"><?php esc_html_e( "Username", "embedpress" ); ?></p> |
| 174 | <div class="form__control__wrap"> |
| 175 | <div class="input__flex input__radio_wrap" data-default="<?php echo esc_attr( $username ); ?>" data-value="<?php echo esc_attr( $username ); ?>"> |
| 176 | <label class="input__radio"> |
| 177 | <input type="radio" name="username" value="" <?php checked( '', $username); ?>> |
| 178 | <span><?php esc_html_e( "Hide", "embedpress" ); ?></span> |
| 179 | </label> |
| 180 | <label class="input__radio"> |
| 181 | <input type="radio" name="username" value="1" <?php checked( '1', $username); ?>> |
| 182 | <span><?php esc_html_e( "Show", "embedpress" ); ?></span> |
| 183 | </label> |
| 184 | </div> |
| 185 | </div> |
| 186 | </div> |
| 187 | |
| 188 | <?php do_action( 'embedpress_after_dailymotion_settings_fields'); ?> |
| 189 | <button class="button button__themeColor radius-10 embedpress-submit-btn" name="submit" value="soundcloud"><?php esc_html_e( 'Save Changes', 'embedpress'); ?></button> |
| 190 | </form> |
| 191 | </div> |
| 192 | </div> |
| 193 |