30){$list_excerpt_length = '30';} if($list_title == ''){$list_title = 'Related Posts:';} if($list_show_images == ''){$list_show_images = 'Yes';} if($list_imagew == ''){$list_imagew = '85';} if($list_imageh == ''){$list_imageh = '85';} if($list_vspace == ''){$list_vspace = '2';} if($list_custom_image == ''){$list_custom_image = 'Image';} if($list_posts_limit == ''){$list_posts_limit = '5';} if($list_css3_effect == ''){$list_css3_effect = 'None';} if($list_excerpt_length == ''){$list_excerpt_length = '18';} //----------------------------------------------------Get grid options array values $grid_title = $_POST["grid_title"]; $grid_show_images = $_POST["grid_show_images"]; $grid_imagew = $_POST["grid_imagew"]; $grid_imageh = $_POST["grid_imageh"]; $grid_vspace = $_POST["grid_vspace"]; $grid_hspace = $_POST["grid_hspace"]; $grid_custom_image = $_POST["grid_custom_image"]; $grid_posts_limit = $_POST["grid_posts_limit"]; //Validation// if($grid_imagew < 90) $grid_imagew = 90; if($grid_imageh < 90) $grid_imageh = 90; if($grid_title == ''){$grid_title = 'Related Posts:';} if($grid_show_images == ''){$grid_show_images = 'Yes';} if($grid_imagew == ''){$grid_imagew = '85';} if($grid_imageh == ''){$grid_imageh = '85';} if($grid_vspace == ''){$grid_vspace = '33';} if($grid_hspace == ''){$grid_hspace = '33';} if($grid_custom_image == ''){$grid_custom_image = 'Image';} if($grid_posts_limit == ''){$grid_posts_limit = '6';} //-----------------------------------------------------get slider options array values $slider_title = $_POST["slider_title"]; $slider_show_images = $_POST["slider_show_images"]; $slider_imagew = $_POST["slider_imagew"]; $slider_imageh = $_POST["slider_imageh"]; $slider_custom_image = $_POST["slider_custom_image"]; $slider_posts_limit = $_POST["slider_posts_limit"]; $slider_css3_effect = $_POST["slider_css3_effect"]; //Validation// if($slider_imagew < 50) $slider_imagew = 50; if($slider_imageh < 50) $slider_imageh = 50; if($slider_title == ''){$slider_title = 'You may interest:';} if($slider_show_images == ''){$slider_show_images = 'Yes';} if($slider_imagew == ''){$slider_imagew = '85';} if($slider_imageh == ''){$slider_imageh = '85';} if($slider_custom_image == ''){$slider_custom_image = 'Image';} if($slider_posts_limit == ''){$slider_posts_limit = '5';} if($slider_css3_effect == ''){$slider_css3_effect = 'None';} //-----------------------------------------------------Get general options array values $thumb_default = $_POST["thumb_default"]; $use_css3_effects = $_POST["use_css3_effects"]; $print_credits_link = $_POST["print_credits_link"]; if($thumb_default == ''){$thumb_default = $pluginsurl.'/images/noimage.png';} $aio_related_posts_settings = Array ( 'list_title' => $list_title, // Title of the list related posts block 'list_show_images' => $list_show_images, // Display images or not? 'list_imagew' => $list_imagew, // Thumbnail image width 'list_imageh' => $list_imageh, // Thumbnail image height 'list_vspace' => $list_vspace, // Space between rows 'list_custom_image' => $list_custom_image, // Use custom field to display images? 'list_posts_limit' => $list_posts_limit, // How many posts to display? 'list_css3_effect' => $list_css3_effect, 'list_css3_image_radius' => $list_css3_image_radius, 'list_excerpt_length' => $list_excerpt_length, 'grid_title' => $grid_title, // Title of the grid related posts block 'grid_show_images' => $grid_show_images, // Display images or not? 'grid_imagew' => $grid_imagew, // Thumbnail image width 'grid_imageh' => $grid_imageh, // Thumbnail image height 'grid_vspace' => $grid_vspace, // Space between rows 'grid_hspace' => $grid_hspace, // Space between items 'grid_custom_image' => $grid_custom_image, // Use custom field to display images 'grid_posts_limit' => $grid_posts_limit, // How many posts to display in the grid view? 'slider_title' => $slider_title, // Title of the slider related posts block 'slider_show_images' => $slider_show_images, // Display images or not? 'slider_imagew' => $slider_imagew, // Thumbnail image width 'slider_imageh' => $slider_imageh, // Thumbnail image height 'slider_custom_image' => $slider_custom_image, // Use custom field to display images 'slider_posts_limit' => $slider_posts_limit, // How many posts to display in the slider view? 'slider_css3_effect' => $slider_css3_effect, 'thumb_default' => $thumb_default, // Default thumbnail image 'use_css3_effects' => $use_css3_effects, // Default thumbnail image 'related_posts_type' => $related_posts_type, // Default thumbnail image 'print_credits_link' => $print_credits_link ); if ($aio_related_posts_settings != '' ) { update_option( 'aio_settings' , $aio_related_posts_settings ); } else { $deprecated = ' '; $autoload = 'no'; add_option( 'aio_settings', $aio_related_posts_settings, $deprecated, $autoload ); } }else //no update action { $aio_related_posts_settings = aio_read_options(); } ?>
| Your donation is like a diamond and Makes a Difference: it's forever |