Gracias varese, me alegro que te guste :)
Lo de incluir la foto a la izquierda, fue una simple modificación del plugin "deux columns" que viene integrado en indexhibit.
Mi nivel de php al igual que css es muy b√°sico, por lo que a veces me tengo que inventar alguna chapucilla para conseguir ciertas cosas :)
Pego el código del plugin modificado y lo que tienes que hacer con el:
1. copia y pega el siguiente código en el editor de texto que uses
2. guardalo como "exhibit.dos_columnas.php" (sin las comillas)
3. s√∫belo a la carpeta /sites/plugin/
3. ahora, en tu apartado de contacto, selecciona el método de visualización "dos columnas" del desplegable.
4. sube la foto que quieras que aparezca y edita el contenido de la p√°gina
5. si tienes alguna duda, pregunta! :)
<?php if defined'SITE' exit'No direct script access allowed'
/**
* Dexu column
*
* Exhbition format
* inspired by miaandjem.com
*
* @version 1.0
* @author Vaska
*/
// defaults from the general libary - be sure these are installed
$exhibit['dyn_css'] = dynamicCSS();
$exhibit['dyn_js'] = dynamicJS();
$exhibit['exhibit'] = createExhibit();
function createExhibit()
{
$OBJ =& get_instance();
global $rs, $exhibit;
$pages = $OBJ->db->fetchArray("SELECT *
FROM ".PX."media
WHERE media_ref_id = '$rs[id]'
ORDER BY media_order ASC, media_id ASC");
if ($pages)
{
$i = 0; $a = '';
foreach ($pages as $go)
{
$title = ($go['media_title'] == '') ? 'N/A' : $go['media_title'];
$caption = ($go['media_caption'] == '') ? 'N/A' : $go['media_caption'];
$png = ($go['media_mime'] == 'png') ? " class='png'" : '';
$a .= "\n\n";
$i++;
}
}
// images
$s .= "\n";
$s .= "\n";
$s .= $a;
$s .= "\n";
// text
$s .= "\n";
$s .= $rs['content'];
$s .= "\n";
$s .= "\n";
$s .= $rs['content'];
$s .= "\n";
$s .= "\n\n";
$s .= "\n";
return $s;
}
function dynamicCSS()
{
return "#d-col1 { float: left; width: 100px; padding-top: 20px; }
#d-col2 { margin-left: 105px; padding-top: 20px;}
#d-col1 img { padding-bottom: 12px; }
#hidden-text { display: none; }";
}
function dynamicJS()
{
global $rs;
$tile = ($rs['tiling'] != 1) ? ", backgroundRepeat: 'no-repeat'" : '';
return "function swapImg(a, image)
{
var the_path = '" . BASEURL . GIMGS ."/' + image;
show = new Image;
show.src = the_path;
var img = '';
var title = $('#img' + a).attr('title');
var caption = $('#img' + a).attr('alt');
if (title != 'N/A')
{
caption = (caption != 'N/A') ? ': ' + caption : '';
img = img + '
' + title + caption + '';
}
$('#d-col2').html(img);
}
function swapText()
{
var text = $('#hidden-text').html();
$('#d-col2').html(text);
}";
}
?>