HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vm8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: afleverb (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //var/www/drakkar_site_dev/wp-content/plugins/formidable/classes/views/frm-forms/shortcode_opts.php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}

if ( ! empty( $form_id ) ) {
	?>
	<h4 class="frm_left_label"><?php esc_html_e( 'Select a form:', 'formidable' ); ?></h4>
	<?php FrmFormsHelper::forms_dropdown( 'frmsc_' . $shortcode . '_' . $form_id ); ?>
	<div class="frm_box_line"></div>
	<?php
}

if ( ! empty( $opts ) ) {
	?>
	<h4><?php esc_html_e( 'Options', 'formidable' ); ?></h4>
	<ul>
	<?php
	foreach ( $opts as $opt => $val ) {
		if ( isset( $val['type'] ) && 'text' === $val['type'] ) {
			?>
		<li>
			<label class="setting" for="frmsc_<?php echo esc_attr( $shortcode . '_' . $opt ); ?>">
				<span><?php echo esc_html( $val['label'] ); ?></span>
				<input type="text" id="frmsc_<?php echo esc_attr( $shortcode . '_' . $opt ); ?>" value="<?php echo esc_attr( $val['val'] ); ?>" />
			</label>
		</li>
			<?php
		} elseif ( isset( $val['type'] ) && 'select' === $val['type'] ) {
			?>
		<li>
			<label class="setting" for="frmsc_<?php echo esc_attr( $shortcode . '_' . $opt ); ?>">
				<span><?php echo esc_html( $val['label'] ); ?></span>
				<select id="frmsc_<?php echo esc_attr( $shortcode . '_' . $opt ); ?>">
					<?php foreach ( $val['opts'] as $select_opt => $select_label ) { ?>
						<option value="<?php echo esc_attr( $select_opt ); ?>"><?php echo esc_html( $select_label ); ?></option>
					<?php } ?>
				</select>
			</label>
		</li>
			<?php
		} else {
			?>
		<li>
			<label class="setting" for="frmsc_<?php echo esc_attr( $shortcode . '_' . $opt ); ?>">
				<input type="checkbox" id="frmsc_<?php echo esc_attr( $shortcode . '_' . $opt ); ?>" value="<?php echo esc_attr( $val['val'] ); ?>" />
				<?php echo esc_html( $val['label'] ); ?>
			</label>
		</li>
			<?php
		}//end if
	}//end foreach
	?>
	</ul>
	<?php
}//end if