Inpsyde\MultilingualPress\Module\Module::description PHP Method

description() public method

Returns the description of the module.
Since: 3.0.0
public description ( ) : string
return string The description of the module.
    public function description()
    {
        return $this->description;
    }

Usage Example

Beispiel #1
0
    /**
     * Renders the markup for the given module.
     *
     * @param Module $module Module object.
     *
     * @return 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 
    }