Ignore:
Timestamp:
Sep 6, 2009, 4:55:52 PM (15 years ago)
Author:
vdigital
Message:

Thumbnail navigation solved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/akBookStyle/trunk/include/akContent.class.php

    r3829 r3830  
    5959    $template->assign('AK_THUMBNAILS_LOC', $this->plugin_config->ak_thumbnails_loc);
    6060                /* Thumbnail Nav */
    61                 if (isset($page['navigation_bar'])) {
    62                         $nav = explode(' | ', $page['navigation_bar']);
    63                         if (substr($nav[1],0,2)=='<a') {
    64                                 $this->navbar['URL_PREV'] = substr($nav[1],9,stripos($nav[1],'" rel="'));
     61                if (!empty($page['navigation_bar'])) {
     62                        $nav = explode('|', $page['navigation_bar']);
     63                        if (substr($nav[1],1,2)=='<a') {
     64                                $this->navbar['URL_PREV'] = substr($nav[1],10,stripos($nav[1],'" rel="'));
    6565                        }
    66                         if (substr($nav[3],0,2)=='<a') {
    67                                 $this->navbar['URL_NEXT'] = substr($nav[3],9,stripos($nav[3],'" rel="'));
     66                        if (substr($nav[3],1,2)=='<a') {
     67                                $this->navbar['URL_NEXT'] = substr($nav[3],10,stripos($nav[3],'" rel="'));
    6868                        }
    6969                        $template->assign('navbar', $this->navbar);
Note: See TracChangeset for help on using the changeset viewer.