i need to resize some images differently from "with cropping" and "without cropping".
i added a new type "smaller_images" to my theme options:
"subtype" => array( 'Images should be scaled to fit, with cropping if necessary' => "",
'Images should be displayed without cropping' => "dont_crop_images",
'smaller images' => "smaller_images"
next i started to modify /wp-content/themes/flashlight/js/avia_fullscreen_slider.js but i can get either NO CROPPING or SMALL working, not both. could you give me a hint where to look at?
if (c.options.cropping) {
if (winRatio < imgRatio) { //cropping
final['height'] = e;
final['width'] = (e / img_h) * img_w
} else {
final['width'] = win_w;
final['height'] = (win_w / img_w) * img_h
}
} else if (jQuery('ul.smaller_images')) { //SMALL
if (winRatio > imgRatio) {
final['height'] = e - 210;
final['width'] = ((e - 210) / img_h) * img_w
} else {
final['width'] = win_w;
final['height'] = (win_w / img_w) * img_h
}
} else {
if (winRatio > imgRatio) { //NO CROPPING
final['height'] = e - 66;
final['width'] = ((e - 66) / img_h) * img_w
} else {
final['width'] = win_w;
final['height'] = (win_w / img_w) * img_h
}
}














