Inpsyde\MultilingualPress\Relations\Post\RelationshipControlView::render_radio_input PHP Method

render_radio_input() private method

Renders the radio input markup according to the given data.
private render_radio_input ( string $label, string $value, integer $remote_site_id ) : void
$label string Label text.
$value string Input value.
$remote_site_id integer Remote site ID.
return void
    private function render_radio_input($label, $value, $remote_site_id)
    {
        $id = "mlp-rc-action-{$remote_site_id}-{$value}";
        ?>
		<p>
			<label for="<?php 
        echo esc_attr($id);
        ?>
">
				<input type="radio" name="mlp_rc_action[<?php 
        echo esc_attr($remote_site_id);
        ?>
]"
					value="<?php 
        echo esc_attr($value);
        ?>
" id="<?php 
        echo esc_attr($id);
        ?>
"
					<?php 
        selected($value, $this->default_action);
        ?>
>
				<?php 
        echo esc_html($label);
        ?>
			</label>
		</p>
		<?php 
    }