Changeset 3830 for extensions/akBookStyle/trunk/include/akContent.class.php
- Timestamp:
- Sep 6, 2009, 4:55:52 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/akBookStyle/trunk/include/akContent.class.php
r3829 r3830 59 59 $template->assign('AK_THUMBNAILS_LOC', $this->plugin_config->ak_thumbnails_loc); 60 60 /* 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="')); 65 65 } 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="')); 68 68 } 69 69 $template->assign('navbar', $this->navbar);
Note: See TracChangeset
for help on using the changeset viewer.