Exemplo n.º 1
0
        echo esc_attr(@$goal['name']);
        ?>
" required />
				</td>
			</tr>

			<tr valign="top">
				<th scope="row"><?php 
        esc_html_e('Type', 'better-analytics');
        ?>
</th>
				<td>

					<?php 
        echo '<select name="type" data-placeholder="' . esc_html__('Pick type', 'better-analytics') . '" id="ba_type" class="chosen-select">';
        $types = DigitalPointBetterAnalytics_Model_Goals::getTypes();
        foreach ($types as $key => $type) {
            echo '<option value="' . $key . '"' . ($key == @$goal['type'] ? ' selected="selected"' : '') . '>' . htmlentities($type) . '</option>';
        }
        echo '</select>';
        ?>

				</td>
			</tr>

			<tr valign="top">
				<th scope="row"></th>
				<td>
					<fieldset>
						<label for="ba_active">
							<input name="active" type="checkbox" id="ba_active" value="1" <?php