HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/wp-recipe-maker/templates/settings/group-media.php
<?php
$media = array(
	'id' => 'media',
	'icon' => 'painting',
	'name' => __( 'Media', 'wp-recipe-maker' ),
	'subGroups' => array(
		array(
			'name' => __( 'Instruction Media Toggle', 'wp-recipe-maker' ),
			'description' => __( 'Allow visitors to show/hide instruction images and videos with a toggle.', 'wp-recipe-maker' ),
			'documentation' => 'https://help.bootstrapped.ventures/article/261-instruction-media-toggle',
			'settings' => array(
				array(
					'id' => 'instruction_media_toggle_default',
					'name' => __( 'Starting State', 'wp-recipe-maker' ),
					'description' => __( 'State of the instruction media toggle when the page loads.', 'wp-recipe-maker' ),
					'type' => 'dropdown',
					'options' => array(
						'on' => __( 'Show instruction media', 'wp-recipe-maker' ),
						'off' => __( 'Hide instruction media', 'wp-recipe-maker' ),
					),
					'default' => 'on',
				),
			),
		),
		array(
			'name' => __( 'Lightbox', 'wp-recipe-maker' ),
			'description' => __( 'Use a lightbox plugin and enable clickable images to have your recipe and/or instruction images open in a lightbox after clicking on them.', 'wp-recipe-maker' ),
			'documentation' => 'https://help.bootstrapped.ventures/article/176-clickable-images-for-lightbox-integration',
			'settings' => array(
				array(
					'id' => 'recipe_image_clickable',
					'name' => __( 'Clickable Recipe Image', 'wp-recipe-maker' ),
					'type' => 'toggle',
					'default' => false,
				),
				array(
					'id' => 'instruction_image_clickable',
					'name' => __( 'Clickable Instruction Images', 'wp-recipe-maker' ),
					'type' => 'toggle',
					'default' => false,
				),
				array(
					'id' => 'clickable_image_size',
					'name' => __( 'Clickable Images Size', 'wp-recipe-maker' ),
					'description' => __( 'Image size to link to for the clickable images.', 'wp-recipe-maker' ) . ' ' . __( 'Type the name of a thumbnail size or the exact size you want.', 'wp-recipe-maker' ) . ' ' . __( 'For example:', 'wp-recipe-maker' ) . ' full or 1000x1000',
					'type' => 'text',
					'default' => 'full',
				),
			),
		),
		array(
			'name' => __( 'Video', 'wp-recipe-maker' ),
			'settings' => array(
				array(
					'id' => 'video_force_ratio',
					'name' => __( 'Force video ratio', 'wp-recipe-maker' ),
					'description' => __( 'Enable if your embedded videos are not responsive or seem to be using the wrong ratio. Some themes already have this functionality.', 'wp-recipe-maker' ),
					'type' => 'toggle',
					'default' => false,
				),
				array(
					'id' => 'video_autoplay',
					'name' => __( 'Autoplay Video', 'wp-recipe-maker' ),
					'description' => __( 'Set the autoplay option for uploaded (not embedded) videos.', 'wp-recipe-maker' ),
					'type' => 'dropdown',
					'options' => array(
						'none' => __( 'No recipe videos', 'wp-recipe-maker' ),
						'main' => __( 'The main recipe video', 'wp-recipe-maker' ),
						'instruction' => __( 'The instruction videos', 'wp-recipe-maker' ),
						'all' => __( 'All recipe videos', 'wp-recipe-maker' ),
					),
					'default' => 'none',
				),
				array(
					'id' => 'video_loop',
					'name' => __( 'Loop Video', 'wp-recipe-maker' ),
					'description' => __( 'Set the loop option for uploaded (not embedded) videos.', 'wp-recipe-maker' ),
					'type' => 'dropdown',
					'options' => array(
						'none' => __( 'No recipe videos', 'wp-recipe-maker' ),
						'main' => __( 'The main recipe video', 'wp-recipe-maker' ),
						'instruction' => __( 'The instruction videos', 'wp-recipe-maker' ),
						'all' => __( 'All recipe videos', 'wp-recipe-maker' ),
					),
					'default' => 'none',
				),
			),
		),
	),
);