1 | <?php |
||
16 | class Pre_Connection_JITM extends JITM { |
||
17 | |||
18 | const PACKAGE_VERSION = '1.0'; // TODO: Keep in sync with version specified in composer.json. |
||
19 | |||
20 | /** |
||
21 | * Determines if JITMs are enabled. |
||
22 | * |
||
23 | * @return bool Enable JITMs. |
||
24 | */ |
||
25 | public function register() { |
||
29 | |||
30 | /** |
||
31 | * Retrieve the current message to display keyed on query string and message path |
||
32 | * |
||
33 | * @param string $message_path The message path to ask for. |
||
34 | * @param string $query The query string originally from the front end. Unused in this subclass. |
||
35 | * @param bool $full_jp_logo_exists If there is a full Jetpack logo already on the page. |
||
36 | * |
||
37 | * @return array The JITM's to show, or an empty array if there is nothing to show |
||
38 | */ |
||
39 | public function get_messages( $message_path, $query, $full_jp_logo_exists ) { |
||
64 | |||
65 | /** |
||
66 | * Dismisses a JITM ID so that it will no longer be shown. |
||
67 | * |
||
68 | * @param string $id The id of the JITM that was dismissed. |
||
69 | * @param string $feature_class The feature class of the JITM that was dismissed. Unused in this subclass. |
||
70 | * |
||
71 | * @return bool Always true |
||
72 | */ |
||
73 | public function dismiss( $id, $feature_class ) { |
||
95 | } |
||
96 |