Ejemplo n.º 1
0
 /**
  * Pre Process
  */
 function pre_process($data)
 {
     Wygwam_helper::$entry_site_id = isset($this->row['entry_site_id']) ? $this->row['entry_site_id'] : null;
     // convert file tags to URLs
     Wygwam_helper::replace_file_tags($data);
     // convert asset tags to URLs
     Wygwam_helper::replace_asset_tags($data);
     // convert site page tags to URLs
     Wygwam_helper::replace_page_tags($data);
     $this->EE->load->library('typography');
     $tmp_encode_email = $this->EE->typography->encode_email;
     $this->EE->typography->encode_email = FALSE;
     $tmp_convert_curly = $this->EE->typography->convert_curly;
     $this->EE->typography->convert_curly = FALSE;
     $data = $this->EE->typography->parse_type($data, array('text_format' => 'none', 'html_format' => 'all', 'auto_links' => isset($this->row['channel_auto_link_urls']) ? $this->row['channel_auto_link_urls'] : 'n', 'allow_img_url' => isset($this->row['channel_allow_img_urls']) ? $this->row['channel_allow_img_urls'] : 'y'));
     $this->EE->typography->encode_email = $tmp_encode_email;
     $this->EE->typography->convert_curly = $tmp_convert_curly;
     // use normal quotes
     $data = str_replace('"', '"', $data);
     return $data;
 }