function klikbayi_form_order($button_text, $type, $head = '', $style)
{
    global $klikbayi_sanitize;
    $url = klikbayi_url('aff');
    $html = $head;
    $html .= sprintf('<form action="%1$s" id="klikbayi" method="post"><table id="klikbayi-%2$s">', esc_url($url), sanitize_html_class($style));
    $item = kb_order_array();
    foreach ($item as $k => $v) {
        $input_type = 'email' == $k || 'tel' == $k ? $k : 'text';
        $placeholder = 'placeholder' != $style ? '' : $v[0];
        $html .= klikbayi_input_order($k, $v[0], $input_type, $placeholder, $v[1], $style);
    }
    $html .= '</table>';
    $html .= klikbayi_button_order($button_text, $type, 'btn-klikbayi');
    $html .= '</form>';
    return $html;
}
Beispiel #2
0
function klikbayi_form_order($button_text, $type, $head = '', $style)
{
    global $klikbayi_sanitize;
    $url = klikbayi_url('aff');
    $html = $head . '<form action="' . esc_url($url) . '" id="klikbayi" method="post"><table id="klikbayi-' . $style . '">';
    $item = kb_order_array();
    foreach ($item as $k => $v) {
        $input_type = 'email' == $k ? 'email' : 'text';
        $placeholder = 'placeholder' != $style ? '' : $v[0];
        $html .= klikbayi_input_order($k, $v[0], $input_type, $placeholder, $v[1], $style);
    }
    $html .= '</table>' . klikbayi_button_order($button_text, $type);
    $html .= '</form>';
    return $html;
}