Elgg  Version 1.11
combo.php
Go to the documentation of this file.
1 <?php
8 $label = elgg_echo('install:label:combo:' . $vars['name']);
9 
10 $vars['class'] = "elgg-combo-text";
11 echo elgg_view('input/text', $vars);
12 
13 $vars['class'] = "elgg-combo-checkbox";
14 $vars['value'] = "{$vars['name']}-checkbox";
15 echo elgg_view('input/checkbox', $vars);
16 
17 echo "<label class=\"elgg-combo-label\">$label</label>";
18 
19 echo '<div class="clearfloat"></div>';
$vars['class']
Definition: combo.php:10
$label
Combination of text box and check box.
Definition: combo.php:8
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg echo
Translates a string.
Definition: languages.js:43
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354