Changeset 3457511
- Timestamp:
- 02/09/2026 09:58:27 PM (9 days ago)
- Location:
- hearthisat
- Files:
-
- 24 edited
-
tags/1.0.3/admin/class-hearthis-admin.php (modified) (4 diffs)
-
tags/1.0.3/admin/js/hearthis-admin.js (modified) (4 diffs)
-
tags/1.0.3/includes/class-hearthis.php (modified) (2 diffs)
-
tags/1.0.3/languages/hearthis-de_DE.mo (modified) (previous)
-
tags/1.0.3/languages/hearthis-de_DE.po (modified) (1 diff)
-
tags/1.0.3/languages/hearthis-es_ES.mo (modified) (previous)
-
tags/1.0.3/languages/hearthis-es_ES.po (modified) (1 diff)
-
tags/1.0.3/languages/hearthis-fr_FR.mo (modified) (previous)
-
tags/1.0.3/languages/hearthis-fr_FR.po (modified) (1 diff)
-
tags/1.0.3/languages/hearthis.pot (modified) (8 diffs)
-
tags/1.0.3/public/class-hearthis-public.php (modified) (2 diffs)
-
tags/1.0.3/readme.txt (modified) (2 diffs)
-
trunk/admin/class-hearthis-admin.php (modified) (4 diffs)
-
trunk/admin/js/hearthis-admin.js (modified) (4 diffs)
-
trunk/includes/class-hearthis.php (modified) (2 diffs)
-
trunk/languages/hearthis-de_DE.mo (modified) (previous)
-
trunk/languages/hearthis-de_DE.po (modified) (1 diff)
-
trunk/languages/hearthis-es_ES.mo (modified) (previous)
-
trunk/languages/hearthis-es_ES.po (modified) (1 diff)
-
trunk/languages/hearthis-fr_FR.mo (modified) (previous)
-
trunk/languages/hearthis-fr_FR.po (modified) (1 diff)
-
trunk/languages/hearthis.pot (modified) (8 diffs)
-
trunk/public/class-hearthis-public.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hearthisat/tags/1.0.3/admin/class-hearthis-admin.php
r3457493 r3457511 139 139 <?php 140 140 141 echo http_build_query( 142 array_filter( 143 array( 144 'width' => get_option( 'hearthis_width' ), 145 'height' => get_option( 'hearthis_height' ), 146 'theme' => get_option( 'hearthis_theme' ), 147 'hcolor' => get_option( 'hearthis_hcolor' ), 148 'color' => get_option( 'hearthis_color' ), 149 'style' => get_option( 'hearthis_style' ), 150 'background' => get_option( 'hearthis_background' ), 151 'waveform' => get_option( 'hearthis_waveform' ), 152 'autoplay' => get_option( 'hearthis_autoplay' ), 153 'cover' => get_option( 'hearthis_cover' ), 154 'block_size' => get_option( 'hearthis_block_size' ), 155 'block_space' => get_option( 'hearthis_block_space' ), 156 'css' => get_option( 'hearthis_css' ) 157 ) 158 ) 159 ); 141 echo http_build_query( 142 array_filter( 143 array( 144 'width' => get_option( 'hearthis_width' ), 145 'height' => get_option( 'hearthis_height' ), 146 'theme' => get_option( 'hearthis_theme' ), 147 'hcolor' => get_option( 'hearthis_hcolor' ), 148 'color' => get_option( 'hearthis_color' ), 149 'style' => get_option( 'hearthis_style' ), 150 'background' => get_option( 'hearthis_background' ), 151 'waveform' => get_option( 'hearthis_waveform' ), 152 'cover' => get_option( 'hearthis_cover' ), 153 'block_size' => get_option( 'hearthis_block_size' ), 154 'block_space' => get_option( 'hearthis_block_space' ), 155 'css' => get_option( 'hearthis_css' ) 156 ) 157 ) 158 ); 160 159 /* 161 160 echo 'each setting name without prefix<br>'; … … 290 289 291 290 <tr valign="top"> 292 <th scope="row"><?php echo esc_html__( 'Start Autoplay', 'hearthis' ); ?></th>293 <td>294 <input type="checkbox" name="hearthis_autoplay" id="hearthis_autoplay"295 value="<?php echo get_option( 'hearthis_autoplay' );?>"<?php echo ( get_option( 'hearthis_autoplay' ) == 1 ) ? ' checked="checked"' : '';?>><?php echo esc_html__( 'Should the player starts with autoplay after loading?', 'hearthis' ); ?>296 </td>297 </tr>298 <tr valign="top">299 291 <th scope="row"><?php echo esc_html__( 'Waveform Style', 'hearthis' ); ?></th> 300 292 <td> … … 349 341 350 342 <h4><?php echo esc_html__( 'Light Background', 'hearthis' ); ?></h4> 351 <iframe scrolling="no" style="border-radius: 10px;" id="hearthis_preview_light" width="100%" height="150" src="" frameborder="0" allowtransparency allow="autoplay"></iframe>343 <iframe scrolling="no" style="border-radius: 10px;" id="hearthis_preview_light" width="100%" height="150" src="" frameborder="0" allowtransparency></iframe> 352 344 <textarea class="hearthis-preview-code" id="hearthis_preview_light_code" rows="2" readonly onclick="this.focus();this.select()"></textarea> 353 345 … … 355 347 <hr> 356 348 <h4><?php echo esc_html__( 'Dark Background', 'hearthis' ); ?></h4> 357 <iframe scrolling="no" style="border-radius: 10px;" id="hearthis_preview_dark" width="100%" height="150" src="" frameborder="0" allowtransparency allow="autoplay"></iframe>349 <iframe scrolling="no" style="border-radius: 10px;" id="hearthis_preview_dark" width="100%" height="150" src="" frameborder="0" allowtransparency></iframe> 358 350 <textarea class="hearthis-preview-code" id="hearthis_preview_dark_code" rows="2" readonly onclick="this.focus();this.select()"></textarea> 359 351 </div> -
hearthisat/tags/1.0.3/admin/js/hearthis-admin.js
r3457493 r3457511 88 88 89 89 90 $("#hearthis_autoplay").change(function () {91 if (this.checked) {92 this.value = 1;93 } else {94 this.value = 0;95 }96 });97 90 98 91 $("#hearthis_cover").change(function () { … … 129 122 } 130 123 131 var hcolor = $('#hearthis_hcolor').val().replace('#', ''); 132 var color = $('#hearthis_color').val().replace('#', ''); 133 var style = $('#hearthis_style').val(); 134 var block_size = $('#hearthis_block_size').val(); 135 var block_space = $('#hearthis_block_space').val(); 136 var background = $('#hearthis_background').is(':checked') ? 1 : 0; 137 var waveform = $('#hearthis_waveform').is(':checked') ? 1 : 0; 138 var cover = $('#hearthis_cover').is(':checked') ? 1 : 0; 139 var autoplay = $('#hearthis_autoplay').is(':checked') ? 1 : 0; 140 var css = $('#hearthis_css').val().replace(" ", "+"); 124 var hcolor = $('#hearthis_hcolor').val().replace('#', ''); 125 var color = $('#hearthis_color').val().replace('#', ''); 126 var style = $('#hearthis_style').val(); 127 var block_size = $('#hearthis_block_size').val(); 128 var block_space = $('#hearthis_block_space').val(); 129 var background = $('#hearthis_background').is(':checked') ? 1 : 0; 130 var waveform = $('#hearthis_waveform').is(':checked') ? 1 : 0; 131 var cover = $('#hearthis_cover').is(':checked') ? 1 : 0; 132 var css = $('#hearthis_css').val().replace(" ", "+"); 141 133 142 134 var height = 150; … … 151 143 } 152 144 153 var base_url = "https://app.hearthis.at/embed/" + track_id + "/";154 var query = "?hcolor=" + hcolor + "&color=" + color + "&style=" + style + "&block_size=" + block_size + "&block_space=" + block_space + "&background=" + background + "&waveform=" + waveform + "&cover=" + cover + "&autoplay=" + autoplay+ "&css=" + css;145 var base_url = "https://app.hearthis.at/embed/" + track_id + "/"; 146 var query = "?hcolor=" + hcolor + "&color=" + color + "&style=" + style + "&block_size=" + block_size + "&block_space=" + block_space + "&background=" + background + "&waveform=" + waveform + "&cover=" + cover + "&css=" + css; 155 147 156 148 var src_light = base_url + "transparent/" + query; … … 160 152 $("#hearthis_preview_dark").attr("src", src_dark).attr("height", height); 161 153 162 var code_light = '<iframe scrolling="no" style="border-radius: 10px;" width="100%" height="' + height + '" src="' + src_light + '" frameborder="0" allowtransparency allow="autoplay"></iframe>';163 var code_dark = '<iframe scrolling="no" style="border-radius: 10px;" width="100%" height="' + height + '" src="' + src_dark + '" frameborder="0" allowtransparency allow="autoplay"></iframe>';154 var code_light = '<iframe scrolling="no" style="border-radius: 10px;" width="100%" height="' + height + '" src="' + src_light + '" frameborder="0" allowtransparency></iframe>'; 155 var code_dark = '<iframe scrolling="no" style="border-radius: 10px;" width="100%" height="' + height + '" src="' + src_dark + '" frameborder="0" allowtransparency></iframe>'; 164 156 165 157 $("#hearthis_preview_light_code").val(code_light); -
hearthisat/tags/1.0.3/includes/class-hearthis.php
r3457493 r3457511 72 72 'background', 73 73 'waveform', 74 'autoplay',75 74 'cover', 76 75 'block_size', … … 248 247 'background_show', 249 248 'waveform_hide', 250 'autoplay',251 249 'cover_hide', 252 250 'block_size', -
hearthisat/tags/1.0.3/languages/hearthis-de_DE.po
r3457493 r3457511 158 158 "die Waveform nicht ausblenden." 159 159 160 #: admin/class-hearthis-admin.php:292161 msgid "Start Autoplay"162 msgstr "Autoplay starten"163 164 #: admin/class-hearthis-admin.php:295165 msgid "Should the player starts with autoplay after loading?"166 msgstr "Soll der Player nach dem Laden mit Autoplay starten?"167 160 168 161 #: admin/class-hearthis-admin.php:299 -
hearthisat/tags/1.0.3/languages/hearthis-es_ES.po
r3457493 r3457511 157 157 "ocultar la forma de onda." 158 158 159 #: admin/class-hearthis-admin.php:292160 msgid "Start Autoplay"161 msgstr "Iniciar reproducción automática"162 163 #: admin/class-hearthis-admin.php:295164 msgid "Should the player starts with autoplay after loading?"165 msgstr "¿Debe el reproductor iniciar con reproducción automática después de cargar?"166 159 167 160 #: admin/class-hearthis-admin.php:299 -
hearthisat/tags/1.0.3/languages/hearthis-fr_FR.po
r3457493 r3457511 157 157 "masquer la forme d'onde." 158 158 159 #: admin/class-hearthis-admin.php:292160 msgid "Start Autoplay"161 msgstr "Démarrer la lecture automatique"162 163 #: admin/class-hearthis-admin.php:295164 msgid "Should the player starts with autoplay after loading?"165 msgstr "Le lecteur doit-il démarrer avec la lecture automatique après le chargement ?"166 159 167 160 #: admin/class-hearthis-admin.php:299 -
hearthisat/tags/1.0.3/languages/hearthis.pot
r3457493 r3457511 9 9 "Project-Id-Version: hearthis.at 1.0.3\n" 10 10 "Report-Msgid-Bugs-To: https://hearthis.at/\n" 11 "POT-Creation-Date: 2026-02-09 22: 34+0100\n"11 "POT-Creation-Date: 2026-02-09 22:56+0100\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 40 40 msgstr "" 41 41 42 #: admin/class-hearthis-admin.php:22 242 #: admin/class-hearthis-admin.php:221 43 43 msgid "Player default width" 44 44 msgstr "" 45 45 46 #: admin/class-hearthis-admin.php:22 446 #: admin/class-hearthis-admin.php:223 47 47 msgid "" 48 48 "A number below 100 this would be interpreted as percent! If you enter a " … … 50 50 msgstr "" 51 51 52 #: admin/class-hearthis-admin.php:22 5 admin/class-hearthis-admin.php:23552 #: admin/class-hearthis-admin.php:224 admin/class-hearthis-admin.php:234 53 53 msgid "Leave blank to use the default." 54 54 msgstr "" 55 55 56 #: admin/class-hearthis-admin.php:22 956 #: admin/class-hearthis-admin.php:228 57 57 msgid "Player height" 58 58 msgstr "" 59 59 60 #: admin/class-hearthis-admin.php:231 61 msgid "This setting is only in pixels. Leave it blank to use the default." 62 msgstr "" 63 60 64 #: admin/class-hearthis-admin.php:232 61 msgid "This setting is only in pixels. Leave it blank to use the default."62 msgstr ""63 64 #: admin/class-hearthis-admin.php:23365 65 msgid "" 66 66 "This value depends on your track url and could be overwritten. So if your " … … 71 71 msgstr "" 72 72 73 #: admin/class-hearthis-admin.php:23 973 #: admin/class-hearthis-admin.php:238 74 74 msgid "Waveform Color" 75 75 msgstr "" 76 76 77 #: admin/class-hearthis-admin.php:24 177 #: admin/class-hearthis-admin.php:240 78 78 msgid "Defines the default waveform and buttons color." 79 79 msgstr "" 80 80 81 #: admin/class-hearthis-admin.php:24 581 #: admin/class-hearthis-admin.php:244 82 82 msgid "Highlight Waveform Color" 83 83 msgstr "" 84 84 85 #: admin/class-hearthis-admin.php:24 785 #: admin/class-hearthis-admin.php:246 86 86 msgid "" 87 87 "The highlight color is shown in waveform in the passed time or on hover " … … 90 90 msgstr "" 91 91 92 #: admin/class-hearthis-admin.php:25 292 #: admin/class-hearthis-admin.php:251 93 93 msgid "Theme Color (Tracks Only)" 94 94 msgstr "" 95 95 96 #: admin/class-hearthis-admin.php:25 696 #: admin/class-hearthis-admin.php:255 97 97 msgid "Light" 98 98 msgstr "" 99 99 100 #: admin/class-hearthis-admin.php:25 9100 #: admin/class-hearthis-admin.php:258 101 101 msgid "Dark" 102 102 msgstr "" 103 103 104 #: admin/class-hearthis-admin.php:26 4104 #: admin/class-hearthis-admin.php:263 105 105 msgid "Hide cover image" 106 106 msgstr "" 107 107 108 #: admin/class-hearthis-admin.php:26 8108 #: admin/class-hearthis-admin.php:267 109 109 msgid "Hide cover, on/off" 110 110 msgstr "" 111 111 112 #: admin/class-hearthis-admin.php:26 8112 #: admin/class-hearthis-admin.php:267 113 113 msgid "The player will not show the cover image from this tracks." 114 114 msgstr "" 115 115 116 #: admin/class-hearthis-admin.php:27 2116 #: admin/class-hearthis-admin.php:271 117 117 msgid "Hide waveform" 118 118 msgstr "" 119 119 120 #: admin/class-hearthis-admin.php:27 7120 #: admin/class-hearthis-admin.php:276 121 121 msgid "Hide waveform, on/off" 122 122 msgstr "" 123 123 124 #: admin/class-hearthis-admin.php:27 7124 #: admin/class-hearthis-admin.php:276 125 125 msgid "The player will not show the waveform of any track." 126 126 msgstr "" 127 127 128 #: admin/class-hearthis-admin.php:28 2128 #: admin/class-hearthis-admin.php:281 129 129 msgid "Show background image" 130 130 msgstr "" 131 131 132 #: admin/class-hearthis-admin.php:285 133 msgid "Show background image (if it has one)" 134 msgstr "" 135 132 136 #: admin/class-hearthis-admin.php:286 133 msgid "Show background image (if it has one)"134 msgstr ""135 136 #: admin/class-hearthis-admin.php:287137 137 msgid "" 138 138 "The player will show the background image if it has one. This selection " … … 141 141 msgstr "" 142 142 143 #: admin/class-hearthis-admin.php:292 144 msgid "Start Autoplay" 145 msgstr "" 146 147 #: admin/class-hearthis-admin.php:295 148 msgid "Should the player starts with autoplay after loading?" 149 msgstr "" 150 151 #: admin/class-hearthis-admin.php:299 143 #: admin/class-hearthis-admin.php:291 152 144 msgid "Waveform Style" 153 145 msgstr "" 154 146 147 #: admin/class-hearthis-admin.php:294 148 msgid "Waveform Style: Soft" 149 msgstr "" 150 151 #: admin/class-hearthis-admin.php:296 152 msgid "Waveform Style: Digitized" 153 msgstr "" 154 155 155 #: admin/class-hearthis-admin.php:302 156 msgid "Waveform Style: Soft"157 msgstr ""158 159 #: admin/class-hearthis-admin.php:304160 msgid "Waveform Style: Digitized"161 msgstr ""162 163 #: admin/class-hearthis-admin.php:310164 156 msgid "Block Size" 165 157 msgstr "" 166 158 167 #: admin/class-hearthis-admin.php:3 17159 #: admin/class-hearthis-admin.php:309 168 160 msgid "Block Space" 169 161 msgstr "" 170 162 171 #: admin/class-hearthis-admin.php:32 8163 #: admin/class-hearthis-admin.php:320 172 164 msgid "Link to CSS File" 173 165 msgstr "" 174 166 175 #: admin/class-hearthis-admin.php:3 31167 #: admin/class-hearthis-admin.php:323 176 168 msgid "Url to an external CSS File" 177 169 msgstr "" 178 170 179 #: admin/class-hearthis-admin.php:3 32171 #: admin/class-hearthis-admin.php:324 180 172 msgid "" 181 173 "You can provide a external CSS File with markups to style your individual " … … 183 175 msgstr "" 184 176 185 #: admin/class-hearthis-admin.php:3 42177 #: admin/class-hearthis-admin.php:334 186 178 msgid "Live Preview" 187 179 msgstr "" 188 180 189 #: admin/class-hearthis-admin.php:3 45181 #: admin/class-hearthis-admin.php:337 190 182 msgid "Track ID for Preview:" 191 183 msgstr "" 192 184 193 #: admin/class-hearthis-admin.php:3 46185 #: admin/class-hearthis-admin.php:338 194 186 msgid "Enter track ID" 195 187 msgstr "" 196 188 197 #: admin/class-hearthis-admin.php:3 47189 #: admin/class-hearthis-admin.php:339 198 190 msgid "" 199 191 "Enter a hearthis.at track ID to preview your customizations. You can find " … … 201 193 msgstr "" 202 194 203 #: admin/class-hearthis-admin.php:3 50195 #: admin/class-hearthis-admin.php:342 204 196 msgid "Light Background" 205 197 msgstr "" 206 198 207 #: admin/class-hearthis-admin.php:3 56199 #: admin/class-hearthis-admin.php:348 208 200 msgid "Dark Background" 209 201 msgstr "" 210 202 211 #: admin/class-hearthis-admin.php:3 75203 #: admin/class-hearthis-admin.php:367 212 204 msgid "Settings" 213 205 msgstr "" -
hearthisat/tags/1.0.3/public/class-hearthis-public.php
r2526062 r3457511 77 77 'waveform', 78 78 'cover', 79 'autoplay',80 79 'css' 81 ); 80 ); 82 81 83 82 … … 394 393 'background' => get_option('hearthis_background'), 395 394 'waveform' => get_option('hearthis_waveform'), 396 'autoplay' => get_option('hearthis_autoplay'),397 395 'cover' => get_option('hearthis_cover'), 398 396 'block_size' => get_option('hearthis_block_size'), -
hearthisat/tags/1.0.3/readme.txt
r3457506 r3457511 35 35 * `background` shows the background if set (values not set, 1 or 0, if is 1 the height is 170px) 36 36 * `waveform` hides the waveform if you set to '1', change track height fixed to 95px (values 0 off, 1 on) 37 * `autoplay` starts with autoplay (values 0 off, 1 on)38 37 * `cover` hides the cover image if its set (values 0 off, 1 on) 39 38 * `block_size` size of the waveform blocks (number, steps from 1 to 10, default is 2, works only if style is set to 2) … … 64 63 `[hearthis hcolor="0000ff"]https://hearthis.at/crecs/[/hearthis]` 65 64 66 Embed a user without color params and autoplay.67 `[hearthis hcolor="#ff5c24" color="#33fd11" autoplay="1"]http://hearthis.at/djforce/[/hearthis]`65 Embed a user without color params. 66 `[hearthis hcolor="#ff5c24" color="#33fd11"]http://hearthis.at/djforce/[/hearthis]` 68 67 69 68 Embeds a track with a black theme and a background image (if set) and hides the cover. -
hearthisat/trunk/admin/class-hearthis-admin.php
r3457493 r3457511 139 139 <?php 140 140 141 echo http_build_query( 142 array_filter( 143 array( 144 'width' => get_option( 'hearthis_width' ), 145 'height' => get_option( 'hearthis_height' ), 146 'theme' => get_option( 'hearthis_theme' ), 147 'hcolor' => get_option( 'hearthis_hcolor' ), 148 'color' => get_option( 'hearthis_color' ), 149 'style' => get_option( 'hearthis_style' ), 150 'background' => get_option( 'hearthis_background' ), 151 'waveform' => get_option( 'hearthis_waveform' ), 152 'autoplay' => get_option( 'hearthis_autoplay' ), 153 'cover' => get_option( 'hearthis_cover' ), 154 'block_size' => get_option( 'hearthis_block_size' ), 155 'block_space' => get_option( 'hearthis_block_space' ), 156 'css' => get_option( 'hearthis_css' ) 157 ) 158 ) 159 ); 141 echo http_build_query( 142 array_filter( 143 array( 144 'width' => get_option( 'hearthis_width' ), 145 'height' => get_option( 'hearthis_height' ), 146 'theme' => get_option( 'hearthis_theme' ), 147 'hcolor' => get_option( 'hearthis_hcolor' ), 148 'color' => get_option( 'hearthis_color' ), 149 'style' => get_option( 'hearthis_style' ), 150 'background' => get_option( 'hearthis_background' ), 151 'waveform' => get_option( 'hearthis_waveform' ), 152 'cover' => get_option( 'hearthis_cover' ), 153 'block_size' => get_option( 'hearthis_block_size' ), 154 'block_space' => get_option( 'hearthis_block_space' ), 155 'css' => get_option( 'hearthis_css' ) 156 ) 157 ) 158 ); 160 159 /* 161 160 echo 'each setting name without prefix<br>'; … … 290 289 291 290 <tr valign="top"> 292 <th scope="row"><?php echo esc_html__( 'Start Autoplay', 'hearthis' ); ?></th>293 <td>294 <input type="checkbox" name="hearthis_autoplay" id="hearthis_autoplay"295 value="<?php echo get_option( 'hearthis_autoplay' );?>"<?php echo ( get_option( 'hearthis_autoplay' ) == 1 ) ? ' checked="checked"' : '';?>><?php echo esc_html__( 'Should the player starts with autoplay after loading?', 'hearthis' ); ?>296 </td>297 </tr>298 <tr valign="top">299 291 <th scope="row"><?php echo esc_html__( 'Waveform Style', 'hearthis' ); ?></th> 300 292 <td> … … 349 341 350 342 <h4><?php echo esc_html__( 'Light Background', 'hearthis' ); ?></h4> 351 <iframe scrolling="no" style="border-radius: 10px;" id="hearthis_preview_light" width="100%" height="150" src="" frameborder="0" allowtransparency allow="autoplay"></iframe>343 <iframe scrolling="no" style="border-radius: 10px;" id="hearthis_preview_light" width="100%" height="150" src="" frameborder="0" allowtransparency></iframe> 352 344 <textarea class="hearthis-preview-code" id="hearthis_preview_light_code" rows="2" readonly onclick="this.focus();this.select()"></textarea> 353 345 … … 355 347 <hr> 356 348 <h4><?php echo esc_html__( 'Dark Background', 'hearthis' ); ?></h4> 357 <iframe scrolling="no" style="border-radius: 10px;" id="hearthis_preview_dark" width="100%" height="150" src="" frameborder="0" allowtransparency allow="autoplay"></iframe>349 <iframe scrolling="no" style="border-radius: 10px;" id="hearthis_preview_dark" width="100%" height="150" src="" frameborder="0" allowtransparency></iframe> 358 350 <textarea class="hearthis-preview-code" id="hearthis_preview_dark_code" rows="2" readonly onclick="this.focus();this.select()"></textarea> 359 351 </div> -
hearthisat/trunk/admin/js/hearthis-admin.js
r3457493 r3457511 88 88 89 89 90 $("#hearthis_autoplay").change(function () {91 if (this.checked) {92 this.value = 1;93 } else {94 this.value = 0;95 }96 });97 90 98 91 $("#hearthis_cover").change(function () { … … 129 122 } 130 123 131 var hcolor = $('#hearthis_hcolor').val().replace('#', ''); 132 var color = $('#hearthis_color').val().replace('#', ''); 133 var style = $('#hearthis_style').val(); 134 var block_size = $('#hearthis_block_size').val(); 135 var block_space = $('#hearthis_block_space').val(); 136 var background = $('#hearthis_background').is(':checked') ? 1 : 0; 137 var waveform = $('#hearthis_waveform').is(':checked') ? 1 : 0; 138 var cover = $('#hearthis_cover').is(':checked') ? 1 : 0; 139 var autoplay = $('#hearthis_autoplay').is(':checked') ? 1 : 0; 140 var css = $('#hearthis_css').val().replace(" ", "+"); 124 var hcolor = $('#hearthis_hcolor').val().replace('#', ''); 125 var color = $('#hearthis_color').val().replace('#', ''); 126 var style = $('#hearthis_style').val(); 127 var block_size = $('#hearthis_block_size').val(); 128 var block_space = $('#hearthis_block_space').val(); 129 var background = $('#hearthis_background').is(':checked') ? 1 : 0; 130 var waveform = $('#hearthis_waveform').is(':checked') ? 1 : 0; 131 var cover = $('#hearthis_cover').is(':checked') ? 1 : 0; 132 var css = $('#hearthis_css').val().replace(" ", "+"); 141 133 142 134 var height = 150; … … 151 143 } 152 144 153 var base_url = "https://app.hearthis.at/embed/" + track_id + "/";154 var query = "?hcolor=" + hcolor + "&color=" + color + "&style=" + style + "&block_size=" + block_size + "&block_space=" + block_space + "&background=" + background + "&waveform=" + waveform + "&cover=" + cover + "&autoplay=" + autoplay+ "&css=" + css;145 var base_url = "https://app.hearthis.at/embed/" + track_id + "/"; 146 var query = "?hcolor=" + hcolor + "&color=" + color + "&style=" + style + "&block_size=" + block_size + "&block_space=" + block_space + "&background=" + background + "&waveform=" + waveform + "&cover=" + cover + "&css=" + css; 155 147 156 148 var src_light = base_url + "transparent/" + query; … … 160 152 $("#hearthis_preview_dark").attr("src", src_dark).attr("height", height); 161 153 162 var code_light = '<iframe scrolling="no" style="border-radius: 10px;" width="100%" height="' + height + '" src="' + src_light + '" frameborder="0" allowtransparency allow="autoplay"></iframe>';163 var code_dark = '<iframe scrolling="no" style="border-radius: 10px;" width="100%" height="' + height + '" src="' + src_dark + '" frameborder="0" allowtransparency allow="autoplay"></iframe>';154 var code_light = '<iframe scrolling="no" style="border-radius: 10px;" width="100%" height="' + height + '" src="' + src_light + '" frameborder="0" allowtransparency></iframe>'; 155 var code_dark = '<iframe scrolling="no" style="border-radius: 10px;" width="100%" height="' + height + '" src="' + src_dark + '" frameborder="0" allowtransparency></iframe>'; 164 156 165 157 $("#hearthis_preview_light_code").val(code_light); -
hearthisat/trunk/includes/class-hearthis.php
r3457493 r3457511 72 72 'background', 73 73 'waveform', 74 'autoplay',75 74 'cover', 76 75 'block_size', … … 248 247 'background_show', 249 248 'waveform_hide', 250 'autoplay',251 249 'cover_hide', 252 250 'block_size', -
hearthisat/trunk/languages/hearthis-de_DE.po
r3457493 r3457511 158 158 "die Waveform nicht ausblenden." 159 159 160 #: admin/class-hearthis-admin.php:292161 msgid "Start Autoplay"162 msgstr "Autoplay starten"163 164 #: admin/class-hearthis-admin.php:295165 msgid "Should the player starts with autoplay after loading?"166 msgstr "Soll der Player nach dem Laden mit Autoplay starten?"167 160 168 161 #: admin/class-hearthis-admin.php:299 -
hearthisat/trunk/languages/hearthis-es_ES.po
r3457493 r3457511 157 157 "ocultar la forma de onda." 158 158 159 #: admin/class-hearthis-admin.php:292160 msgid "Start Autoplay"161 msgstr "Iniciar reproducción automática"162 163 #: admin/class-hearthis-admin.php:295164 msgid "Should the player starts with autoplay after loading?"165 msgstr "¿Debe el reproductor iniciar con reproducción automática después de cargar?"166 159 167 160 #: admin/class-hearthis-admin.php:299 -
hearthisat/trunk/languages/hearthis-fr_FR.po
r3457493 r3457511 157 157 "masquer la forme d'onde." 158 158 159 #: admin/class-hearthis-admin.php:292160 msgid "Start Autoplay"161 msgstr "Démarrer la lecture automatique"162 163 #: admin/class-hearthis-admin.php:295164 msgid "Should the player starts with autoplay after loading?"165 msgstr "Le lecteur doit-il démarrer avec la lecture automatique après le chargement ?"166 159 167 160 #: admin/class-hearthis-admin.php:299 -
hearthisat/trunk/languages/hearthis.pot
r3457493 r3457511 9 9 "Project-Id-Version: hearthis.at 1.0.3\n" 10 10 "Report-Msgid-Bugs-To: https://hearthis.at/\n" 11 "POT-Creation-Date: 2026-02-09 22: 34+0100\n"11 "POT-Creation-Date: 2026-02-09 22:56+0100\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 40 40 msgstr "" 41 41 42 #: admin/class-hearthis-admin.php:22 242 #: admin/class-hearthis-admin.php:221 43 43 msgid "Player default width" 44 44 msgstr "" 45 45 46 #: admin/class-hearthis-admin.php:22 446 #: admin/class-hearthis-admin.php:223 47 47 msgid "" 48 48 "A number below 100 this would be interpreted as percent! If you enter a " … … 50 50 msgstr "" 51 51 52 #: admin/class-hearthis-admin.php:22 5 admin/class-hearthis-admin.php:23552 #: admin/class-hearthis-admin.php:224 admin/class-hearthis-admin.php:234 53 53 msgid "Leave blank to use the default." 54 54 msgstr "" 55 55 56 #: admin/class-hearthis-admin.php:22 956 #: admin/class-hearthis-admin.php:228 57 57 msgid "Player height" 58 58 msgstr "" 59 59 60 #: admin/class-hearthis-admin.php:231 61 msgid "This setting is only in pixels. Leave it blank to use the default." 62 msgstr "" 63 60 64 #: admin/class-hearthis-admin.php:232 61 msgid "This setting is only in pixels. Leave it blank to use the default."62 msgstr ""63 64 #: admin/class-hearthis-admin.php:23365 65 msgid "" 66 66 "This value depends on your track url and could be overwritten. So if your " … … 71 71 msgstr "" 72 72 73 #: admin/class-hearthis-admin.php:23 973 #: admin/class-hearthis-admin.php:238 74 74 msgid "Waveform Color" 75 75 msgstr "" 76 76 77 #: admin/class-hearthis-admin.php:24 177 #: admin/class-hearthis-admin.php:240 78 78 msgid "Defines the default waveform and buttons color." 79 79 msgstr "" 80 80 81 #: admin/class-hearthis-admin.php:24 581 #: admin/class-hearthis-admin.php:244 82 82 msgid "Highlight Waveform Color" 83 83 msgstr "" 84 84 85 #: admin/class-hearthis-admin.php:24 785 #: admin/class-hearthis-admin.php:246 86 86 msgid "" 87 87 "The highlight color is shown in waveform in the passed time or on hover " … … 90 90 msgstr "" 91 91 92 #: admin/class-hearthis-admin.php:25 292 #: admin/class-hearthis-admin.php:251 93 93 msgid "Theme Color (Tracks Only)" 94 94 msgstr "" 95 95 96 #: admin/class-hearthis-admin.php:25 696 #: admin/class-hearthis-admin.php:255 97 97 msgid "Light" 98 98 msgstr "" 99 99 100 #: admin/class-hearthis-admin.php:25 9100 #: admin/class-hearthis-admin.php:258 101 101 msgid "Dark" 102 102 msgstr "" 103 103 104 #: admin/class-hearthis-admin.php:26 4104 #: admin/class-hearthis-admin.php:263 105 105 msgid "Hide cover image" 106 106 msgstr "" 107 107 108 #: admin/class-hearthis-admin.php:26 8108 #: admin/class-hearthis-admin.php:267 109 109 msgid "Hide cover, on/off" 110 110 msgstr "" 111 111 112 #: admin/class-hearthis-admin.php:26 8112 #: admin/class-hearthis-admin.php:267 113 113 msgid "The player will not show the cover image from this tracks." 114 114 msgstr "" 115 115 116 #: admin/class-hearthis-admin.php:27 2116 #: admin/class-hearthis-admin.php:271 117 117 msgid "Hide waveform" 118 118 msgstr "" 119 119 120 #: admin/class-hearthis-admin.php:27 7120 #: admin/class-hearthis-admin.php:276 121 121 msgid "Hide waveform, on/off" 122 122 msgstr "" 123 123 124 #: admin/class-hearthis-admin.php:27 7124 #: admin/class-hearthis-admin.php:276 125 125 msgid "The player will not show the waveform of any track." 126 126 msgstr "" 127 127 128 #: admin/class-hearthis-admin.php:28 2128 #: admin/class-hearthis-admin.php:281 129 129 msgid "Show background image" 130 130 msgstr "" 131 131 132 #: admin/class-hearthis-admin.php:285 133 msgid "Show background image (if it has one)" 134 msgstr "" 135 132 136 #: admin/class-hearthis-admin.php:286 133 msgid "Show background image (if it has one)"134 msgstr ""135 136 #: admin/class-hearthis-admin.php:287137 137 msgid "" 138 138 "The player will show the background image if it has one. This selection " … … 141 141 msgstr "" 142 142 143 #: admin/class-hearthis-admin.php:292 144 msgid "Start Autoplay" 145 msgstr "" 146 147 #: admin/class-hearthis-admin.php:295 148 msgid "Should the player starts with autoplay after loading?" 149 msgstr "" 150 151 #: admin/class-hearthis-admin.php:299 143 #: admin/class-hearthis-admin.php:291 152 144 msgid "Waveform Style" 153 145 msgstr "" 154 146 147 #: admin/class-hearthis-admin.php:294 148 msgid "Waveform Style: Soft" 149 msgstr "" 150 151 #: admin/class-hearthis-admin.php:296 152 msgid "Waveform Style: Digitized" 153 msgstr "" 154 155 155 #: admin/class-hearthis-admin.php:302 156 msgid "Waveform Style: Soft"157 msgstr ""158 159 #: admin/class-hearthis-admin.php:304160 msgid "Waveform Style: Digitized"161 msgstr ""162 163 #: admin/class-hearthis-admin.php:310164 156 msgid "Block Size" 165 157 msgstr "" 166 158 167 #: admin/class-hearthis-admin.php:3 17159 #: admin/class-hearthis-admin.php:309 168 160 msgid "Block Space" 169 161 msgstr "" 170 162 171 #: admin/class-hearthis-admin.php:32 8163 #: admin/class-hearthis-admin.php:320 172 164 msgid "Link to CSS File" 173 165 msgstr "" 174 166 175 #: admin/class-hearthis-admin.php:3 31167 #: admin/class-hearthis-admin.php:323 176 168 msgid "Url to an external CSS File" 177 169 msgstr "" 178 170 179 #: admin/class-hearthis-admin.php:3 32171 #: admin/class-hearthis-admin.php:324 180 172 msgid "" 181 173 "You can provide a external CSS File with markups to style your individual " … … 183 175 msgstr "" 184 176 185 #: admin/class-hearthis-admin.php:3 42177 #: admin/class-hearthis-admin.php:334 186 178 msgid "Live Preview" 187 179 msgstr "" 188 180 189 #: admin/class-hearthis-admin.php:3 45181 #: admin/class-hearthis-admin.php:337 190 182 msgid "Track ID for Preview:" 191 183 msgstr "" 192 184 193 #: admin/class-hearthis-admin.php:3 46185 #: admin/class-hearthis-admin.php:338 194 186 msgid "Enter track ID" 195 187 msgstr "" 196 188 197 #: admin/class-hearthis-admin.php:3 47189 #: admin/class-hearthis-admin.php:339 198 190 msgid "" 199 191 "Enter a hearthis.at track ID to preview your customizations. You can find " … … 201 193 msgstr "" 202 194 203 #: admin/class-hearthis-admin.php:3 50195 #: admin/class-hearthis-admin.php:342 204 196 msgid "Light Background" 205 197 msgstr "" 206 198 207 #: admin/class-hearthis-admin.php:3 56199 #: admin/class-hearthis-admin.php:348 208 200 msgid "Dark Background" 209 201 msgstr "" 210 202 211 #: admin/class-hearthis-admin.php:3 75203 #: admin/class-hearthis-admin.php:367 212 204 msgid "Settings" 213 205 msgstr "" -
hearthisat/trunk/public/class-hearthis-public.php
r2526062 r3457511 77 77 'waveform', 78 78 'cover', 79 'autoplay',80 79 'css' 81 ); 80 ); 82 81 83 82 … … 394 393 'background' => get_option('hearthis_background'), 395 394 'waveform' => get_option('hearthis_waveform'), 396 'autoplay' => get_option('hearthis_autoplay'),397 395 'cover' => get_option('hearthis_cover'), 398 396 'block_size' => get_option('hearthis_block_size'), -
hearthisat/trunk/readme.txt
r3457506 r3457511 35 35 * `background` shows the background if set (values not set, 1 or 0, if is 1 the height is 170px) 36 36 * `waveform` hides the waveform if you set to '1', change track height fixed to 95px (values 0 off, 1 on) 37 * `autoplay` starts with autoplay (values 0 off, 1 on)38 37 * `cover` hides the cover image if its set (values 0 off, 1 on) 39 38 * `block_size` size of the waveform blocks (number, steps from 1 to 10, default is 2, works only if style is set to 2) … … 64 63 `[hearthis hcolor="0000ff"]https://hearthis.at/crecs/[/hearthis]` 65 64 66 Embed a user without color params and autoplay.67 `[hearthis hcolor="#ff5c24" color="#33fd11" autoplay="1"]http://hearthis.at/djforce/[/hearthis]`65 Embed a user without color params. 66 `[hearthis hcolor="#ff5c24" color="#33fd11"]http://hearthis.at/djforce/[/hearthis]` 68 67 69 68 Embeds a track with a black theme and a background image (if set) and hides the cover.
Note: See TracChangeset
for help on using the changeset viewer.