',
));
}
if ( ! isset( $content_width ) )
$content_width = 588;
function blackWhitePoetry_setup() {
// This theme styles the visual editor with editor-style.css to match the theme style.
add_editor_style();
// This theme uses post thumbnails
add_theme_support( 'post-thumbnails' );
// Add default posts and comments RSS feed links to head
add_theme_support( 'automatic-feed-links' );
// This theme styles the visual editor with editor-style.css to match the theme style.
add_editor_style();
// This theme uses post thumbnails
add_theme_support( 'the_post-thumbnails' );
// Add default posts and comments RSS feed links to head
add_theme_support( 'automatic-feed-links' );
// Make theme available for translation
// Translations can be filed in the /languages/ directory
load_theme_textdomain( 'black white poetry', TEMPLATEPATH . '/languages' );
$locale = get_locale();
$locale_file = TEMPLATEPATH . "/languages/$locale.php";
if ( is_readable( $locale_file ) )
require_once( $locale_file );
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'primary' => __( 'Primary Navigation', 'black white poetry' ),
) );
// This theme allows users to set a custom background
add_custom_background();
}
function getFlashList($maxImg=5){
$flashArr =array();
$i=0;
$lastposts = get_posts('numberposts=30');
//print_r($lastposts);
foreach($lastposts as $temp){
if($i>$maxImg){
break;
}
$data = get_post($temp->ID);
$content = $data->post_content;
$pattern="//";
preg_match_all($pattern,$content,$match);
if(empty($match[0][0])){
echo "