<?php

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

jimport('joomla.form.formfield');

class JFormFieldOgtypes extends JFormField {

    protected $type = 'ogtypes';

    // getLabel() left out

    public function getInput() {
        return '<select id="' . $this->id . '" name="' . $this->name . '">' .
                '<optgroup label="' . JText::_('COM_CWSOCIALLINKS_FIELD_OG_TYPE_H1') . '">' .
                '<option value="article">' . JText::_('COM_CWSOCIALLINKS_FIELD_OG_TYPE_H1_OPT1') . '</option>' .
                '<option value="blog">' . JText::_('COM_CWSOCIALLINKS_FIELD_OG_TYPE_H1_OPT2') . '</option>' .
                '<option value="website">' . JText::_('COM_CWSOCIALLINKS_FIELD_OG_TYPE_H1_OPT3') . '</option>' .
                '</optgroup>' .
                '</select>';
    }

}