|
@@ 345-346 (lines=2) @@
|
| 342 |
|
if ( 'normal' == pods_var( self::$type . '_format', $options ) ) |
| 343 |
|
$value = $this->build_url( $url ); |
| 344 |
|
elseif ( '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 |
|
} |
|
@@ 364-365 (lines=2) @@
|
| 361 |
|
$value = trim( $value, '/' ); |
| 362 |
|
} |
| 363 |
|
elseif ( 'no-http-no-www' == pods_var( self::$type . '_format', $options ) ) { |
| 364 |
|
if ( 0 === strpos( $url[ 'host' ], 'www.' ) ) |
| 365 |
|
$url[ 'host' ] = substr( $url[ 'host' ], 4 ); |
| 366 |
|
|
| 367 |
|
$value = $this->build_url( $url ); |
| 368 |
|
$value = str_replace( trim( $url[ 'scheme' ] . '://', ':' ), '', $value ); |