30){$rpw_excerpt_length = '30';} if($rpw_show_thumbs == ''){$rpw_show_thumbs = 'Yes';} if($rpw_thumbw == ''){$rpw_thumbw = '40';} if($rpw_thumbh == ''){$rpw_thumbh = '40';} if($rpw_posts_limit == ''){$rpw_posts_limit = '5';} if($rpw_use_css3_effects == ''){$rpw_use_css3_effects = 'None';} if($rpw_excerpt_length == ''){$rpw_excerpt_length = '8';} if($rpw_text_direction == ''){$rpw_text_direction = 'ltr';} if($rpw_image_direction == ''){$rpw_image_direction = 'left';} //-----------------------------------------------------Get general options array values $rpw_related_posts_settings = Array ( 'rpw_show_thumbs' => $rpw_show_thumbs, // Display thumbs or not? 'rpw_thumbw' => $rpw_thumbw, // Thumbnail thumb width 'rpw_thumbh' => $rpw_thumbh, // Thumbnail thumb height 'rpw_posts_limit' => $rpw_posts_limit, // How many posts to display? 'rpw_show_excerpt' => $rpw_show_excerpt, 'rpw_excerpt_length' => $rpw_excerpt_length, 'rpw_use_css3_effects' => $rpw_use_css3_effects, 'rpw_css3_shadow' => $rpw_css3_shadow, 'rpw_css3_thumb_radius' => $rpw_css3_thumb_radius, 'default_thumb' => $default_thumb, // Default thumbnail thumb 'rpw_Style' => $rpw_Style, 'rpw_image_direction' => $rpw_image_direction, 'rpw_text_direction' => $rpw_text_direction ); if ($rpw_related_posts_settings != '' ) { update_option( 'rpw_settings' , $rpw_related_posts_settings ); } else { $deprecated = ' '; $autoload = 'no'; add_option( 'rpw_settings', $rpw_related_posts_settings, $deprecated, $autoload ); } }else //no update action { $rpw_related_posts_settings = rpw_read_options(); } ?>