prefix . "posts"; /* Setting default values for the settings */ if (get_option('gsxml_hp')) { $home_p = get_option('gsxml_hp'); } else { $home_p = 0.5;} if (get_option('gsxml_hf')) { $home_f = get_option('gsxml_hf'); } else { $home_f = 'weekly';} if (get_option('gsxml_gp')) { $other_p = get_option('gsxml_gp'); } else { $other_p = 0.5;} if (get_option('gsxml_gf')) { $other_f = get_option('gsxml_gf'); } else { $other_f = 'weekly';} $query = "SELECT year(post_modified) AS y, month(post_modified) AS m, day(post_modified) AS d, ID,post_title, post_modified,post_name, post_type, post_parent FROM $table_name WHERE post_status = 'publish' ORDER BY post_date DESC"; $myrows = $wpdb->get_results($query); $xmlcontent = ''."\n"; $xmlcontent .= ''."\n"; $xmlcontent .= " ".get_option( 'siteurl' )."/ ".date('Y-m-d')." ".$home_f." ".$home_p." \n"; foreach ($myrows as $myrow) { $permalink = utf8_encode($myrow->post_name); $type = $myrow->post_type; $date = $myrow->y."-"; if ($myrow->m < 10) { $date .= "0".$myrow->m."-"; } else { $date .= $myrow->m."-"; } if ($myrow->d < 10) { $date .= "0".$myrow->d; } else { $date .= $myrow->d; } if ($type=='post') { $id = $myrow->ID; $url = get_option( 'siteurl' )."/".$id.'-'.$permalink; } elseif ($type=='page') { if ($myrow->post_parent) { $parent = $myrow->post_parent; $query_parent = "SELECT post_name FROM $table_name WHERE ID=$parent"; $parent_link = utf8_encode($wpdb->get_var($wpdb->prepare($query_parent))); $url = get_option( 'siteurl' )."/".$parent_link."/".$permalink; } else { $url = get_option( 'siteurl' )."/".$permalink; } } $xmlcontent .= " ".$url."/ ".$date." ".$other_f." ".$other_p." \n"; } $xmlcontent .= ''."\n"; return $xmlcontent; } /* Creates an admin link */ function gsxml_menu_link() { if (function_exists('add_options_page')) { $gsxml_page = add_options_page('Google Sitemap XML', 'Google Sitemap XML', 'administrator', basename(__FILE__), 'gsxml_settings'); } } /* Admin setting page */ function gsxml_settings() { $path = WP_PLUGIN_URL.'/simple-google-sitemap-xml/sitemap.xml'; ?>

Google Sitemap XML

by iTx Technologies

Your XML Sitemap

This is the absolute URL of your XML sitemap. You can copy/paste it in Google Webmaster Tools which greatly increases the speed at which Google indexes your website.

The XML sitemap is automatically regenerated when you publish or delete a new post/page.

Your XML absolute URL:


You can slightly tweak your XML sitemap as described in the Sitemaps XML Protocol.

The following parameters will be applied to the global XML sitemap. In other words, you cannot choose different parameters for each and every post/page, except the homepage.

Homepage parameters

Priority Frequency

General parameters

Priority Frequency

'; } if ( is_admin() ){ add_action('admin_menu', 'gsxml_menu_link'); } register_activation_hook(WP_PLUGIN_DIR.'/simple-google-sitemap-xml/simple-google-sitemap-xml.php', 'generate_xmlsitemap'); add_action ( 'publish_post', 'generate_xmlsitemap' ); add_action ( 'publish_page', 'generate_xmlsitemap' ); add_action ( 'trashed_post', 'generate_xmlsitemap' ); ?> Andrea Hegard

It’s Back!

Oh no…its back (The snow)..i swear the winter in Sweden is never ending. Just when you could start walking on the side walks without concentrating on how not to slip!!! Luckily I’m out of here on Saturday…Woo hoo…I’m going to London to finish some songs. Also I cant wait to see my wonderful friends. Anywho, Just spent about two hours cleaning my house and organizing my wardrobe as Bubble room magazine is coming here tomorrow for a look at my wardrobe and an interview.

Walk time..

Just finished my favorite time of the day breakfast and coffee..Now I’m gonna go for a power walk with Leroy.


Todays Outfit

Outfit: Trench coat Weekday T-shirt: Acne Jeans Paper denim cloth.

Part Two From Anna Kopito

Some more pics from Annas blog..check out more here


Just came back from the gym went for 50min run…so nice..its the best way to start the day. Especially if you have a long one..You feel really fit for fight and ready to handle anything the day is gonna throw at you. Right now I’m making coffee and finishing of a song I’m working on then I’m gonna head to the studio…Have a great day..

70s Disco Hippie Queen..

Hey guys…I’m in such a rush..I’m late for the studio and I just got out of the shower…Ahhh… Anyway, this is what I want to be wearing next time i go to a party..She looks like a 70s Disco hippie queen..Amazing.

My Monday so far…

Started my day with my daily 7km power-walk. Then some song writing for a song I’m recording tomorrow then rehearsing some lines for a voice over Job tomorrow (loads of vocal work tomorrow!! So Ive been drinking loads of warm water with Honey and lemon to keep the voice fit for fight) Then Ive booked my flights for London and now I’m gonna hit the gym.

On my face..

These are the products I use.. Facial toner from La Prairie and smart cream from La Prairie during the day. At night I use Estée Lauder advanced night repair…And when I go out i use Clarins beauty flash balm before applying my make up.

I know these are expensive products but I believe your face is a good investment..I used to have really troubled skin but after a one year treatment of roaccutan (Acne pills) and the right products its really cleared up and I feel so much better.