blob: 1c97dda53ee36379b76bffc551a4291ed84a2674 [file] [log] [blame]
adminb0dd10f2006-08-25 17:25:49 +00001<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
2/**
3 * Code Igniter
4 *
5 * An open source application development framework for PHP 4.3.2 or newer
6 *
7 * @package CodeIgniter
8 * @author Rick Ellis
9 * @copyright Copyright (c) 2006, pMachine, Inc.
10 * @license http://www.codeignitor.com/user_guide/license.html
11 * @link http://www.codeigniter.com
12 * @since Version 1.0
13 * @filesource
14 */
15
16// ------------------------------------------------------------------------
17
18/**
19 * Code Igniter HTML Helpers
20 *
21 * @package CodeIgniter
22 * @subpackage Helpers
23 * @category Helpers
24 * @author Rick Ellis
25 * @link http://www.codeigniter.com/user_guide/helpers/html_helper.html
26 */
27
28// ------------------------------------------------------------------------
29
30/**
31 * Heading
32 *
33 * Generates an HTML heading tag. First param is the data.
34 * Second param is the size of the heading tag.
35 *
36 * @access public
37 * @param string
38 * @param integer
39 * @return string
40 */
41function heading($data = '', $h = '1')
42{
43 return "<h".$h.">".$data."</h".$h.">";
44}
45
46// ------------------------------------------------------------------------
47
48/**
49 * Generates HTML BR tags based on number supplied
50 *
51 * @access public
52 * @param integer
53 * @return string
54 */
55function br($num = 1)
56{
57 return str_repeat("<br />", $num);
58}
59
60// ------------------------------------------------------------------------
61
62/**
63 * Generates non-breaking space entities based on number supplied
64 *
65 * @access public
66 * @param integer
67 * @return string
68 */
69function nbs($num = 1)
70{
71 return str_repeat("&nbsp;", $num);
72}
73
74
75
76?>