css
5 years ago
js
5 years ago
class-atomic-additional-css-manager.php
2 years ago
class-css-customizer-nudge.php
2 years ago
class-css-nudge-customize-control.php
2 years ago
class-wpcom-additional-css-manager.php
2 years ago
class-atomic-additional-css-manager.php
55 lines
| 1 | <?php |
| 2 | /** |
| 3 | * WPORG_Additional_CSS_Manager file |
| 4 | * |
| 5 | * Responsible with replacing the Core Additional CSS section with an upgrade nudge on Atomic. |
| 6 | * |
| 7 | * @deprecated 13.7 Use Automattic\Jetpack\Masterbar\Atomic_Additional_CSS_Manager instead. |
| 8 | * |
| 9 | * @package Jetpack |
| 10 | */ |
| 11 | |
| 12 | namespace Automattic\Jetpack\Dashboard_Customizations; |
| 13 | |
| 14 | use Automattic\Jetpack\Masterbar\Atomic_Additional_CSS_Manager as Masterbar_Atomic_Additional_CSS_Manager; |
| 15 | |
| 16 | /** |
| 17 | * Class Atomic_Additional_CSS_Manager |
| 18 | * |
| 19 | * @package Automattic\Jetpack\Dashboard_Customizations |
| 20 | */ |
| 21 | class Atomic_Additional_CSS_Manager { |
| 22 | |
| 23 | /** |
| 24 | * Instance of \Automattic\Jetpack\Masterbar\Atomic_Additional_CSS_Manager |
| 25 | * Used for deprecation purposes. |
| 26 | * |
| 27 | * @var \Automattic\Jetpack\Masterbar\Atomic_Additional_CSS_Manager |
| 28 | */ |
| 29 | private $additional_css_wrapper; |
| 30 | |
| 31 | /** |
| 32 | * Atomic_Additional_CSS_Manager constructor. |
| 33 | * |
| 34 | * @deprecated 13.7 |
| 35 | * |
| 36 | * @param string $domain the Site domain. |
| 37 | */ |
| 38 | public function __construct( $domain ) { |
| 39 | _deprecated_function( __METHOD__, 'jetpack-13.7', 'Automattic\\Jetpack\\Masterbar\\Atomic_Additional_CSS_Manager::__construct' ); |
| 40 | $this->additional_css_wrapper = new Masterbar_Atomic_Additional_CSS_Manager( $domain ); |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Replace the Additional CSS section from Customiz¡er with an upgrade nudge. |
| 45 | * |
| 46 | * @deprecated 13.7 |
| 47 | * |
| 48 | * @param \WP_Customize_Manager $wp_customize_manager Core customize manager. |
| 49 | */ |
| 50 | public function register_nudge( \WP_Customize_Manager $wp_customize_manager ) { |
| 51 | _deprecated_function( __METHOD__, 'jetpack-13.7', 'Automattic\\Jetpack\\Masterbar\\Atomic_Additional_CSS_Manager::register_nudge' ); |
| 52 | $this->additional_css_wrapper->register_nudge( $wp_customize_manager ); |
| 53 | } |
| 54 | } |
| 55 |