title: how to put gallery icon in featured image on home page?
body: <p>if you check Marie Claire website :<a href="http://www.marieclaire.fr/" rel="nofollow noreferrer">http://www.marieclaire.fr/</a></p>
  
  <p>in each post that have slider gallery inside , they put a small icon gallery on the featured image of the post . 
  what the condition to put it , how can be done for a WordPress website  ?? 
  <a href="https://i.stack.imgur.com/zmGeU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zmGeU.png" alt="image click on it "></a></p>
  
  <p>i have this code for show image :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>function show_image($args, $caption = '')
  {
    $postid = '';
    $video = '';
    $image_size = 'large';
    $before = '';
    $after = '';
    $display = true;
    $img_str = '';
    $issingle = false;
    extract($args);
    if($postid == '')
    {
      return false;
    }
    $videostyle = "";
    $isvideo = isvideopost($postid);
  
    $img_str = "";
    $thumbid = get_post_thumbnail_id( $postid );
    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $postid ), $image_size );
    if($image)
    {
      $image_file = $image[0];
      $img_str .= $before;
        if($isvideo == true &amp;&amp; $issingle == false){
          $img_str .= '&lt;div class="videoimage"&gt;';
          $videostyle = 'style="position: relative; top: 0; left: 0;"';
        }elseif(has_term( 'video', 'post_tag',$postid)==true &amp;&amp; $issingle == false){
          $img_str .= '&lt;div class="videoimage"&gt;';
          $videostyle = 'style="position: relative; top: 0; left: 0;"';
        }
        $img_str .= '&lt;img src="'.$image_file.'" '.$videostyle.'&gt;';
        if($isvideo == true &amp;&amp; $issingle == false){
          $img_str .= '&lt;img src="'.THEME_URL.'/images/playicon/playicon_'.$image_size.'.png" style="position: absolute; top: 0; left: 0;"/&gt;';
          $img_str .= '&lt;/div&gt;';
        }elseif(has_term( 'video', 'post_tag',$postid)==true &amp;&amp; $issingle == false){
          $img_str .= '&lt;img src="'.THEME_URL.'/images/playicon/playicon_'.$image_size.'.png" style="position: absolute; top: 0; left: 0;"/&gt;';
          $img_str .= '&lt;/div&gt;';
        }
      $img_str .= $after;
      if($display == true)
      {
        echo $img_str;
      }else{
        return $img_str;
      }
    }else{
      return false;
    }
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>what i need is to add codition if exist attachements image to show this icon on featured image </p>