Inpsyde\MultilingualPress\Module\Trasher\TrasherSettingView::render PHP Method

render() public method

Renders the setting markup.
Since: 3.0.0
public render ( WP_Post $post ) : void
$post WP_Post Post object.
return void
    public function render(WP_Post $post)
    {
        $id = 'mlp-trasher';
        ?>
		<div class="misc-pub-section misc-pub-mlp-trasher">
			<?php 
        echo \Inpsyde\MultilingualPress\nonce_field($this->nonce);
        ?>
			<label for="<?php 
        echo esc_attr($id);
        ?>
">
				<input type="checkbox" name="<?php 
        echo esc_attr(TrasherSettingRepository::META_KEY);
        ?>
"
					value="1" id="<?php 
        echo esc_attr($id);
        ?>
"
					<?php 
        checked($this->setting_repository->get($post->ID));
        ?>
>
				<?php 
        _e('Send all the translations to trash when this post is trashed.', 'multilingual-press');
        ?>
			</label>
		</div>
		<?php 
    }
TrasherSettingView