| 1 |
<?php |
| 2 |
namespace Elementor\Core\Page_Assets\Data_Managers; |
| 3 |
|
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; // Exit if accessed directly. |
| 6 |
} |
| 7 |
|
| 8 |
/** |
| 9 |
* Elementor Responsive Widgets Data. |
| 10 |
* |
| 11 |
* @since 3.5.0 |
| 12 |
*/ |
| 13 |
class Responsive_Widgets extends Base { |
| 14 |
const RESPONSIVE_WIDGETS_DATABASE_KEY = 'responsive-widgets'; |
| 15 |
|
| 16 |
const RESPONSIVE_WIDGETS_FILE_PATH = 'data/responsive-widgets.json'; |
| 17 |
|
| 18 |
protected $content_type = 'json'; |
| 19 |
|
| 20 |
protected $assets_category = 'widgets'; |
| 21 |
|
| 22 |
protected function get_asset_content() { |
| 23 |
$data = $this->get_file_data( 'content' ); |
| 24 |
|
| 25 |
if ( $data ) { |
| 26 |
$data = json_decode( $data, true ); |
| 27 |
} |
| 28 |
|
| 29 |
return $data; |
| 30 |
} |
| 31 |
} |
| 32 |
|