Skip to content

Commit

Permalink
Merge pull request #11 from moderntribe/s7/MOOSE-112/allow-embed-capt…
Browse files Browse the repository at this point in the history
…ions

[MOOSE-112] Wrapper Element
  • Loading branch information
GeoffDusome authored Jun 13, 2024
2 parents bd367bf + e091077 commit 56cbb7c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion assets/css/style.pcss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import "variables.pcss";

.tribe-embed {
.tribe-embed__inner {
position: relative;
}

Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tribe-embed",
"version": "1.0.2",
"version": "1.0.3",
"description": "Tribe Embed",
"author": "Modern Tribe <[email protected]>",
"license": "GPL-2.0-or-later",
Expand Down
4 changes: 3 additions & 1 deletion src/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

final class Core {

public const VERSION = '1.0.2';
public const VERSION = '1.0.3';
public const PLUGIN_NAME = 'tribe-embed';

private static self $instance;
Expand Down Expand Up @@ -232,6 +232,7 @@ public function open_markup_figure_element( array $block, string $video_id, arra
?>
<figure class="<?php echo esc_attr( implode( ' ', $wrapper_classes ) ); ?>"
data-id="<?php echo esc_attr( $video_id ); ?>">
<div class="tribe-embed__inner">
<?php
}

Expand Down Expand Up @@ -286,6 +287,7 @@ class="tribe-embed__thumbnail" alt="" src="<?php echo $max_res_image['url']; ?>"
public function close_markup_figure_element( array $block, string $video_id, array $thumbnail_data, array $wrapper_classes ): void {

?>
</div>
</figure>
<?php
}
Expand Down
2 changes: 1 addition & 1 deletion tribe-embed.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: Tribe Embed
* Plugin URI: https://github.com/moderntribe/tribe-embed
* Description: A Tribe Embed Plugin.
* Version: 1.0.2
* Version: 1.0.3
* Requires at least: 6.3
* Requires PHP: 8.0
* Author: Modern Tribe
Expand Down

0 comments on commit 56cbb7c

Please sign in to comment.