function bs_shortcodes_reponsive_attributes in Bootstrap 3 shortcodes 7
File
- includes/
bootstrap-shortcodes-attributes.inc, line 924 - Adds attribute callbacks for shortcode wysiwyg integration @author Jurriaan Roelofs
Code
function bs_shortcodes_reponsive_attributes($form, $form_state) {
$form['visible'] = array(
'#type' => 'select',
'#title' => t('visible'),
'#options' => array(
'xs' => t('xs'),
'sm' => t('sm'),
'md' => t('md'),
'lg' => t('lg'),
),
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'reponsive',
),
),
),
);
$form['hidden'] = array(
'#type' => 'select',
'#title' => t('hidden'),
'#options' => array(
'xs' => t('xs'),
'sm' => t('sm'),
'md' => t('md'),
'lg' => t('lg'),
),
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'reponsive',
),
),
),
);
$form['block'] = array(
'#type' => 'select',
'#title' => t('block'),
'#options' => array(
'xs' => t('xs'),
'sm' => t('sm'),
'md' => t('md'),
'lg' => t('lg'),
),
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'reponsive',
),
),
),
);
$form['inline'] = array(
'#type' => 'select',
'#title' => t('inline'),
'#options' => array(
'xs' => t('xs'),
'sm' => t('sm'),
'md' => t('md'),
'lg' => t('lg'),
),
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'reponsive',
),
),
),
);
$form['inline_block'] = array(
'#type' => 'select',
'#title' => t('inline_block'),
'#options' => array(
'xs' => t('xs'),
'sm' => t('sm'),
'md' => t('md'),
'lg' => t('lg'),
),
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'reponsive',
),
),
),
);
$form['xclass'] = array(
'#type' => 'textfield',
'#title' => t('xclass'),
'#size' => 30,
'#maxlength' => 30,
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'reponsive',
),
),
),
);
$form['data'] = array(
'#type' => 'textfield',
'#title' => t('data'),
'#size' => 30,
'#maxlength' => 30,
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'reponsive',
),
),
),
);
return $form;
}