image() public static method

public static image ( $url, $name = null, $attributes = [] )
Beispiel #1
0
function meta_acpt_slide_options()
{
    $form = new form('slide', null);
    $form->image('image', array('label' => 'Image URL', 'help' => 'Upload an Image that is 940px by 350px for best results', 'button' => 'Add Your Slide'));
    $form->text('headline', array('label' => 'Headline'));
    $form->textarea('description', array('label' => 'Description'));
    $form->select('showText', array('Yes', 'No'), array('label' => 'Show Headline and Description'));
}
Beispiel #2
0
function meta_custom()
{
    $form = new form('details', null);
    $form->text('name', array('label' => 'Text Field'));
    $form->image('image', array('label' => 'Image Field', 'button' => 'Add Your Image'));
    $form->file('file', array('label' => 'File Field', 'button' => 'Select a File'));
    $form->textarea('address', array('label' => 'Textarea', 'validate' => 'html'));
    $form->select('rooms', array('one', 'two', 'three'), array('label' => 'Select List'));
    $form->radio('baths', array('blue', 'green', 'red'), array('label' => 'Radio Buttons'));
    $form->editor('baths', 'WYSIWYG Editor');
}