Help

  • thiagoiasd
  • Avatar de thiagoiasd Autor do Tópico
  • Offline
  • JCB! Professional
  • JCB! Professional
Mais
10 anos 11 meses atrás #90035 por thiagoiasd
thiagoiasd created the topic: Help
E ae galera tudo bom?
graças a ajuda de vcs e de muita correria consegui fazer uma parte de meu projeto agora preciso de outra ajuda.

seguinte como eu faço para ocultar as seções que não tem módulos da index do site vou postar o código
<?php
/**
 * @package	*****
 * @subpackage	tpl_***
 * @copyright	Copyright (C) Thiago Mattos, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
//define variables
$path = $this->baseurl . '/templates/' . $this->template;
$app = JFactory::getApplication();
$logo = $this->params->get('logo');
$copyright = $this->params->get('copyright');

?>


<!doctype html>
<html lang="<?php echo  $this->language ?>" dir="<?php echo $this->direction?>">
<head>
	 <jdoc:include type="head" />
	 <link href="<?php echo $path ?>/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
	 <link href="<?php echo $path ?>/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css" />
	 <link href="<?php echo $path ?>/css/template.css" rel="stylesheet" type="text/css" />
</head>

<body>


######################################################## 

então galera é aqui tipo como eu oculto esta seção na hora que o site for renderizado? tipo no código fonte não aparecer que existe um campo chamado div id="top" vcs podem me ajudar?

#########################################################


	<div id="top">
		<div class="container">
			<section class="row">
				<?php if ($this->countModules('top-a')) : ?>
					<jdoc:include type="modules" name="top-a" style="xhtml" />
				<?php endif; ?>

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

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

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

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

				<?php if ($this->countModules('top-f')) : ?>
					<jdoc:include type="modules" name="top-f" style="xhtml" />
				<?php endif; ?>
			</section>
		</div>
	</div>
		
	<div id="header">
		<div class="container">
			<section class="header">
				<?php if ($this->countModules('header-a')) : ?>
				<jdoc:include type="modules" name="header-a" style="row" />
				<?php endif; ?>

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

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

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

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

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

	<div id="drawer">
		<div class="container">
			<section class="drawer">
				<jdoc:include type="modules" name="drawer" style="xhtml" />
			</section>
		</div>
	</div>

	<div id="showcase">
		<div class="container">
			<section class="showcase">
				<jdoc:include type="modules" name="showcase-a" style="xhtml" />
				<jdoc:include type="modules" name="showcase-b" style="xhtml" />
				<jdoc:include type="modules" name="showcase-c" style="xhtml" />
				<jdoc:include type="modules" name="showcase-d" style="xhtml" />
				<jdoc:include type="modules" name="showcase-e" style="xhtml" />
				<jdoc:include type="modules" name="showcase-f" style="xhtml" />
			</section>
		</div>
	</div>

	<div id="feature">
		<div class="container">
			<section class="feature">
				<jdoc:include type="modules" name="feature-a" style="xhtml" />
				<jdoc:include type="modules" name="feature-b" style="xhtml" />
				<jdoc:include type="modules" name="feature-c" style="xhtml" />
				<jdoc:include type="modules" name="feature-d" style="xhtml" />
				<jdoc:include type="modules" name="feature-e" style="xhtml" />
				<jdoc:include type="modules" name="feature-f" style="xhtml" />
			</section>
		</div>
	</div>

	<div id="utility">
		<div class="container">
			<section class="utility">
				<jdoc:include type="modules" name="utility-a" style="xhtml" />
				<jdoc:include type="modules" name="utility-b" style="xhtml" />
				<jdoc:include type="modules" name="utility-c" style="xhtml" />
				<jdoc:include type="modules" name="utility-d" style="xhtml" />
				<jdoc:include type="modules" name="utility-e" style="xhtml" />
				<jdoc:include type="modules" name="utility-f" style="xhtml" />
			</section>
		</div>
	</div>

	<div id="breadcrumb">
		<div class="container">
			<section class="header">
				<jdoc:include type="modules" name="breadcrumb" style="xhtml" />
			</section>
		</div>
	</div>

	<div id="maintop">
		<div class="container">
			<section class="maintop">
				<jdoc:include type="modules" name="maintop-a" style="xhtml" />
				<jdoc:include type="modules" name="maintop-b" style="xhtml" />
				<jdoc:include type="modules" name="maintop-c" style="xhtml" />
				<jdoc:include type="modules" name="maintop-d" style="xhtml" />
				<jdoc:include type="modules" name="maintop-e" style="xhtml" />
				<jdoc:include type="modules" name="maintop-f" style="xhtml" />
			</section>
		</div>
	</div>

	<div id="contenttop">
		<div class="container">
			<section class="contenttop">
				<jdoc:include type="modules" name="contenttop-a" style="xhtml" />
				<jdoc:include type="modules" name="contenttop-b" style="xhtml" />
				<jdoc:include type="modules" name="contenttop-c" style="xhtml" />
			</section>
		</div>
	</div>

	<div id="mainbody">
		<div class="container">
			<section class="mainbody">
				<jdoc:include type="component" /> <?php //Conteudo do Site, Artigos ?>
			</section>
		</div>
	</div>

	<div id="contentbottom">
		<div class="container">
			<section class="contentbottom">
				<jdoc:include type="modules" name="contentbottom-a" style="xhtml" />
				<jdoc:include type="modules" name="contentbottom-b" style="xhtml" />
				<jdoc:include type="modules" name="contentbottom-c" style="xhtml" />
			</section>
		</div>
	</div>

	<div id="sidebar">
		<div class="container">
			<section class="sidebar">
				<jdoc:include type="modules" name="sidebar-a" style="xhtml" />
				<jdoc:include type="modules" name="sidebar-b" style="xhtml" />
				<jdoc:include type="modules" name="sidebar-c" style="xhtml" />
			</section>
		</div>
	</div>

	<div id="mainbottom">
		<div class="container">
			<section class="mainbottom">
				<jdoc:include type="modules" name="mainbottom-a" style="xhtml" />
				<jdoc:include type="modules" name="mainbottom-b" style="xhtml" />
				<jdoc:include type="modules" name="mainbottom-c" style="xhtml" />
				<jdoc:include type="modules" name="mainbottom-d" style="xhtml" />
				<jdoc:include type="modules" name="mainbottom-e" style="xhtml" />
				<jdoc:include type="modules" name="mainbottom-f" style="xhtml" />
			</section>
		</div>
	</div>

	<div id="extension">
		<div class="container">
			<section class="extension">
				<jdoc:include type="modules" name="extension-a" style="xhtml" />
				<jdoc:include type="modules" name="extension-b" style="xhtml" />
				<jdoc:include type="modules" name="extension-c" style="xhtml" />
				<jdoc:include type="modules" name="extension-d" style="xhtml" />
				<jdoc:include type="modules" name="extension-e" style="xhtml" />
				<jdoc:include type="modules" name="extension-f" style="xhtml" />
			</section>
		</div>
	</div>

	<div id="bottom">
		<div class="container">
			<section class="bottom">
				<jdoc:include type="modules" name="bottom-a" style="xhtml" />
				<jdoc:include type="modules" name="bottom-b" style="xhtml" />
				<jdoc:include type="modules" name="bottom-c" style="xhtml" />
				<jdoc:include type="modules" name="bottom-d" style="xhtml" />
				<jdoc:include type="modules" name="bottom-e" style="xhtml" />
				<jdoc:include type="modules" name="bottom-f" style="xhtml" />
			</section>
		</div>
	</div>

	<div id="footer">
		<div class="container">
			<section class="footer">
				<jdoc:include type="modules" name="footer-a" style="xhtml" />
				<jdoc:include type="modules" name="footer-b" style="xhtml" />
				<jdoc:include type="modules" name="footer-c" style="xhtml" />
				<jdoc:include type="modules" name="footer-d" style="xhtml" />
				<jdoc:include type="modules" name="footer-e" style="xhtml" />
				<jdoc:include type="modules" name="footer-f" style="xhtml" />
			</section>
		</div>
	</div>

	<div id="copyright">
		<div class="container">
			<section class="copyright">
				<jdoc:include type="modules" name="copyright-a" style="xhtml" />
				Site Desenvolvido por:<?php echo $copyright = $this->params->get('copyright');?>
				<jdoc:include type="modules" name="copyright-b" style="xhtml" />
				<jdoc:include type="modules" name="copyright-c" style="xhtml" />
				<jdoc:include type="modules" name="copyright-d" style="xhtml" />
				<jdoc:include type="modules" name="copyright-e" style="xhtml" />
				<jdoc:include type="modules" name="copyright-f" style="xhtml" />
			</section>
		</div>
	</div>

	<div id="debug">
		<div class="container">
			<section class="debug">
				<jdoc:include type="modules" name="debug" style="xhtml" />
			</section>
		</div>
	</div>

	<div id="analytics">
		<div class="container">
			<section class="analytics">
				<jdoc:include type="modules" name="analytics" style="xhtml" />
			</section>
		</div>
	</div>

	

</body>
</html>

galera qq outra ajuda sobre ocmo melhorar este código é muito bem vinda

aaa outra coisa que quero saber é como eu adapto estes módulos a grid do bootstrap
amigos eu garanto que com todos vcs me ajudando eu libero para todos o download deste tema que estou criando pois ele é meu primeiro feito por mim mesmo do "zero"
e seria injusto vcs me ajudarem e eu guardar o conhecimento e o resultado dele só para mim
abraços

ps: galera sei que este post esta lugar errado porem como eu não obtive resposta no local certo estou postando aqui. abraços

Please Entrar ou Registrar to join the conversation.


  • thiagoiasd
  • Avatar de thiagoiasd Autor do Tópico
  • Offline
  • JCB! Professional
  • JCB! Professional
Mais
10 anos 11 meses atrás #90144 por thiagoiasd
thiagoiasd replied the topic: Re: Help
alguem pode me ajudar?

Please Entrar ou Registrar to join the conversation.