Exemplo n.º 1
0
    /**
     * Option generation engine
     */
    function option_engine($oid, $o, $flag = null, $setting = null)
    {
        $o = wp_parse_args($o, $this->defaults);
        if ($o['disabled']) {
            return;
        }
        $o['placeholder'] = pl_html($o['placeholder']);
        ?>
		
				<tr valign="top">
					<th scope="row" class="titledesc"><label for="<?php 
        echo $o['key'];
        ?>
"><?php 
        echo $o['title'];
        ?>
</label></th>
					<td> <?php 
        $this->option_breaker($oid, $o);
        ?>
 </td>
				</tr>

<?php 
    }
 /**
  *
  * Regular Textarea
  *
  * @since 1.0.0
  * @author Andrew Powers
  *
  */
 function _get_textarea($oid, $o, $val)
 {
     $class = $o['type'] == 'textarea_big' ? 'longtext' : '';
     $class .= $o['type'] == 'code' ? 'code_textarea' : '';
     $extra = isset($o['height']) && $o['height'] != '0px' ? sprintf('style="height: %s"', $o['height']) : '';
     // Output
     echo $this->input_label($o['input_id'], $o['inputlabel']);
     echo $this->input_textarea($o['input_id'], $o['input_name'], pl_html($o['val']), $class, $extra);
 }
Exemplo n.º 3
0
/**
 *
 * @TODO document
 *
 */
function pl_ehtml($text)
{
    echo pl_html($text);
}