private function GatherContentCurl::dropdownHtml in GatherContent 7.2
Generate dropdown html for a given object.
4 calls to GatherContentCurl::dropdownHtml()
- GatherContentCurl::fieldSettings in includes/
curl.inc - Generate individual field options.
- GatherContentCurl::generateFormSettings in includes/
curl.inc - Generate page settings for pages_import page.
- GatherContentCurl::getProjectsDropdown in includes/
curl.inc - Get project dropdown.
- GatherContentCurl::getStateDropdown in includes/
curl.inc - Get workflow state dropdown.
File
- includes/
curl.inc, line 464 - Contains functions used to process and retrieve data from GatherContent.
Class
- GatherContentCurl
- @file Contains functions used to process and retrieve data from GatherContent.
Code
private function dropdownHtml($val, $html, $input = FALSE, $real_val = '') {
return '
<div class="btn-group has_input">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
' . $val . '
<span class="caret"></span>' . ($input !== FALSE ? '<input type="hidden" name="' . $input . '" value="' . esc_attr($real_val) . '" />' : '') . '
</a>
<ul class="dropdown-menu">
' . $html . '
</ul>
</div>';
}