__('Right','aw'),
'id' => 'sidebar_right',
'before_widget' => '
',
'after_widget' => '',
'before_title' => '',
));
register_sidebar(array(
'name' => __('Footer Left','aw'),
'id' => 'sidebar_footer_left',
'before_widget' => '',
'before_title' => '',
));
register_sidebar(array(
'name' => __('Footer Right','aw'),
'id' => 'sidebar_footer_right',
'before_widget' => '',
'before_title' => '',
));
register_sidebar(array(
'name' => __('Footer Center','aw'),
'id' => 'sidebar_footer_center',
'before_widget' => '',
'before_title' => '',
));
}
$themename = "Artsavius Wave";
$shortname = "aw";
function mytheme_add_admin() {
global $themename, $shortname;
add_theme_page(__('Theme options','aw'), __('Theme options','aw'), 'edit_themes', basename(__FILE__), 'mytheme_admin');
}
function mytheme_admin() {
if (isset($_POST['update_aw'])) {
if ($_POST['aw_category_ids'] != "")
{ $awcatids = implode(",", $_POST['aw_category_ids']);} else {$awcatids = "";};
if ($_POST['aw_page_ids'] != "")
{ $awpagids = implode(",", $_POST['aw_page_ids']);} else {$awpagids = "";};
update_option('aw_category_ids', $awcatids);
update_option('aw_page_ids', $awpagids);
update_option('aw_home_show', $_POST['aw_home_show']);
update_option('aw_home_title', $_POST['aw_home_title']);
update_option('aw_rss_show', $_POST['aw_rss_show']);
update_option('aw_rss_link', $_POST['aw_rss_link']);
update_option('aw_twitter_link', $_POST['aw_twitter_link']);
update_option('aw_copyright_text', $_POST['aw_copyright_text']);
update_option('aw_copyright_link', $_POST['aw_copyright_link']);
?>