Exemple #1
0
 /**
  * tumblrPostTypes.
  *
  * @param   string  $selected  The key that is selected
  * @param   string  $name      The name for the field
  * @param   array   $attribs   Additional HTML attributes for the <select> tag*
  * @param   string  $idTag     The id for the field
  *
  * @return  string  HTML
  */
 public static function tumblrPostTypes($selected = null, $name = 'posttype', $attribs = array(), $idTag = false)
 {
     // Text, photo, quote, link, chat, audio, video
     $options = array();
     $options[] = array('name' => 'Text', 'value' => 'text');
     $options[] = array('name' => 'Photo', 'value' => 'photo');
     $options[] = array('name' => 'Link', 'value' => 'link');
     return EHtmlSelect::btngrouplist($selected, $name, $attribs, $options, $idTag);
 }