>

Sidebar widgets are active. Please configure your sidebar through the widgets menu.

>

CAUTION! Disabling this option will also delete the about page!','lush'); ?>

>

>

>

www.i-jeriko.de (WordPress related) or w3-labs.com (Theme at all)','lush'); ?>

'', '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 ''; echo $after_widget; } // Displays the latest flickr images supplied via flickrRSS function widget_flickrrss($args) { extract($args); $title = 'Flickr'; echo $before_widget . $before_title . $title . $after_title; echo '
'; echo get_flickrRSS(); echo '
'; echo $after_widget; } // Displays the tagcloud generated by Ultimate Tag Warrior function widget_tagcloud($args) { extract($args); $options = get_option('widget_tagcloud'); $title = $options['title']; if($title == '') $title = 'Tagcloud'; echo $before_widget . $before_title . $title . $after_title; $url_parts = parse_url(get_bloginfo('home')); $lush = array('default'=>'%taglink% '); echo "

"; echo UTW_ShowWeightedTagSetAlphabetical("",$lush,20); echo "

"; echo $after_widget; } function widget_tagcloud_control() { $options = get_option('widget_tagcloud'); if (!is_array($options)) $options = array('title'=>'', 'buttontext'=>'Tag Cloud'); if ($_POST['tagcloud-submit'] ) { $options['title'] = strip_tags(stripslashes($_POST['tagcloud-title'])); update_option('widget_tagcloud',$options); } $title = htmlspecialchars($options['title'], ENT_QUOTES); echo '

'; echo ''; } if(function_exists('UTW_ShowWeightedTagSetAlphabetical')) { register_sidebar_widget('Tagcloud','widget_tagcloud'); register_widget_control('Tagcloud','widget_tagcloud_control'); } if(function_exists('get_flickrRSS')) { register_sidebar_widget('FlickrRSS','widget_flickrrss'); } register_sidebar_widget('Pages','widget_lushpages'); unregister_widget_control('Pages'); register_sidebar_widget('Your RSS Feeds','widget_rssfeeds'); unregister_sidebar_widget('Calendar'); unregister_sidebar_widget('Links'); unregister_widget_control('RSS 1'); unregister_sidebar_widget('RSS 1'); unregister_widget_control('Recent Comments'); unregister_sidebar_widget('Recent Comments'); unregister_sidebar_widget('Search'); } function lushmenu() { add_submenu_page('themes.php', 'Lush Options', 'Lush Options', 5, $lushloc . 'functions.php', 'menu'); } function create_archive() { global $wpdb, $user_ID; get_currentuserinfo(); $check = $wpdb->query("SELECT * from $wpdb->posts WHERE post_title = 'All tags'"); if(!$check) { $message = __('Do not edit this page','lush'); $title_message = __('All tags','lush'); $content = apply_filters('content_save_pre', $message); $post_title = apply_filters('title_save_pre', $title_message); $now = current_time('mysql'); $now_gmt = current_time('mysql', 1); $post_author = $user_ID; $id_result = $wpdb->get_row("SHOW TABLE STATUS LIKE '$wpdb->posts'"); $post_ID = $id_result->Auto_increment; $post_name = sanitize_title($post_title, $post_ID); $ping_status = get_option('default_ping_status'); $comment_status = get_option('default_comment_status'); $postquery ="INSERT INTO $wpdb->posts (ID, post_author, post_date, post_date_gmt, post_content, post_title, post_excerpt, post_status, comment_status, ping_status, post_password, post_name, to_ping, post_modified, post_modified_gmt, post_parent, menu_order) VALUES ('$post_ID', '$post_author', '$now', '$now_gmt', '$content', '$post_title', '', 'static', '$comment_status', '$ping_status', '', '$post_name', '', '$now', '$now_gmt', '', '')"; $result = $wpdb->query($postquery); $metaquery = "INSERT INTO $wpdb->postmeta(meta_id, post_id, meta_key, meta_value) VALUES('', '$post_ID', '_wp_page_template', 'page-tags.php')"; $result2 = $wpdb->query($metaquery); update_option('lushtagspage', $post_ID, '',''); } } function delete_archive() { global $wpdb; $pid = get_option('lushtagspage'); $check = $wpdb->query("SELECT * from $wpdb->posts WHERE ID = $pid"); if($check) { $burninate = $wpdb->query("DELETE from $wpdb->posts WHERE ID = $pid and post_status = 'static'"); $result = $wpdb->query($burninate); } } function create_about() { global $wpdb, $user_ID; get_currentuserinfo(); $pid = get_option('lushaboutpage'); $check = $wpdb->query("SELECT * from $wpdb->posts WHERE ID=$pid"); if(!$check) { $message = __('Feel free to edit this page to your likings','lush'); $title_message = __('About this site','lush'); $content = apply_filters('content_save_pre', $message); $post_title = apply_filters('title_save_pre', $title_message); $now = current_time('mysql'); $now_gmt = current_time('mysql', 1); $post_author = $user_ID; $id_result = $wpdb->get_row("SHOW TABLE STATUS LIKE '$wpdb->posts'"); $post_ID = $id_result->Auto_increment; $post_name = sanitize_title($post_title, $post_ID); $ping_status = get_option('default_ping_status'); $comment_status = get_option('default_comment_status'); $postquery ="INSERT INTO $wpdb->posts (ID, post_author, post_date, post_date_gmt, post_content, post_title, post_excerpt, post_status, comment_status, ping_status, post_password, post_name, to_ping, post_modified, post_modified_gmt, post_parent, menu_order) VALUES ('$post_ID', '$post_author', '$now', '$now_gmt', '$content', '$post_title', '', 'static', '$comment_status', '$ping_status', '', '$post_name', '', '$now', '$now_gmt', '', '')"; $result = $wpdb->query($postquery); //$metaquery = "INSERT INTO $wpdb->postmeta(meta_id, post_id, meta_key, meta_value) VALUES('', '$post_ID', '_wp_page_template', 'page-tags.php')"; //$result2 = $wpdb->query($metaquery); update_option('lushaboutpage', $post_ID, '',''); } } function delete_about() { global $wpdb; $pid = get_option('lushaboutpage'); $check = $wpdb->query("SELECT * from $wpdb->posts WHERE ID = $pid"); if($check) { $burninate = $wpdb->query("DELETE from $wpdb->posts WHERE ID = $pid and post_status = 'static'"); $result = $wpdb->query($burninate); } } ?>