Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Otros temas > La Taberna
Registrarse FAQ Miembros Calendario Guía de estilo Buscar Temas de Hoy Marcar Foros Como Leídos

 
 
Herramientas Buscar en Tema Desplegado
  #13  
Antiguo 11-07-2008
Avatar de dec
dec dec is offline
Moderador
 
Registrado: dic 2004
Ubicación: Alcobendas, Madrid, España
Posts: 13.142
Poder: 36
dec Tiene un aura espectaculardec Tiene un aura espectacular
Hola,

Gracias coso, yo también veo muy elegante el código:

Código PHP:
<?php

// lightbox.class.php

function lightbox($pluginData){
  return new 
LightBox($pluginData);
}

class 
LightBox extends GbPlugin
{
  public function 
OnActivatePlugin(){}
  public function 
OnDeactivatePlugin(){}

  public function 
PrinterCallback($printerName){
    if(
$printerName == GBPLUGINS_PRINTER_THEME_HEADER){
      
JScript::SetVariables(array( 
        
'gblbTextOf' => $this->_rp('of'),
        
'gblbTextImage' => $this->_rp('Image'),
        
'gblbTextClose' => $this->_rp('Close [X]'),  
        
'gblbTextHelpClose' => $this->_rp('Click to close'),
        
'gblbTextHelpInteract' => $this->_rp('Hove to interact'),
        
'gblbTextCloseInfo' => $this->_rp('Click outside image to close')
      ));
      
$jsDir $this->GetDirJScriptsUrl();
      
$this->IncludeJScriptsInTheme(array(
        
$jsDir.'jquery.js',
        
$jsDir.'jquery.lightbox.js',
        
$jsDir.'lightbox.config.js'
      
));
    }
    return 
true;
  }
}

?>
Código:
// lightbox.config.js

// DOM ready!
$(function(){
  // Vars defined at "lightbox.class.php"
  $.Lightbox.construct({  
    'text':{
      'about':{
        'link': '',
        'text': '',
        'title': ''
      },
      'of': gblbTextOf,
      'image': gblbTextImage,
      'close': gblbTextClose,
      'closeInfo': gblbTextCloseInfo,
      'help':{
        'close': gblbTextHelpClose,
        'interact': gblbTextHelpInteract
      }
    }
  }); 
});
__________________
David Esperalta
www.decsoftutils.com
Responder Con Cita
 


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Con todos vosotros: Gesbit 0.5 Hummingbird (foto picante en el interior) dec PHP 11 29-11-2007 13:36:26
funcion para imprimir fotos kapullok_2006 Impresión 1 09-06-2007 12:02:18
funcion para imprimir fotos kapullok_2006 Impresión 0 09-06-2007 11:38:33
Capacitadores UML, delphi para Interior de Argentina fabianbbg Varios 0 25-06-2004 20:53:31
... las 3 chicas ... Jure Humor 0 25-03-2004 01:24:12


La franja horaria es GMT +2. Ahora son las 04:52:19.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi