Changeset 1317256
- Timestamp:
- 12/28/2015 11:08:35 AM (10 years ago)
- File:
-
- 1 edited
-
somatic-framework/trunk/inc/somaOptions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
somatic-framework/trunk/inc/somaOptions.php
r1132916 r1317256 84 84 "go_redirect" => 0, 85 85 "fulldisplayname" => 1, 86 "extend_profile" => 1, // additional user meta fields (online presence) 86 87 // "disable_screen_options" => 0, // hide the screen options tab 87 88 "reset_default_options" => 0, // will reset options to defaults next time plugin is activated … … 466 467 <label><input name="somatic_framework_options[enable_page_excerpts]" type="checkbox" value="1" <?php if ( isset( $soma_options['enable_page_excerpts'] ) ) { checked( '1', $soma_options['enable_page_excerpts'] ); } ?> /> Enable excerpts for built-in Pages</label><br /> 467 468 <label><input name="somatic_framework_options[fulldisplayname]" type="checkbox" value="1" <?php if ( isset( $soma_options['fulldisplayname'] ) ) { checked( '1', $soma_options['fulldisplayname'] ); } ?> /> Force display name to be Firstname Lastname (wp default is the username)</label><br /> 469 <label><input name="somatic_framework_options[extend_profile]" type="checkbox" value="1" <?php if ( isset( $soma_options['extend_profile'] ) ) { checked( '1', $soma_options['extend_profile'] ); } ?> /> Show additional contact meta fields in the User Profile</label><br /> 468 470 <label><input name="somatic_framework_options[kill_attachment_pages]" type="checkbox" value="1" <?php if ( isset( $soma_options['kill_attachment_pages'] ) ) { checked( '1', $soma_options['kill_attachment_pages'] ); } ?> /> Disable linking to attachment pages by redirecting to parent post</label><br /> 469 471 <label><input name="somatic_framework_options[blank_file_title]" type="checkbox" value="1" <?php if ( isset( $soma_options['blank_file_title'] ) ) { checked( '1', $soma_options['blank_file_title'] ); } ?> /> Leave "title" field blank when uploading files (stop automatic insertion of filename)</label><br /> … … 819 821 function extend_user_contactmethod( $contactmethods ) { 820 822 global $soma_options; 821 $prefix = $soma_options['meta_prefix']; 822 $contactmethods[$prefix .'user_phone'] = 'Phone Number'; 823 $contactmethods[$prefix .'user_facebook'] = 'Facebook Profile URL'; 824 $contactmethods[$prefix .'user_twitter'] = 'Twitter Username'; 825 unset( $contactmethods['yim'] ); 826 unset( $contactmethods['aim'] ); 827 unset( $contactmethods['jabber'] ); 823 if ( somaFunctions::fetch_index( $soma_options, 'extend_profile' ) ) { 824 $contactmethods['phone'] = 'Phone Number'; 825 $contactmethods['facebook'] = 'Facebook Profile URL'; 826 $contactmethods['twitter'] = 'Twitter Username'; 827 $contactmethods['instagram'] = 'Instagram Username'; 828 $contactmethods['youtube'] = 'YouTube Channel'; 829 unset( $contactmethods['yim'] ); 830 unset( $contactmethods['aim'] ); 831 unset( $contactmethods['jabber'] ); 832 } 828 833 return $contactmethods; 834 829 835 } 830 836
Note: See TracChangeset
for help on using the changeset viewer.