Returns the complete style path.

@param bool $isBem Set to get a BEM theme.

@return string
357589
public static function getStylePath($isBem = false)
    {
        $directory = $isBem ? 'css-bem' : 'css';
        $extension = self::_isDevMode() ? 'dev' : 'min';
        $theme = self::_getTheme();

        return self::getPath($directory . "/". "hbg-prime-" . $theme . "." . $extension . ".css");
    }
126136
public function getView(bool $prefixed = true): string
    {
        if ($prefixed) {
            return $this->buildViewPath($this->getTheme(), $this->view);
        }

        return $this->view;
    }
1114421
private static function normalizerPath($path, $isfolder = False) {

		if (preg_match('/^\//', $path) == 0) {
            $path = '/' . $path;
        }
		
		if ($isfolder == True)
		{
			if (preg_match('/\/$/', $path) == 0) {
				$path = $path . '/';
			}
		}

		return $path;
	}
285039
public function getPathToScss( $type, $theme = null ) {

		if ( null === $theme ) {
			$theme = wp_get_theme();
		}

		if ( $this->isCurrentThemeCompatible( 1, $theme ) ) {
			if ( 'web' === $type ) {
				$path_to_style = realpath( $this->getDir( $theme ) . '/style.scss' );
			} else {
				$path_to_style = realpath( $this->getDir( $theme ) . "/export/$type/style.scss" );
			}
		} elseif ( $this->isCurrentThemeCompatible( 2, $theme ) ) {
			$path_to_style = realpath( $this->getDir( $theme ) . "/assets/styles/$type/style.scss" );
		} else {
			$path_to_style = false;
		}

		return $path_to_style;
	}
789994
public function getWebAssetsPath()
    {
        $class = $this->getClass();
        $classParts = explode("\\", $class);
        $class = end($classParts);

        $path = 'bundles/'.strtolower(
                str_replace(
                    'Bundle', '',
                    $class
                )
            );
        return $path;
    }
275298
public function getPathPart($num) {
    if ($num < 1) throw new \InvalidArgumentException('Num ist 1-basierend');
    if ($num > count($this->path)) return NULL;
    
    return $this->path[$num-1];
  }
948100
public function meridiem(bool $isLower = false): string
    {
        $hour = $this->hour;
        $index = $hour < 12 ? 0 : 1;

        if ($isLower) {
            $key = 'meridiem.'.($index + 2);
            $result = $this->translate($key);

            if ($result !== $key) {
                return $result;
            }
        }

        $key = "meridiem.$index";
        $result = $this->translate($key);
        if ($result === $key) {
            $result = $this->translate('meridiem', [
                ':hour' => $this->hour,
                ':minute' => $this->minute,
                ':isLower' => $isLower,
            ]);

            if ($result === 'meridiem') {
                return $isLower ? $this->latinMeridiem : $this->latinUpperMeridiem;
            }
        } elseif ($isLower) {
            $result = mb_strtolower($result);
        }

        return $result;
    }
844731
protected function getBasePath(Theme $theme = null) : string
    {
        $theme = $theme ?? $this->getTheme();

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

        return $this->fullPaths[$theme->getKey()] = $this->createPath($theme->getPath(), $this->directory);
    }
1001551
public function index()
    {
        $themes = plugin()
            ->filter(function ($plugin) {
                return $plugin->isTheme;
            });

        $frontThemes = $themes
            ->filter(function ($theme) {
                return !isset($theme->composer['extra']['admin']) || !$theme->composer['extra']['admin'];
            })
            ->sortBy(function ($theme) {
                if ($theme->name() === option('front_theme')) {
                    return 0;
                }

                return 1;
            }, SORT_ASC);

        $backThemes = $themes
            ->filter(function ($theme) {
                return isset($theme->composer['extra']['admin']) && $theme->composer['extra']['admin'];
            })
            ->sortBy(function ($theme) {
                if ($theme->name() === option('back_theme')) {
                    return 0;
                }

                return 1;
            }, SORT_ASC);

        $frontCount = count($frontThemes->toArray());
        $backCount = count($backThemes->toArray());

        $this->title(__d('system', 'Themes'));
        $this->_awaitingPlugins('theme');
        $this->set(compact('frontCount', 'backCount', 'frontThemes', 'backThemes'));
        $this->Breadcrumb->push('/admin/system/themes');
    }
515445
public function asset_path($path)
	{
		if ($this->active['path'] === null)
		{
			throw new \ThemeException('You must set an active theme.');
		}

		if ($this->active['asset_base'])
		{
			return $this->active['asset_base'].$path;
		}
		else
		{
			return $this->active['path'].$path;
		}
	}
86692
public function getByPath($path)
    {
        foreach ($this->themeList as $theme => $themeInfo) {
            $path1 = $this->pathSlashFix($path);
            $path2 = $this->pathSlashFix($themeInfo['path']);

            if ($path1 == $path2) {
                $actualTheme = $this->themeList[$theme];
                break;
            }
        }

        return $actualTheme;
    }
832024
def get_path():
    
    # Theme directory is defined as our parent directory
    return os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
404212
private function getPath()
	{
		$themesPath = $this->themesPath;											//  Basic Themes Path
		if( $this->themeName )														//  Theme Path is set
			$themesPath .= $this->themeName;										//  add Theme Path
		if( $this->cssFolder )														//  CSS Folder is set
			$themesPath .= $this->cssFolder;										//  add CSS Folder
		if( $this->mediumPath )														//  Medium Path is set
			$themesPath .= $this->mediumPath;										//  add Medium Path
		return $themesPath;
	}
581212
public function getCompiledBaseCss()
    {
        $mergedAsset = new InMemoryUIAsset();

        $assetMerger = new StylesheetUIAssetMerger($mergedAsset, $this->minimalStylesheetFetcher, $this->cacheBuster);

        $assetMerger->generateFile();

        return $mergedAsset;
    }
907545
public function getUploadPath($isAbs = false, $createMode = 0775) {
        if ($isAbs && isset($this->_data['ABS_UPLOAD_PATH'])) {
            return $this->_data['ABS_UPLOAD_PATH'];
        } elseif (!$isAbs && isset($this->_data['REV_UPLOAD_PATH'])) {
            return $this->_data['REV_UPLOAD_PATH'];
        }

        $path = Yii::getAlias('@webroot') . '/' . $this->uploadFolderName;
        if (!@file_exists($path)) {
            if (!@mkdir($path, $createMode, true)) {
                throw new Exception("Cannot create dir: {$path}");
            }
        }
        $this->_data['ABS_UPLOAD_PATH'] = $path;
        $this->_data['REV_UPLOAD_PATH'] = Url::to('@web/' . basename($path));

        return $isAbs ? $this->_data['ABS_UPLOAD_PATH'] : $this->_data['REV_UPLOAD_PATH'];
    }
98677
public function getRoutePattern() {
        $slug = Str::slug(Str::camelToWords($this->pluralName));

        return $this->baseURI !== '/' ? $this->baseURI . '/' . $slug : $slug;
    }
641777
protected static function getStyleguideKitPath($styleguideKitPath = "") {
		
		$styleguideKitPathFinal = "";
		if (isset($styleguideKitPath[0]) && ($styleguideKitPath[0] == DIRECTORY_SEPARATOR)) {
			if (strpos($styleguideKitPath, DIRECTORY_SEPARATOR."vendor".DIRECTORY_SEPARATOR === 0)) {
				$styleguideKitPathFinal = $styleguideKitPath; // mistaken set-up, pass to final for clean-up
			} else if (strpos($styleguideKitPath, self::$options["baseDir"]) === 0) {
				$styleguideKitPathFinal = str_replace(self::$options["baseDir"], "", $styleguideKitPath); // just need to peel off the base
			} else if (strpos($styleguideKitPath, DIRECTORY_SEPARATOR."vendor") !== false) {
				$parts = explode(DIRECTORY_SEPARATOR."vendor".DIRECTORY_SEPARATOR, $styleguideKitPath); // set on another machine's config.yml? try to be smart about it
				$styleguideKitPathFinal = "vendor".DIRECTORY_SEPARATOR.$parts[1];
				Console::writeInfo("Please double-check the styleguideKitPath option in <path>./config/config.yml</path>. It should be a path relative to the root of your Pattern Lab project...");
			}
		} else {
			$styleguideKitPathFinal = $styleguideKitPath; // fingers crossed everything is fine
		}
		
		return $styleguideKitPathFinal;
		
	}