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