Changeset 3390689
- Timestamp:
- 11/05/2025 08:20:21 PM (5 months ago)
- Location:
- blocks-for-bandcamp/trunk
- Files:
-
- 16 edited
-
assets/css/css.css (modified) (1 diff)
-
blocks-for-bandcamp.php (modified) (2 diffs)
-
blocks/bandcamp-album/block.json (modified) (1 diff)
-
blocks/bandcamp-album/frontend.css (modified) (2 diffs)
-
blocks/bandcamp-album/render.php (modified) (2 diffs)
-
blocks/bandcamp-embed/block.json (modified) (1 diff)
-
blocks/bandcamp-embed/frontend.css (modified) (1 diff)
-
blocks/bandcamp-form/block.json (modified) (1 diff)
-
blocks/bandcamp-form/frontend.css (modified) (1 diff)
-
blocks/bandcamp-merch/block.json (modified) (1 diff)
-
blocks/bandcamp-merch/frontend.css (modified) (1 diff)
-
blocks/bandcamp-merch/render.php (modified) (1 diff)
-
blocks/bandcamp-miniplayer/block.json (modified) (1 diff)
-
blocks/bandcamp-miniplayer/frontend.css (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
-
src/init.php (modified) (1 diff)
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;} 2 2 .bandcamp-block-message svg {height:2em;width:auto;margin-right:1em;} 3 3 .bandcamp-block-message svg path {fill: #000;} -
blocks-for-bandcamp/trunk/blocks-for-bandcamp.php
r3371340 r3390689 4 4 Plugin URI: https://www.greyforest.digital/plugins/blocks-for-bandcamp 5 5 Description: Gutenberg blocks for Bandcamp with functions for embedding merchandise, featured albums, audio players, and customized download code redemption forms. 6 Author: Greyforest Digital6 Author: Greyforest 7 7 Author URI: https://www.greyforest.digital 8 Version: 1.0. 18 Version: 1.0.2 9 9 Requires at least: 6.0 10 10 Requires PHP: 7.0 … … 21 21 if (!defined('ABSPATH')) { return; } 22 22 23 define('GF_BLOCKS_FOR_BANDCAMP_PLUGIN_VERSION','1.0. 0');23 define('GF_BLOCKS_FOR_BANDCAMP_PLUGIN_VERSION','1.0.2'); 24 24 define('GF_BLOCKS_FOR_BANDCAMP_PLUGIN_URL',plugin_dir_url( __FILE__ )); 25 25 define('GF_BLOCKS_FOR_BANDCAMP_PLUGIN_PATH',dirname( __FILE__ )); -
blocks-for-bandcamp/trunk/blocks/bandcamp-album/block.json
r3368247 r3390689 38 38 "display_playlist": { "type": "boolean", "default": true } 39 39 }, 40 "editorScript": "file:./ editor.js",40 "editorScript": "file:./index.js", 41 41 "style": "file:./frontend.css", 42 42 "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 ] 44 54 } -
blocks-for-bandcamp/trunk/blocks/bandcamp-album/frontend.css
r3371340 r3390689 1 1 /* 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 2 8 .bandcamp-album {position:relative;background-color:#171717;margin:0px auto;color:#fff;} 3 9 .bandcamp-album * {position:relative;padding:0;margin:0;} … … 27 33 28 34 .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;} 31 37 .bandcamp-album .bandcamp-album-titles iframe {margin:1rem 0;display:block;border: 0; width: 100%; height: 42px;} 32 38 .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 17 17 $display_audio = $attributes['display_audio'] ?? true; 18 18 $display_merch = $attributes['display_merch'] ?? true; 19 $display_album_release_date = $attributes['display_album_release_date'] ?? false;20 19 $display_playlist = $attributes['display_playlist'] ?? true; 21 20 $embedType = $attributes['embedType'] ?? 'custom'; … … 108 107 <h3><i><?php echo wp_kses_post($attributes['display_album_title'] ? $data['album_title'] : ''); ?></i></h3> 109 108 <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>111 109 112 110 <?php if ($display_album_link) : ?> -
blocks-for-bandcamp/trunk/blocks/bandcamp-embed/block.json
r3368247 r3390689 23 23 "code": { "type": "string", "default": "" } 24 24 }, 25 "editorScript": "file:./ editor.js",25 "editorScript": "file:./index.js", 26 26 "viewScript": "file:./frontend.js", 27 27 "style": "file:./frontend.css", -
blocks-for-bandcamp/trunk/blocks/bandcamp-embed/frontend.css
r3368247 r3390689 1 1 /* 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 2 8 .bandcamp-embed iframe {margin:0px;width:100%;} -
blocks-for-bandcamp/trunk/blocks/bandcamp-form/block.json
r3368247 r3390689 50 50 "buttonLineHeight": { "type": "number", "default": 1 } 51 51 }, 52 "editorScript": "file:./ editor.js",52 "editorScript": "file:./index.js", 53 53 "style": "file:./frontend.css", 54 54 "render": "file:./render.php" -
blocks-for-bandcamp/trunk/blocks/bandcamp-form/frontend.css
r3368247 r3390689 1 1 /* 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 2 8 .bandcamp-form form {display:flex;gap:10px;} 3 9 .bandcamp-form-layout-stacked form {flex-flow:column wrap;} -
blocks-for-bandcamp/trunk/blocks/bandcamp-merch/block.json
r3368247 r3390689 43 43 "style_purchase_button_textcolor": { "type": "string", "default": "#ffffff" } 44 44 }, 45 "editorScript": "file:./ editor.js",45 "editorScript": "file:./index.js", 46 46 "style": "file:./frontend.css", 47 47 "viewScript": "file:./frontend.js", -
blocks-for-bandcamp/trunk/blocks/bandcamp-merch/frontend.css
r3368247 r3390689 1 1 /* 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 2 8 .bandcamp-merch * {margin:0;padding:0;position:relative;} 3 9 .bandcamp-merch li {list-style:none;} -
blocks-for-bandcamp/trunk/blocks/bandcamp-merch/render.php
r3368247 r3390689 174 174 <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"/> 175 175 </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> 177 185 </div> 178 186 -
blocks-for-bandcamp/trunk/blocks/bandcamp-miniplayer/block.json
r3368247 r3390689 40 40 "display_track_title": { "type": "boolean", "default": true } 41 41 }, 42 "editorScript": "file:./ editor.js",42 "editorScript": "file:./index.js", 43 43 "style": "file:./frontend.css", 44 44 "viewScript": "file:./frontend.js", -
blocks-for-bandcamp/trunk/blocks/bandcamp-miniplayer/frontend.css
r3368247 r3390689 1 1 /* 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 2 8 .bandcamp-miniplayer {position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;aspect-ratio:7/3;} 3 9 .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;} … … 11 17 .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;} 12 18 .bandcamp-miniplayer-albumlink a.album-link div {display:flex;align-items:center;} 13 .bandcamp-miniplayer-albumlink a.album-link path {fill:#000;}14 19 .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;} 16 21 .bandcamp-miniplayer h3, 17 22 .bandcamp-miniplayer h4, -
blocks-for-bandcamp/trunk/readme.txt
r3371340 r3390689 1 1 === Blocks for Bandcamp === 2 2 Plugin URI: https://www.greyforest.digital/plugins/blocks-for-bandcamp 3 Author: Greyforest Digital3 Author: Greyforest 4 4 Author URI: https://www.greyforest.digital 5 5 Contributors: GreyforestDigital … … 8 8 Requires at least: 6.0 9 9 Tested up to: 6.8 10 Stable tag: 1.0. 110 Stable tag: 1.0.2 11 11 Requires PHP: 7.0 12 12 License: GPLv2 or later … … 69 69 == Changelog == 70 70 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 = 72 76 * "Album" playlist JS fix 73 77 * Fixed CSS targeting on frontend -
blocks-for-bandcamp/trunk/src/init.php
r3371340 r3390689 12 12 add_action('wp_enqueue_scripts', [$this,'gf_blocks_for_bandcamp__stylesheets'] ); 13 13 add_action('admin_enqueue_scripts', [$this,'gf_blocks_for_bandcamp__stylesheets'] ); 14 add_action('enqueue_block_editor_assets', [$this,'gf_blocks_for_bandcamp__stylesheets'] ); 14 15 add_filter('block_categories_all', [$this,'gf_blocks_for_bandcamp__custom_block_category'] ); 15 16 add_filter('wp_enqueue_scripts', [$this,'gf_blocks_for_bandcamp__frontend_scripts'] );
Note: See TracChangeset
for help on using the changeset viewer.