| @@ 378-405 (lines=28) @@ | ||
| 375 | ||
| 376 | global $wp_locale; |
|
| 377 | ||
| 378 | if ( '9.999,99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 379 | $thousands = '.'; |
|
| 380 | $dot = ','; |
|
| 381 | } |
|
| 382 | elseif ( '9,999.99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 383 | $thousands = ','; |
|
| 384 | $dot = '.'; |
|
| 385 | } |
|
| 386 | elseif ( '9\'999.99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 387 | $thousands = '\''; |
|
| 388 | $dot = '.'; |
|
| 389 | } |
|
| 390 | elseif ( '9 999,99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 391 | $thousands = ' '; |
|
| 392 | $dot = ','; |
|
| 393 | } |
|
| 394 | elseif ( '9999.99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 395 | $thousands = ''; |
|
| 396 | $dot = '.'; |
|
| 397 | } |
|
| 398 | elseif ( '9999,99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 399 | $thousands = ''; |
|
| 400 | $dot = ','; |
|
| 401 | } |
|
| 402 | else { |
|
| 403 | $thousands = $wp_locale->number_format[ 'thousands_sep' ]; |
|
| 404 | $dot = $wp_locale->number_format[ 'decimal_point' ]; |
|
| 405 | } |
|
| 406 | ||
| 407 | $currency = 'usd'; |
|
| 408 | ||
| @@ 437-464 (lines=28) @@ | ||
| 434 | ||
| 435 | global $wp_locale; |
|
| 436 | ||
| 437 | if ( '9.999,99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 438 | $thousands = '.'; |
|
| 439 | $dot = ','; |
|
| 440 | } |
|
| 441 | elseif ( '9,999.99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 442 | $thousands = ','; |
|
| 443 | $dot = '.'; |
|
| 444 | } |
|
| 445 | elseif ( '9\'999.99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 446 | $thousands = '\''; |
|
| 447 | $dot = '.'; |
|
| 448 | } |
|
| 449 | elseif ( '9 999,99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 450 | $thousands = ' '; |
|
| 451 | $dot = ','; |
|
| 452 | } |
|
| 453 | elseif ( '9999.99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 454 | $thousands = ','; |
|
| 455 | $dot = '.'; |
|
| 456 | } |
|
| 457 | elseif ( '9999,99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 458 | $thousands = '.'; |
|
| 459 | $dot = ','; |
|
| 460 | } |
|
| 461 | else { |
|
| 462 | $thousands = $wp_locale->number_format[ 'thousands_sep' ]; |
|
| 463 | $dot = $wp_locale->number_format[ 'decimal_point' ]; |
|
| 464 | } |
|
| 465 | ||
| 466 | $currency = 'usd'; |
|
| 467 | ||
| @@ 511-538 (lines=28) @@ | ||
| 508 | ||
| 509 | global $wp_locale; |
|
| 510 | ||
| 511 | if ( '9.999,99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 512 | $thousands = '.'; |
|
| 513 | $dot = ','; |
|
| 514 | } |
|
| 515 | elseif ( '9,999.99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 516 | $thousands = ','; |
|
| 517 | $dot = '.'; |
|
| 518 | } |
|
| 519 | elseif ( '9\'999.99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 520 | $thousands = '\''; |
|
| 521 | $dot = '.'; |
|
| 522 | } |
|
| 523 | elseif ( '9 999,99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 524 | $thousands = ' '; |
|
| 525 | $dot = ','; |
|
| 526 | } |
|
| 527 | elseif ( '9999.99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 528 | $thousands = ','; |
|
| 529 | $dot = '.'; |
|
| 530 | } |
|
| 531 | elseif ( '9999,99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 532 | $thousands = '.'; |
|
| 533 | $dot = ','; |
|
| 534 | } |
|
| 535 | else { |
|
| 536 | $thousands = $wp_locale->number_format[ 'thousands_sep' ]; |
|
| 537 | $dot = $wp_locale->number_format[ 'decimal_point' ]; |
|
| 538 | } |
|
| 539 | ||
| 540 | $currency = 'usd'; |
|
| 541 | ||
| @@ 618-645 (lines=28) @@ | ||
| 615 | return null; |
|
| 616 | } |
|
| 617 | ||
| 618 | if ( '9.999,99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 619 | $thousands = '.'; |
|
| 620 | $dot = ','; |
|
| 621 | } |
|
| 622 | elseif ( '9,999.99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 623 | $thousands = ','; |
|
| 624 | $dot = '.'; |
|
| 625 | } |
|
| 626 | elseif ( '9\'999.99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 627 | $thousands = '\''; |
|
| 628 | $dot = '.'; |
|
| 629 | } |
|
| 630 | elseif ( '9 999,99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 631 | $thousands = ' '; |
|
| 632 | $dot = ','; |
|
| 633 | } |
|
| 634 | elseif ( '9999.99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 635 | $thousands = ''; |
|
| 636 | $dot = '.'; |
|
| 637 | } |
|
| 638 | elseif ( '9999,99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 639 | $thousands = ''; |
|
| 640 | $dot = ','; |
|
| 641 | } |
|
| 642 | else { |
|
| 643 | $thousands = $wp_locale->number_format[ 'thousands_sep' ]; |
|
| 644 | $dot = $wp_locale->number_format[ 'decimal_point' ]; |
|
| 645 | } |
|
| 646 | ||
| 647 | $length = (int) pods_v( self::$type . '_max_length', $options, 12, true ); |
|
| 648 | ||