<?php
function set_sizes_header($postID) {
  $post_thumbnail_id = get_post_thumbnail_id($postID);


  $small =   wp_get_attachment_image_src($post_thumbnail_id,'small', true);
  $medium =  wp_get_attachment_image_src($post_thumbnail_id,'medium', true);
  $large =   wp_get_attachment_image_src($post_thumbnail_id,'large', true);
  $wide = wp_get_attachment_image_src($post_thumbnail_id,'wide', true);

  return  $small[0] . ' 680w, ' . $medium[0] . ' 900w, ' .  $large[0] . ' 1200w ';
}

//use when image uses full screen
function set_sizes_4_3_full($imageID) {
  //  $post_thumbnail_id = get_post_thumbnail_id($postID);


    $small =   wp_get_attachment_image_src($imageID,'4_3_small', true);
    $medium =  wp_get_attachment_image_src($imageID,'4_3_medium', true);
      $large =  wp_get_attachment_image_src($imageID,'4_3_large', true);

    return  $small[0] . ' 680w, ' . $medium[0] . ' 960w, ' . $large[0] . ' 1140w, ';
}
//use when image uses full screen
function set_sizes_4_3_half($imageID) {
  //  $post_thumbnail_id = get_post_thumbnail_id($postID);


    $small =   wp_get_attachment_image_src($imageID,'4_3_small', true);
    $medium =  wp_get_attachment_image_src($imageID,'4_3_medium', true);
      $large =  wp_get_attachment_image_src($imageID,'4_3_large', true);

    return  $small[0] . ' 680w, ';
}


//16-9 sizes
function sixteen_by_nine($imageID) {
//  $post_thumbnail_id = get_post_thumbnail_id($postID);


  $small =   wp_get_attachment_image_src($imageID,'4_3_small', true);
  $medium =  wp_get_attachment_image_src($imageID,'6_9_medium', true);
    $large =  wp_get_attachment_image_src($imageID,'6_9_large', true);

  return  $small[0] . ' 680w, ' . $medium[0] . ' 960w, ' . $large[0] . ' 1140w, ';
}

//16-9 sizes
function slider($imageID) {
//  $post_thumbnail_id = get_post_thumbnail_id($postID);


  $small =   wp_get_attachment_image_src($imageID,'4_3_small', true);
  $medium =  wp_get_attachment_image_src($imageID,'6_9_medium', true);
    $large =  wp_get_attachment_image_src($imageID,'slider_begin', true);

  return  $small[0] . ' 680w, ' . $medium[0] . ' 960w, ' . $large[0] . ' 1140w, ';
}
