@@ -77,16 +77,7 @@ class autoshortcoder_Settings {
*/
publicfunctionsettings_assets(){
// We're including the farbtastic script & styles here because they're needed for the colour picker
// If you're not including a colour picker field then you can leave these calls out as well as the farbtastic dependency for the wpt-admin-js script below
wp_enqueue_style('farbtastic');
wp_enqueue_script('farbtastic');
// We're including the WP media scripts here because they're needed for the image upload field
// If you're not including an image upload then you can leave this function call out
'description'=>__('This is a secret text field - any data saved here will not be displayed after the page has reloaded, but it will be saved.','autoshortcoder'),
'description'=>__('This is a standard text area.','autoshortcoder'),
'id'=>'autoshortcode_settings',
'label'=>__('shortcodes to add','autoshortcoder'),
'description'=>__('Add tags, a title and shortcodes, one per line, separated by |','autoshortcoder'),
'type'=>'textarea',
'default'=>'',
'placeholder'=>__('Placeholder text for this textarea','autoshortcoder')
),
array(
'id'=>'single_checkbox',
'label'=>__('An Option','autoshortcoder'),
'description'=>__('A standard checkbox - if you save this option as checked then it will store the option as \'on\', otherwise it will be an empty string.','autoshortcoder'),
'type'=>'checkbox',
'default'=>''
),
array(
'id'=>'select_box',
'label'=>__('A Select Box','autoshortcoder'),
'description'=>__('A standard select box.','autoshortcoder'),
'description'=>__('These are some extra input fields that maybe aren\'t as common as the others.','autoshortcoder'),
'fields'=>array(
array(
'id'=>'number_field',
'label'=>__('A Number','autoshortcoder'),
'description'=>__('This is a standard number field - if this field contains anything other than numbers then the form will not be submitted.','autoshortcoder'),
'type'=>'number',
'default'=>'',
'placeholder'=>__('42','autoshortcoder')
),
array(
'id'=>'colour_picker',
'label'=>__('Pick a colour','autoshortcoder'),
'description'=>__('This uses WordPress\' built-in colour picker - the option is stored as the colour\'s hex code.','autoshortcoder'),
'type'=>'color',
'default'=>'#21759B'
),
array(
'id'=>'an_image',
'label'=>__('An Image','autoshortcoder'),
'description'=>__('This will upload an image to your media library and store the attachment ID in the option field. Once you have uploaded an imge the thumbnail will display above these buttons.','autoshortcoder'),
// We're including the farbtastic script & styles here because they're needed for the colour picker
// If you're not including a colour picker field then you can leave these calls out as well as the farbtastic dependency for the wpt-admin-js script below
wp_enqueue_style('farbtastic');
wp_enqueue_script('farbtastic');
// We're including the WP media scripts here because they're needed for the image upload field
// If you're not including an image upload then you can leave this function call out
'description'=>__('This is a secret text field - any data saved here will not be displayed after the page has reloaded, but it will be saved.','autoshortcoder'),
'description'=>__('This is a standard text area.','autoshortcoder'),
'type'=>'textarea',
'default'=>'',
'placeholder'=>__('Placeholder text for this textarea','autoshortcoder')
),
array(
'id'=>'single_checkbox',
'label'=>__('An Option','autoshortcoder'),
'description'=>__('A standard checkbox - if you save this option as checked then it will store the option as \'on\', otherwise it will be an empty string.','autoshortcoder'),
'type'=>'checkbox',
'default'=>''
),
array(
'id'=>'select_box',
'label'=>__('A Select Box','autoshortcoder'),
'description'=>__('A standard select box.','autoshortcoder'),
'description'=>__('These are some extra input fields that maybe aren\'t as common as the others.','autoshortcoder'),
'fields'=>array(
array(
'id'=>'number_field',
'label'=>__('A Number','autoshortcoder'),
'description'=>__('This is a standard number field - if this field contains anything other than numbers then the form will not be submitted.','autoshortcoder'),
'type'=>'number',
'default'=>'',
'placeholder'=>__('42','autoshortcoder')
),
array(
'id'=>'colour_picker',
'label'=>__('Pick a colour','autoshortcoder'),
'description'=>__('This uses WordPress\' built-in colour picker - the option is stored as the colour\'s hex code.','autoshortcoder'),
'type'=>'color',
'default'=>'#21759B'
),
array(
'id'=>'an_image',
'label'=>__('An Image','autoshortcoder'),
'description'=>__('This will upload an image to your media library and store the attachment ID in the option field. Once you have uploaded an imge the thumbnail will display above these buttons.','autoshortcoder'),