Index: branches/RC/core/units/categories/categories_tag_processor.php =================================================================== diff -u -N -r9866 -r10274 --- branches/RC/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 9866) +++ branches/RC/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 10274) @@ -748,6 +748,27 @@ list ($ret, $tag_processed) = $this->processAggregatedTag('ImageSrc', $params, $this->getPrefixSpecial()); return $tag_processed ? $ret : false; } + + function PageLink($params) + { + $t = isset($params['template']) ? $params['template'] : ''; + unset($params['template']); + + if (!$t) $t = $this->Application->GetVar('t'); + + if (isset($params['page'])) { + $this->Application->SetVar($this->getPrefixSpecial().'_Page', $params['page']); + unset($params['page']); + } + + $params['m_cat_page'] = $this->Application->GetVar($this->getPrefixSpecial().'_Page'); + + if (!isset($params['pass'])) { + $params['pass'] = 'm,'.$this->getPrefixSpecial(); + } + + return $this->Application->HREF($t, '', $params); + } } ?> \ No newline at end of file Index: branches/RC/core/units/general/cat_tag_processor.php =================================================================== diff -u -N -r10077 -r10274 --- branches/RC/core/units/general/cat_tag_processor.php (.../cat_tag_processor.php) (revision 10077) +++ branches/RC/core/units/general/cat_tag_processor.php (.../cat_tag_processor.php) (revision 10274) @@ -61,6 +61,7 @@ $object =& $this->getObject($params); $params['m_cat_id'] = $object->GetDBField('CategoryId'); + $params['m_cat_page'] = 1; $params['pass_category'] = 1; return $this->Application->ProcessParsedTag('m', 't', $params); @@ -242,6 +243,8 @@ $params['cat_id'] = $this->Application->findModule('Var', $this->Prefix, 'RootCat'); } + $params['m_cat_page'] = 1; + return $this->Application->ProcessParsedTag('c', 'CategoryLink', $params); } Index: branches/RC/themes/default2007/platform/elements/menu.tpl =================================================================== diff -u -N -r9608 -r10274 --- branches/RC/themes/default2007/platform/elements/menu.tpl (.../menu.tpl) (revision 9608) +++ branches/RC/themes/default2007/platform/elements/menu.tpl (.../menu.tpl) (revision 10274) @@ -25,6 +25,7 @@ subid="sub" suburl="" >]]> @@ -35,7 +36,7 @@ - " ico="['img/menu_home.gif']" enb="true" title="">]]> + " ico="['img/menu_home.gif']" enb="true" title="">]]> @@ -64,7 +65,7 @@ - + @@ -85,7 +86,7 @@ - + @@ -104,7 +105,7 @@ - + Index: branches/RC/themes/default2007/platform/designs/content_boxes.tpl =================================================================== diff -u -N -r9707 -r10274 --- branches/RC/themes/default2007/platform/designs/content_boxes.tpl (.../content_boxes.tpl) (revision 9707) +++ branches/RC/themes/default2007/platform/designs/content_boxes.tpl (.../content_boxes.tpl) (revision 10274) @@ -115,7 +115,7 @@ "> - "> + "> @@ -148,7 +148,7 @@ '.$regs[4]; + } + + return '
'.$block_content.'
'; + } + function Recurve(&$tag) { $this->Recursion[++$this->RecursionIndex] =& $tag; Index: branches/RC/themes/default2007/platform/elements/navigation_bar.tpl =================================================================== diff -u -N -r8929 -r10274 --- branches/RC/themes/default2007/platform/elements/navigation_bar.tpl (.../navigation_bar.tpl) (revision 8929) +++ branches/RC/themes/default2007/platform/elements/navigation_bar.tpl (.../navigation_bar.tpl) (revision 10274) @@ -14,7 +14,7 @@ "> - "> + "> Index: branches/RC/themes/default2007/platform/elements/menu.xml.tpl =================================================================== diff -u -N -r9602 -r10274 --- branches/RC/themes/default2007/platform/elements/menu.xml.tpl (.../menu.xml.tpl) (revision 9602) +++ branches/RC/themes/default2007/platform/elements/menu.xml.tpl (.../menu.xml.tpl) (revision 10274) @@ -10,6 +10,7 @@ subid="sub" suburl="" >]]> @@ -18,7 +19,7 @@ - " ico="['img/menu_home.gif']" enb="true" title=""> + " ico="['img/menu_home.gif']" enb="true" title=""> Index: branches/RC/themes/default2007/platform/login/forgot_password_reset.tpl =================================================================== diff -u -N -r9664 -r10274 --- branches/RC/themes/default2007/platform/login/forgot_password_reset.tpl (.../forgot_password_reset.tpl) (revision 9664) +++ branches/RC/themes/default2007/platform/login/forgot_password_reset.tpl (.../forgot_password_reset.tpl) (revision 10274) @@ -40,7 +40,7 @@

- "> + "> Index: branches/RC/themes/default2007/platform/elements/side_boxes/login.tpl =================================================================== diff -u -N -r9750 -r10274 --- branches/RC/themes/default2007/platform/elements/side_boxes/login.tpl (.../login.tpl) (revision 9750) +++ branches/RC/themes/default2007/platform/elements/side_boxes/login.tpl (.../login.tpl) (revision 10274) @@ -9,7 +9,7 @@ - ">
+ ">
@@ -61,7 +61,7 @@ ">
- + @@ -114,10 +114,10 @@ - " class="more-link" > img/side_link_str.gif" width="6" height="5" alt="" />
+ " class="more-link" > img/side_link_str.gif" width="6" height="5" alt="" />
- " class="more-link" >?img/side_link_str.gif" width="6" height="5" alt="" /> + " class="more-link" >?img/side_link_str.gif" width="6" height="5" alt="" /> " /> Index: branches/RC/themes/default2007/platform/designs/categories.tpl =================================================================== diff -u -N -r10006 -r10274 --- branches/RC/themes/default2007/platform/designs/categories.tpl (.../categories.tpl) (revision 10006) +++ branches/RC/themes/default2007/platform/designs/categories.tpl (.../categories.tpl) (revision 10274) @@ -13,9 +13,9 @@ - " class="text-title"> @ ( / ) + " class="text-title"> @ ( / ) - " class="text-title"> ( / ) + " class="text-title"> ( / ) @@ -46,9 +46,9 @@
  • - " class="text-title"> @ + " class="text-title"> @ - " class="text-title"> + " class="text-title">
  • @@ -78,7 +78,7 @@ img/menu-li-2-level.gif" alt="" width="4" height="4" border="0" />
    @@ -89,7 +89,7 @@ img/menu-li-2-level.gif" alt="" width="4" height="4" border="0" />
    @@ -108,7 +108,7 @@
    active-tabinactive-tab"> - "> + ">   Index: branches/RC/core/kernel/parser/template_parser.php =================================================================== diff -u -N -r9286 -r10274 --- branches/RC/core/kernel/parser/template_parser.php (.../template_parser.php) (revision 9286) +++ branches/RC/core/kernel/parser/template_parser.php (.../template_parser.php) (revision 10274) @@ -681,7 +681,7 @@ unset($this->ParamsStack[$this->ParamsRecursionIndex--]); $this->Params = $this->ParamsStack[$this->ParamsRecursionIndex]; $this->MainParser = true; - return $ret; + return defined('DBG_DECORATE_BLOCKS') && DBG_DECORATE_BLOCKS ? $this->decorateBlock($ret, $pass_params) : $ret; } } @@ -719,6 +719,16 @@ return $o; } + function decorateBlock(&$block_content, $block_params) + { + if (preg_match('/^(\s*)(.*)<\/td>(.*)$/is', $block_content, $regs)) { + // block with td -> put div inside td + return $regs[1].'
    '.$regs[3].'
    img/s.gif" alt="" width="1" height="7" border="0" />
    @@ -70,7 +70,7 @@
    - +
    - " class="sub-category"> + " class="sub-category">
    - " class="sub-category"> + " class="sub-category">
    - " class="top-category">
    + " class="top-category">
    Index: branches/RC/core/kernel/application.php =================================================================== diff -u -N -r10098 -r10274 --- branches/RC/core/kernel/application.php (.../application.php) (revision 10098) +++ branches/RC/core/kernel/application.php (.../application.php) (revision 10274) @@ -1379,7 +1379,10 @@ $env .= ':'.$this->BuildModuleEnv($pass_element, $params, $pass_events); } } - if (!$m_only) $params['pass_category'] = 1; + + if (!$m_only || preg_match('/c\.[-\d]*/', implode(',', $pass_info))) { + $params['pass_category'] = 1; + } $ret = $this->BuildModuleEnv_NEW('m', $params, $pass_events).$ret; $cat_processed = isset($params['category_processed']) && $params['category_processed']; if ($cat_processed) { Index: branches/RC/themes/default2007/platform/elements/header.tpl =================================================================== diff -u -N -r9720 -r10274 --- branches/RC/themes/default2007/platform/elements/header.tpl (.../header.tpl) (revision 9720) +++ branches/RC/themes/default2007/platform/elements/header.tpl (.../header.tpl) (revision 10274) @@ -1,7 +1,7 @@ Index: branches/RC/core/units/general/main_event_handler.php =================================================================== diff -u -N -r10098 -r10274 --- branches/RC/core/units/general/main_event_handler.php (.../main_event_handler.php) (revision 10098) +++ branches/RC/core/units/general/main_event_handler.php (.../main_event_handler.php) (revision 10274) @@ -108,8 +108,8 @@ } } - if( $processed_params['m_cat_page'] > 1 || $force_page_adding ) - { + if( (array_key_exists('category_processed', $url_params) && $url_params['category_processed'] && ($processed_params['m_cat_page'] > 1)) || $force_page_adding ) { + // category page number found & category name was added before $ret = preg_replace('/(.*)\//', '\\1', $ret).'_'.$processed_params['m_cat_page'].'/'; } Index: branches/RC/core/units/categories/categories_event_handler.php =================================================================== diff -u -N -r9866 -r10274 --- branches/RC/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 9866) +++ branches/RC/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 10274) @@ -896,6 +896,30 @@ return $type_clauses; } + + /** + * Set's correct page for list + * based on data provided with event + * + * @param kEvent $event + * @access private + * @see OnListBuild + */ + function SetPagination(&$event) + { + parent::SetPagination($event); + + if (!$this->Application->IsAdmin()) { + $page_var = $event->getEventParam('page_var'); + if ($page_var !== false) { + $page = $this->Application->GetVar($page_var); + if (is_numeric($page)) { + $object =& $event->getObject(); + $object->SetPage($page); + } + } + } + } } ?> \ No newline at end of file Index: branches/RC/themes/default2007/platform/my_account/my_account.tpl =================================================================== diff -u -N -r9664 -r10274 --- branches/RC/themes/default2007/platform/my_account/my_account.tpl (.../my_account.tpl) (revision 9664) +++ branches/RC/themes/default2007/platform/my_account/my_account.tpl (.../my_account.tpl) (revision 10274) @@ -20,7 +20,7 @@ " alt="" />
    Index: branches/RC/themes/default2007/platform/elements/content_boxes/sub_categories.tpl =================================================================== diff -u -N -r9797 -r10274 --- branches/RC/themes/default2007/platform/elements/content_boxes/sub_categories.tpl (.../sub_categories.tpl) (revision 9797) +++ branches/RC/themes/default2007/platform/elements/content_boxes/sub_categories.tpl (.../sub_categories.tpl) (revision 10274) @@ -19,7 +19,7 @@ > - + () @@ -45,6 +45,6 @@
    - ">img/inportal_logo.gif" width="203" height="54" alt="" />
    + ">img/inportal_logo.gif" width="203" height="54" alt="" />
    - " class="text-title"> +
    - +
    \ No newline at end of file