class-inline-help.php
2 years ago
gridicon-help.svg
2 years ago
inline-help-template.php
2 years ago
inline-help.css
5 years ago
class-inline-help.php
77 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Inline Help. |
| 4 | * |
| 5 | * Handles providing a LiveChat icon within WPAdmin until such time |
| 6 | * as the full live chat experience can be run in a non-Calypso environment. |
| 7 | * |
| 8 | * @deprecated 13.7 Use Automattic\Jetpack\Masterbar\Inline_Help instead. |
| 9 | * |
| 10 | * @package automattic/jetpack |
| 11 | */ |
| 12 | |
| 13 | namespace Automattic\Jetpack\Dashboard_Customizations; |
| 14 | |
| 15 | use Automattic\Jetpack\Masterbar\Inline_Help as Masterbar_Inline_Help; |
| 16 | |
| 17 | /** |
| 18 | * Class Inline_Help. |
| 19 | */ |
| 20 | class Inline_Help { |
| 21 | /** |
| 22 | * Instance of \Automattic\Jetpack\Masterbar\Inline_Help |
| 23 | * Used for deprecation purposes. |
| 24 | * |
| 25 | * @var \Automattic\Jetpack\Masterbar\Inline_Help |
| 26 | */ |
| 27 | private $inline_help_wrapper; |
| 28 | |
| 29 | /** |
| 30 | * Inline_Help constructor. |
| 31 | * |
| 32 | * @deprecated 13.7 |
| 33 | */ |
| 34 | public function __construct() { |
| 35 | _deprecated_function( __METHOD__, 'jetpack-13.7', 'Automattic\\Jetpack\\Masterbar\\Inline_Help::__construct' ); |
| 36 | |
| 37 | $this->inline_help_wrapper = new Masterbar_Inline_Help(); |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Registers actions. |
| 42 | * |
| 43 | * @deprecated 13.7 |
| 44 | * |
| 45 | * @param object $current_screen Current screen object. |
| 46 | * @return void |
| 47 | */ |
| 48 | public function register_actions( $current_screen ) { |
| 49 | _deprecated_function( __METHOD__, 'jetpack-13.7', 'Automattic\\Jetpack\\Masterbar\\Inline_Help::register_actions' ); |
| 50 | $this->inline_help_wrapper->register_actions( $current_screen ); |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * Outputs "FAB" icon markup and SVG. |
| 55 | * |
| 56 | * @deprecated 13.7 |
| 57 | * |
| 58 | * @return void|string the HTML markup for the FAB or early exit. |
| 59 | */ |
| 60 | public function add_fab_icon() { |
| 61 | _deprecated_function( __METHOD__, 'jetpack-13.7', 'Automattic\\Jetpack\\Masterbar\\Inline_Help::add_fab_icon' ); |
| 62 | $this->inline_help_wrapper->add_fab_icon(); |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * Enqueues FAB CSS styles. |
| 67 | * |
| 68 | * @deprecated 13.7 |
| 69 | * |
| 70 | * @return void |
| 71 | */ |
| 72 | public function add_fab_styles() { |
| 73 | _deprecated_function( __METHOD__, 'jetpack-13.7', 'Automattic\\Jetpack\\Masterbar\\Inline_Help::add_fab_styles' ); |
| 74 | $this->inline_help_wrapper->add_fab_styles(); |
| 75 | } |
| 76 | } |
| 77 |