Project

General

Profile

1
<?php
2
  /**
3
  * QuickSkin Extension layoutfield
4
  * This function is to be used with WebsiteBakers Layout-Fields
5
  * Layout-Fields are mostly <textarea> fields, where the modules Frontend Template is specified
6
  *
7
  * Usage Example:
8
  * Content:  $template->assign('loop_template', $settings['loop']);  
9
  * Template: <textarea name="loop" rows="10" cols="1">{layoutfield:loop_template}</textarea>
10
  *
11
  * @author WebsiteBaker Org e.V.
12
  */
13
  function qx_layoutfield( $db_string ) {
14
  // Set raw html <'s and >'s to be replaced by friendly html code to be used in Layout Fields
15
	$raw = array('<', '>');
16
	$friendly = array('&lt;', '&gt;');
17
	
18
    return str_replace( $raw, $friendly, $db_string );
19
  }
(24-24/43)