Plugin Directory

Changeset 3390689


Ignore:
Timestamp:
11/05/2025 08:20:21 PM (5 months ago)
Author:
greyforestdigital
Message:

Update to version 1.0.2

Location:
blocks-for-bandcamp/trunk
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • blocks-for-bandcamp/trunk/assets/css/css.css

    r3368247 r3390689  
    1 .bandcamp-block-message {color:#000;height:auto;padding:2rem 1rem;width:100%;border:1px solid #ccc;display:flex;align-items:center;justify-content:center;}
     1.bandcamp-block-message {color:#000;height:auto;padding:2rem 1rem;width:auto;border:1px solid #ccc;display:flex;align-items:center;justify-content:center;}
    22.bandcamp-block-message svg {height:2em;width:auto;margin-right:1em;}
    33.bandcamp-block-message svg path {fill: #000;}
  • blocks-for-bandcamp/trunk/blocks-for-bandcamp.php

    r3371340 r3390689  
    44Plugin URI: https://www.greyforest.digital/plugins/blocks-for-bandcamp
    55Description: Gutenberg blocks for Bandcamp with functions for embedding merchandise, featured albums, audio players, and customized download code redemption forms.
    6 Author: GreyforestDigital
     6Author: Greyforest
    77Author URI: https://www.greyforest.digital
    8 Version: 1.0.1
     8Version: 1.0.2
    99Requires at least: 6.0
    1010Requires PHP: 7.0
     
    2121if (!defined('ABSPATH')) { return; }
    2222
    23 define('GF_BLOCKS_FOR_BANDCAMP_PLUGIN_VERSION','1.0.0');
     23define('GF_BLOCKS_FOR_BANDCAMP_PLUGIN_VERSION','1.0.2');
    2424define('GF_BLOCKS_FOR_BANDCAMP_PLUGIN_URL',plugin_dir_url( __FILE__ ));
    2525define('GF_BLOCKS_FOR_BANDCAMP_PLUGIN_PATH',dirname( __FILE__ ));
  • blocks-for-bandcamp/trunk/blocks/bandcamp-album/block.json

    r3368247 r3390689  
    3838        "display_playlist": { "type": "boolean", "default": true }
    3939     },
    40     "editorScript": "file:./editor.js",
     40    "editorScript": "file:./index.js",
    4141    "style": "file:./frontend.css",
    4242    "viewScript": "file:./frontend.js",
    43     "render": "file:./render.php"
     43    "render": "file:./render.php",
     44    "dependencies": [
     45        "wp-blocks",
     46        "wp-element",
     47        "wp-components",
     48        "wp-block-editor",
     49        "wp-data",
     50        "wp-api-fetch",
     51        "wp-server-side-render",
     52        "wp-i18n"
     53    ]
    4454}
  • blocks-for-bandcamp/trunk/blocks/bandcamp-album/frontend.css

    r3371340 r3390689  
    11/* BLOCK */
     2.bandcamp-block-message {color:#000;height:auto;padding:2rem 1rem;width:100%;border:1px solid #ccc;display:flex;align-items:center;justify-content:center;}
     3.bandcamp-block-message svg {height:2em;width:auto;margin-right:1em;}
     4.bandcamp-block-message svg path {fill: #000;}
     5.bandcamp-block-message.bandcamp-block-error {border-color:red;color:red;}
     6.bandcamp-block-message.bandcamp-block-error svg path {fill:red;}
     7
    28.bandcamp-album {position:relative;background-color:#171717;margin:0px auto;color:#fff;}
    39.bandcamp-album * {position:relative;padding:0;margin:0;}
     
    2733
    2834.bandcamp-album .bandcamp-album-titles {display:flex;align-items:center;flex-flow:wrap row;}
    29 .bandcamp-album .bandcamp-album-titles h3 {text-align:left;margin:0;padding:0;}
    30 .bandcamp-album .bandcamp-album-titles h4 {text-align:left;margin:0;padding:0;}
     35.bandcamp-album .bandcamp-album-titles h3 {text-align:left;margin:0;padding:5px 0;}
     36.bandcamp-album .bandcamp-album-titles h4 {text-align:left;margin:0;padding:5px 0;}
    3137.bandcamp-album .bandcamp-album-titles iframe {margin:1rem 0;display:block;border: 0; width: 100%; height: 42px;}
    3238.bandcamp-album .bandcamp-album-titles p {text-align:left;margin:0;padding:.5rem 0;}
  • blocks-for-bandcamp/trunk/blocks/bandcamp-album/render.php

    r3371340 r3390689  
    1717$display_audio = $attributes['display_audio'] ?? true;
    1818$display_merch = $attributes['display_merch'] ?? true;
    19 $display_album_release_date = $attributes['display_album_release_date'] ?? false;
    2019$display_playlist = $attributes['display_playlist'] ?? true;
    2120$embedType = $attributes['embedType'] ?? 'custom';
     
    108107                        <h3><i><?php echo wp_kses_post($attributes['display_album_title'] ? $data['album_title'] : ''); ?></i></h3>
    109108                        <h4><?php echo wp_kses_post($attributes['display_album_artist'] ? $data['artist'] : ''); ?></h4>
    110                         <p><?php echo wp_kses_post($attributes['display_album_release_date'] ? 'Released: '.gmdate('F d, Y',strtotime($data['album_release_date'])) : ''); ?></p>
    111109                       
    112110                        <?php if ($display_album_link) : ?>
  • blocks-for-bandcamp/trunk/blocks/bandcamp-embed/block.json

    r3368247 r3390689  
    2323        "code": { "type": "string", "default": "" }
    2424     },
    25     "editorScript": "file:./editor.js",
     25    "editorScript": "file:./index.js",
    2626    "viewScript": "file:./frontend.js",
    2727    "style": "file:./frontend.css",
  • blocks-for-bandcamp/trunk/blocks/bandcamp-embed/frontend.css

    r3368247 r3390689  
    11/* BLOCK */
     2.bandcamp-block-message {color:#000;height:auto;padding:2rem 1rem;width:auto;border:1px solid #ccc;display:flex;align-items:center;justify-content:center;}
     3.bandcamp-block-message svg {height:2em;width:auto;margin-right:1em;}
     4.bandcamp-block-message svg path {fill: #000;}
     5.bandcamp-block-message.bandcamp-block-error {border-color:red;color:red;}
     6.bandcamp-block-message.bandcamp-block-error svg path {fill:red;}
     7
    28.bandcamp-embed iframe {margin:0px;width:100%;}
  • blocks-for-bandcamp/trunk/blocks/bandcamp-form/block.json

    r3368247 r3390689  
    5050        "buttonLineHeight":         { "type": "number",  "default": 1 }
    5151    },
    52     "editorScript": "file:./editor.js",
     52    "editorScript": "file:./index.js",
    5353    "style": "file:./frontend.css",
    5454    "render": "file:./render.php"
  • blocks-for-bandcamp/trunk/blocks/bandcamp-form/frontend.css

    r3368247 r3390689  
    11/* BLOCK */
     2.bandcamp-block-message {color:#000;height:auto;padding:2rem 1rem;width:auto;border:1px solid #ccc;display:flex;align-items:center;justify-content:center;}
     3.bandcamp-block-message svg {height:2em;width:auto;margin-right:1em;}
     4.bandcamp-block-message svg path {fill: #000;}
     5.bandcamp-block-message.bandcamp-block-error {border-color:red;color:red;}
     6.bandcamp-block-message.bandcamp-block-error svg path {fill:red;}
     7
    28.bandcamp-form form {display:flex;gap:10px;}
    39.bandcamp-form-layout-stacked form {flex-flow:column wrap;}
  • blocks-for-bandcamp/trunk/blocks/bandcamp-merch/block.json

    r3368247 r3390689  
    4343        "style_purchase_button_textcolor": { "type": "string", "default": "#ffffff" }
    4444     },
    45     "editorScript": "file:./editor.js",
     45    "editorScript": "file:./index.js",
    4646    "style": "file:./frontend.css",
    4747    "viewScript": "file:./frontend.js",
  • blocks-for-bandcamp/trunk/blocks/bandcamp-merch/frontend.css

    r3368247 r3390689  
    11/* GLOBAL */
     2.bandcamp-block-message {color:#000;height:auto;padding:2rem 1rem;width:auto;border:1px solid #ccc;display:flex;align-items:center;justify-content:center;}
     3.bandcamp-block-message svg {height:2em;width:auto;margin-right:1em;}
     4.bandcamp-block-message svg path {fill: #000;}
     5.bandcamp-block-message.bandcamp-block-error {border-color:red;color:red;}
     6.bandcamp-block-message.bandcamp-block-error svg path {fill:red;}
     7
    28.bandcamp-merch * {margin:0;padding:0;position:relative;}
    39.bandcamp-merch li {list-style:none;}
  • blocks-for-bandcamp/trunk/blocks/bandcamp-merch/render.php

    r3368247 r3390689  
    174174                    <path d="M10.1,8.9l-3.3,6h7l3.3-6H10.1z M21.6,11.9c0-5.3-4.3-9.6-9.6-9.6s-9.6,4.3-9.6,9.6s4.3,9.6,9.6,9.6   S21.6,17.2,21.6,11.9z M12,20.9c-5,0-9-4-9-9s4-9,9-9s9,4,9,9S17,20.9,12,20.9z"/>
    175175                </svg>
    176                 <span><?php echo esc_html__( 'NO MERCH ITEMS FOR THIS ALBUM/ACCOUNT', 'blocks-for-bandcamp' ); ?></span>
     176                <span>
     177                    <?php
     178                    if ($single_or_all == 'all') :
     179                        echo esc_html__( 'NO MERCH ITEMS FOR THIS ACCOUNT', 'blocks-for-bandcamp' );
     180                    else :
     181                        echo esc_html__( 'NO MERCH ITEMS FOR THIS ALBUM', 'blocks-for-bandcamp' );
     182                    endif;
     183                    ?>
     184                </span>
    177185            </div>
    178186
  • blocks-for-bandcamp/trunk/blocks/bandcamp-miniplayer/block.json

    r3368247 r3390689  
    4040        "display_track_title": { "type": "boolean", "default": true }
    4141     },
    42     "editorScript": "file:./editor.js",
     42    "editorScript": "file:./index.js",
    4343    "style": "file:./frontend.css",
    4444    "viewScript": "file:./frontend.js",
  • blocks-for-bandcamp/trunk/blocks/bandcamp-miniplayer/frontend.css

    r3368247 r3390689  
    11/* BLOCK */
     2.bandcamp-block-message {color:#000;height:auto;padding:2rem 1rem;width:auto;border:1px solid #ccc;display:flex;align-items:center;justify-content:center;}
     3.bandcamp-block-message svg {height:2em;width:auto;margin-right:1em;}
     4.bandcamp-block-message svg path {fill: #000;}
     5.bandcamp-block-message.bandcamp-block-error {border-color:red;color:red;}
     6.bandcamp-block-message.bandcamp-block-error svg path {fill:red;}
     7
    28.bandcamp-miniplayer {position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;aspect-ratio:7/3;}
    39.bandcamp-miniplayer-play {cursor:pointer;position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;display:flex;align-items:center;justify-content:center;opacity:1;}
     
    1117.bandcamp-miniplayer-albumlink a.album-link {background:#fff;color:#000 !important;display:inline-block;width:auto;align-items:center;text-decoration:none;font-size:.7em;padding:5px 8px;border-radius:2px;margin:0;}
    1218.bandcamp-miniplayer-albumlink a.album-link div {display:flex;align-items:center;}
    13 .bandcamp-miniplayer-albumlink a.album-link path {fill:#000;}
    1419.bandcamp-miniplayer-albumlink a.album-link svg {height:1.2em;width:auto;margin:0 .1em 0 .4em;display:inline-block;}
    15 .bandcamp-miniplayer-albumlink a path {fill:#fff;}
     20.bandcamp-miniplayer-albumlink a.album-link svg path {fill:#000 !important;}
    1621.bandcamp-miniplayer h3,
    1722.bandcamp-miniplayer h4,
  • blocks-for-bandcamp/trunk/readme.txt

    r3371340 r3390689  
    11=== Blocks for Bandcamp ===
    22Plugin URI: https://www.greyforest.digital/plugins/blocks-for-bandcamp
    3 Author: Greyforest Digital
     3Author: Greyforest
    44Author URI: https://www.greyforest.digital
    55Contributors: GreyforestDigital
     
    88Requires at least: 6.0
    99Tested up to: 6.8
    10 Stable tag: 1.0.1
     10Stable tag: 1.0.2
    1111Requires PHP: 7.0
    1212License: GPLv2 or later
     
    6969== Changelog ==
    7070
    71 = 1.0.1 -> Ocotber 1st, 2025 =
     71= 1.0.2 -> November 5th, 2025 =
     72* Fixed Gutenberg component dependencies error
     73* Block Error CSS enqueuing fix
     74
     75= 1.0.1 -> October 1st, 2025 =
    7276* "Album" playlist JS fix
    7377* Fixed CSS targeting on frontend
  • blocks-for-bandcamp/trunk/src/init.php

    r3371340 r3390689  
    1212        add_action('wp_enqueue_scripts',            [$this,'gf_blocks_for_bandcamp__stylesheets'] );
    1313        add_action('admin_enqueue_scripts',         [$this,'gf_blocks_for_bandcamp__stylesheets'] );
     14        add_action('enqueue_block_editor_assets',   [$this,'gf_blocks_for_bandcamp__stylesheets'] );
    1415        add_filter('block_categories_all',          [$this,'gf_blocks_for_bandcamp__custom_block_category'] );
    1516        add_filter('wp_enqueue_scripts',            [$this,'gf_blocks_for_bandcamp__frontend_scripts'] );
Note: See TracChangeset for help on using the changeset viewer.