Return the html tags including the css from the theme

@param string $themeId

@return string
515792
public function openOrchestraCss($themeId)
    {
        $tags = '';

        if (isset($this->themes[$themeId]) && isset($this->themes[$themeId]['stylesheets'])) {
            $stylesheets = $this->themes[$themeId]['stylesheets'];
            foreach ($stylesheets as $stylesheet) {
                $tags .= $this->getHtmlTag($stylesheet, self::FILETYPE_CSS);
            }
        }

        return $tags;
    }
320461
private function getTheme($themeName)
    {
        if (!array_key_exists($themeName, $this->themes)) {
            $this->themes[$themeName] = $this->themeManager->getTheme($themeName);
        }

        return $this->themes[$themeName];
    }
423069
public static function getCssInlineTags(string $path): string
    {
        $result = self::getFile($path);
        if ($result) {
            $result = "<style>\r\n".$result."</style>\r\n";

            return $result;
        }

        return '';
    }
1109714
protected function getThemeBaseUrl(?Theme $theme = null) : string
    {
        $theme = $theme ?? $this->getTheme();

        if (isset($this->webPaths[$theme->getKey()])) {
            return $this->webPaths[$theme->getKey()];
        }

        return $this->webPaths[$theme->getKey()] = $this->url->make(new UrlSettings([
            'domain'        => $theme->getWebPath(),
            'path'          => $this->directory,
        ]));
    }
1199842
private function getRowValues(\DOMElement $item, int $themeId): array
    {
        $fields = $item->childNodes;
        $values = [];

        for ($index = 0; $index < $fields->length; $index++) {
            $value = $fields->item($index)->nodeValue;
            $name  = $fields->item($index)->getAttribute('name');

            switch ($name) {
                case 'id':
                    break;

                case 'pid':
                    $values[$name] = $themeId;

                    break;

                default:
                    if ($value === 'NULL') {
                        $value = null;
                    }

                    $values[$name] = $value;
            }
        }

        return $values;
    }
136405
private void obtainTitleColor(@StyleRes final int themeResourceId) {
        TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
                new int[]{R.attr.materialDialogTitleColor});
        int defaultColor =
                ThemeUtil.getColor(getContext(), themeResourceId, android.R.attr.textColorPrimary);
        setTitleColor(typedArray.getColor(0, defaultColor));
    }
1198827
public function getThemeInfo($key)
    {
        if (null === $this->theme) {
            $this->theme = wp_get_theme();
        }

        $headers = [
            'name'        => 'Name',
            'description' => 'Description',
            'author'      => 'Author',
            'authoruri'   => 'AuthorURI',
            'themeuri'    => 'ThemeURI',
            'version'     => 'Version',
            'status'      => 'Status',
            'tags'        => 'Tags',
            'textdomain'  => 'TextDomain'
        ];

        $key = strtolower($key);

        if (isset($headers[$key])) {
            return $this->theme->get($headers[$key]);
        }

        return false;
    }
694700
public int getStyle(int styleId, int theme){
        int[] styles = getStyleList(styleId);
        return styles == null ? 0 : styles[theme];
    }
113023
private function get_theme_textdomain() {
		if ( '' === $this->theme_textdomain ) {

			// Get the textdomain.
			$theme                  = wp_get_theme();
			$this->theme_textdomain = $theme->get( 'TextDomain' );

			// If no texdomain was found, use the template folder name.
			if ( ! $this->theme_textdomain ) {
				$this->theme_textdomain = get_template();
			}
		}
		return $this->theme_textdomain;
	}
734519
protected function getConfigByTheme(array $config, $themeId = null)
    {
        if (null === $themeId) {
            $themeService = $this->getServiceLocator()->get(ThemeService::SERVICE_ID);
            $themeId = $themeService->getCurrentThemeId();
        }
        if (is_array(reset($config))) {
            if (array_key_exists($themeId, $config)) {
                $config = $config[$themeId];
            } else {
                $config = array_shift($config);
            }
        }
        return $config;
    }
722724
public function getTheme($themeId, $fields = ['name', 'slug', 'url'])
    {
        $apiUrl = $this->getEndpoint('themes');
        $apiUrl .= $themeId;

        $params = array(
            'fields' => implode(',', $fields)
        );

        $apiData = $this->apiGet($apiUrl, $params);

        return $this->decodeSingle($apiData);
    }
1154975
public static function style($styleID)
    {
        if (!in_array($styleID, static::getKnownStyles())) {
            throw new Exception("Unknown style ID $styleID");
        }

        $style = new Style($styleID);

        return $style;
    }
1201059
public function getHeader( $uid = '' )
	{
		$html = '';

		foreach( $this->getSubClients() as $subclient ) {
			$html .= $subclient->setView( $this->view )->getHeader( $uid );
		}

		return $html;
	}
539556
public function getRemoteColorScheme($manifestId = "") : bool
    {
        if (!defined('MUNICIPIO_STYLEGUIDE_URI')) {
            return false;
        }

        if (empty($manifestId)) {
            $manifestId = apply_filters('Municipio/theme/key', get_field('color_scheme', 'option'));
        }

        $args = (defined('DEV_MODE') && DEV_MODE == true) ? ['sslverify' => false] : array();

        //Get remote data
        $request = wp_remote_get("https:" . MUNICIPIO_STYLEGUIDE_URI . "vars/" . $manifestId . '.json', $args);

        //Store if valid response
        if (wp_remote_retrieve_response_code($request) == 200) {
            if (!empty($response = json_decode(wp_remote_retrieve_body($request)))) {
                $this->storeColorScheme($response);
            }

            return true;
        }

        //Not updated
        return false;
    }
1082244
public function links($venueId)
    {

        $resource = '/venues/' . $venueId . '/links';
        $response = $this->makeApiRequest($resource);

        if(property_exists($response, 'links')) {
            return $response->links->items;
        }

        return array();

    }
252419
private void obtainHeaderDividerColor(@StyleRes final int themeResourceId) {
        TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
                new int[]{R.attr.materialDialogHeaderDividerColor});
        int defaultColor = ContextCompat.getColor(getContext(), R.color.header_divider_color);
        setHeaderDividerColor(typedArray.getColor(0, defaultColor));
    }
280607
protected function getThemeIdFromThemeDetailsProviders()
    {
        $providers = $this->getThemeDetailsProviders();
        foreach ($providers as $provider) {
            if ($provider instanceof ThemeDetailsProviderInterface) {
                $themeId = $provider->getThemeId();
                if (!empty($themeId) && $themeId !== ' ') {
                    if ($this->hasTheme($themeId)) {
                        return $themeId;
                    }

                    \common_Logger::i(
                        'The requested theme ' . $themeId .
                        ' requested by the ' . get_class($provider) . ' provider does not exist!'
                    );
                }
            }
        }

        return '';
    }