| @@ 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 | ||
| @@ 522-549 (lines=28) @@ | ||
| 519 | ||
| 520 | global $wp_locale; |
|
| 521 | ||
| 522 | if ( '9.999,99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 523 | $thousands = '.'; |
|
| 524 | $dot = ','; |
|
| 525 | } |
|
| 526 | elseif ( '9,999.99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 527 | $thousands = ','; |
|
| 528 | $dot = '.'; |
|
| 529 | } |
|
| 530 | elseif ( '9\'999.99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 531 | $thousands = '\''; |
|
| 532 | $dot = '.'; |
|
| 533 | } |
|
| 534 | elseif ( '9 999,99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 535 | $thousands = ' '; |
|
| 536 | $dot = ','; |
|
| 537 | } |
|
| 538 | elseif ( '9999.99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 539 | $thousands = ','; |
|
| 540 | $dot = '.'; |
|
| 541 | } |
|
| 542 | elseif ( '9999,99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 543 | $thousands = '.'; |
|
| 544 | $dot = ','; |
|
| 545 | } |
|
| 546 | else { |
|
| 547 | $thousands = $wp_locale->number_format[ 'thousands_sep' ]; |
|
| 548 | $dot = $wp_locale->number_format[ 'decimal_point' ]; |
|
| 549 | } |
|
| 550 | ||
| 551 | $currency = 'usd'; |
|
| 552 | ||
| @@ 644-671 (lines=28) @@ | ||
| 641 | return null; |
|
| 642 | } |
|
| 643 | ||
| 644 | if ( '9.999,99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 645 | $thousands = '.'; |
|
| 646 | $dot = ','; |
|
| 647 | } |
|
| 648 | elseif ( '9,999.99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 649 | $thousands = ','; |
|
| 650 | $dot = '.'; |
|
| 651 | } |
|
| 652 | elseif ( '9\'999.99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 653 | $thousands = '\''; |
|
| 654 | $dot = '.'; |
|
| 655 | } |
|
| 656 | elseif ( '9 999,99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 657 | $thousands = ' '; |
|
| 658 | $dot = ','; |
|
| 659 | } |
|
| 660 | elseif ( '9999.99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 661 | $thousands = ''; |
|
| 662 | $dot = '.'; |
|
| 663 | } |
|
| 664 | elseif ( '9999,99' == pods_v( self::$type . '_format', $options ) ) { |
|
| 665 | $thousands = ''; |
|
| 666 | $dot = ','; |
|
| 667 | } |
|
| 668 | else { |
|
| 669 | $thousands = $wp_locale->number_format[ 'thousands_sep' ]; |
|
| 670 | $dot = $wp_locale->number_format[ 'decimal_point' ]; |
|
| 671 | } |
|
| 672 | ||
| 673 | $length = (int) pods_v( self::$type . '_max_length', $options, 12, true ); |
|
| 674 | ||