typography = "Typography"; $value_of_std[0]=get_theme_mod("_type_headers_font",'Segoe UI'); $value_of_std[1]=get_theme_mod("_type_headers_kern",'0.00em'); $value_of_std[2]=get_theme_mod("_type_headers_transform",'none'); $value_of_std[3]=get_theme_mod("_type_headers_variant",'normal'); $value_of_std[4]=get_theme_mod("_type_headers_weight",'normal'); $value_of_std[5]=get_theme_mod("_type_headers_style",'normal'); $value_of_std[6]=get_theme_mod("_type_inputs_font",'Segoe UI'); $value_of_std[7]=get_theme_mod("_type_inputs_kern",'0.00em'); $value_of_std[8]=get_theme_mod("_type_inputs_transform",'none'); $value_of_std[9]=get_theme_mod("_type_inputs_variant",'normal'); $value_of_std[10]=get_theme_mod("_type_inputs_weight",'normal'); $value_of_std[11]=get_theme_mod("_type_inputs_style",'normal'); $value_of_std[12]=get_theme_mod("_type_primary_font",'Segoe UI'); $value_of_std[13]=get_theme_mod("_type_primary_kern",'0.00em'); $value_of_std[14]=get_theme_mod("_type_primary_transform",'none'); $value_of_std[15]=get_theme_mod("_type_primary_variant",'normal'); $value_of_std[16]=get_theme_mod("_type_primary_weight",'normal'); $value_of_std[17]=get_theme_mod("_type_primary_style",'normal'); $value_of_std[18]=get_theme_mod("_type_secondary_font",'Segoe UI'); $value_of_std[19]=get_theme_mod("_type_secondary_kern",'0.00em'); $value_of_std[20]=get_theme_mod("_type_secondary_transform",'none'); $value_of_std[21]=get_theme_mod("_type_secondary_variant",'normal'); $value_of_std[22]=get_theme_mod("_type_secondary_weight",'normal'); $value_of_std[23]=get_theme_mod("_type_secondary_style",'normal'); $this->options_typography = array( array( "name" => "Typography", "type" => "title" ), array( "type" => "open" ), array( "name" => "Typography", "id" => "_type_headers_font", "desc" => "", "type" => "select", "std" => $value_of_std[0] ), array( "name" => "Typography", "id" => "_type_headers_kern", "desc" => "", "type" => "", "std" => $value_of_std[1] ), array( "name" => "Typography", "id" => "_type_headers_transform", "desc" => "", "type" => "", "std" => $value_of_std[2] ), array( "name" => "Typography", "id" => "_type_headers_variant", "desc" => "", "type" => "", "std" => $value_of_std[3] ), array( "name" => "Typography", "id" => "_type_headers_weight", "desc" => "", "type" => "", "std" => $value_of_std[4] ), array( "name" => "Typography", "id" => "_type_headers_style", "desc" => "", "type" => "", "std" => $value_of_std[5] ), array( "name" => "Typography", "id" => "_type_inputs_font", "desc" => "", "type" => "", "std" => $value_of_std[6] ), array( "name" => "Typography", "id" => "_type_inputs_kern", "desc" => "", "type" => "", "std" => $value_of_std[7] ), array( "name" => "Typography", "id" => "_type_inputs_transform", "desc" => "", "type" => "", "std" => $value_of_std[8] ), array( "name" => "Typography", "id" => "_type_inputs_variant", "desc" => "", "type" => "", "std" => $value_of_std[9] ), array( "name" => "Typography", "id" => "_type_inputs_weight", "desc" => "", "type" => "", "std" => $value_of_std[10] ), array( "name" => "Typography", "id" => "_type_inputs_style", "desc" => "", "type" => "", "std" => $value_of_std[11] ), array( "name" => "Typography", "id" => "_type_primary_font", "desc" => "", "type" => "", "std" => $value_of_std[12] ), array( "name" => "Typography", "id" => "_type_primary_kern", "desc" => "", "type" => "", "std" => $value_of_std[13] ), array( "name" => "Typography", "id" => "_type_primary_transform", "desc" => "", "type" => "", "std" => $value_of_std[14] ), array( "name" => "Typography", "id" => "_type_primary_variant", "desc" => "", "type" => "", "std" => $value_of_std[15] ), array( "name" => "Typography", "id" => "_type_primary_weight", "desc" => "", "type" => "", "std" => $value_of_std[16] ), array( "name" => "Typography", "id" => "_type_primary_style", "desc" => "", "type" => "", "std" => $value_of_std[17] ), array( "name" => "Typography", "id" => "_type_secondary_font", "desc" => "", "type" => "", "std" => $value_of_std[18] ), array( "name" => "Typography", "id" => "_type_secondary_kern", "desc" => "", "type" => "", "std" => $value_of_std[19] ), array( "name" => "Typography", "id" => "_type_secondary_transform", "desc" => "", "type" => "", "std" => $value_of_std[20] ), array( "name" => "Typography", "id" => "_type_secondary_variant", "desc" => "", "type" => "", "std" => $value_of_std[21] ), array( "name" => "Typography", "id" => "_type_secondary_weight", "desc" => "", "type" => "", "std" => $value_of_std[22] ), array( "name" => "Typography", "id" => "_type_secondary_style", "desc" => "", "type" => "", "std" => $value_of_std[23] ), array( "type" => "close" ) ); } /// save changes or reset options public function web_dorado_theme_update_and_get_options_typography(){ if (isset($_GET['page']) && $_GET['page'] == "web_dorado_theme" && isset($_GET['controller']) && $_GET['controller'] == "typography_page") { if (isset($_REQUEST['action']) == 'save' ) { foreach ($this->options_typography as $value) { set_theme_mod($value['id'], $_REQUEST[$value['id']]); } foreach ($this->options_typography as $value) { if (isset($_REQUEST[$value['id']])) { set_theme_mod($value['id'], $_REQUEST[$value['id']]); } else { remove_theme_mod($value['id']); } } header("Location: themes.php?page=web_dorado_theme&controller=typography_page&saved=true"); die; } else if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'reset') { foreach ($this->options_typography as $value) { remove_theme_mod($value['id']); } header("Location: themes.php?page=web_dorado_theme&controller=typography_page&reset=true"); die; } } } public function web_dorado_typography_page_admin_scripts(){ wp_enqueue_style('typography_page_main_style',get_bloginfo('template_directory').'/admin/css/typography_page.css'); wp_enqueue_script('jquery'); } public function dorado_theme_admin_typography(){ if(isset($_REQUEST['controller']) && $_REQUEST['controller']=='typography_page'){ if (isset($_REQUEST['saved']) && $_REQUEST['saved'] ) echo '

Typography settings saved.

'; if (isset($_REQUEST['reset']) && $_REQUEST['reset'] ) echo '

Typography settings reset.

'; } ?>
options_typography as $value) { switch ($value['type']) { case "open": ?>

User Manual
This section allows you to change the font styles. More...

Get the full version    

Typography - Text Headers. Select the font style of your site's header tags (H1, H2, H3...)
;font-weight:; letter-spacing:; text-transform:; font-variant:; font-style:;"> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Edit Font Styling


Typography - Primary Font. Select the font style of your site’s primary body text.
; font-weight:; letter-spacing:; text-transform:; font-variant:; font-style:;"> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Edit Font Styling


Typography - Secondary Font. Select the font style of your site's secondary or subtitle text (Metabar, Subtitles, etc.).
;font-weight:; letter-spacing:; text-transform:; font-variant:; font-style:;"> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Edit Font Styling


Typography - Inputs and Text Areas. Select the font style of your site’s Text Inputs and Text Areas.
;font-weight:; letter-spacing:; text-transform:; font-variant:; font-style:;"> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Edit Font Styling

$option_value){ ?>