Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/07/2010, 11:10
etisdemian
 
Fecha de Ingreso: octubre-2009
Mensajes: 357
Antigüedad: 14 años, 6 meses
Puntos: 1
¿cómo podré agregar texto entre imagenes en un foreach ?

hola:
les cuento, este es mi codigo:

trae dos imagenes , pero necesito agregar texto entre ellas , no encuentro dónde!

gracias.


Código PHP:
Ver original
  1. function vmlistAdditionalImages( $product_id, $images, $title='', $limit=1000 ) {
  2.         global $sess;
  3.         $html = '';
  4.         $i = 0;
  5.         foreach( $images as $image ) {
  6.             $thumbtag = ps_product::image_tag( $image->file_name, 'class="browseProductImage"', 1, 'product', $image->file_image_thumb_height, $image->file_image_thumb_width );
  7.             $fulladdress = $sess->url( 'index2.php?page=shop.view_images&image_id='.$image->file_id.'&product_id='.$product_id.'&pop=1' );
  8.            
  9.             if( $this->get_cfg('useLightBoxImages', 1 )) {
  10.                 $html .= vmCommonHTML::getLightboxImageLink( $image->file_url, $thumbtag, $title ? $title : $image->file_title, 'product'.$product_id );
  11.             }
  12.             else {
  13.                 $html .= vmPopupLink( $fulladdress, $thumbtag, 640, 550 );
  14.             }
  15.            
  16.             if( ++$i > $limit ) break;
  17.         }
  18.         return $html;
  19.     }