@@ 328-329 (lines=2) @@ | ||
325 | if ( 'normal' == pods_var( self::$type . '_format', $options ) ) |
|
326 | $value = $this->build_url( $url ); |
|
327 | elseif ( 'no-www' == pods_var( self::$type . '_format', $options ) ) { |
|
328 | if ( 0 === strpos( $url[ 'host' ], 'www.' ) ) |
|
329 | $url[ 'host' ] = substr( $url[ 'host' ], 4 ); |
|
330 | ||
331 | $value = $this->build_url( $url ); |
|
332 | } |
|
@@ 347-348 (lines=2) @@ | ||
344 | $value = trim( $value, '/' ); |
|
345 | } |
|
346 | elseif ( 'no-http-no-www' == pods_var( self::$type . '_format', $options ) ) { |
|
347 | if ( 0 === strpos( $url[ 'host' ], 'www.' ) ) |
|
348 | $url[ 'host' ] = substr( $url[ 'host' ], 4 ); |
|
349 | ||
350 | $value = $this->build_url( $url ); |
|
351 | $value = str_replace( trim( $url[ 'scheme' ] . '://', ':' ), '', $value ); |