Returns active view template name

@return string
7814
protected function _getTplName()
    {
        if (!($sCurrTpl = basename(( string )\OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('tpl')))) {
            // in case template was not defined in request
            $sCurrTpl = \OxidEsales\Eshop\Core\Registry::getConfig()->getActiveView()->getTemplateName();
        }

        return $sCurrTpl;
    }
1103483
public function getMethodTemplate()
    {
        if (!isset($this->methodTemplate)) {
            $this->methodTemplate = $this->_getMethodTemplate();
        }

        return $this->methodTemplate;
    }
1313608
public function getTemplateName()
    {
        if ($this->templateName == null) {
            // The template name should be the second token.
            $this->templateName = $this->tokens[1];
        }

        return $this->templateName;
    }
583060
public static function isHtmlView()
    {
        if (self::$_isHtmlView === NULL) {
            self::$_isHtmlView = false;

            $view = Registry::get('view');
            if ($view === NULL) {
                $template = ViewAbstract::getTemplateConfig();
                if (is_array($template)
                    and isset($template['type'])
                    and $template['type'] === ViewInterface::TYPE_HTML) {
                    self::$_isHtmlView = true;
                }
            } else if ($view instanceof View and $view->getType() == ViewInterface::TYPE_HTML) {
                self::$_isHtmlView = true;
            }
        }

        return self::$_isHtmlView;
    }
177371
public function getTemplate()
    {
        if (empty($this->_template)) {

            if (! AnService::get('application.registry')->offsetExists('application-template')) {
                AnService::get('application.registry')->offsetSet('application-template', $this->_site_settings->template);
            }

            $template = AnService::get('application.registry')->offsetGet('application-template');
            $this->setTemplate(pick($template, 'base'));
        }

        return $this->_template;
    }
215296
function &viewTemplateName()
    {
        $name = 'ezxmltext';
        $contentobjectAttribute = false;
        $suffix = $this->viewTemplateSuffix( $contentobjectAttribute );
        if ( $suffix !== false )
        {
            $name .= '_' . $suffix;
        }
        return $name;
    }
525632
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;
	}
106126
public static function getActiveTheme()
    {
        if (self::$activeThemeCache !== false) {
            return self::$activeThemeCache;
        }

        $theme = static::load(static::getActiveThemeCode());

        if (!File::isDirectory($theme->getPath())) {
            return self::$activeThemeCache = null;
        }

        return self::$activeThemeCache = $theme;
    }
1285047
public function get_static_view_template_name() {
		// @codingStandardsIgnoreStart
		// @todo サニタイズしているのに Detected usage of a non-validated input variable: $_SERVER がでる。バグ？
		$request_uri = sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) );
		// @codingStandardsIgnoreEnd
		$request_uri = $this->_get_relative_path( $request_uri );
		$path        = $this->_remove_http_query( $request_uri );
		$path        = $this->_remove_paged_slug( $path );
		$path        = trim( $path, '/' );

		if ( ! $path ) {
			return Helper\locate_template( (array) Helper\config( 'static' ), 'index' );
		}

		$template_name = Helper\locate_template( (array) Helper\config( 'static' ), $path );
		if ( empty( $template_name ) ) {
			$template_name = Helper\locate_template( (array) Helper\config( 'static' ), $path . '/index' );
		}

		return $template_name;
	}
591287
protected function _getTemplate()
    {
        if (is_null($this->_template)) {
            foreach ($this->_map as $method => $className) {
                if ($this->_sql instanceof $className) {
                    $this->_template = $this->$method();
                    break;
                }
            }
        }
        return $this->_template;
    }
1257446
public function getTemplate() : ?string 
    {
        if ( ! $this->hasTemplate()) {
            $this->setTemplate($this->getDefaultTemplate());
        }
        return $this->template;
    }
712641
public static function getActiveTheme() {
        if (static::$_activeTheme === null) {
            foreach (static::getThemes() as $index => $theme) {
                if ($theme['active']) {
                    return static::$_activeTheme = [$index => $theme];
                }
            }
            return false;
        }
    	return static::$_activeTheme;
    }
1067528
public function getRenderedTemplate() {
        $template = PO_PATH_TEMPLATES . DS . $this->_template['folder'] . DS . $this->_template['name'] . '.phtml';
        $layout = $this->_layout ? PO_PATH_TEMPLATES . DS . 'layout' . DS . $this->_layout . '.phtml' : NULL;
        
        return $this->render($template, $layout);
    }
636706
private function view()
    {
        if (isset(static::$view)) {
            return static::$view;
        }

        $classNamespace = $this->getModuleName();
        $className = $this->getComponentName();

        return "{$classNamespace}::blocks.{$className}";
    }
158224
public function listTemplateNames()
    {
        $this->setUpTemplate();
        $ret = array();
        foreach ($this->templates as $key => $val) {
            $ret[] = $key;
        }
        return $ret;
    }
532183
public function _getTemplateId()
    {
        return isset($this->templateId) ? $this->templateId : $this->templateId =
            $this->smarty->_getTemplateId($this->template_resource, $this->cache_id, $this->compile_id);
    }
270627
public function defaultTemplate()
    {
        if (isset($_GET['cut_page'])) {
            return array('page');
        }

        $page_name = 'page/'.strtolower($this->short_name);
        // See if we can locate the page
        try {
            $p = $this->app->locate('template', $page_name.'.html');
        } catch (Exception_PathFinder $e) {
            return array('page');
        }

        return array($page_name, '_top');
    }