| 1 |
<?php |
| 2 |
namespace Elementor\Core\Schemes; |
| 3 |
|
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; // Exit if accessed directly. |
| 6 |
} |
| 7 |
|
| 8 |
/** |
| 9 |
* Elementor typography scheme. |
| 10 |
* |
| 11 |
* Elementor typography scheme class is responsible for initializing a scheme |
| 12 |
* for typography. |
| 13 |
* |
| 14 |
* @since 1.0.0 |
| 15 |
* @deprecated 3.0.0 Use `Global_Typography` instead. |
| 16 |
*/ |
| 17 |
class Typography { |
| 18 |
|
| 19 |
/** |
| 20 |
* 1st typography scheme. |
| 21 |
* @deprecated 3.0.0 Use `Global_Typography::TYPOGRAPHY_PRIMARY` instead. |
| 22 |
*/ |
| 23 |
const TYPOGRAPHY_1 = '1'; |
| 24 |
|
| 25 |
/** |
| 26 |
* 2nd typography scheme. |
| 27 |
* @deprecated 3.0.0 Use `Global_Typography::TYPOGRAPHY_SECONDARY` instead. |
| 28 |
*/ |
| 29 |
const TYPOGRAPHY_2 = '2'; |
| 30 |
|
| 31 |
/** |
| 32 |
* 3rd typography scheme. |
| 33 |
* @deprecated 3.0.0 Use `Global_Typography::TYPOGRAPHY_TEXT` instead. |
| 34 |
*/ |
| 35 |
const TYPOGRAPHY_3 = '3'; |
| 36 |
|
| 37 |
/** |
| 38 |
* 4th typography scheme. |
| 39 |
* @deprecated 3.0.0 Use `Global_Typography::TYPOGRAPHY_ACCENT` instead. |
| 40 |
*/ |
| 41 |
const TYPOGRAPHY_4 = '4'; |
| 42 |
|
| 43 |
/** |
| 44 |
* Get typography scheme type. |
| 45 |
* |
| 46 |
* Retrieve the typography scheme type. |
| 47 |
* |
| 48 |
* @since 1.0.0 |
| 49 |
* @access public |
| 50 |
* @static |
| 51 |
* @deprecated 3.0.0 |
| 52 |
* |
| 53 |
* @return string Typography scheme type. |
| 54 |
*/ |
| 55 |
public static function get_type() { |
| 56 |
return 'typography'; |
| 57 |
} |
| 58 |
|
| 59 |
/** |
| 60 |
* Get typography scheme title. |
| 61 |
* |
| 62 |
* Retrieve the typography scheme title. |
| 63 |
* |
| 64 |
* @since 1.0.0 |
| 65 |
* @access public |
| 66 |
* @deprecated 3.0.0 |
| 67 |
* |
| 68 |
* @return string Typography scheme title. |
| 69 |
*/ |
| 70 |
public function get_title() { |
| 71 |
return ''; |
| 72 |
} |
| 73 |
|
| 74 |
/** |
| 75 |
* Get typography scheme disabled title. |
| 76 |
* |
| 77 |
* Retrieve the typography scheme disabled title. |
| 78 |
* |
| 79 |
* @since 1.0.0 |
| 80 |
* @access public |
| 81 |
* @deprecated 3.0.0 |
| 82 |
* |
| 83 |
* @return string Typography scheme disabled title. |
| 84 |
*/ |
| 85 |
public function get_disabled_title() { |
| 86 |
return ''; |
| 87 |
} |
| 88 |
|
| 89 |
/** |
| 90 |
* Get typography scheme titles. |
| 91 |
* |
| 92 |
* Retrieve the typography scheme titles. |
| 93 |
* |
| 94 |
* @since 1.0.0 |
| 95 |
* @access public |
| 96 |
* @deprecated 3.0.0 |
| 97 |
* |
| 98 |
* @return array Typography scheme titles. |
| 99 |
*/ |
| 100 |
public function get_scheme_titles() { |
| 101 |
return []; |
| 102 |
} |
| 103 |
|
| 104 |
/** |
| 105 |
* Get default typography scheme. |
| 106 |
* |
| 107 |
* Retrieve the default typography scheme. |
| 108 |
* |
| 109 |
* @since 1.0.0 |
| 110 |
* @access public |
| 111 |
* @deprecated 3.0.0 |
| 112 |
* |
| 113 |
* @return array Default typography scheme. |
| 114 |
*/ |
| 115 |
public function get_default_scheme() { |
| 116 |
return []; |
| 117 |
} |
| 118 |
|
| 119 |
/** |
| 120 |
* Print typography scheme content template. |
| 121 |
* |
| 122 |
* Used to generate the HTML in the editor using Underscore JS template. The |
| 123 |
* variables for the class are available using `data` JS object. |
| 124 |
* |
| 125 |
* @since 1.0.0 |
| 126 |
* @access public |
| 127 |
* @deprecated 3.0.0 |
| 128 |
*/ |
| 129 |
public function print_template_content() {} |
| 130 |
} |
| 131 |
|