Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/10/2008, 11:04
StreaK
 
Fecha de Ingreso: enero-2006
Mensajes: 36
Antigüedad: 18 años, 4 meses
Puntos: 0
Respuesta: Quiero modificar un template y necesito ayuda!

Cuelgo los archivos a ver si sacais algo en claro, si quereis miro de colgar unas capturas ok

Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language?>" lang="<?php echo $this->language?>" >
<head>
<!--
author: raduga http://mambasana.ru
author: Pat Heard   http://fullAhead.org
-->
<jdoc:include type="head" />
<link rel="stylesheet" href="templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />


<?php

     $view 
JRequest::getVar('view');
     
$option JRequest::getCmd('option');

     if( (
$this->params->get('showImageFrontpage') && $view == 'frontpage')
          || (
$this->params->get('showImageCom_Newsfeeds') && $option == 'com_newsfeeds')
          || (
$this->params->get('showImageCom_Weblinks') && $option == 'com_weblinks')
          || (
$this->params->get('showImageArticle') && $view == 'article')
          || (
$this->params->get('showImageCategory') && $view == 'category')
          || (
$this->params->get('showImageSection') && $view == 'section'
          || (
$this->params->get('showImageNewsfeed') && $view == 'newsfeed') ){ 
?>

<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/noimage.css" type="text/css" />

<?php ?> 

</head>


<body id="bg_body">

  <div id="header">
     <div id="menu">
         <?php if($this->countModules('user3')) : ?>
                      <jdoc:include type="modules" name="user3" />
         <?php endif; ?>

     </div>
  </div>

<div id="content">
  <div id="text">
   <?php if($this->countModules('top')) : ?>
                      <jdoc:include type="modules" name="top" style="table"/>
   <?php endif; ?>
   <?php if($this->params->get('showComponent')) : ?>
                    <jdoc:include type="component" />
   <?php endif; ?>

   <?php if($this->countModules('user1')) : ?>
                      <jdoc:include type="modules" name="user1" style="table"/>
   <?php endif; ?>
  
</div>

    <div id="image"><?php
      $ga
=rand(1,4);

    if (
$ga==1$cab="templates\greenery_ii\images\plants1.jpg";
    if (
$ga==2$cab="templates\greenery_ii\images\plants2.jpg";
    if (
$ga==3$cab="templates\greenery_ii\images\plants3.jpg";
    if (
$ga==4$cab="templates\greenery_ii\images\plants4.jpg";

    echo 
"<img src=".$cab.">";
?>
    </div>

    <div id="sideBar">
      <jdoc:include type="modules" name="left" style="table"/>
      <jdoc:include type="modules" name="right" style="table"/>
    </div>
   
    <div id="footer">
      <p>Theme by <a href="http://mambasana.ru">raduga</a> | <a href="http://fullahead.org">Pat Heard</a></p>
    </div>
 </div>

</body>
</html>
La imagen de la que hablo en realidad son 4 imágenes, solo se muestra 1 de forma aleatoria.