Cool themeFields

In the latest development version of Typecho, a useful function themefields is provided for developers.

Open the functions.php of the default theme and uncomment the following code to add an automatically bound input box for your theme

 function themeFields ( $layout )  {
     $logoUrl  =  new Typecho_Widget_Helper_Form_Element_Text ( 'logoUrl' ,  NULL ,  NULL , _t ( 'Site LOGO address' ) , _t ( 'Fill in an image URL address here to add a logo before the website title' ) ) ;
     $layout -> addItem ( $logoUrl ) ;
 }

The effect is as follows

Print/Export
language
  ?