function wp_list_pages_as_pictures($args = '') {
$defaults = array(
'depth' => 0, 'show_date' => '',
'date_format' => get_option('date_format'),
'child_of' => 0, 'exclude' => '',
'title_li' => __('Pages'), 'echo' => 1,
'authors' => '', 'sort_column' => 'menu_order, post_title'
);
$r = wp_parse_args( $args, $defaults );
extract( $r, EXTR_SKIP );
$output = '<div>';
$current_page = 0;
// sanitize, mostly to keep spaces out
$r['exclude'] = preg_replace('[^0-9,]', '', $r['exclude']);
// Allow plugins to filter an array of excluded pages
$r['exclude'] = implode(',', apply_filters('wp_list_pages_excludes', explode(',', $r['exclude'])));
// Query pages.
$r['hierarchical'] = 0;
$pages = get_pages($r);
$c = count($pages);
for($j = 0; $j < $c; $j++){
$output .= "<div style='float: left; width: 80px; height: 80px; margin-left: 15px;'><a style='font-size: 10px;' href='".$pages[$j]->guid."'><img src='http://www.abc.com/wp-content/uploads/icons/".$pages[$j]->ID.".jpg' alt='".$pages[$j]->post_title."' /><br />".$pages[$j]->post_title."</a></div>";
}
$output .= "<br style='clear: all' />";
$output .= "</div>";
$output = apply_filters('wp_list_pages', $output);
if ( $r['echo'] )
echo $output;
else
return $output;
}
$defaults = array(
'depth' => 0, 'show_date' => '',
'date_format' => get_option('date_format'),
'child_of' => 0, 'exclude' => '',
'title_li' => __('Pages'), 'echo' => 1,
'authors' => '', 'sort_column' => 'menu_order, post_title'
);
$r = wp_parse_args( $args, $defaults );
extract( $r, EXTR_SKIP );
$output = '<div>';
$current_page = 0;
// sanitize, mostly to keep spaces out
$r['exclude'] = preg_replace('[^0-9,]', '', $r['exclude']);
// Allow plugins to filter an array of excluded pages
$r['exclude'] = implode(',', apply_filters('wp_list_pages_excludes', explode(',', $r['exclude'])));
// Query pages.
$r['hierarchical'] = 0;
$pages = get_pages($r);
$c = count($pages);
for($j = 0; $j < $c; $j++){
$output .= "<div style='float: left; width: 80px; height: 80px; margin-left: 15px;'><a style='font-size: 10px;' href='".$pages[$j]->guid."'><img src='http://www.abc.com/wp-content/uploads/icons/".$pages[$j]->ID.".jpg' alt='".$pages[$j]->post_title."' /><br />".$pages[$j]->post_title."</a></div>";
}
$output .= "<br style='clear: all' />";
$output .= "</div>";
$output = apply_filters('wp_list_pages', $output);
if ( $r['echo'] )
echo $output;
else
return $output;
}
