@@ -58,23 +58,36 @@ private function create_tabbed_options_page() {
5858 ),
5959 Field::make ( 'separator ' , $ this ->prefix ( 'general_separator_examples ' ), __ ( 'Example Fields ' , self ::$ textdomain ) )
6060 ->help_text ( __ ( 'These fields are just provided as examples and are not used by any logic in the plugin. ' , self ::$ textdomain ) ),
61- Field::make ( 'text ' , $ this ->prefix ( 'blog_title ' ), __ ( 'Blog Title ' , self ::$ textdomain ) ),
61+ Field::make ( 'text ' , $ this ->prefix ( 'blog_title ' ), __ ( 'Blog Title ' , self ::$ textdomain ) )
62+ ->set_classes ( 'carbon-fields-custom-input--1-2 ' ),
6263 Field::make ( 'text ' , $ this ->prefix ( 'email ' ), __ ( 'Your E-mail Address ' , self ::$ textdomain ) )
6364 ->set_attribute ( 'type ' , 'email ' )
65+ ->set_classes ( 'carbon-fields-custom-field-email carbon-fields-custom-input--1-3 ' )
6466 ->help_text ( __ ( 'This input field is an HTML5 <tt>email</tt> type. ' , self ::$ textdomain ) ),
6567 Field::make ( 'text ' , $ this ->prefix ( 'web_site_url ' ), __ ( 'Web Site Address ' , self ::$ textdomain ) )
66- ->set_attribute ( 'type ' , 'url ' )->set_attribute ( 'placeholder ' , site_url () )
67- ->help_text ( __ ( 'This input field is an HTML5 <tt>url</tt> type. ' , self ::$ textdomain ) ),
68+ ->set_attribute ( 'type ' , 'url ' )
69+ ->set_attribute ( 'placeholder ' , site_url () )
70+ ->set_classes ( 'carbon-fields-custom-field-url ' )
71+ ->help_text ( __ ( 'This input field is an HTML5 <tt>url</tt> type. It is also wrapped in a <tt>.carbon-fields-custom-field-url</tt> CSS class to add a background globe dashicon. ' , self ::$ textdomain ) ),
6872 Field::make ( 'text ' , $ this ->prefix ( 'phone ' ), __ ( 'Phone Number ' , self ::$ textdomain ) )
73+ ->set_classes ( 'carbon-fields-custom-field-tel carbon-fields-custom-input-smaller ' )
6974 ->set_attribute ( 'type ' , 'tel ' ),
7075 Field::make ( 'date_time ' , $ this ->prefix ( 'date_time ' ), __ ( 'Date & Time ' , self ::$ textdomain ) ),
71- Field::make ( 'radio ' , $ this ->prefix ( 'radio_buttons ' ), __ ( 'Menu Position ' , self ::$ textdomain ) )
76+ Field::make ( 'radio ' , $ this ->prefix ( 'menu_position ' ), __ ( 'Menu Position ' , self ::$ textdomain ) )
7277 ->add_options (array (
7378 'none ' => __ ( 'Disabled ' , self ::$ textdomain ),
7479 'top ' => __ ( 'Top (Default) ' , self ::$ textdomain ),
7580 'left ' => __ ( 'Left ' , self ::$ textdomain )
7681 ))
7782 ->set_default_value ( 'top ' ),
83+ Field::make ( 'radio ' , $ this ->prefix ( 'search_position ' ), __ ( 'Search Box Location ' , self ::$ textdomain ) )
84+ ->add_options (array (
85+ 'header ' => __ ( 'Header ' , self ::$ textdomain ),
86+ 'side ' => __ ( 'Sidebar ' , self ::$ textdomain ),
87+ 'flyout ' => __ ( 'Flyout Menu ' , self ::$ textdomain )
88+ ))
89+ ->set_classes ( 'carbon-fields-custom-radio-horizontal ' )
90+ ->help_text ( __ ( 'Example of horizontally-aligned radio buttons. ' , self ::$ textdomain ) ),
7891 Field::make ( 'complex ' , $ this ->prefix ( 'slides ' ), self ::$ config ->get ( 'plugin/meta/Name ' ) . ' ' . __ ( 'Slides ' , self ::$ textdomain ) )
7992 ->set_datastore ( new Serialized_Theme_Options_Datastore () )
8093 ->add_fields ( array (
@@ -83,6 +96,7 @@ private function create_tabbed_options_page() {
8396 )
8497 ),
8598 Field::make ( 'select ' , $ this ->prefix ( 'select_dropdown ' ), __ ( 'Favorite Continent ' , self ::$ textdomain ) )
99+ ->set_classes ( 'carbon-fields-custom-input-small ' )
86100 ->add_options (array (
87101 'aria ' => __ ( 'Asia ' , self ::$ textdomain ),
88102 'africa ' => __ ( 'Africa ' , self ::$ textdomain ),
0 commit comments