www.i-jeriko.de (WordPress related) or w3-labs.com (Theme at all)','lush'); ?>
}
// Update the options when the form is submitted
function lushupdate() {
if ( !empty($_POST) ) {
if ( isset($_POST['sblinkcat']) ) {
$linkcat = $_POST['sblinkcat'];
update_option('lushsblinkcat', $linkcat, '','');
}
if ( isset($_POST['aboutpage']) ) {
$add = $_POST['aboutpage'];
create_about();
} else {
$remove = '';
delete_about();
update_option('lushaboutpage', $remove, '','');
}
if ( isset($_POST['tagspage']) ) {
$add = $_POST['tagspage'];
//update_option('lushtagspage', $add, '','');
create_archive();
} else {
$remove = '';
delete_archive();
update_option('lushtagspage', $remove, '','');
}
if ( isset($_POST['tagcloud']) ) {
$add = $_POST['tagcloud'];
update_option('lushtagcloud', $add, '','');
} else {
$remove = '';
update_option('lushtagcloud', $remove, '','');
}
if ( isset($_POST['flickr']) ) {
$add = $_POST['flickr'];
update_option('lushflickr', $add, '','');
} else {
$remove = '';
update_option('lushflickr', $remove, '','');
}
if ( isset($_POST['headerlink']) ) {
$add = $_POST['headerlink'];
update_option('lushheaderlink',$add, '', '');
} else {
$remove = '';
update_option('lushheaderlink',$remove, '', '');
}
}
}
// First things first: The basic installation
if (!get_option('lushinstalled')) {
add_option('lushinstalled', $current, 'This options simply tells me if Lush has been installed before', $autoload);
add_option('lushtagspage', '', 'Wether a tags page is available or not', $autoload);
add_option('lushtagcloud', '', 'Wether a tagcloud will be displayed in the sidebar', $autoload);
add_option('lushflickr', '', 'Wether a set of flickr images will be displayed in the sidebar', $autoload);
add_option('lushsblinkcat', '1', 'Which link category is to be displayed in the sidebar', $autoload);
add_option('lushaboutpage', '', 'Wether a link to an about page will be displayed in the sidebar', $autoload);
add_option('lushrev','100', 'Lush Revision',$autoload);
}
if(!get_option('lushrev')) {
add_option('lushrev','100','Lush Revision',$autoload);
}
if(get_option(lushrev) == '100') {
update_option('lushrev','101', '','');
add_option('lushheaderlink', '', 'Wether the header link should be a clickable image',$autoload);
}
if ( function_exists('register_sidebar')) {
register_sidebar(array(
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '
',
'after_title' => '
',
));
// New widgets
// Displays the pages the Lush way
function widget_lushpages($args) {
extract($args);
$title = 'Pages';
echo $before_widget . $before_title . $title . $after_title;
echo wp_list_pages('title_li=&depth=1');
echo $after_widget;
}
// Displays links to your RSS feeds
function widget_rssfeeds($args) {
extract($args);
$title = 'RSS Feeds';
echo $before_widget . $before_title . $title . $after_title;
echo '