Back to top

Autore Topic: Modifica strutturale template mybusiness  (Letto 2055 volte)

Offline stefen

  • Esploratore
  • **
  • Post: 169
    • Mostra profilo
Modifica strutturale template mybusiness
« il: 21 Gen 2011, 20:25:23 »
Ciao
Ho questo template dove tutti i vari contenuti venfgono mostrati all'interno del riquadro centrale "container", che nella home page è occupato da "spotlight"

Ora vorrei invece che tutti i contenuti vengano mostrati sotto, sotto il container e sotto i 3 menu sotto al container
Come si fa?
www.stefanocapasso.net/pagani

grazie!

Codice: [Seleziona]
<?php
// no direct access
defined'_JEXEC' ) or die( 'Restricted access' );
$siteName $this->params->get('siteName');
class 
tjC {
function 
isFrontPage(){
return (JRequest::getCmd('option')=='com_content' && !JRequest::getInt('id'));
}
}
$TJ = new tjC($this);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Design by ThemesJoomla.com
http://www.themesjoomla.com
Released for free under a Creative Commons Attribution 2.5 License
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language?>" lang="<?php echo $this->language?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template_css.css" type="text/css" />
</head>
<body>
<div id="top">
  <div id="top-cover">
    <div id="logo"><a href="<?php echo $this->baseurl ?>" title="<?php echo $siteName?>"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo.png" border="0" alt="<?php echo $siteName?>" /></a></div>
    <div id="topmenu">
      <jdoc:include type="modules" name="mymainmenu"  style="xhtmlxtd" />
    </div>
  </div>
</div>
<div class="container">
  <div id="contentarea">
    <?php if(!$TJ->isFrontPage()) { ?>
    <div id="content">
      <jdoc:include type="message" />
      <jdoc:include type="component" style="xhtml"/>
    </div>
    <div id="right">
      <jdoc:include type="modules" name="myright"  style="xhtml" />
    </div>
    <?php } else { ?>
    <div class="spotlight"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/spotlight.jpg" border="0" alt=" " />
      <jdoc:include type="modules" name="myspotlight"  style="xhtmlxtd" />
    </div>
    <?php ?>
  </div>
<?php /*Aggiungo la nuova posizione modulo */?>                                       
    <?php if ($this->countModules('dxnew')) : ?>
      <div id="right_div">
        <jdoc:include type="modules" name="dxnew" style="xhtml" />
      </div>
   <?php endif; ?>
 



  <div id="bottom">
<p></p>
<p></p>
    <div id="user1">
      <jdoc:include type="modules" name="myuser1"  style="xhtml" />
    </div>
    <div id="user2">
      <jdoc:include type="modules" name="myuser2"  style="xhtml" />
    </div>
    <div id="user3">
      <jdoc:include type="modules" name="myuser3"  style="xhtml" />
    </div>
  </div>
  <div id="footer">
    <jdoc:include type="modules" name="myfooter"  style="xhtml" />
    <p>Copyright &copy; <?php echo $siteName?>. All Rights Reserved. <?php echo JText::_('Powered by'?> <a href="http://www.joomla.org">Joomla!</a>. <?php echo JText::_('Valid'?> <a href="http://validator.w3.org/check/referer">XHTML</a> <?php echo JText::_('and'?> <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
      <!-- You CAN NOT remove (or unreadable) those links without permission. Removing the link and template sponsor Please visit themesjoomla.com or contact with e-mail (webmaster@themesjoomla.com) If you don't want to link back to themesjoomla.com, you can always pay a link removal donation. This will allow you to use the template link free on one domain name. Also, kindly send me the site's url so I can include it on my list of verified users . Please read license.txt -->
      <br />
      <a href="http://www.themesjoomla.com" rel="follow">Joomla Themes</a> by <a  rel="follow" href="http://www.themesjoomla.com"><strong>themesjoomla.com</strong></a></p>
  </div>
</div>

<jdoc:include type="modules" name="debug" />
</body>
</html>

Codice: [Seleziona]
body {
margin: 0px;
padding:0px;
background: #8db9e5;
     
}
body, td, th {
font-family: Verdana,Arial, Helvetica, sans-serif;
font-size: 14px;
color: #1F6BB2;
line-height: 160%;
}
h1, h4, h5, h6 {
font-size: 12px;
color: #fff;
font-weight: normal;
}
h4 {
font-size: 12px;
font-weight: bold;
margin: 0;
padding: 0;
color: #FF9900;
margin-left: 2px;
}
h2 {
color: #1F6BB2;
font-weight: normal;
font-size: 20px;
         margin:0;
padding:0;
font-family: Verdana, Arial, Helvetica, sans-serif;
line-height: 32px;
}
h3 {
color: #990000;
font-weight: normal;
font-size: 12px;
text-transform: none;
margin-bottom: 10px;
padding-top: 0;
margin-top: 0;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
a {
color: #204b95;
}
a:hover {
color: #10aae3;
}
a:active {
background-color: #E9a616;
}

.container {
width: 950px;
margin: 0 auto;
}

#contentarea {-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background:#8db9e5 none repeat scroll 0 0;clear:left;float:left;height:300px;margin-top:0;padding-bottom:20px;width:760px;overflow:auto;}


#top {
width: 100%;
height: 100px;
background:url(../images/background.jpg) no-repeat top }
#top-cover {
width: 950px;
margin: 0 auto;
}
#logo {
width: 100px;
float: left;
margin-top: 20px;
margin-left: 10px;
}
#header {
width: 950px;
float: left;
display: inline-block;
margin-bottom: 10px;
}
#content {
width: 705px;
float: left;
margin-top: 0px;
margin-left: 20px;
}
#content2 {
width: 800px;
float: left;
margin-top: 20px;
margin-left: 20px;
}
#right {
width: 255px;
float: right;
padding-bottom: 70px;
margin-top: 20px;
color: #666;
margin-right:15px;
}
#right .moduletable {
margin-bottom: 20px;
}
#bottom {
width: 950px;
clear: left;
float: left;
color: #666;
background:#8db9e5;
padding:0 0 20px;
}
#right h3, #bottom h3 {
margin: 0px;
font-weight: bold;
color: #1F6BB2;
font-size: 18px;
font-family: Verdana, "Trebuchet MS", Tahoma, Arial, Helvetica, Sans-serif;
border-bottom:5px solid #242424;
padding:0 0 5px 0;
}

#right_div {
background:#8db9e5;
 float: right;
position:relative;left:-70px !important;top:30px !important;
font-size: 14px;
 width:120px;
text-decoration:none;
margin-right:150;}

#right_div a {

         font-size: 18px;
         font-weight: bold;
         text-decoration: none;
                   
}
#right_div li {
list-style: none;
list-style-image: none;
text-transform: none;
}

         
a:hover {
color: #10aae3;
}
a:active {
background-color: #E9a616;
}

#user1 {
width: 285px;
         float:left;   
margin-left: 5px;
         
}
#user1 .moduletable {
margin-bottom: 5px;
padding-bottom: 5px;
}
#user1 p {
margin: 0;
padding: 0;
margin-left: 0px;
}
#user1 a {

         font-size: 18px;
         font-weight: bold;
         text-decoration: none;
                   
}
#user1 li {
list-style: none;
list-style-image: none;
text-transform: none;
         line-height: 30px;
      list-style-position: outside;list-style-type: none;width: 120px; <---- aggiungi
        }

#user2 {
width: 120px;
float:left;
margin-left: -30px;
}
#user2 li {
list-style: none;
list-style-image: none;
text-transform: none;
         line-height: 23px;
         list-style-position: outside;
         list-style-type: none;
         width: 120px; <---- aggiungi

}

#user2 a {
margin-left: 2px;
font-size: 18px;
         font-weight: bold;
         text-decoration: none;
}
#user3 {
width: 285px;
float: right;
margin-right: 120px;
}
#user3 a {
font-size: 18px;
         font-weight: bold;
         text-decoration: none;
}
#user3 li {
list-style: none;
list-style-image: none;
text-transform: none;
         line-height: 30px;
list-style-position: outside;list-style-type: none;width: 120px; <---- aggiungi

}

#footer {
clear: left;
float: left;
width: 950px;
text-align: left;
font-size: 9px;
padding: 10px 0 30px 10px;
color: #666;
}
#footer a {
color: #666;
}
#footer .moduletable {
width: 880px;
margin: 0 auto;
margin-top: 3px;
}
h2.contentheading, h2.componentheading {
margin-bottom: 20px;
margin-top: 10px;
}
.clear {
clear: both;
}
/* COMMON TAGS */
.modifydate {
color: #C0C0C0;
}
.author {
color: #C0C0C0;
}
.createdate {
color: #C0C0C0;
}
.contenttoc {
margin: 5px;
}
ul {
margin: 2px;
padding: 6px;
padding-left: 15px;
}
li {
padding-left: 1px;
line-height: 150%;
}
ul.arrow1 li, ul.arrow2 li {
padding-left: 5px;
padding-bottom: 2px;
padding-top: 2px;
}
.buttons {
float:right;
width:85px;
}
.buttons .buttonheading {
float:left;
}
.buttons img {
border: 0;
}
fieldset {
border: none;
}
textarea, input {
border: solid 1px #ccc;
color: #666;
}
.button {
background: none;
border: solid 1px #ccc;
color: #990000;
}
/* Poll Module Styles */

.poll-radio {
padding:0;
float:left;
clear:left;
text-align:left;
}
.poll-option {
float:left;
padding-bottom:6px;
padding-top: 3px;
width:85%;
margin-left: 2px;
}
.poll h3 {
border:none;
}
.author, .createdate, .modifydate, .buttons {
display:none
}
#topmenu {
float: right;
width:650px;
height: 61px;
margin-top:5px;
margin-right: 220px;
}
#topmenu ul {
list-style: none;
margin: 0;
padding: 0;
margin-left: -11px;
float: right;
}
#topmenu li {
list-style: none;
float: left;
font-weight: bold;
font-size: 20px;
padding-right: 22px;
padding-left: 20px;
padding-top: 2px;
line-height: 26px;
font-family: Verdana, Candara, Arial, Helvetica, sans-serif;
}
#topmenu li a {
display: block;
padding: 0;
font-weight: bold;
text-decoration: none;
color: #1F6BB2;
}
#topmenu li:hover, #topmenu li.hover {
position: static;
}
#topmenu li a:hover, #topmenu li.active a {
color: #10aae3;
background-position: center;
}
html>body #topmenu li a {
width: auto;
}
.spotlight {
padding:40px 15px 25px 50px;
}

img { border:none;}

Offline .: BlackHat :.

  • Team Joomla.it
  • Abituale
  • *******
  • Post: 1186
  • Sesso: Maschio
  • Io me e me stesso
    • Mostra profilo
Re:Modifica strutturale template mybusiness
« Risposta #1 il: 22 Gen 2011, 13:31:25 »
dovresti spostare il div
Codice: [Seleziona]
<div id="content">
      <jdoc:include type="message" />
      <jdoc:include type="component" style="xhtml"/>
    </div>

al di sotto degli altri, dovrebbe essere dopo footer.
Sogna come se dovessi vivere per sempre, vivi come se dovessi morire domani.

Woot, ma cosa sta lì, sulla destra, si si prorpio li, nella colonna di destra del sito....mhh sembra un campo di ricerca...che dici lo usiamo? ma no, meglio postare :D

Offline stefen

  • Esploratore
  • **
  • Post: 169
    • Mostra profilo
Re:Modifica strutturale template mybusiness
« Risposta #2 il: 22 Gen 2011, 15:42:53 »
ok
ora il problema è che l'immagine quando clicco su un contenuto sparisce
invece dovrebbe rimanere sempre la, non solo sulla home
grazie cmq!

 



Web Design Bolzano Kreatif