protected function _get_args_for_template_part() {
		$view  = [
			'slug' => '',
			'name' => '',
		];

		$template_name = Helper\locate_template( (array) Helper\config( 'view' ), $this->view, $this->view_suffix );
		if ( empty( $template_name ) ) {
			return $view;
		}

		if ( ! $this->view_suffix ) {
			$view  = [
				'slug' => $template_name,
				'name' => '',
			];
		} else {
			$view  = [
				'slug' => preg_replace( '|\-' . preg_quote( $this->view_suffix ) . '$|', '', $template_name ),
				'name' => $this->view_suffix,
			];
		}

		if ( is_404() || is_search() ) {
			return $view;
		}

		$static_template_name = $this->get_static_view_template_name();
		if ( locate_template( $static_template_name . '.php', false ) ) {
			return [
				'slug' => $static_template_name,
				'name' => '',
			];
		}

		return $view;
	}
protected function _get_args_for_template_part() {
		$view  = [
			'slug' => '',
			'name' => '',
		];

		$template_name = Helper\locate_template( (array) Helper\config( 'view' ), $this->view, $this->view_suffix );
		if ( empty( $template_name ) ) {
			return $view;
		}

		if ( ! $this->view_suffix ) {
			$view  = [
				'slug' => $template_name,
				'name' => '',
			];
		} else {
			$view  = [
				'slug' => preg_replace( '|\-' . preg_quote( $this->view_suffix ) . '$|', '', $template_name ),
				'name' => $this->view_suffix,
			];
		}

		if ( is_404() || is_search() ) {
			return $view;
		}

		$static_template_name = $this->get_static_view_template_name();
		if ( locate_template( $static_template_name . '.php', false ) ) {
			return [
				'slug' => $static_template_name,
				'name' => '',
			];
		}

		return $view;
	}
protected function _get_args_for_template_part ( ) { $ view = [ 'slug' => '' , 'name' => '' , ] ; $ template_name = Helper \ locate_template ( ( array ) Helper \ config ( 'view' ) , $ this -> view , $ this -> view_suffix ) ; if ( empty ( $ template_name ) ) { return $ view ; } if ( ! $ this -> view_suffix ) { $ view = [ 'slug' => $ template_name , 'name' => '' , ] ; } else { $ view = [ 'slug' => preg_replace ( '|\-' . preg_quote ( $ this -> view_suffix ) . '$|' , '' , $ template_name ) , 'name' => $ this -> view_suffix , ] ; } if ( is_404 ( ) || is_search ( ) ) { return $ view ; } $ static_template_name = $ this -> get_static_view_template_name ( ) ; if ( locate_template ( $ static_template_name . '.php' , false ) ) { return [ 'slug' => $ static_template_name , 'name' => '' , ] ; } return $ view ; }
Gets the view args

@return array
Gets the view args