[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.221.182.89: ~ $
<?php
/**
 * Author:          Andrei Baicus <andrei@themeisle.com>
 * Created on:      17/08/2018
 *
 * @package Neve\Views
 */

namespace Neve\Views;

/**
 * The base view class.
 *
 * @package Neve\Views
 */
abstract class Base_View {
	/**
	 * Function that is run after instantiation.
	 *
	 * @return void
	 */
	abstract public function init();

	/**
	 * Get view path to include.
	 *
	 * @param string $view_slug the view to be loaded from `views` folder, without extension.
	 * @param array  $vars variables used in template.
	 *
	 * @return void
	 */
	public function get_view( $view_slug, $vars ) {
		if ( empty( $view_slug ) ) {
			return;
		}

		$args = apply_filters( 'neve_filter_view_data_' . $view_slug, $vars );

		$rest_of_path = 'views/' . $view_slug . '.php';

		$path = trailingslashit( get_stylesheet_directory() ) . $rest_of_path;

		if ( is_file( $path ) ) {
			include $path;

			return;
		}

		$path = trailingslashit( get_template_directory() ) . $rest_of_path;

		if ( is_file( $path ) ) {
			include $path;

			return;
		}
	}
}

Filemanager

Name Type Size Permission Actions
inline Folder 0755
layouts Folder 0755
partials Folder 0755
pluggable Folder 0755
base_view.php File 1.03 KB 0644
breadcrumbs.php File 4 KB 0644
content_404.php File 1.11 KB 0644
content_none.php File 1.94 KB 0644
cover_header.php File 2.91 KB 0644
font_manager.php File 8.44 KB 0644
header.php File 7.25 KB 0644
nav_walker.php File 15.38 KB 0644
page_header.php File 4.37 KB 0644
page_layout.php File 637 B 0644
post_layout.php File 6.15 KB 0644
product_layout.php File 5.32 KB 0644
secondary_nav_walker.php File 491 B 0644
template_parts.php File 15.45 KB 0644
top_bar.php File 668 B 0644
tweaks.php File 311 B 0644