Advertisement
Guest User

Untitled

a guest
Dec 5th, 2012
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.81 KB | None | 0 0
  1. // Define H1 Option
  2. $options['h1_heading'] = array( 'name' => 'H1 Heading',
  3.     'desc' => 'Choose your prefered font for H1 heading and titles.',
  4.     'id' => 'h1_heading',
  5.     'std' => array( 'size' => '32px', 'lineheight' => '32px', 'face' => 'Arial', 'color' => '#222'),
  6.     'type' => 'typography',
  7.     'options' => array(
  8.             'faces' => $typography_mixed_fonts )
  9. );
  10.  
  11. /* H1 Heading font face */
  12. $wp_customize->add_setting( 'my_framework[h1_heading][face]', array(
  13.     'default' => $options['h1_heading']['std']['face'],
  14.     'type' => 'option'
  15. ) );
  16.  
  17. $wp_customize->add_control( 'my_framework_h1_heading', array(
  18.         'label' => $options['h1_heading']['name'],
  19.         'section' => 'my_framework_header',
  20.         'settings' => 'my_framework[h1_heading][face]',
  21.         'type' => 'select',
  22.         'choices' => $options['h1_heading']['options']['faces']
  23. ) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement