public static function prime() { tiny(); small(); medium(); large(); huge(); }
public function subscription_form($model, $action = "", $handle = false, $show_name_field = true, $extra1 = false, $extra2 = false, $image_submit = false) { if (!$handle) { $handle = "all_sections"; } $form = '<div id="subscription-form"> <form action="' . $action . '" method="post" class="form_container">' . hidden_field($model, "handle", array('value' => $handle)) . hidden_field($model, "status", array('value' => 1)) . '<fieldset>'; if ($show_name_field) { $form .= large(text_field($model, "name", array(), "Name <span class='mandatory'>*</span>")) . form_divider(); } $form .= large(text_field($model, "email", array(), "Email <span class='mandatory'>*</span>")); if ($extra1) { $form .= form_divider() . large(text_field($model, "extra1", array(), $extra1)); } if ($extra2) { $form .= form_divider() . large(text_field($model, "extra2", array(), $extra2)); } $form .= form_divider() . '<span id="mandatory">* Compulsory fields</span>'; if ($image_submit) { $form .= image_submit_tag($image_submit, array('alt' => "submit button", "title" => "Submit")); } else { $form .= small(submit_field($model, "Subscribe")); } $form .= '</fieldset> </form> </div>'; return $form; }