function blackwell_migrate_option() { if (get_option('blackwell_options') && !get_option('blackwell_option_migrate')) { $theme_option = array('blackwell_favicon', 'blackwell_topimage'); $wp_upload_dir = wp_upload_dir(); require ABSPATH . 'wp-admin/includes/image.php'; foreach ($theme_option as $option) { $option_value = blackwell_get_option($option); if ($option_value && $option_value != '') { $filetype = wp_check_filetype(basename($option_value), null); $image_name = preg_replace('/\\.[^.]+$/', '', basename($option_value)); $new_image_url = $wp_upload_dir['path'] . '/' . $image_name . '.' . $filetype['ext']; blackwell_import_file($new_image_url); } } update_option('blackwell_option_migrate', true); } }
} ?> <?php the_excerpt(); ?> </div> <?php if (blackwell_get_option('blackwell_read_more_link') != '') { ?> <a class="read_more" href="<?php the_permalink(); ?> "><?php echo esc_attr(blackwell_get_option('blackwell_read_more_link')); ?> </a> <?php } else { ?> <a class="read_more" href="<?php the_permalink(); ?> "><?php echo READ_MORE; ?> </a> <?php } ?>
</h1> <?php } else { ?> <h1><?php _e('Our Featured Blog', 'blackwell'); ?> </h1> <?php } ?> <?php if (blackwell_get_option('blackwell_blog_desc') != '') { ?> <p><?php echo esc_attr(blackwell_get_option('blackwell_blog_desc')); ?> </p> <?php } else { ?> <p><?php _e('Proin vel diam id dui pharetra commodo. Praesent commodo enim non molestie varius.<br/> Phasellus elementum odio faucibus diam sollicitudin, in bibendum quam feugiat.', 'blackwell'); ?> </p> <?php } ?> </div> <div class="clear"></div> <div class="grid_17 alpha">