Need help with a function code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GameForAdult
    Confirmed User
    • Mar 2011
    • 371

    #1

    Need help with a function code

    Anybody here who can help me out with this? I'm working on a new layout but stuck with one code.

    I need to change the function so it includes this code
    Code:
    <img class="lazy" data-original="img/example.jpg" width="190" height="140">
    into this function
    Code:
    $thumb = "<img src=\"$thumb\" $rotate_thumbs id=\"$prefix-".get_the_ID()."\" alt=\"".esc_attr($title)."\">";
    Thanks
  • dunhill
    Confirmed User
    • Jul 2013
    • 89

    #2
    PHP Code:
    
    
    $thumb = '<img class=lazy data-original="'.$thumb.'" src="pixel.gif?" width="190" height="140"  '.$rotate_thumbs.' id="'.$prefix.'-'.get_the_ID().'" alt="'.esc_attr($title).'">'; 
    

    Comment

    • GameForAdult
      Confirmed User
      • Mar 2011
      • 371

      #3
      It was not working but it helps me to get it working, all good now

      Thanks

      Comment

      Working...