- Timestamp:
- 09/02/2013 09:24:41 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/inc/customizer.php
r25021 r25214 16 16 $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; 17 17 $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; 18 19 $wp_customize->add_section( 'twentyfourteen_theme_options', array(20 'title' => __( 'Theme Options', 'twentyfourteen' ),21 'priority' => 35,22 ) );23 24 $wp_customize->add_setting( 'email_link', array(25 'default' => '',26 'type' => 'theme_mod',27 'capability' => 'edit_theme_options',28 ) );29 30 $wp_customize->add_control( 'email_link', array(31 'label' => __( 'Email Link', 'twentyfourteen' ),32 'section' => 'twentyfourteen_theme_options',33 'settings' => 'email_link',34 'type' => 'text',35 'priority' => 1,36 ) );37 38 $wp_customize->add_setting( 'twitter_link', array(39 'default' => '',40 'type' => 'theme_mod',41 'capability' => 'edit_theme_options',42 ) );43 44 $wp_customize->add_control( 'twitter_link', array(45 'label' => __( 'Twitter Link', 'twentyfourteen' ),46 'section' => 'twentyfourteen_theme_options',47 'settings' => 'twitter_link',48 'type' => 'text',49 'priority' => 2,50 ) );51 52 $wp_customize->add_setting( 'facebook_link', array(53 'default' => '',54 'type' => 'theme_mod',55 'capability' => 'edit_theme_options',56 ) );57 58 $wp_customize->add_control( 'facebook_link', array(59 'label' => __( 'Facebook Link', 'twentyfourteen' ),60 'section' => 'twentyfourteen_theme_options',61 'settings' => 'facebook_link',62 'type' => 'text',63 'priority' => 3,64 ) );65 66 $wp_customize->add_setting( 'pinterest_link', array(67 'default' => '',68 'type' => 'theme_mod',69 'capability' => 'edit_theme_options',70 ) );71 72 $wp_customize->add_control( 'pinterest_link', array(73 'label' => __( 'Pinterest Link', 'twentyfourteen' ),74 'section' => 'twentyfourteen_theme_options',75 'settings' => 'pinterest_link',76 'type' => 'text',77 'priority' => 4,78 ) );79 80 $wp_customize->add_setting( 'google_plus_link', array(81 'default' => '',82 'type' => 'theme_mod',83 'capability' => 'edit_theme_options',84 ) );85 86 $wp_customize->add_control( 'google_plus_link', array(87 'label' => __( 'Google+ Link', 'twentyfourteen' ),88 'section' => 'twentyfourteen_theme_options',89 'settings' => 'google_plus_link',90 'type' => 'text',91 'priority' => 5,92 ) );93 94 $wp_customize->add_setting( 'linkedin_link', array(95 'default' => '',96 'type' => 'theme_mod',97 'capability' => 'edit_theme_options',98 ) );99 100 $wp_customize->add_control( 'linkedin_link', array(101 'label' => __( 'LinkedIn Link', 'twentyfourteen' ),102 'section' => 'twentyfourteen_theme_options',103 'settings' => 'linkedin_link',104 'type' => 'text',105 'priority' => 6,106 ) );107 108 $wp_customize->add_setting( 'flickr_link', array(109 'default' => '',110 'type' => 'theme_mod',111 'capability' => 'edit_theme_options',112 ) );113 114 $wp_customize->add_control( 'flickr_link', array(115 'label' => __( 'Flickr Link', 'twentyfourteen' ),116 'section' => 'twentyfourteen_theme_options',117 'settings' => 'flickr_link',118 'type' => 'text',119 'priority' => 7,120 ) );121 122 $wp_customize->add_setting( 'github_link', array(123 'default' => '',124 'type' => 'theme_mod',125 'capability' => 'edit_theme_options',126 ) );127 128 $wp_customize->add_control( 'github_link', array(129 'label' => __( 'Github Link', 'twentyfourteen' ),130 'section' => 'twentyfourteen_theme_options',131 'settings' => 'github_link',132 'type' => 'text',133 'priority' => 8,134 ) );135 136 $wp_customize->add_setting( 'dribbble_link', array(137 'default' => '',138 'type' => 'theme_mod',139 'capability' => 'edit_theme_options',140 ) );141 142 $wp_customize->add_control( 'dribbble_link', array(143 'label' => __( 'Dribbble Link', 'twentyfourteen' ),144 'section' => 'twentyfourteen_theme_options',145 'settings' => 'dribbble_link',146 'type' => 'text',147 'priority' => 9,148 ) );149 150 $wp_customize->add_setting( 'vimeo_link', array(151 'default' => '',152 'type' => 'theme_mod',153 'capability' => 'edit_theme_options',154 ) );155 156 $wp_customize->add_control( 'vimeo_link', array(157 'label' => __( 'Vimeo Link', 'twentyfourteen' ),158 'section' => 'twentyfourteen_theme_options',159 'settings' => 'vimeo_link',160 'type' => 'text',161 'priority' => 10,162 ) );163 164 $wp_customize->add_setting( 'youtube_link', array(165 'default' => '',166 'type' => 'theme_mod',167 'capability' => 'edit_theme_options',168 ) );169 170 $wp_customize->add_control( 'youtube_link', array(171 'label' => __( 'YouTube Link', 'twentyfourteen' ),172 'section' => 'twentyfourteen_theme_options',173 'settings' => 'youtube_link',174 'type' => 'text',175 'priority' => 11,176 ) );177 18 } 178 19 add_action( 'customize_register', 'twentyfourteen_customize_register' );
Note: See TracChangeset
for help on using the changeset viewer.