Changeset 3830 for extensions/akBookStyle/trunk
- Timestamp:
- Sep 6, 2009, 4:55:52 PM (15 years ago)
- Location:
- extensions/akBookStyle/trunk
- Files:
-
- 2 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); -
extensions/akBookStyle/trunk/template/ak_horizontal.tpl
r3829 r3830 7 7 <tr class="nline"> 8 8 {/if} 9 {if ($smarty.foreach.tn.first) }9 {if ($smarty.foreach.tn.first) and !empty($navbar) and isset($navbar.URL_PREV)} 10 10 <td class="ncol" rowspan="{$AK_BY_LINE}">{* Left thumbnail navigation 11 *}{if !empty($navbar) and isset($navbar.URL_PREV)}{*12 11 *}<div class="navbar fright"> 13 12 <a class="navButton" href="{$navbar.URL_PREV}" … … 17 16 </a> 18 17 </div> 19 {/if}20 18 </td> 21 19 {/if} 22 20 <td class="ncol"> 23 <div class="clipwrapper" style="width:{$AK_THUMBNAIL_SIZE}px;height:{$AK_THUMBNAIL_SIZE}px"> 24 <div class="clip" style="clip:rect({$thumbnail.CLIP_TOP}px {$thumbnail.CLIP_RIGHT}px {$thumbnail.CLIP_BOTTOM}px {$thumbnail.CLIP_LEFT}px);top:-{$thumbnail.CLIP_TOP}px;left:-{$thumbnail.CLIP_LEFT}px"> 25 <a href="{$thumbnail.AK_URL}" class="load"> 26 <img class="thumbnail" src="{$thumbnail.TN_SRC}" 27 alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}"> 28 </a> 29 </div> 30 </div> 21 <div class="clipwrapper" style="width:{$AK_THUMBNAIL_SIZE}px;height:{$AK_THUMBNAIL_SIZE}px"> 22 <div class="clip" style="clip:rect({$thumbnail.CLIP_TOP}px {$thumbnail.CLIP_RIGHT}px {$thumbnail.CLIP_BOTTOM}px {$thumbnail.CLIP_LEFT}px);top:-{$thumbnail.CLIP_TOP}px;left:-{$thumbnail.CLIP_LEFT}px"> 23 <a href="{$thumbnail.AK_URL}" class="load"> 24 <img class="thumbnail" src="{$thumbnail.TN_SRC}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}"> 25 </a> 26 </div> 27 </div> 31 28 </td> 32 {if ($smarty.foreach.tn.index == $AK_BY_COLUMNS) or ($smarty.foreach.tn.index < $AK_BY_COLUMNS and $smarty.foreach.tn.last)}33 <td class="ncol" rowspan="{$AK_BY_LINE}">{* Right thumbnail navigation *}34 {if !empty($navbar) and isset($navbar.URL_NEXT)}35 <div class="navbar fleft">36 <a class="navButton" href="{$navbar.URL_NEXT}"37 title="{'next_page'|@translate}">38 <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png"39 class="button" alt="{'next_page'|@translate}">40 </a>41 </div>42 {/if}43 </td>44 {/if}45 46 29 {if ($smarty.foreach.tn.iteration % $AK_BY_COLUMNS == 0) or $smarty.foreach.tn.last } 47 </tr> 30 {if ( !empty($navbar) and isset($navbar.URL_NEXT) and !isset($done) )} 31 {assign var=done value=true} 32 <td class="ncol" rowspan="{$AK_BY_LINE}">{* Right thumbnail navigation *} 33 <div class="navbar fleft"> 34 <a class="navButton" href="{$navbar.URL_NEXT}" title="{'next_page'|@translate}"> 35 <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" class="button" alt="{'next_page'|@translate}"> 36 </a> 37 </div> 38 </td> 39 {/if} 40 </tr> 48 41 {/if} 49 42 {/foreach}
Note: See TracChangeset
for help on using the changeset viewer.