scheme.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. namespace Elementor;
  3. if ( ! defined( 'ABSPATH' ) ) {
  4. exit; // Exit if accessed directly.
  5. }
  6. /**
  7. * Scheme interface.
  8. *
  9. * An interface for Elementor Scheme.
  10. *
  11. * @since 1.0.0
  12. */
  13. interface Scheme_Interface {
  14. /**
  15. * Get scheme type.
  16. *
  17. * Retrieve the scheme type.
  18. *
  19. * @since 1.0.0
  20. * @access public
  21. * @static
  22. */
  23. public static function get_type();
  24. /**
  25. * Get scheme title.
  26. *
  27. * Retrieve the scheme title.
  28. *
  29. * @since 1.0.0
  30. * @access public
  31. */
  32. public function get_title();
  33. /**
  34. * Get scheme disabled title.
  35. *
  36. * Retrieve the scheme disabled title.
  37. *
  38. * @since 1.0.0
  39. * @access public
  40. */
  41. public function get_disabled_title();
  42. /**
  43. * Get scheme titles.
  44. *
  45. * Retrieve the scheme titles.
  46. *
  47. * @since 1.0.0
  48. * @access public
  49. */
  50. public function get_scheme_titles();
  51. /**
  52. * Get default scheme.
  53. *
  54. * Retrieve the default scheme.
  55. *
  56. * @since 1.0.0
  57. * @access public
  58. */
  59. public function get_default_scheme();
  60. /**
  61. * Print scheme content template.
  62. *
  63. * Used to generate the HTML in the editor using Underscore JS template. The
  64. * variables for the class are available using `data` JS object.
  65. *
  66. * @since 1.0.0
  67. * @access public
  68. */
  69. public function print_template_content();
  70. }