3 if (!defined('AT_INCLUDE_PATH')) { exit; }
6 * Free form PHP can appear here to retreive current information
7 * from the module, or a text description of the module where there is
8 * not current information
10 require('wp_connect.php');
14 $link_limit = 3; // Number of links to be displayed on "detail view" box
15 $sql = "SELECT ID, post_title, guid FROM ".WP_DB_PREFIX."posts WHERE post_status = 'publish' ORDER BY post_modified DESC LIMIT $link_limit";
17 $result = mysql_query($sql, $db_wp);
20 while($row = mysql_fetch_assoc($result)){
26 foreach($wp_posts as $key=>$value){
27 $list[] = '<a href="'.AT_BASE_HREF.url_rewrite('mods/wordpress/index.php?p='. $value['ID']).'"'.
28 (strlen($row['value']) > SUBLINK_TEXT_LEN ? ' title="'.$row['value'].'"' : '') .'>'.
29 validate_length($value['post_title'], SUBLINK_TEXT_LEN, VALIDATE_LENGTH_FOR_DISPLAY) .'</a>';