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-private-notes.php
<?php
/**
 * Template for the plugin settings structure.
 *
 * @link       https://bootstrapped.ventures
 * @since      8.0.0
 *
 * @package    WP_Recipe_Maker
 * @subpackage WP_Recipe_Maker/templates/settings
 */

$private_notes = array(
	'id' => 'privateNotes',
	'icon' => 'edit',
	'name' => __( 'Private Notes', 'wp-recipe-maker' ),
	'description' => __( 'Allow visitors to add their own private notes to your recipes.', 'wp-recipe-maker' ),
	'required' => 'premium',
	'settings' => array(
		array(
			'id' => 'private_notes_access',
			'name' => __( 'Access to Private Notes', 'wp-recipe-maker' ),
			'description' => __( "When a visitor is not logged in the data is stored in their own browser's local storage. For users it gets stored in the database.", 'wp-recipe-maker' ),
			'type' => 'dropdown',
			'options' => array(
				'everyone' => __( 'Everyone', 'wp-recipe-maker' ),
				'logged_in' => __( 'Logged In Users', 'wp-recipe-maker' ),
			),
			'default' => 'everyone',
		),
		array(
			'id' => 'private_notes_not_logged_in',
			'name' => __( 'When not logged in', 'wp-recipe-maker' ),
			'description' => __( 'What to do with the "Private Notes" section when the visitor is not logged in.', 'wp-recipe-maker' ),
			'type' => 'dropdown',
			'options' => array(
				'hide' => __( 'Hide the section', 'wp-recipe-maker' ),
				'message' => __( 'Show a custom message', 'wp-recipe-maker' ),
			),
			'default' => 'hide',
			'dependency' => array(
				'id' => 'private_notes_access',
				'value' => 'logged_in',
			),
		),
		array(
			'id' => 'private_notes_not_logged_in_message',
			'name' => __( 'Message to show', 'wp-recipe-maker' ),
			'description' => __( 'Message to show when the visitor is not logged in.', 'wp-recipe-maker' ),
			'type' => 'richTextarea',
			'default' => '',
			'dependency' => array(
				array(
					'id' => 'private_notes_access',
					'value' => 'logged_in',
				),
				array(
					'id' => 'private_notes_not_logged_in',
					'value' => 'message',
				),
			),
		),
	),
);