|
@@ 277-278 (lines=2) @@
|
| 274 |
|
if ( 'normal' == pods_var( self::$type . '_format', $options ) ) |
| 275 |
|
$value = $this->build_url( $url ); |
| 276 |
|
elseif ( 'no-www' == pods_var( self::$type . '_format', $options ) ) { |
| 277 |
|
if ( 0 === strpos( $url[ 'host' ], 'www.' ) ) |
| 278 |
|
$url[ 'host' ] = substr( $url[ 'host' ], 4 ); |
| 279 |
|
|
| 280 |
|
$value = $this->build_url( $url ); |
| 281 |
|
} |
|
@@ 296-297 (lines=2) @@
|
| 293 |
|
$value = trim( $value, '/' ); |
| 294 |
|
} |
| 295 |
|
elseif ( 'no-http-no-www' == pods_var( self::$type . '_format', $options ) ) { |
| 296 |
|
if ( 0 === strpos( $url[ 'host' ], 'www.' ) ) |
| 297 |
|
$url[ 'host' ] = substr( $url[ 'host' ], 4 ); |
| 298 |
|
|
| 299 |
|
$value = $this->build_url( $url ); |
| 300 |
|
$value = str_replace( trim( $url[ 'scheme' ] . '://', ':' ), '', $value ); |