33P4155079.r24,S=2295,W=2352w81766415896.M881444P4155877.r24,S=7430,W=7539w1766416126.M200378P4157361.r24,S=6702,W=6791w1766416462.M980199P4159335.r24,S=86246,W=86568w1766416775.M244488P4161138.r24,S=7500,W=7613wX1766418035.M140465P4167376.r24,S=21346,W=21642w1766419157.M292147P4176234.r24,S=13795,W=13991w1766419442.M467718P4178121.r24,S=24145,W=24527w01766421262.M371564P4188771.r24,S=176144,W=180591w1766423375.M211364P7888.r24,S=71965,W=72967w1766424557.M954456P14276.r24,S=9917,W=10125w1766430572.M387349P52396.r24,S=37167,W=37813wX1766431215.M602946P55510.r24,S=12065,W=12267w1766434682.M261383P80699.r24,S=5850,W=5972 w1766441718.M853740P132804.r24,S=6618,W=6748!w01766443727.M201970P141729.r24,S=6358,W=6458"wx1766444281.M341581P147303.r24,S=41599,W=42176#w1766445622.M157918P155943.r24,S=44470,W=45143$w1766464215.M160562P384039.r24,S=88758,W=89210%wP1766469698.M488290P461161.r24,S=121359,W=124031&w1766469880.M495032P473790.r24,S=82619,W=83704'w1766472019.M672170P721519.r24,S=18225,W=18531(w(1766472965.M214323P857518.r24,S=7242,W=7424)wp1766473267.M559611P901442.r24,S=85496,W=86832*w1766474721.M967282P1082586.r24,S=8372,W=8561+w1766475239.M836289P1191227.r24,S=6565,W=6708,wH1766476862.M922346P1462220.r24,S=89551,W=90735-w1766477121.M635612P1502218.r24,S=33905,W=34437.w1766477138.M814045P1508674.r24,S=41976,W=42534/w 1766479289.M406513P1835291.r24,S=186951,W=1880650wp1766480446.M195519P2000202.r24,S=57258,W=593211w1766480586.M730712P2017340.r24,S=36525,W=370192w1766482231.M252228P2241281.r24,S=76784,W=785183wH1766482776.M818091P2325994.r24,S=6478,W=66464w1766483259.M445518P2384992.r24,S=619063,W=6271415w1766483881.M482847P2409935.r24,S=203956,W=2077126w01766484699.M492319P2418501.r24,S=2884,W=29527wx1766484722.M269742P2418715.r24,S=17489,W=177438w1766484969.M732418P2420161.r24,S=61925,W=629369w1766485157.M911135P2421180.r24,S=31657,W=32396:wP1766485856.M734179P2425126.r24,S=1035480,W=1048978;w1766486521.M99309P2432502.r24,S=64794,W=65544wx1766486664.M590937P2433518.r24,S=1564589,W=1584981?w1766486853.M377596P2435786.r24,S=7150,W=7283@w1766487592.M955812P2444682.r24,S=149213,W=153166Aw`1766487764.M388270P2448933.r24,S=36042,W=36893Bw1766489062.M799816P2468129.r24,S=29169,W=29589Cw1766489405.M567892P2473094.r24,S=20887,W=21213Dw81766489410.M265340P2473194.r24,S=22180,W=22579Ew1766489918.M40243P2480935.r24,S=8253,W=8430Fw1766491241.M367898P2496314.r24,S=204282,W=206946Gw1766491355.M233421P2496799.r24,S=2189,W=2243Hw`1766491555.M611060P2497823.r24,S=11200,W=11400Iw1766492029.M849823P2500178.r24,S=12229,W=12406Jw1766494786.M8023 $key ] ) ) { $bases = Utils::get_bases(); static::$path_urls[ $key ] = trailingslashit( str_replace( wp_list_pluck( $bases, 'base_dir' ), wp_list_pluck( $bases, 'base_url' ), $path ) ); } return static::$path_urls[ $key ]; } /** * Gets the version of the project. * * @return string */ public static function get_version(): string { return static::$version; } /** * Resets this class back to the defaults. */ public static function reset() { static::$hook_prefix = ''; static::$relative_asset_path = 'src/assets/'; static::$root_path = ''; static::$path_urls = []; static::$version = ''; Utils::clear_runtime_cache(); } /** * Sets the hook prefix. * * @param string $prefix The prefix to add to hooks. * * @return void */ public static function set_hook_prefix( string $prefix ) { static::$hook_prefix = $prefix; } /** * Sets the relative asset path of the project. * * @param string $path The root path of the project. * * @return void */ public static function set_relative_asset_path( string $path ) { static::$relative_asset_path = trailingslashit( $path ); } /** * Sets the root path of the project. * * @param string $path The root path of the project. * * @return void */ public static function set_path( string $path ) { static::$root_path = self::normalize_path( $path ); } /** * Sets the version of the project. * * @param string $version The version of the project. * * @return void */ public static function set_version( string $version ) { static::$version = $version; } /** * Normalizes a path. * * @since 1.4.0 * @since 1.4.1 Allow for paths that are not in the plugin or theme directory. * * @param string $path The path to normalize. * * @return string */ protected static function normalize_path( string $path ): string { $plugin_dir = wp_normalize_path( WP_PLUGIN_DIR ); $path = wp_normalize_path( $path ); $plugins_content_dir_position = $plugin_dir ? strpos( $path, $plugin_dir ) : false; $themes_content_dir_position = strpos( $path, wp_normalize_path( get_theme_root() ) ); if ( $plugins_content_dir_position === false && $themes_content_dir_position === false && strpos( $path, '/' ) !== 0 ) { // Default to plugins if a relative path is provided. $path = trailingslashit( $plugin_dir ) . $path; } elseif ( $plugins_content_dir_position !== false ) { $path = substr( $path, $plugins_content_dir_position ); } elseif ( $themes_content_dir_position !== false ) { $path = substr( $path, $themes_content_dir_position ); } return trailingslashit( $path ); } }