summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorspider <spider@bitweaver.org>2014-10-08 18:39:10 -0400
committerspider <spider@bitweaver.org>2014-10-08 18:39:10 -0400
commit2d33a6ae168f00a0e048762ddbdd57c5d18e10a9 (patch)
treeafd920cd4840752fe2a5973f99d22a7981db35d7 /templates
parentc53d15e53607ad9a1e9ff61681778a1b6ed3b316 (diff)
downloadfisheye-2d33a6ae168f00a0e048762ddbdd57c5d18e10a9.tar.gz
fisheye-2d33a6ae168f00a0e048762ddbdd57c5d18e10a9.tar.bz2
fisheye-2d33a6ae168f00a0e048762ddbdd57c5d18e10a9.zip
clean up on breadcrumbs to bootstrap
Diffstat (limited to 'templates')
-rw-r--r--templates/gallery_nav.tpl105
1 files changed, 56 insertions, 49 deletions
diff --git a/templates/gallery_nav.tpl b/templates/gallery_nav.tpl
index 17b9421..1a7c8d9 100644
--- a/templates/gallery_nav.tpl
+++ b/templates/gallery_nav.tpl
@@ -1,56 +1,63 @@
{strip}
- {if $gGallery->mInfo.previous_image_id or $gGallery->mInfo.next_image_id}
- <div class="gallerynav">
- {else}
- <div class="gallerybar">
- {/if}
- <div class="path">
- {assign var=breadCrumbs value=$gContent->getBreadcrumbLinks()}
- {if $gGallery}
- {displayname user=$gGallery->mInfo.creator_user user_id=$gGallery->mInfo.creator_user_id real_name=$gGallery->mInfo.creator_real_name} :: <a href="{$smarty.const.FISHEYE_PKG_URL}?user_id={$gGallery->mInfo.user_id}">{tr}Galleries{/tr}</a> &raquo;{if $breadCrumbs}{$breadCrumbs}{else}{$gGallery->getTitle()}{/if}
- {else}
- {displayname user=$gContent->mInfo.creator_user user_id=$gContent->mInfo.creator_user_id real_name=$gContent->mInfo.creator_real_name} :: <a href="{$smarty.const.FISHEYE_PKG_URL}?user_id={$gContent->mInfo.user_id}">{tr}Galleries{/tr}</a> &raquo; {if $breadCrumbs}{$breadCrumbs}{else}{$gContent->getTitle()}{/if}
+<div class="gallerybar">
+ <nav>
+ {assign var=breadCrumbs value=$gContent->getBreadcrumbLinks(1)}
+ <ol class="breadcrumb">
+ <li>
+ {if $gGallery}
+ {displayname user=$gGallery->mInfo.creator_user user_id=$gGallery->mInfo.creator_user_id real_name=$gGallery->mInfo.creator_real_name} :: <a href="{$smarty.const.FISHEYE_PKG_URL}?user_id={$gGallery->mInfo.user_id}">{tr}Galleries{/tr}</a>
+ {else}
+ {displayname user=$gContent->mInfo.creator_user user_id=$gContent->mInfo.creator_user_id real_name=$gContent->mInfo.creator_real_name} :: <a href="{$smarty.const.FISHEYE_PKG_URL}?user_id={$gContent->mInfo.user_id}">{tr}Galleries{/tr}</a>
+ {/if}
+ </li>
+
+ {if $breadCrumbs}
+ {foreach from=$breadCrumbs item=breadTitle key=breadId}
+ {if $breadId==$gContent->mGalleryId}<li class="active">{$breadTitle}</li>
+ {else}<li><a href="#" onclick="changePhotoDrawer('{$breadId}');return false;">{$breadTitle}</a></li>{/if}
+ {/foreach}
{/if}
- </div>
+ </ol>
+ </nav>
- {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='nav' serviceHash=$gContent->mInfo}
+ {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='nav' serviceHash=$gContent->mInfo}
- {if $gGallery}
- <div class="navigation">
- <span class="left">
- {if $gGallery->mInfo.previous_image_id}
- <a href="{$gContent->getImageUrl($gGallery->mInfo.previous_image_id)|escape}">
- {if $gBitSystem->isFeatureActive( 'gallerybar_use_icons' )}
- {booticon iname="icon-arrow-left" ipackage="icons" iexplain=previous iforce="icon"}
- {else}
- &laquo;&nbsp;{tr}previous{/tr}
- {/if}
- {if $gBitSystem->isFeatureActive( 'gallery_bar_use_thumbnails' )}
- <br />
- <img src="{$gGallery->mInfo.previous_image_avatar}" />
- {/if}
- </a>
- {else}&nbsp;{/if}
- </span>
+ {if $gGallery}
+ <div class="navigation">
+ <span class="left">
+ {if $gGallery->mInfo.previous_image_id}
+ <a href="{$gContent->getImageUrl($gGallery->mInfo.previous_image_id)|escape}">
+ {if $gBitSystem->isFeatureActive( 'gallerybar_use_icons' )}
+ {booticon iname="icon-arrow-left" ipackage="icons" iexplain=previous iforce="icon"}
+ {else}
+ &laquo;&nbsp;{tr}previous{/tr}
+ {/if}
+ {if $gBitSystem->isFeatureActive( 'gallery_bar_use_thumbnails' )}
+ <br />
+ <img src="{$gGallery->mInfo.previous_image_avatar}" />
+ {/if}
+ </a>
+ {else}&nbsp;{/if}
+ </span>
- <span class="right">
- {if $gGallery->mInfo.next_image_id}
- <a href="{$gContent->getImageUrl($gGallery->mInfo.next_image_id)|escape}">
- {if $gBitSystem->isFeatureActive( 'gallerybar_use_icons' )}
- {biticon ipackage="icons" iname="go-next" iexplain=next iforce="icon"}
- {else}
- {tr}next{/tr}&nbsp;&raquo;
- {/if}
- {if $gBitSystem->isFeatureActive( 'gallery_bar_use_thumbnails' )}
- <br />
- <img src="{$gGallery->mInfo.next_image_avatar}" />
- {/if}
- </a>
- {else}&nbsp;{/if}
- </span>
- </div><!-- end .navigation -->
- {/if}
+ <span class="right">
+ {if $gGallery->mInfo.next_image_id}
+ <a href="{$gContent->getImageUrl($gGallery->mInfo.next_image_id)|escape}">
+ {if $gBitSystem->isFeatureActive( 'gallerybar_use_icons' )}
+ {biticon ipackage="icons" iname="go-next" iexplain=next iforce="icon"}
+ {else}
+ {tr}next{/tr}&nbsp;&raquo;
+ {/if}
+ {if $gBitSystem->isFeatureActive( 'gallery_bar_use_thumbnails' )}
+ <br />
+ <img src="{$gGallery->mInfo.next_image_avatar}" />
+ {/if}
+ </a>
+ {else}&nbsp;{/if}
+ </span>
+ </div><!-- end .navigation -->
+ {/if}
- <div class="clear"></div>
- </div><!-- end .gallerybar -->
+ <div class="clear"></div>
+</div><!-- end .gallerybar -->
{/strip}