Ir para conteúdo
Fórum Script Brasil
  • 0

Problema PHP joomla


Marcosw

Pergunta

Ola amigos venho tentando arrumar esse problema a 3 dias, é um problema em um arquivo php de um template joomla que quero usar...

eu gostaria muito te arrumar esse erro... se alguém poder ajudar com esse erro eu ficaria grato.

((Diz que o erro esta na linha 38 do arquivo vou postar o arquivo aki))Des de já tifo eternamente grato

<?php // @version $Id: default.php 11917 2009-05-29 19:37:05Z ian $
defined('_JEXEC') or die('Restricted access');
?>

        
<?php if ($this->params->get('show_page_title',1)) : ?>
<h1 class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
    <?php echo $this->escape($this->params->get('page_title')); ?>
</h1>
<?php endif; ?>

<div class="blog<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">

    <?php $i = $this->pagination->limitstart;
    $rowcount = $this->params->def('num_leading_articles', 1);
    for ($y = 0; $y < $rowcount && $i < $this->total; $y++, $i++) : ?>
        <div class="leading<?php echo $this->params->get('pageclass_sfx'); ?>">
        
            <div class="leading-content">    
                <?php $this->item =& $this->getItem($i, $this->params);
                echo $this->loadTemplate('item'); ?>
                <br class="clearfix"/>
            </div>
            
        </div>
        <span class="leading_separator<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>"> </span>
    <?php endfor; ?>

    <?php $introcount = $this->params->def('num_intro_articles', 4);
    if ($introcount) :
        $colcount = $this->params->def('num_columns', 2);
        if ($colcount == 0) :
            $colcount = 1;
        endif;
        $rowcount = (int) $introcount / $colcount;
        $ii = 0;
        $kk = 0;
        $$total_div = ($introcount - $introcount%$colcount); // LINHA 38
        for ($y = 0; $y < $rowcount && $i < $this->total; $y++) : ?>
            
            <div class="article_row<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">

            <div class="leading-content">
                <?php for ($z = 0; $z < $colcount && $ii < $introcount && $i < $this->total; $z++, $i++, $ii++) : ?>
                    <?php if($introcount > $colcount && $ii <= $$total_div-1) {
                        $kk = $colcount;
                    } elseif($introcount > $colcount && $ii > $$total_div-1) {
                        $kk = $introcount%$colcount;
                    } else {
                        $kk = $introcount;
                    }                    
                    ?>
                    <div class="article_column column<?php echo $z + 1; ?> cols<?php echo $colcount; ?>" style="width: <?php echo 99.9/$kk; ?>%; float: left;" >
                        
                        <div class="article_column_pad">
                            <?php $this->item =& $this->getItem($i, $this->params);
                            echo $this->loadTemplate('item'); ?>
                        </div>
                        
                    </div>
                    <span class="article_separator"> </span>
                <?php endfor; ?>
                <span class="row_separator<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>"> </span>
                <br class="clr"/>
            </div>    
            </div>
            
            
        <?php endfor;
    endif; ?>

    <?php $numlinks = $this->params->def('num_links', 4);
    if ($numlinks && $i < $this->total) : ?>
    <div class="blog_more<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
        <?php $this->links = array_slice($this->items, $i - $this->pagination->limitstart, $i - $this->pagination->limitstart + $numlinks);
        echo $this->loadTemplate('links'); ?>
    </div>
    <?php endif; ?>

    <?php if ($this->params->def('show_pagination', 2) == 1  || ($this->params->get('show_pagination') == 2 && $this->pagination->get('pages.total') > 1)) : ?>
        <?php if ($this->params->def('show_pagination_results', 1)) : ?>
            <?php echo $this->pagination->getPagesLinks(); ?>
        <?php endif; ?>
        <?php if( $this->pagination->get('pages.total') > 1 ) : ?>
        <p class="counter">
            <?php echo $this->pagination->getPagesCounter(); ?>
        </p>
        <?php endif; ?>
    <?php endif; ?>
</div>

Editado por *FIT*
Editado para acrescentar as tags [code] e retirar letras grandes conforme Regra 3.7
Link para o comentário
Compartilhar em outros sites

1 resposta a esta questão

Posts Recomendados

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,2k
    • Posts
      652k
×
×
  • Criar Novo...