'label' => 'GPS Lon.',
'type' => 'text'
),
- array(
- 'name' => 'extra',
- 'label' => 'Extra Content',
- 'type' => 'textarea'
- ),
array(
'name' => 'facebook',
'label' => 'Facebook',
'label' => 'Pinterest',
'type' => 'text'
),
+ array(
+ 'name' => 'tripadvisor',
+ 'label' => 'Trip Advisor',
+ 'type' => 'text'
+ ),
+ array(
+ 'name' => 'flickr',
+ 'label' => 'Flickr',
+ 'type' => 'text'
+ ),
+ array(
+ 'name' => 'extra',
+ 'label' => 'Extra Content',
+ 'type' => 'textarea'
+ ),
);
+
+ // foreach($fieldNames as $index => $setting){
+ // if( ! in_array( $setting['name'], get_option( GLM_CLIENTINFO_SETTINGS ) ) && get_option( GLM_CLIENTINFO_SETTINGS ) !== FALSE ){
+ // update_option(GLM_CLIENTINFO_SETTINGS , $fieldNames);
+ // }
+ // }
+
$fieldNames2 = array(
array(
'name' => 'address2',
'label' => 'Secondary GPS Lon.',
'type' => 'text'
),
+ array(
+ 'name' => 'facebook',
+ 'label' => 'Facebook',
+ 'type' => 'text'
+ ),
+ array(
+ 'name' => 'twitter',
+ 'label' => 'Twitter',
+ 'type' => 'text'
+ ),
+ array(
+ 'name' => 'instagram',
+ 'label' => 'Instagram',
+ 'type' => 'text'
+ ),
+ array(
+ 'name' => 'youtube',
+ 'label' => 'Youtube',
+ 'type' => 'text'
+ ),
+ array(
+ 'name' => 'pinterest',
+ 'label' => 'Pinterest',
+ 'type' => 'text'
+ ),
+ array(
+ 'name' => 'tripadvisor',
+ 'label' => 'Trip Advisor',
+ 'type' => 'text'
+ ),
+ array(
+ 'name' => 'flickr',
+ 'label' => 'Flickr',
+ 'type' => 'text'
+ ),
);
$this->glmclientinfoAddSettingTextField(
+
+<?php
+$option_value = isset($options[$fieldName]) ? $options[$fieldName] : '';
+?>
<input type="text" name="glmclientinfo_settings[<?php echo $fieldName;?>]"
- value="<?php echo str_replace('"', '"e;', $options[$fieldName]); ?>">
\ No newline at end of file
+ value="<?php echo str_replace('"', '"e;', $option_value); ?>">
\ No newline at end of file