[RESOLVIDO] Problemas com o Layout

  • rodriqo
  • Avatar de rodriqo Autor do Tópico
  • Offline
  • JCB! Master
  • JCB! Master
Mais
12 anos 2 meses atrás #64517 por rodriqo
rodriqo created the topic: [RESOLVIDO] Problemas com o Layout
Boa noite amigos,

Eu estou tentando configurar e organizar o layout desse item no Zoo e me deparo com o problema muito de resolver.

Cada item possui as posições: Top, Title, Meta, Description, Specification, Summary, Sidebar e Bottom.

Item.php
<?php

/**
* @package   com_zoo
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
*/


// no direct access

defined('_JEXEC') or die('Restricted access');



// include assets css/js

if (strtolower(substr($GLOBALS&#91;($this->app->joomla->isVersion('1.5') ? 'mainframe' : 'app')&#93;->getTemplate(), 0, 3)) != 'yoo') {

	$this->app->document->addStylesheet('assets:css/reset.css');

}

$this->app->document->addStylesheet($this->template->resource.'assets/css/zoo.css');



$css_class = $this->application->getGroup().'-'.$this->template->name;



?>



<div id="yoo-zoo" class="yoo-zoo <?php echo $css_class; ?> <?php echo $css_class.'-'.$this->item->alias; ?>">



	<?php if ($this->renderer->pathExists('item/'.$this->item->type)) : ?>

	<div class="<?php echo $this->item->type;?>">

		<?php echo $this->renderer->render('item.'.$this->item->type.'.full', array('view' => $this, 'item' => $this->item)); ?>

		<?php echo $this->app->comment->renderComments($this, $this->item); ?>

	</div>

	<?php else : ?>

	<div class="item">

		<?php echo $this->renderer->render('item.full', array('view' => $this, 'item' => $this->item)); ?>

		<?php echo $this->app->comment->renderComments($this, $this->item); ?>

	</div>

	<?php endif; ?>



</div>

item.css
/* Copyright (C) YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */

/*
 * item
 */

/* position headings */
#yoo-zoo .item h3 {
	margin-top: 0px;
	font-size: 21px;
	font-weight: normal;
}

/* element type: textarea */
#yoo-zoo .item .element-textarea > * { margin: 0px 0px 10px 0px; }
#yoo-zoo .item .element-textarea *:last-child { margin-bottom: 0px; }

/* position: top */
#yoo-zoo .item div.pos-top { overflow: hidden; }
#yoo-zoo .item div.pos-top .element { margin-bottom: 20px; }

/* position: sidebar */
#yoo-zoo .item div.pos-sidebar { width: 245px; }

#yoo-zoo .item div.sidebar-left {
	margin-right: 15px;
	float: left;
}

#yoo-zoo .item div.sidebar-right {
	margin-left: 15px;
	float: right;
}

#yoo-zoo .item div.pos-sidebar .element {
	margin-bottom: 20px;
	padding: 10px;
	border: 1px solid #C8C8C8;
}

/* element type: rating */
#yoo-zoo .item div.pos-sidebar div.rating { overflow: hidden; }
#yoo-zoo .item div.pos-sidebar div.rating div.rating-container {
	margin-right: 10px;
	float: left;
}
#yoo-zoo .item div.pos-sidebar div.rating div.vote-message { line-height: 20px; }

/* element type: image */
#yoo-zoo .item div.pos-sidebar .element-image {
	padding: 0px;
	border: none;
}

/* element type: related items */
#yoo-zoo .item div.pos-sidebar .element-relateditems > div {
	margin-bottom: 5px;
	padding-bottom: 5px;
	border-bottom: 1px solid #e6e6e6;
	overflow: hidden;
}
#yoo-zoo .item div.pos-sidebar .element-relateditems > div:last-child {
	border: none;
	margin-bottom: 0px;
	padding-bottom: 0px;
}

/* related item */
#yoo-zoo .item div.pos-sidebar .element-relateditems div.sub-pos-media {
	display: inline-block;
	margin: 0px 10px 0px 0px;
	vertical-align: middle;
}

#yoo-zoo .item div.pos-sidebar .element-relateditems div.sub-pos-media > a,
#yoo-zoo .item div.pos-sidebar .element-relateditems div.sub-pos-media > a > img { display: block; }

#yoo-zoo .item div.pos-sidebar .element-relateditems h4.sub-pos-title {
	display: inline-block;
	margin: 0px;
	font-size: 12px;
	font-weight: normal;
	line-height: 12px;
	color: #323232;
}

/* title */
#yoo-zoo .item h1.pos-title {
	margin: 0px 0px 5px 0px;
	font-weight: normal;
	color: #FF9900;
	font-size: 30px;
	line-height: 30px;
}

/* position: meta */
#yoo-zoo .item p.pos-meta {
	margin: 0px 0px 10px 0px;
	font-style: italic;
	color: #969696;
}

/* position: description */
#yoo-zoo .item div.pos-description {}
#yoo-zoo .item div.pos-description .element { margin-top: 20px; }
#yoo-zoo .item div.pos-description .element.first { margin-top: 0px; }

/* position: specification */
#yoo-zoo .item ul.pos-specification {
	list-style: none;
	margin: 20px 0px 0px 0px;
	padding: 10px 0px 10px 0px;
	border-top: 1px solid #c8c8c8;
	border-bottom: 1px solid #c8c8c8;
	overflow: hidden;
}

#yoo-zoo .item ul.pos-specification strong {
	display: inline-block;
	width: 150px;
	color: #ffffff;
}

/* spoiler warning */
#yoo-zoo .item p.spoiler {
	margin-top: 15px;
	font-weight: bold;
	color: #323232;
	font-size: 13px;
}

#yoo-zoo .item p.spoiler span.warning { color: #c80000; }

/* position: summary */
#yoo-zoo .item div.pos-summary .element { margin-top: 20px; }

/* position: bottom */
#yoo-zoo .item div.pos-bottom .element {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #c8c8c8;
	overflow: hidden;
}

/* element type: gallery */
#yoo-zoo .item div.pos-bottom .yoo-gallery div.thumbnails {
	position: relative;
	left: 50%;
	float: center;
}

#yoo-zoo .item div.pos-bottom .yoo-gallery div.thumbnail {
	position: relative;
	left: -50%;
}
#yoo-zoo .item div.pos-bottom .plain .yoo-gallery div.thumbnail { margin-right: 10px; }

/*
 * comments
 */
 
#yoo-zoo div#comments {
	padding-top: 20px;
	border-top: 1px solid #c8c8c8;

Fiz diversas alterações mas continua o problema. As informações do filme não ficam alinhadas:



Pode ser um erro infantil, mas ja li toda documentação do zoo e vários itens de CSS e ainda não identifiquei o problema.

Queria a ajuda de vocês que tem mais experiência com isso, algumas dicas.

Abraço

[b:2w54y43z]http://www.[color=#0000FF:2w54y43z]RODRIGOFARIASTS[/color:2w54y43z].com.br[/b:2w54y43z]

Please Entrar ou Registrar to join the conversation.


Mais
12 anos 2 meses atrás #64519 por Juelis
Juelis replied the topic: Re: Problemas com o Layout
Olá rodriqo,

o site ta hospedado? tem como passar o link pra gente analisar melhor?
sem saber qual é (ou quais são) as divs fica meio complicado.

E uma pergunta: "As informações do filme não ficam alinhadas"
Você quer que as informações fiquem do lado direito, abaixo do filme? Ou o filme fique do lado esquerdo a cima das informações?

Abraços!

[b:24rc7smc]“Inteligência é a habilidade de evitar fazer o trabalho, e mesmo assim conseguir ter o trabalho realizado.”[/b:24rc7smc]
[i:24rc7smc]Linus Torvalds[/i:24rc7smc]

Please Entrar ou Registrar to join the conversation.

  • rodriqo
  • Avatar de rodriqo Autor do Tópico
  • Offline
  • JCB! Master
  • JCB! Master
Mais
12 anos 2 meses atrás #64520 por rodriqo
rodriqo replied the topic: Re: Problemas com o Layout

[b:2w54y43z]http://www.[color=#0000FF:2w54y43z]RODRIGOFARIASTS[/color:2w54y43z].com.br[/b:2w54y43z]

Please Entrar ou Registrar to join the conversation.

  • rodriqo
  • Avatar de rodriqo Autor do Tópico
  • Offline
  • JCB! Master
  • JCB! Master
Mais
12 anos 2 meses atrás #64521 por rodriqo
rodriqo replied the topic: Re: Problemas com o Layout
Desculpe a falta de informações:

Joomla 2.5.1
Template: IT Cinema 2
Componente Zoo 2.5.10

Referencia: http://clubvideo.com.br/component/zoo/i ... e-de-teste

O alinhamento correto é ao lado de onde fica a capa, do lado esquerdo.

como: http://www.yootheme.com/zoo/apps/index. ... 3&Itemid=6

Que é o padrão.

[b:2w54y43z]http://www.[color=#0000FF:2w54y43z]RODRIGOFARIASTS[/color:2w54y43z].com.br[/b:2w54y43z]

Please Entrar ou Registrar to join the conversation.

  • rodriqo
  • Avatar de rodriqo Autor do Tópico
  • Offline
  • JCB! Master
  • JCB! Master
Mais
12 anos 2 meses atrás #64540 por rodriqo
rodriqo replied the topic: Re: Problemas com o Layout
Amigo, encontrei o template original, para onde no final é exibido os dados.
Vou tentar mexer diretamente nela
<?php
/**
* @package   com_zoo
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

?>

<?php if ($this->checkPosition('top')) : ?>
<div class="pos-top">
	<?php echo $this->renderPosition('top', array('style' => 'block')); ?>
</div>
<?php endif; ?>

<div class="floatbox">

	<?php if ($this->checkPosition('sidebar')) : ?>
	<div class="pos-sidebar <?php echo 'sidebar-'.$view->params->get('template.item_sidebar_alignment'); ?>">
		<?php echo $this->renderPosition('sidebar', array('style' => 'block')); ?>
	</div>
	<?php endif; ?>

	<?php if ($this->checkPosition('title')) : ?>
	<h1 class="pos-title"><?php echo $this->renderPosition('title'); ?></h1>
	<?php endif; ?>

	<?php if ($this->checkPosition('meta')) : ?>
	<p class="pos-meta">
		<?php echo $this->renderPosition('meta', array('style' => 'comma')); ?>
	</p>
	<?php endif; ?>

	<?php if ($this->checkPosition('description')) : ?>
	<div class="pos-description">
		<?php echo $this->renderPosition('description', array('style' => 'block')); ?>
	</div>
	<?php endif; ?>

	<?php if ($this->checkPosition('specification')) : ?>
	<ul class="pos-specification">
		<?php echo $this->renderPosition('specification', array('style' => 'list')); ?>
	</ul>
	<?php endif; ?>

	<?php if ($view->params->get('template.show_spoiler_warning')) : ?>
	<p class="spoiler"><?php echo '<span class="warning">'.JText::_('Warning').'</span> '.JText::_('The following summary contains spoilers'); ?></p>
	<?php endif; ?>
	
	<?php if ($this->checkPosition('summary')) : ?>
	<div class="pos-summary">
		<?php echo $this->renderPosition('summary', array('style' => 'block')); ?>
	</div>
	<?php endif; ?>
	
</div>

<?php if ($this->checkPosition('bottom')) : ?>
<div class="pos-bottom">
	<?php echo $this->renderPosition('bottom', array('style' => 'block')); ?>
</div>
<?php endif; ?>

[b:2w54y43z]http://www.[color=#0000FF:2w54y43z]RODRIGOFARIASTS[/color:2w54y43z].com.br[/b:2w54y43z]

Please Entrar ou Registrar to join the conversation.