• It would be nice to add a variable to toggle cropping.

    Here is an example, using crop with ‘yes’ set as default:

    \
    // Crop the image
    if($atts[‘crop’] === ‘yes’)
    $image = su_image_resize( $slide[‘image’], ( round( $atts[‘width’] / $atts[‘items’] ) – 18 ), $atts[‘height’] );
    else $image = array(‘url’ => $slide[‘image’], ‘height’ => $atts[‘height’] );
    \

    https://ww.wp.xz.cn/plugins/shortcodes-ultimate/

Viewing 1 replies (of 1 total)
  • Thread Starter daniel.beyer

    (@danielbeyer-1)

    also it would be nice to include a random order option. The easy way would just to include something along the lines of the following before the foreach statement:

    if($atts['shuffle']==='yes') shuffle($slides);

Viewing 1 replies (of 1 total)

The topic ‘Feature Suggestion: Toggle Cropping’ is closed to new replies.