| 1 |
<?php |
| 2 |
defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' ); |
| 3 |
|
| 4 |
/** |
| 5 |
* Class for deprecated methods from Imagify_Notices. |
| 6 |
* |
| 7 |
* @since 1.7 |
| 8 |
* @author Grégory Viguier |
| 9 |
* @deprecated |
| 10 |
*/ |
| 11 |
class Imagify_Notices_Deprecated { |
| 12 |
|
| 13 |
/** |
| 14 |
* Include the view file. |
| 15 |
* |
| 16 |
* @since 1.6.10 In Imagify_Notices |
| 17 |
* @since 1.7 Deprecated |
| 18 |
* @author Grégory Viguier |
| 19 |
* @deprecated |
| 20 |
* |
| 21 |
* @param string $view The view ID. |
| 22 |
* @param mixed $data Some data to pass to the view. |
| 23 |
*/ |
| 24 |
public function render_view( $view, $data = array() ) { |
| 25 |
_deprecated_function( get_class( $this ) . '::' . __FUNCTION__ . '()', '1.7', 'Imagify_Views::get_instance()->print_template( \'notice-\' . $view, $data )' ); |
| 26 |
|
| 27 |
Imagify_Views::get_instance()->print_template( 'notice-' . $view, $data ); |
| 28 |
} |
| 29 |
} |
| 30 |
|