Inpsyde\MultilingualPress\Module\CustomPostTypeSupport\CustomPostTypeSupportSettingsBox::render_table_row PHP Method

render_table_row() private method

private render_table_row ( $post_type, $slug, array $settings )
$post_type Post type object.
$slug Post type slug.
$settings array Post type settings.
    private function render_table_row($post_type, $slug, array $settings)
    {
        $name = PostTypeSupportSettingsUpdater::SETTINGS_NAME;
        $id = "mlp-cpt-{$slug}";
        $setting = empty($settings[$slug]) ? 0 : (int) $settings[$slug];
        ?>
		<tr>
			<td>
				<label for="<?php 
        echo esc_attr($id);
        ?>
" class="mlp-block-label">
					<?php 
        $this->render_checkbox("{$name}[{$slug}]", $id, PostTypeRepository::CPT_INACTIVE !== $setting);
        ?>
					<?php 
        echo esc_html($post_type->labels->name);
        ?>
				</label>
			</td>
			<td>
				<label for="<?php 
        echo esc_attr($id);
        ?>
|links" class="mlp-block-label">
					<?php 
        $this->render_checkbox("{$name}[{$slug}|links]", "{$id}|links", PostTypeRepository::CPT_QUERY_BASED === $setting);
        ?>
					<?php 
        esc_html_e('Use dynamic permalinks', 'multilingual-press');
        ?>
				</label>
			</td>
		</tr>
		<?php 
    }