"Header information", "type" => "title"), array( "type" => "open"), array( "name" => "Blog title", "desc" => "Leave blank if you want to use blog settings (by default)", "id" => $shortname."_header_title", "std" => "", "type" => "text"), array( "name" => "Blog description", "desc" => "Leave blank if you want to use blog settings (by default)", "id" => $shortname."_header_description", "std" => "", "type" => "text"), array( "name" => "Show random avatar?", "desc" => "Ckeck this if you want to show a random avatar on the left of your header", "id" => $shortname."_header_showavatar", "type" => "select", "std" => "Yes", "options" => array("Yes", "No")), array( "type" => "close"), array( "name" => "Top links", "type" => "title"), array( "type" => "open"), array( "name" => "Include pages in the top menu", "desc" => "Here you can specify the pages to include in the top menu. Seperate page ids by commas. By default all pages are included.
Note: By including here any pages, you exlude all the others.", "id" => $shortname."_toplinks_include", "std" => "", "type" => "text"), array( "name" => "Exclude pages in the top menu", "desc" => "You can exlude a page from the top menu by typing here its id. Separate different ids by commas.
Note: All the other pages will be included.
If you have filled in the field above this will not work.", "id" => $shortname."_toplinks_exclude", "std" => "", "type" => "text"), array( "name" => "Include Home link?", "desc" => "Ckeck this if you want to include a Home link in your top menu", "id" => $shortname."_toplinks_home", "type" => "select", "std" => "Yes", "options" => array("Yes", "No")), array( "name" => "Home link title", "desc" => "By default it is Home", "id" => $shortname."_toplinks_hometitle", "std" => "", "type" => "text"), array( "type" => "close"), array( "name" => "Footer information", "type" => "title"), array( "type" => "open"), array( "name" => "Copyright text", "desc" => "By default it prints your Blog Title from this page or from your blog settings if empty", "id" => $shortname."_footer_copytext", "std" => "", "type" => "text"), array( "name" => "Copyright URL", "desc" => "If you have filled in the field above you can link this text to any URL that you prefer", "id" => $shortname."_footer_copyurl", "std" => "", "type" => "text"), array( "name" => "Show Powered by text?", "desc" => "You may decide it yourself.", "id" => $shortname."_footer_showpowered", "type" => "select", "std" => "Yes, I am clever and I respect Wordpress and Art Saveliev because they have worked hard to make me happier", "options" => array("Yes, I am clever and I respect Wordpress and Art Saveliev because they have worked hard to make me happier", "No, I am stupid and I am ashamed to use Wordpress and Artsavius cause I would like to do everything myself but I cannot")), array( "name" => "Entries RSS link", "desc" => "Leave blank if you want to use blog settings (by default)", "id" => $shortname."_footer_rssentries", "std" => "", "type" => "text"), array( "name" => "Comments RSS link", "desc" => "Leave blank if you want to use blog settings (by default)", "id" => $shortname."_footer_rsscomments", "std" => "", "type" => "text"), array( "type" => "close"), array( "name" => "Sidebar option", "type" => "title"), array( "type" => "open"), array( "name" => "Sidebar number and position", "desc" => "Leave blank if you want to use blog settings (by default)", "id" => $shortname."_sidebar_position", "type" => "select", "std" => "both sidebars on the right", "options" => array("both sidebars on the right", "both sidebars on the left","content between two sidebars","one sidebar on the right","one sidebar on the left")), array( "type" => "close") ); function mytheme_add_admin() { global $themename, $shortname, $options; if ( $_GET['page'] == basename(__FILE__) ) { if ( 'save' == $_REQUEST['action'] ) { foreach ($options as $value) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } foreach ($options as $value) { if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } } header("Location: themes.php?page=functions.php&saved=true"); die; } else if( 'reset' == $_REQUEST['action'] ) { foreach ($options as $value) { delete_option( $value['id'] ); } header("Location: themes.php?page=functions.php&reset=true"); die; } } add_theme_page($themename." Options", "".$themename." Options", 'edit_themes', basename(__FILE__), 'mytheme_admin'); } function mytheme_admin() { global $themename, $shortname, $options; if ( $_REQUEST['saved'] ) echo '

'.$themename.' settings saved.

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

'.$themename.' settings reset.

'; ?>

settings

Artsav Creative Agency / Art Saveliev in Russian / Art Saveliev in French (links open in a new window)

'
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', )); } elseif (get_option('artsavius_sidebar_position') == 'one sidebar on the left') { register_sidebar(array( 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', )); } else { register_sidebars(2,array( 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', )); } } load_theme_textdomain('artsavius'); ?>

    " />
     
     
     
     
     
     
    />