/**
  * Update template stylesheet.
  * 
  * @since 1.0.0
  * @access public
  * @return json
  */
 public function clear_template_style()
 {
     // Check ajax referer
     check_ajax_referer($this->action_nonce, $this->field_nonce);
     global $tf_styles;
     $template_id = intval($_POST['template_id']);
     $dataStyling = isset($_POST['dataStyling']) ? json_decode(stripslashes($_POST['dataStyling']), true) : array();
     TF_Model::save_styling($template_id, $dataStyling);
     $styles = TF_Model::get_custom_styling($template_id, array('include_template_part' => true, 'include_global_style' => true));
     $data = '<style type="text/css" id="tf-template-layout-css">' . $tf_styles->generate_css($styles) . '</style>';
     wp_send_json_success($data);
 }