# responsive-menu/3.0.6/src/app/View/FrontView.php

Responsive Menu – Create Mobile-Friendly Menu, version 3.0.6. 25 lines.

- Page: https://pluginprobe.com/plugins/responsive-menu/3.0.6/code/src/app/View/FrontView.php
- Raw: https://pluginprobe.com/plugins/responsive-menu/3.0.6/raw/src/app/View/FrontView.php
- Modified: 2016-06-21T17:18:08+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/responsive-menu/3.0.6/code/src/app/View/FrontView.php#L10-L20`.

```php
<?php

namespace ResponsiveMenu\View;

class FrontView implements View
{

	public function render($location, $l = [])
	{
    add_action('wp_footer', function() use ($location, $l) {
      include dirname(dirname(dirname(__FILE__))) . '/views/' . $location . '.phtml';
    });
	}

	public function make($location, $l = [])
	{
    ob_start();
      include dirname(dirname(dirname(__FILE__))) . '/views/' . $location . '.phtml';
      $output = ob_get_contents();
    ob_end_clean();
    return $output;
	}

}

```
