PluginSettingsGeneral.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php if ( ! defined( 'ABSPATH' ) ) exit;
  2. return apply_filters( 'ninja_forms_plugin_settings_general', array(
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Version
  6. |--------------------------------------------------------------------------
  7. */
  8. 'version' => array(
  9. 'id' => 'version',
  10. 'type' => 'desc',
  11. 'label' => __( 'Version', 'ninja-forms' ),
  12. 'desc' => ''
  13. ),
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Date Format
  17. |--------------------------------------------------------------------------
  18. */
  19. 'date_format' => array(
  20. 'id' => 'date_format',
  21. 'type' => 'textbox',
  22. 'label' => __( 'Date Format', 'ninja-forms' ),
  23. 'desc' => 'e.g. m/d/Y, d/m/Y - ' . sprintf( __( 'Tries to follow the %sPHP date() function%s specifications, but not every format is supported.', 'ninja-forms' ), '<a href="http://www.php.net/manual/en/function.date.php" target="_blank">', '</a>' ),
  24. ),
  25. /*
  26. |--------------------------------------------------------------------------
  27. | Currency
  28. |--------------------------------------------------------------------------
  29. */
  30. 'currency' => array(
  31. 'id' => 'currency',
  32. 'type' => 'select',
  33. 'options' => Ninja_Forms::config( 'Currency' ),
  34. 'label' => __( 'Currency', 'ninja-forms' ),
  35. 'value' => 'USD'
  36. ),
  37. ));