# jc-importer/2.8.3/class/Common/UI/ViewManager.php

Import WP – CSV &amp; XML Import Export for WordPress, version 2.8.3. 36 lines.

- Page: https://pluginprobe.com/plugins/jc-importer/2.8.3/code/class/Common/UI/ViewManager.php
- Raw: https://pluginprobe.com/plugins/jc-importer/2.8.3/raw/class/Common/UI/ViewManager.php
- Modified: 2020-09-22T19:27:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jc-importer/2.8.3/code/class/Common/UI/ViewManager.php#L10-L20`.

```php
<?php

namespace ImportWP\Common\UI;

use ImportWP\Common\Properties\Properties;

class ViewManager
{
    /**
     * @var Properties
     */
    private $properties;

    public function __construct(Properties $properties)
    {
        $this->properties = $properties;
    }

    public function view($name, $args = array())
    {
        extract($args);

        include $this->properties->view_dir . $name . '.php';
    }

    public function plugin_page()
    {
        $this->view('admin');
    }

    public function tool_box()
    {
        $this->view('tools-card');
    }
}

```
