1 | <?php |
||
14 | class Jetpack_Contact_Info_Block { |
||
15 | |||
16 | /** |
||
17 | * Adds contact info schema attributes. |
||
18 | * |
||
19 | * @param array $attr Array containing the contact info block attributes. |
||
20 | * @param string $content String containing the contact info block content. |
||
21 | * |
||
22 | * @return string |
||
23 | */ |
||
24 | public static function render( $attr, $content ) { |
||
32 | |||
33 | /** |
||
34 | * Adds address schema attributes. |
||
35 | * |
||
36 | * @param array $attr Array containing the address block attributes. |
||
37 | * @param string $content String containing the address block content. |
||
38 | * |
||
39 | * @return string |
||
40 | */ |
||
41 | public static function render_address( $attr, $content ) { |
||
66 | |||
67 | /** |
||
68 | * Helper function that lets us determine if a block has any valid attributes. |
||
69 | * |
||
70 | * @param array $attr Array containing the block attributes. |
||
71 | * @param array $omit Array containing the block attributes that we ignore. |
||
72 | * |
||
73 | * @return string |
||
74 | */ |
||
75 | public static function has_attributes( $attr, $omit = array() ) { |
||
84 | |||
85 | /** |
||
86 | * Adds email schema attributes. |
||
87 | * |
||
88 | * @param array $attr Array containing the email block attributes. |
||
89 | * @param string $content String containing the email block content. |
||
90 | * |
||
91 | * @return string |
||
92 | */ |
||
93 | public static function render_email( $attr, $content ) { |
||
99 | |||
100 | /** |
||
101 | * Adds phone schema attributes. |
||
102 | * |
||
103 | * @param array $attr Array containing the phone block attributes. |
||
104 | * @param string $content String containing the phone block content. |
||
105 | * |
||
106 | * @return string |
||
107 | */ |
||
108 | public static function render_phone( $attr, $content ) { |
||
114 | } |
||
115 |