src/Util/Theme.php
public static function asset($relative_path, $include_version=true) {
    $clean_relative_path = preg_replace('/^[\/_]+/', '', $relative_path);
    return sprintf(
      '%s/_/%s%s',
      THEME_URL,
      $clean_relative_path,
      ($include_version) ? THEME_SUFFIX : null
    );
  }
public static function asset($relative_path, $include_version=true) {
    $clean_relative_path = preg_replace('/^[\/_]+/', '', $relative_path);
    return sprintf(
      '%s/_/%s%s',
      THEME_URL,
      $clean_relative_path,
      ($include_version) ? THEME_SUFFIX : null
    );
  }
public static function asset ( $ relative_path , $ include_version = true ) { $ clean_relative_path = preg_replace ( '/^[\/_]+/' , '' , $ relative_path ) ; return sprintf ( '%s/_/%s%s' , THEME_URL , $ clean_relative_path , ( $ include_version ) ? THEME_SUFFIX : null ) ; }
Get the asset path
@param string $relative_path
@param bool $include_version
@return string
Get the asset path