Новости Joomla

0 Пользователей и 1 Гость просматривают эту тему.
  • 2 Ответов
  • 1283 Просмотров
*

lommaker

  • Осваиваюсь на форуме
  • 46
  • 0 / 0
  • lommaker
 !
Копаюсь два дня, не могу уснуть...
Что тут куда переставить чтоб пагинация показывалась под новостями.
Надеюсь это не сложно, заранее благодарен.

Вот сайт http://coruption.net/

вот кстати код


Цитировать
<?php
/**
* Default template
* @package News Show Pro GK4
* @Copyright (C) 2009-2011 Gavick.com
* @ All rights reserved
* @ Joomla! is Free Software
* @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
* @version $Revision: GK4 1.0 $
**/

// no direct access
defined('_JEXEC') or die('Restricted access');
$news_amount = $this->content['news_amount'];
if($this->config['links_position'] != 'bottom' && $this->config['news_short_pages'] > 0 && count($news_list_tab) > 0 && $this->config['news_full_pages'] > 0){
   $links_width = $this->config['links_width'];
   $arts_width = 100 - $this->config['links_width'];
} else {
   $links_width = 100;
   $arts_width = 100;
}
?>
<?php if($news_amount > 0) : ?>
   <div class="nspMain<?php if($this->config['autoanim'] == TRUE) echo ' autoanim'; ?><?php if($this->config['hover_anim'] == TRUE) echo ' hover'; ?> nspFs<?php echo $this->config['module_font_size']; ?>" id="nsp-<?php echo $this->config['module_id']; ?>" style="width:<?php echo $this->config['module_width']; ?>%;" data-direction="<?php if($this->config['useRTL'] == TRUE) echo 'rtl'; else echo 'ltr'; ?>">
      <?php if(($this->config['news_column'] * $this->config['news_rows']) > 0) : ?>
         <div class="nspArts<?php echo ' '.$this->config['links_position']; ?>" style="width:<?php echo $arts_width; ?>%;">
            <?php if(
                  count($news_html_tab) > ($this->config['news_column'] * $this->config['news_rows']) &&
                  $this->config['news_full_pages'] > 1 &&
                  $this->config['top_interface_style'] != 'none'
                  ) : ?>
            <div class="nspTopInterface">
               <div>
                  
                  <?php if(
                           $this->config['top_interface_style'] == 'pagination' ||
                           $this->config['top_interface_style'] == 'arrows_with_pagination'
                        ) : ?>
                  <ul class="nspPagination">
                     <?php for($i = 0; $i < ceil(count($news_html_tab) / ($this->config['news_column'] * $this->config['news_rows'])); $i++) : ?>
                     <li><?php echo $i+1; ?></li>
                     <?php endfor; ?>
                  </ul>
                  <?php endif; ?>
                  
                  <?php if(
                           $this->config['top_interface_style'] == 'arrows' ||
                           $this->config['top_interface_style'] == 'arrows_with_pagination' ||
                           $this->config['top_interface_style'] == 'arrows_with_counter'
                        ) : ?>
                  <span class="nspPrev"><?php echo JText::_('MOD_NEWS_PRO_GK4_NSP_PREV'); ?></span>
                  <span class="nspNext"><?php echo JText::_('MOD_NEWS_PRO_GK4_NSP_NEXT'); ?></span>
                  <?php endif; ?>
                  
                  <?php if(
                           $this->config['top_interface_style'] == 'counter' ||
                           $this->config['top_interface_style'] == 'arrows_with_counter'
                        ) : ?>
                  <span class="nspCounter"><strong><?php echo JText::_('MOD_NEWS_PRO_GK4_NSP_PAGE'); ?></strong><span></span></span>
                  <?php endif; ?>
               </div>
            </div>
            <?php endif; ?>
            

            
            <div class="nspArtScroll1">
               <div class="nspArtScroll2 nspPages<?php echo $this->config['news_full_pages']; ?>">
               <?php for($i = 0; $i < count($news_html_tab); $i++) : ?>
                  <?php if($i == 0) : ?>
                  <div class="nspArtPage nspCol<?php echo $this->config['news_full_pages']; ?>">
                  <?php endif; ?>
                     <?php
                        $style = 'padding:'. $this->config['art_padding'] .';';
                        if(($i+1) % ($this->config['news_column']) == 1) $style .= 'clear:both;';
                     ?>
                     
                     <div class="nspArt nspCol<?php echo $this->config['news_column']; ?>" style="<?php echo $style; ?>">
                        <?php echo $news_html_tab[$i];?>
                     </div>


                                          
                  <?php if(($i > 0 && (($i+1) % ($this->config['news_column'] * $this->config['news_rows']) == 0) && $i != count($news_html_tab) - 1) || ($this->config['news_column'] * $this->config['news_rows'] == 1 && $i != count($news_html_tab) - 1)) : ?>
                  </div>
                  
                  
                                    
                  <div class="nspArtPage nspCol<?php echo $this->config['news_full_pages']; ?>">
                  <?php elseif($i == count($news_html_tab) - 1) : ?>
                  </div>                                       
                  <?php endif; ?>               
               <?php endfor; ?>
               </div>
            </div>   
         </div>   
      <?php endif; ?>
      
      
      
      <?php if($this->config['news_short_pages'] > 0 && count($news_list_tab) > 0 ) : ?>
      <div class="nspLinksWrap<?php echo ' '.$this->config['links_position']; ?>" style="width:<?php echo $links_width-0.1; ?>%;">
         <div class="nspLinks" style="margin:<?php echo $this->config["links_margin"]; ?>;">
            <?php if(count($news_list_tab) > 0) : ?>
            <div class="nspLinkScroll1">
               <div class="nspLinkScroll2 nspPages<?php echo $this->config['news_short_pages']; ?>">
                  <?php for($j = 0; $j < count($news_list_tab); $j++) : ?>
                     <?php if($j == 0) : ?>
                     <ul class="nspList nspCol<?php echo $this->config['news_short_pages'] * $this->config['links_columns_amount']; ?>">
                     <?php endif; ?>
                     
                     <?php echo $news_list_tab[$j]; ?>
                     
                     <?php if(($j > 0 && (($j+1) % ($this->config['links_amount']) == 0) && $j != count($news_list_tab) - 1) || ($this->config['links_amount'] == 1 && $j != count($news_list_tab) - 1)) : ?>
                     </ul>
                     <ul class="nspList nspCol<?php echo $this->config['news_short_pages'] * $this->config['links_columns_amount']; ?>">
                     <?php elseif($j == count($news_list_tab) - 1) : ?>
                     </ul>
                     <?php endif; ?>
                  <?php endfor; ?>      
               </div>
            </div>
            
            <?php endif; ?>   
            
            
            
            <?php if(
                  count(($news_list_tab) > $this->config['links_amount']) &&
                  $this->config['news_short_pages'] > 1 &&
                   ceil(floor(count($news_list_tab) / $this->config['links_amount']) / $this->config['links_columns_amount']) >= 1 &&
                  $this->config['bottom_interface_style'] != 'none'
                  ) : ?>
            <div class="nspBotInterface">
               <div>
                  <?php if(
                           $this->config['bottom_interface_style'] == 'pagination' ||
                           $this->config['bottom_interface_style'] == 'arrows_with_pagination'
                        ) : ?>
                  <ul class="nspPagination">
                     <?php for($i = 0; $i < ceil(ceil(count($news_list_tab) / $this->config['links_amount']) / $this->config['links_columns_amount']); $i++) : ?>
                     <li><?php echo $i+1; ?></li>
                     <?php endfor; ?>
                  </ul>
                  <?php endif; ?>
                  
                  <?php if(
                           $this->config['bottom_interface_style'] == 'arrows' ||
                           $this->config['bottom_interface_style'] == 'arrows_with_pagination' ||
                           $this->config['bottom_interface_style'] == 'arrows_with_counter'
                        ) : ?>
                  <span class="nspPrev"><?php echo JText::_('MOD_NEWS_PRO_GK4_NSP_PREV'); ?></span>
                  <span class="nspNext"><?php echo JText::_('MOD_NEWS_PRO_GK4_NSP_NEXT'); ?></span>
                  <?php endif; ?>
                  <?php if(
                           $this->config['bottom_interface_style'] == 'counter' ||
                           $this->config['bottom_interface_style'] == 'arrows_with_counter'
                        ) : ?>
                  <span class="nspCounter"><strong><?php echo JText::_('MOD_NEWS_PRO_GK4_NSP_PAGE'); ?></strong><span></span></span>
                  <?php endif; ?>
               </div>
               
            </div>
            <?php endif; ?>   
         </div>      
      </div>
      <?php endif; ?>
   </div>

<?php else : ?>
   <p><?php echo JText::_('MOD_NEWS_PRO_GK4_NSP_ERROR'); ?></p>
<?php endif; ?>
*

lommaker

  • Осваиваюсь на форуме
  • 46
  • 0 / 0
  • lommaker
Помогите, я даже готов заплатить! Немного но готов!
*

operator_tv

  • Осваиваюсь на форуме
  • 25
  • 3 / 0
Формирование списка страниц (количество цифорок) идёт в части начинающейся  с <div class="nspTopInterface"> и до закрывающегося <div> так что попробуй его переставить в нужную часть страницы
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Плагин Контент - Навигация по страницам

Автор Hol1killer

Ответов: 11
Просмотров: 5488
Последний ответ 09.09.2016, 15:53:17
от serjik
не могу понять какой плагин работает

Автор etoneja

Ответов: 1
Просмотров: 867
Последний ответ 18.11.2015, 16:03:42
от Ragivort
Контент вытягиается на страницу 2 раза зачем-то... =(

Автор Evgen47rus

Ответов: 5
Просмотров: 934
Последний ответ 28.03.2015, 10:48:35
от Evgen47rus
Не могу найти статус «Enable» в настройках модуля. Вроде все перерыл. Где он там?

Автор Азовский

Ответов: 8
Просмотров: 1359
Последний ответ 29.12.2014, 17:15:10
от Азовский
Модуль mod_news_pro_gk4 не выводит обозначенные в источнике данных товары

Автор NataNem

Ответов: 0
Просмотров: 908
Последний ответ 08.11.2014, 11:59:49
от NataNem