Answers the default style ID for the HTML template.

@return string
190746
public function getDefaultStyleID()
    {
        $ids = [$this->getTitleID()];
        
        $parent = $this->getParent();
        
        while ($parent instanceof Component) {
            $ids[]  = $parent->getTitleID();
            $parent = $parent->getParent();
        }
        
        return implode('_', array_reverse($ids));
    }
602531
public function getTemplateCompileId()
    {
        $shopId = \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId();
        $templateDirectories = $this->getTemplateDirs();

        return md5(reset($templateDirectories) . '__' . $shopId);
    }
872166
public function getStyle()
    {
        $style = '';

        // Always add fixed height as a fallback if autosetting or JS fails.
        $height = $this->FixedHeight;
        if (!$height) {
            $height = 800;
        }
        $style .= "height: {$height}px; ";

        if ($this->AutoWidth) {
            $style .= "width: 100%; ";
        } elseif ($this->FixedWidth) {
            $style .= "width: {$this->FixedWidth}px; ";
        }

        return $style;
    }
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');
    }
555061
public function getViewId()
    {
        if (!isset($this->_sViewId)) {
            $this->_sViewId = parent::getViewId() . '|' . \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('oxcid');
        }

        return $this->_sViewId;
    }
893757
public function id() {
		$id = $this->slug;
		if ( ! empty( $this->parent ) ) {
			$id = $this->parent->id() . '-' . $this->slug;
		}

		return $id;
	}
381421
public function getDefaultTemplate() {
        if ($this->_defaultTemplate) return $this->_defaultTemplate;
 
		if ($this->template) {
			$path_parts = pathinfo($this->template);
			if ($path_parts['extension'] == 'php') {
				$app = Application::getInstance();
				if (file_exists( $app->getTemplatePath($this->template))) {
					$this->_defaultTemplate = $this->template;
				}
				else {
					$this->_defaultTemplate = $this->parent->getDefaultTemplate();
				}
			}
			else {
				$this->_defaultTemplate = $this->template;
			}
		}
		else {
			$this->_defaultTemplate = $this->parent->getDefaultTemplate();
		}

        return $this->_defaultTemplate;
    }
284372
protected function getLayoutId()
    {
        $paragraph = $this->findParagraph();

        if ( empty( $paragraph ) )
        {
            /* @var $structure \Core\Model\SubDomain\Structure */
            $structure = $this->getServiceLocator()
                              ->get( 'Grid\Core\Model\SubDomain\Model' )
                              ->findActual();

            return $structure->defaultLayoutId;
        }
        else
        {
            return $paragraph->layoutId;
        }
    }
330103
public function getId()
    {
        $control = $this->control ? $this->control . '/' : '';

        return 'input-' . preg_replace('/[^A-Z0-9_]+/i', '-', $control . $this->getName(true));
    }
1355107
protected function getDefaultTemplate()
    {
        if ($this->getSubject()->getId()) {
            return $this->getSubject()->getTemplateName();
        }
        $templates = $this->getContainer()->getParameter('networking_init_cms.page.templates');
        reset($templates);
        $defaultTemplate = key($templates);

        return $defaultTemplate;
    }
1129091
public function buildDefaultTemplate() {
		$table = $this->elements["container"];
		$table->setAttribute("cellpadding", "5px");
		
		// Header
		$tr = Html::el("tr");
		$th = Html::el("th colspan='2' style='border-right: none'");
		$th->setText("Nahrávání souborů");
		$tr->addHtml($th);
		$th2 = Html::el("th colspan='2' style='text-align: right; border-left: none'");
		$th2->addHtml($this->elements["input"]->setAttribute("style", "display: none"));
		$button = Html::el("button type='button'");
		$button->setText("Nahrát soubor");
		$id = $this->elements["input"]->getAttribute("id");
		$button->setAttribute("onclick", "document.getElementById('$id').click(); return false;");
		$th2->addHtml($button);
		
		$tr->addHtml($th2);
		$table->addHtml($tr);
		
		// Global Progress
		$tr = Html::el("tr");
		$td = Html::el("td colspan='4'");
		$td->addHtml($this->elements["globalProgress"]);
		$tr->addHtml($td);
		$table->addHtml($tr);
		
		return $table;
	}
1046413
public function getHtml() : ?string 
    {
        if ( ! $this->hasHtml()) {
            $this->setHtml($this->getDefaultHtml());
        }
        return $this->html;
    }
22374
public function getViewId()
    {
        $viewId = null;

        $widgetMap = $this->getWidgetMap();

        if ($widgetMap !== null && $view = $widgetMap->getView() !== null) {
            $viewId = $view->getId();
        }

        return $viewId;
    }
786322
protected function getDefaultBrandId()
    {
        try {
            if (is_null($this->defaultBrandId)) {
                $this->defaultBrandId = 1;
            }
            return $this->defaultBrandId;
        } catch (Exception $e) {
            Log::emergency($e);
            return false;
        }
    }
1304604
private function getDefaultTheme() {
    if (!empty($GLOBALS['install_state']['forms'][$this->getFormId()]['theme'])) {
      return $GLOBALS['install_state']['forms'][$this->getFormId()]['theme'];
    };

    return self::DEFAULT_THEME;
  }
983520
public function getId() : ?int 
    {
        if ( ! $this->hasId()) {
            $this->setId($this->getDefaultId());
        }
        return $this->id;
    }
490667
public function getTheme()
    {
        $themeId = $this->getThemeIdFromThemeDetailsProviders();
        if (empty($themeId)) {
            $themeId = $this->getCurrentThemeId();
        }

        return $this->getThemeById($themeId);
    }