Inpsyde\MultilingualPress\Core\Admin\PluginSettingsPage\View::render_module PHP Метод

render_module() приватный Метод

Renders the markup for the given module.
private render_module ( Module $module ) : void
$module Inpsyde\MultilingualPress\Module\Module Module object.
Результат void
    private function render_module(Module $module)
    {
        $is_active = $module->is_active();
        $id = 'multilingualpress-module-' . $module->id();
        ?>
		<tr class="<?php 
        echo esc_attr($is_active ? 'active' : 'inactive');
        ?>
">
			<td class="check-column">
				<input type="checkbox"
					name="<?php 
        echo esc_attr('multilingualpress_modules[' . $module->id() . ']');
        ?>
" value="1"
					id="<?php 
        echo esc_attr($id);
        ?>
"<?php 
        checked($is_active);
        ?>
>
			</td>
			<td>
				<label for="<?php 
        echo esc_attr($id);
        ?>
" class="mlp-block-label">
					<strong><?php 
        echo esc_html($module->name());
        ?>
</strong>
					<?php 
        echo wpautop(esc_html($module->description()));
        ?>
				</label>
			</td>
		</tr>
		<?php 
    }