| [ Index ] |
PHP Cross Reference of zeList |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Holds bridges and hooks for other plugins to work well with zeList 4 * 5 */ 6 7 8 9 /** 10 * Bridge for : Google XML Sitemaps 11 * http://www.arnebrachhold.de/projects/wordpress-plugins/google-xml-sitemaps-generator/ 12 * http://wordpress.org/extend/plugins/google-sitemap-generator/ 13 * @since 0.8.4.6 14 * Plugin version tested : 3.1.2 15 * 16 * @return unknown_type 17 */ 18 function zelist_sm_buildmap() { 19 global $sm_instance,$wpdb; 20 if(!$sm_instance->_isActive) return; 21 //include(ZELIST_IMPORT_PATH.'/counter.class.php'); $counter = new counter(); 22 if($counter) $counter->start('link_request'); 23 // fetch visible links 24 $links = $wpdb->get_results("SELECT link_id, link_updated FROM $wpdb->links WHERE link_visible = 'Y' ORDER BY link_updated DESC"); 25 if($counter) $counter->stop('link_request'); 26 if(!$links) return; 27 28 if($counter) $counter->start('links_loop'); 29 // add links 30 foreach($links as $link) { 31 //echo "<br />".get_link_permalink($link->link_id) . " = " . strtotime($link->link_updated); 32 $sm_instance->AddUrl(get_link_permalink($link->link_id),strtotime($link->link_updated)); 33 } 34 if($counter) $counter->stop('links_loop'); 35 } 36 add_action("sm_buildmap",'zelist_sm_buildmap'); 37 38 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sat May 30 23:51:06 2009 | Cross-referenced by PHPXref 0.7 |