Plugin Directory

Changeset 3457511


Ignore:
Timestamp:
02/09/2026 09:58:27 PM (9 days ago)
Author:
hearthis
Message:

Remove autoplay option from plugin: removed from readme documentation, admin settings page, admin JavaScript, public shortcode handler, settings array, and all translation files (DE/ES/FR)

Location:
hearthisat
Files:
24 edited

Legend:

Unmodified
Added
Removed
  • hearthisat/tags/1.0.3/admin/class-hearthis-admin.php

    r3457493 r3457511  
    139139                            <?php
    140140
    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                            );
    160159                                /*
    161160                                echo  'each setting name without prefix<br>';
     
    290289
    291290                        <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">
    299291                            <th scope="row"><?php echo esc_html__( 'Waveform Style', 'hearthis' ); ?></th>
    300292                            <td>
     
    349341
    350342                <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>
    352344                <textarea class="hearthis-preview-code" id="hearthis_preview_light_code" rows="2" readonly onclick="this.focus();this.select()"></textarea>
    353345
     
    355347                    <hr>
    356348                    <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>
    358350                    <textarea class="hearthis-preview-code" id="hearthis_preview_dark_code" rows="2" readonly onclick="this.focus();this.select()"></textarea>
    359351                </div>
  • hearthisat/tags/1.0.3/admin/js/hearthis-admin.js

    r3457493 r3457511  
    8888
    8989
    90         $("#hearthis_autoplay").change(function () {
    91             if (this.checked) {
    92                 this.value = 1;
    93             } else {
    94                 this.value = 0;
    95             }
    96         });
    9790
    9891        $("#hearthis_cover").change(function () {
     
    129122        }
    130123
    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(" ", "+");
    141133
    142134        var height = 150;
     
    151143        }
    152144
    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;
    155147       
    156148        var src_light = base_url + "transparent/" + query;
     
    160152        $("#hearthis_preview_dark").attr("src", src_dark).attr("height", height);
    161153
    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>';
    164156
    165157        $("#hearthis_preview_light_code").val(code_light);
  • hearthisat/tags/1.0.3/includes/class-hearthis.php

    r3457493 r3457511  
    7272        'background',
    7373        'waveform',
    74         'autoplay',
    7574        'cover',
    7675        'block_size',
     
    248247    'background_show',
    249248    'waveform_hide',
    250     'autoplay',
    251249    'cover_hide',
    252250    'block_size',
  • hearthisat/tags/1.0.3/languages/hearthis-de_DE.po

    r3457493 r3457511  
    158158"die Waveform nicht ausblenden."
    159159
    160 #: admin/class-hearthis-admin.php:292
    161 msgid "Start Autoplay"
    162 msgstr "Autoplay starten"
    163 
    164 #: admin/class-hearthis-admin.php:295
    165 msgid "Should the player starts with autoplay after loading?"
    166 msgstr "Soll der Player nach dem Laden mit Autoplay starten?"
    167160
    168161#: admin/class-hearthis-admin.php:299
  • hearthisat/tags/1.0.3/languages/hearthis-es_ES.po

    r3457493 r3457511  
    157157"ocultar la forma de onda."
    158158
    159 #: admin/class-hearthis-admin.php:292
    160 msgid "Start Autoplay"
    161 msgstr "Iniciar reproducción automática"
    162 
    163 #: admin/class-hearthis-admin.php:295
    164 msgid "Should the player starts with autoplay after loading?"
    165 msgstr "¿Debe el reproductor iniciar con reproducción automática después de cargar?"
    166159
    167160#: admin/class-hearthis-admin.php:299
  • hearthisat/tags/1.0.3/languages/hearthis-fr_FR.po

    r3457493 r3457511  
    157157"masquer la forme d'onde."
    158158
    159 #: admin/class-hearthis-admin.php:292
    160 msgid "Start Autoplay"
    161 msgstr "Démarrer la lecture automatique"
    162 
    163 #: admin/class-hearthis-admin.php:295
    164 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 ?"
    166159
    167160#: admin/class-hearthis-admin.php:299
  • hearthisat/tags/1.0.3/languages/hearthis.pot

    r3457493 r3457511  
    99"Project-Id-Version: hearthis.at 1.0.3\n"
    1010"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"
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    4040msgstr ""
    4141
    42 #: admin/class-hearthis-admin.php:222
     42#: admin/class-hearthis-admin.php:221
    4343msgid "Player default width"
    4444msgstr ""
    4545
    46 #: admin/class-hearthis-admin.php:224
     46#: admin/class-hearthis-admin.php:223
    4747msgid ""
    4848"A number below 100 this would be interpreted as percent! If you enter a "
     
    5050msgstr ""
    5151
    52 #: admin/class-hearthis-admin.php:225 admin/class-hearthis-admin.php:235
     52#: admin/class-hearthis-admin.php:224 admin/class-hearthis-admin.php:234
    5353msgid "Leave blank to use the default."
    5454msgstr ""
    5555
    56 #: admin/class-hearthis-admin.php:229
     56#: admin/class-hearthis-admin.php:228
    5757msgid "Player height"
    5858msgstr ""
    5959
     60#: admin/class-hearthis-admin.php:231
     61msgid "This setting is only in pixels. Leave it blank to use the default."
     62msgstr ""
     63
    6064#: 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:233
    6565msgid ""
    6666"This value depends on your track url and could be overwritten. So if your "
     
    7171msgstr ""
    7272
    73 #: admin/class-hearthis-admin.php:239
     73#: admin/class-hearthis-admin.php:238
    7474msgid "Waveform Color"
    7575msgstr ""
    7676
    77 #: admin/class-hearthis-admin.php:241
     77#: admin/class-hearthis-admin.php:240
    7878msgid "Defines the default waveform and buttons color."
    7979msgstr ""
    8080
    81 #: admin/class-hearthis-admin.php:245
     81#: admin/class-hearthis-admin.php:244
    8282msgid "Highlight Waveform Color"
    8383msgstr ""
    8484
    85 #: admin/class-hearthis-admin.php:247
     85#: admin/class-hearthis-admin.php:246
    8686msgid ""
    8787"The highlight color is shown in waveform in the passed time or on hover "
     
    9090msgstr ""
    9191
    92 #: admin/class-hearthis-admin.php:252
     92#: admin/class-hearthis-admin.php:251
    9393msgid "Theme Color (Tracks Only)"
    9494msgstr ""
    9595
    96 #: admin/class-hearthis-admin.php:256
     96#: admin/class-hearthis-admin.php:255
    9797msgid "Light"
    9898msgstr ""
    9999
    100 #: admin/class-hearthis-admin.php:259
     100#: admin/class-hearthis-admin.php:258
    101101msgid "Dark"
    102102msgstr ""
    103103
    104 #: admin/class-hearthis-admin.php:264
     104#: admin/class-hearthis-admin.php:263
    105105msgid "Hide cover image"
    106106msgstr ""
    107107
    108 #: admin/class-hearthis-admin.php:268
     108#: admin/class-hearthis-admin.php:267
    109109msgid "Hide cover, on/off"
    110110msgstr ""
    111111
    112 #: admin/class-hearthis-admin.php:268
     112#: admin/class-hearthis-admin.php:267
    113113msgid "The player will not show the cover image from this tracks."
    114114msgstr ""
    115115
    116 #: admin/class-hearthis-admin.php:272
     116#: admin/class-hearthis-admin.php:271
    117117msgid "Hide waveform"
    118118msgstr ""
    119119
    120 #: admin/class-hearthis-admin.php:277
     120#: admin/class-hearthis-admin.php:276
    121121msgid "Hide waveform, on/off"
    122122msgstr ""
    123123
    124 #: admin/class-hearthis-admin.php:277
     124#: admin/class-hearthis-admin.php:276
    125125msgid "The player will not show the waveform of any track."
    126126msgstr ""
    127127
    128 #: admin/class-hearthis-admin.php:282
     128#: admin/class-hearthis-admin.php:281
    129129msgid "Show background image"
    130130msgstr ""
    131131
     132#: admin/class-hearthis-admin.php:285
     133msgid "Show background image (if it has one)"
     134msgstr ""
     135
    132136#: admin/class-hearthis-admin.php:286
    133 msgid "Show background image (if it has one)"
    134 msgstr ""
    135 
    136 #: admin/class-hearthis-admin.php:287
    137137msgid ""
    138138"The player will show the background image if it has one. This selection "
     
    141141msgstr ""
    142142
    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
    152144msgid "Waveform Style"
    153145msgstr ""
    154146
     147#: admin/class-hearthis-admin.php:294
     148msgid "Waveform Style: Soft"
     149msgstr ""
     150
     151#: admin/class-hearthis-admin.php:296
     152msgid "Waveform Style: Digitized"
     153msgstr ""
     154
    155155#: admin/class-hearthis-admin.php:302
    156 msgid "Waveform Style: Soft"
    157 msgstr ""
    158 
    159 #: admin/class-hearthis-admin.php:304
    160 msgid "Waveform Style: Digitized"
    161 msgstr ""
    162 
    163 #: admin/class-hearthis-admin.php:310
    164156msgid "Block Size"
    165157msgstr ""
    166158
    167 #: admin/class-hearthis-admin.php:317
     159#: admin/class-hearthis-admin.php:309
    168160msgid "Block Space"
    169161msgstr ""
    170162
    171 #: admin/class-hearthis-admin.php:328
     163#: admin/class-hearthis-admin.php:320
    172164msgid "Link to CSS File"
    173165msgstr ""
    174166
    175 #: admin/class-hearthis-admin.php:331
     167#: admin/class-hearthis-admin.php:323
    176168msgid "Url to an external CSS File"
    177169msgstr ""
    178170
    179 #: admin/class-hearthis-admin.php:332
     171#: admin/class-hearthis-admin.php:324
    180172msgid ""
    181173"You can provide a external CSS File with markups to style your individual "
     
    183175msgstr ""
    184176
    185 #: admin/class-hearthis-admin.php:342
     177#: admin/class-hearthis-admin.php:334
    186178msgid "Live Preview"
    187179msgstr ""
    188180
    189 #: admin/class-hearthis-admin.php:345
     181#: admin/class-hearthis-admin.php:337
    190182msgid "Track ID for Preview:"
    191183msgstr ""
    192184
    193 #: admin/class-hearthis-admin.php:346
     185#: admin/class-hearthis-admin.php:338
    194186msgid "Enter track ID"
    195187msgstr ""
    196188
    197 #: admin/class-hearthis-admin.php:347
     189#: admin/class-hearthis-admin.php:339
    198190msgid ""
    199191"Enter a hearthis.at track ID to preview your customizations. You can find "
     
    201193msgstr ""
    202194
    203 #: admin/class-hearthis-admin.php:350
     195#: admin/class-hearthis-admin.php:342
    204196msgid "Light Background"
    205197msgstr ""
    206198
    207 #: admin/class-hearthis-admin.php:356
     199#: admin/class-hearthis-admin.php:348
    208200msgid "Dark Background"
    209201msgstr ""
    210202
    211 #: admin/class-hearthis-admin.php:375
     203#: admin/class-hearthis-admin.php:367
    212204msgid "Settings"
    213205msgstr ""
  • hearthisat/tags/1.0.3/public/class-hearthis-public.php

    r2526062 r3457511  
    7777        'waveform',
    7878        'cover',
    79         'autoplay',
    8079        'css'
    81     ); 
     80    );
    8281
    8382
     
    394393            'background' => get_option('hearthis_background'),
    395394            'waveform' => get_option('hearthis_waveform'),
    396             'autoplay' => get_option('hearthis_autoplay'),
    397395            'cover' => get_option('hearthis_cover'),
    398396            'block_size' => get_option('hearthis_block_size'),
  • hearthisat/tags/1.0.3/readme.txt

    r3457506 r3457511  
    3535*   `background` shows the background if set (values not set, 1 or 0, if is 1 the height is 170px)
    3636*   `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)
    3837*   `cover` hides the cover image if its set (values 0 off, 1 on)
    3938*   `block_size` size of the waveform blocks (number, steps from 1 to 10, default is 2, works only if style is set to 2)
     
    6463    `[hearthis hcolor="0000ff"]https://hearthis.at/crecs/[/hearthis]`
    6564
    66 Embed a user without color params and autoplay.   
    67     `[hearthis hcolor="#ff5c24" color="#33fd11" autoplay="1"]http://hearthis.at/djforce/[/hearthis]`
     65Embed a user without color params.   
     66    `[hearthis hcolor="#ff5c24" color="#33fd11"]http://hearthis.at/djforce/[/hearthis]`
    6867
    6968Embeds 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  
    139139                            <?php
    140140
    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                            );
    160159                                /*
    161160                                echo  'each setting name without prefix<br>';
     
    290289
    291290                        <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">
    299291                            <th scope="row"><?php echo esc_html__( 'Waveform Style', 'hearthis' ); ?></th>
    300292                            <td>
     
    349341
    350342                <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>
    352344                <textarea class="hearthis-preview-code" id="hearthis_preview_light_code" rows="2" readonly onclick="this.focus();this.select()"></textarea>
    353345
     
    355347                    <hr>
    356348                    <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>
    358350                    <textarea class="hearthis-preview-code" id="hearthis_preview_dark_code" rows="2" readonly onclick="this.focus();this.select()"></textarea>
    359351                </div>
  • hearthisat/trunk/admin/js/hearthis-admin.js

    r3457493 r3457511  
    8888
    8989
    90         $("#hearthis_autoplay").change(function () {
    91             if (this.checked) {
    92                 this.value = 1;
    93             } else {
    94                 this.value = 0;
    95             }
    96         });
    9790
    9891        $("#hearthis_cover").change(function () {
     
    129122        }
    130123
    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(" ", "+");
    141133
    142134        var height = 150;
     
    151143        }
    152144
    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;
    155147       
    156148        var src_light = base_url + "transparent/" + query;
     
    160152        $("#hearthis_preview_dark").attr("src", src_dark).attr("height", height);
    161153
    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>';
    164156
    165157        $("#hearthis_preview_light_code").val(code_light);
  • hearthisat/trunk/includes/class-hearthis.php

    r3457493 r3457511  
    7272        'background',
    7373        'waveform',
    74         'autoplay',
    7574        'cover',
    7675        'block_size',
     
    248247    'background_show',
    249248    'waveform_hide',
    250     'autoplay',
    251249    'cover_hide',
    252250    'block_size',
  • hearthisat/trunk/languages/hearthis-de_DE.po

    r3457493 r3457511  
    158158"die Waveform nicht ausblenden."
    159159
    160 #: admin/class-hearthis-admin.php:292
    161 msgid "Start Autoplay"
    162 msgstr "Autoplay starten"
    163 
    164 #: admin/class-hearthis-admin.php:295
    165 msgid "Should the player starts with autoplay after loading?"
    166 msgstr "Soll der Player nach dem Laden mit Autoplay starten?"
    167160
    168161#: admin/class-hearthis-admin.php:299
  • hearthisat/trunk/languages/hearthis-es_ES.po

    r3457493 r3457511  
    157157"ocultar la forma de onda."
    158158
    159 #: admin/class-hearthis-admin.php:292
    160 msgid "Start Autoplay"
    161 msgstr "Iniciar reproducción automática"
    162 
    163 #: admin/class-hearthis-admin.php:295
    164 msgid "Should the player starts with autoplay after loading?"
    165 msgstr "¿Debe el reproductor iniciar con reproducción automática después de cargar?"
    166159
    167160#: admin/class-hearthis-admin.php:299
  • hearthisat/trunk/languages/hearthis-fr_FR.po

    r3457493 r3457511  
    157157"masquer la forme d'onde."
    158158
    159 #: admin/class-hearthis-admin.php:292
    160 msgid "Start Autoplay"
    161 msgstr "Démarrer la lecture automatique"
    162 
    163 #: admin/class-hearthis-admin.php:295
    164 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 ?"
    166159
    167160#: admin/class-hearthis-admin.php:299
  • hearthisat/trunk/languages/hearthis.pot

    r3457493 r3457511  
    99"Project-Id-Version: hearthis.at 1.0.3\n"
    1010"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"
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    4040msgstr ""
    4141
    42 #: admin/class-hearthis-admin.php:222
     42#: admin/class-hearthis-admin.php:221
    4343msgid "Player default width"
    4444msgstr ""
    4545
    46 #: admin/class-hearthis-admin.php:224
     46#: admin/class-hearthis-admin.php:223
    4747msgid ""
    4848"A number below 100 this would be interpreted as percent! If you enter a "
     
    5050msgstr ""
    5151
    52 #: admin/class-hearthis-admin.php:225 admin/class-hearthis-admin.php:235
     52#: admin/class-hearthis-admin.php:224 admin/class-hearthis-admin.php:234
    5353msgid "Leave blank to use the default."
    5454msgstr ""
    5555
    56 #: admin/class-hearthis-admin.php:229
     56#: admin/class-hearthis-admin.php:228
    5757msgid "Player height"
    5858msgstr ""
    5959
     60#: admin/class-hearthis-admin.php:231
     61msgid "This setting is only in pixels. Leave it blank to use the default."
     62msgstr ""
     63
    6064#: 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:233
    6565msgid ""
    6666"This value depends on your track url and could be overwritten. So if your "
     
    7171msgstr ""
    7272
    73 #: admin/class-hearthis-admin.php:239
     73#: admin/class-hearthis-admin.php:238
    7474msgid "Waveform Color"
    7575msgstr ""
    7676
    77 #: admin/class-hearthis-admin.php:241
     77#: admin/class-hearthis-admin.php:240
    7878msgid "Defines the default waveform and buttons color."
    7979msgstr ""
    8080
    81 #: admin/class-hearthis-admin.php:245
     81#: admin/class-hearthis-admin.php:244
    8282msgid "Highlight Waveform Color"
    8383msgstr ""
    8484
    85 #: admin/class-hearthis-admin.php:247
     85#: admin/class-hearthis-admin.php:246
    8686msgid ""
    8787"The highlight color is shown in waveform in the passed time or on hover "
     
    9090msgstr ""
    9191
    92 #: admin/class-hearthis-admin.php:252
     92#: admin/class-hearthis-admin.php:251
    9393msgid "Theme Color (Tracks Only)"
    9494msgstr ""
    9595
    96 #: admin/class-hearthis-admin.php:256
     96#: admin/class-hearthis-admin.php:255
    9797msgid "Light"
    9898msgstr ""
    9999
    100 #: admin/class-hearthis-admin.php:259
     100#: admin/class-hearthis-admin.php:258
    101101msgid "Dark"
    102102msgstr ""
    103103
    104 #: admin/class-hearthis-admin.php:264
     104#: admin/class-hearthis-admin.php:263
    105105msgid "Hide cover image"
    106106msgstr ""
    107107
    108 #: admin/class-hearthis-admin.php:268
     108#: admin/class-hearthis-admin.php:267
    109109msgid "Hide cover, on/off"
    110110msgstr ""
    111111
    112 #: admin/class-hearthis-admin.php:268
     112#: admin/class-hearthis-admin.php:267
    113113msgid "The player will not show the cover image from this tracks."
    114114msgstr ""
    115115
    116 #: admin/class-hearthis-admin.php:272
     116#: admin/class-hearthis-admin.php:271
    117117msgid "Hide waveform"
    118118msgstr ""
    119119
    120 #: admin/class-hearthis-admin.php:277
     120#: admin/class-hearthis-admin.php:276
    121121msgid "Hide waveform, on/off"
    122122msgstr ""
    123123
    124 #: admin/class-hearthis-admin.php:277
     124#: admin/class-hearthis-admin.php:276
    125125msgid "The player will not show the waveform of any track."
    126126msgstr ""
    127127
    128 #: admin/class-hearthis-admin.php:282
     128#: admin/class-hearthis-admin.php:281
    129129msgid "Show background image"
    130130msgstr ""
    131131
     132#: admin/class-hearthis-admin.php:285
     133msgid "Show background image (if it has one)"
     134msgstr ""
     135
    132136#: admin/class-hearthis-admin.php:286
    133 msgid "Show background image (if it has one)"
    134 msgstr ""
    135 
    136 #: admin/class-hearthis-admin.php:287
    137137msgid ""
    138138"The player will show the background image if it has one. This selection "
     
    141141msgstr ""
    142142
    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
    152144msgid "Waveform Style"
    153145msgstr ""
    154146
     147#: admin/class-hearthis-admin.php:294
     148msgid "Waveform Style: Soft"
     149msgstr ""
     150
     151#: admin/class-hearthis-admin.php:296
     152msgid "Waveform Style: Digitized"
     153msgstr ""
     154
    155155#: admin/class-hearthis-admin.php:302
    156 msgid "Waveform Style: Soft"
    157 msgstr ""
    158 
    159 #: admin/class-hearthis-admin.php:304
    160 msgid "Waveform Style: Digitized"
    161 msgstr ""
    162 
    163 #: admin/class-hearthis-admin.php:310
    164156msgid "Block Size"
    165157msgstr ""
    166158
    167 #: admin/class-hearthis-admin.php:317
     159#: admin/class-hearthis-admin.php:309
    168160msgid "Block Space"
    169161msgstr ""
    170162
    171 #: admin/class-hearthis-admin.php:328
     163#: admin/class-hearthis-admin.php:320
    172164msgid "Link to CSS File"
    173165msgstr ""
    174166
    175 #: admin/class-hearthis-admin.php:331
     167#: admin/class-hearthis-admin.php:323
    176168msgid "Url to an external CSS File"
    177169msgstr ""
    178170
    179 #: admin/class-hearthis-admin.php:332
     171#: admin/class-hearthis-admin.php:324
    180172msgid ""
    181173"You can provide a external CSS File with markups to style your individual "
     
    183175msgstr ""
    184176
    185 #: admin/class-hearthis-admin.php:342
     177#: admin/class-hearthis-admin.php:334
    186178msgid "Live Preview"
    187179msgstr ""
    188180
    189 #: admin/class-hearthis-admin.php:345
     181#: admin/class-hearthis-admin.php:337
    190182msgid "Track ID for Preview:"
    191183msgstr ""
    192184
    193 #: admin/class-hearthis-admin.php:346
     185#: admin/class-hearthis-admin.php:338
    194186msgid "Enter track ID"
    195187msgstr ""
    196188
    197 #: admin/class-hearthis-admin.php:347
     189#: admin/class-hearthis-admin.php:339
    198190msgid ""
    199191"Enter a hearthis.at track ID to preview your customizations. You can find "
     
    201193msgstr ""
    202194
    203 #: admin/class-hearthis-admin.php:350
     195#: admin/class-hearthis-admin.php:342
    204196msgid "Light Background"
    205197msgstr ""
    206198
    207 #: admin/class-hearthis-admin.php:356
     199#: admin/class-hearthis-admin.php:348
    208200msgid "Dark Background"
    209201msgstr ""
    210202
    211 #: admin/class-hearthis-admin.php:375
     203#: admin/class-hearthis-admin.php:367
    212204msgid "Settings"
    213205msgstr ""
  • hearthisat/trunk/public/class-hearthis-public.php

    r2526062 r3457511  
    7777        'waveform',
    7878        'cover',
    79         'autoplay',
    8079        'css'
    81     ); 
     80    );
    8281
    8382
     
    394393            'background' => get_option('hearthis_background'),
    395394            'waveform' => get_option('hearthis_waveform'),
    396             'autoplay' => get_option('hearthis_autoplay'),
    397395            'cover' => get_option('hearthis_cover'),
    398396            'block_size' => get_option('hearthis_block_size'),
  • hearthisat/trunk/readme.txt

    r3457506 r3457511  
    3535*   `background` shows the background if set (values not set, 1 or 0, if is 1 the height is 170px)
    3636*   `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)
    3837*   `cover` hides the cover image if its set (values 0 off, 1 on)
    3938*   `block_size` size of the waveform blocks (number, steps from 1 to 10, default is 2, works only if style is set to 2)
     
    6463    `[hearthis hcolor="0000ff"]https://hearthis.at/crecs/[/hearthis]`
    6564
    66 Embed a user without color params and autoplay.   
    67     `[hearthis hcolor="#ff5c24" color="#33fd11" autoplay="1"]http://hearthis.at/djforce/[/hearthis]`
     65Embed a user without color params.   
     66    `[hearthis hcolor="#ff5c24" color="#33fd11"]http://hearthis.at/djforce/[/hearthis]`
    6867
    6968Embeds 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.