protected function parse_elements_css()
{
if (!$this->is_build_with_elementor()) {
return;
}
$data = Plugin::instance()->db->get_plain_editor($this->post_id);
$css = '';
foreach ($data as $section_data) {
$section = new Element_Section($section_data);
$this->render_styles($section);
}
$css .= $this->stylesheet_obj;
if (!empty($this->_columns_width)) {
$css .= '@media (min-width: 768px) {';
foreach ($this->_columns_width as $column_width) {
$css .= $column_width;
}
$css .= '}';
}
$this->css = $css;
}