Skip to content

Commit

Permalink
Change block sizes to 'small'
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhiltri committed Jul 12, 2024
1 parent dc0f9cc commit 3a955dc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions app/Console/Commands/MigrateOSCIPublicationOne.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ class MigrateOSCIPublicationOne extends Command

/**
* mediaFactory
*
* Fetches asset for this figure layer and registers it as Media,
*
* Fetches asset for this figure layer and registers it as Media,
* applying caption and using OSCI's fallback URL
*
*
* @param imageData - JSON of image data for this layer
* @param caption_html - HTML of caption data
* @param fallback_url - Fallback image to use for this layer
*
*
*/
private function mediaFactory($imageData, $caption_html, $fallback_url)
{
Expand Down Expand Up @@ -97,7 +97,7 @@ private function configureFigBlock($figure, $block)
case $figure->figure_type === 'html_figure' && !isset($figure->html_content_src):
$block->type = 'media_embed';
$block->content = [
"size" => "m",
"size" => "s",
"embed_type" => "html",
"embed_code" => $figure->html_content,
"embed_height" => "400px",
Expand All @@ -113,7 +113,7 @@ private function configureFigBlock($figure, $block)
$block->type = 'video';

$block->content = [
"size" => "m",
"size" => "s",
"media_type" => "youtube",
"url" => $figure->html_content_src
];
Expand All @@ -127,7 +127,7 @@ private function configureFigBlock($figure, $block)
$block->content = [
"is_modal" => false,
"is_zoomable" => false,
"size" => "m",
"size" => "s",
"use_contain" => true,
"use_alt_background" => true,
"image_link" => null,
Expand Down Expand Up @@ -160,7 +160,7 @@ private function configureFigBlock($figure, $block)
$block->type = 'layered_image_viewer';
$block->editor_name = 'default';
$block->content = [
"size" => "m",
"size" => "s",
"caption" => $figure->caption_html,
];

Expand Down Expand Up @@ -232,7 +232,7 @@ private function configureFigBlock($figure, $block)
$block->content = [
"is_modal" => false,
"is_zoomable" => false,
"size" => "m",
"size" => "s",
"use_contain" => true,
"use_alt_background" => true,
"image_link" => null,
Expand Down Expand Up @@ -266,7 +266,7 @@ private function configureFigBlock($figure, $block)
case '360_slider':
$block->type = '360_embed';
$block->content = [
"size" => "m",
"size" => "s",
"caption" => $figure->caption_html
];

Expand Down

0 comments on commit 3a955dc

Please sign in to comment.