Initial commit: Backup der Webseiten
- zoesch.de - blitzkiste.net - gruene-hassberge (norbert.zoesch.de) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
30
zoesch.de/galerie/themes/bootstrapdefault/template/about.tpl
Normal file
30
zoesch.de/galerie/themes/bootstrapdefault/template/about.tpl
Normal file
@@ -0,0 +1,30 @@
|
||||
<nav class="navbar navbar-default" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<div class="navbar-brand"><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}<a href>{'About'|@translate}</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{include file='infos_errors.tpl'}
|
||||
|
||||
<div class="container">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
{'About'|@translate}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
{$ABOUT_MESSAGE}
|
||||
{if isset($THEME_ABOUT) }
|
||||
<ul>
|
||||
<li>{$THEME_ABOUT}</li>
|
||||
</ul>
|
||||
{/if}
|
||||
{if not empty($about_msgs)}
|
||||
{foreach from=$about_msgs item=elt}
|
||||
{$elt}
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,88 @@
|
||||
{if isset($comment_derivative_params)}
|
||||
{strip}{html_style}
|
||||
.commentElement .illustration{
|
||||
width:{$comment_derivative_params->max_width()+5}px
|
||||
}
|
||||
|
||||
.content .commentElement .description{
|
||||
min-height:{$comment_derivative_params->max_height()+5}px
|
||||
}
|
||||
{/html_style}{/strip}
|
||||
{footer_script}var error_icon = "{$ROOT_URL}{$themeconf.icon_dir}/errors_small.png";{/footer_script}
|
||||
<!--<div class="loader"><img src="{$ROOT_URL}{$themeconf.img_dir}/ajax_loader.gif"></div>-->
|
||||
{/if}
|
||||
<div id="commentList">
|
||||
{foreach from=$comments item=comment name=comment_loop}
|
||||
<div class="comment">
|
||||
<div class="image">
|
||||
{if isset($comment.src_image)}
|
||||
{if isset($comment_derivative_params)}
|
||||
{define_derivative name='cropped_derivative_params' width=$comment_derivative_params->sizing->ideal_size[0] height=$comment_derivative_params->sizing->ideal_size[0] crop=true}
|
||||
{else}
|
||||
{define_derivative name='cropped_derivative_params' width=$derivative_params->sizing->ideal_size[0] height=$derivative_params->sizing->ideal_size[0] crop=true}
|
||||
{/if}
|
||||
{assign var=derivative value=$pwg->derivative($cropped_derivative_params, $comment.src_image)}
|
||||
{if !$derivative->is_cached()}
|
||||
{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
|
||||
{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
|
||||
{/if}
|
||||
<a href="{$comment.U_PICTURE}">
|
||||
<img {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}{$themeconf.icon_dir}/img_small.png" data-src="{$derivative->get_url()}"{/if} alt="{$comment.ALT}">
|
||||
</a>
|
||||
{else}
|
||||
{include file="http_scheme.tpl"}
|
||||
<img class="gravatar" src="//www.gravatar.com/avatar/{$comment.EMAIL|trim|strtolower|md5}?d={$http_scheme}://{$smarty.server.HTTP_HOST}/{$ROOT_URL}themes/bootstrapdefault/img/user.png" />
|
||||
{/if}
|
||||
</div>
|
||||
<div class="description">
|
||||
{if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT)}
|
||||
<div class="actions">
|
||||
{if isset($comment.U_DELETE)}
|
||||
<a href="{$comment.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">
|
||||
{'Delete'|@translate}
|
||||
</a>{if isset($comment.U_VALIDATE) or isset($comment.U_EDIT) or isset($comment.U_CANCEL)} | {/if}
|
||||
{/if}
|
||||
{if isset($comment.U_CANCEL)}
|
||||
<a href="{$comment.U_CANCEL}">
|
||||
{'Cancel'|@translate}
|
||||
</a>{if isset($comment.U_VALIDATE)} | {/if}
|
||||
{/if}
|
||||
{if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)}
|
||||
<a class="editComment" href="{$comment.U_EDIT}#edit_comment">
|
||||
{'Edit'|@translate}
|
||||
</a>{if isset($comment.U_VALIDATE)} | {/if}
|
||||
{/if}
|
||||
{if isset($comment.U_VALIDATE)}
|
||||
<a href="{$comment.U_VALIDATE}">
|
||||
{'Validate'|@translate}
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<span>{if $comment.WEBSITE_URL}<a href="{$comment.WEBSITE_URL}" class="external" target="_blank" rel="nofollow">{$comment.AUTHOR}</a>{else}{$comment.AUTHOR}{/if}</span>
|
||||
{if isset($comment.EMAIL)}- <a href="mailto:{$comment.EMAIL}">{$comment.EMAIL}</a>{/if}
|
||||
- <span class="commentDate">{$comment.DATE}</span>
|
||||
{if isset($comment.IN_EDIT)}
|
||||
<a name="edit_comment"></a>
|
||||
<form method="post" action="{$comment.U_EDIT}">
|
||||
<div class="form-group">
|
||||
<label for="website_url">{'Website'|@translate} :</label>
|
||||
<input class="form-control" type="text" name="website_url" id="website_url" value="{$comment.WEBSITE_URL}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="contenteditid">{'Edit a comment'|@translate} :</label>
|
||||
<textarea class="form-control" name="content" id="contenteditid" rows="5" cols="80">{$comment.CONTENT|@escape}</textarea>
|
||||
</div>
|
||||
<input type="hidden" name="key" value="{$comment.KEY}">
|
||||
<input type="hidden" name="pwg_token" value="{$comment.PWG_TOKEN}">
|
||||
<input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}">
|
||||
<button type="submit" class="btn btn-default">{'Submit'|@translate}</button>
|
||||
</form>
|
||||
{else}
|
||||
<blockquote><div>{$comment.CONTENT}</div></blockquote>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
@@ -0,0 +1,95 @@
|
||||
<nav class="navbar navbar-default" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<div class="navbar-brand"><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}<a href>{'User comments'|@translate}</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{include file='infos_errors.tpl'}
|
||||
|
||||
{$shortname = $theme_config->comments_disqus_shortname}
|
||||
{if $theme_config->comments_type == 'disqus' and !empty($shortname)}
|
||||
{else}
|
||||
<div class="container">
|
||||
<form action="{$F_ACTION}" method="get" class="form-horizontal">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
{'Filter'|@translate}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="form-group">
|
||||
<label for="keyword" class="col-sm-2 control-label">{'Keyword'|@translate}</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" name="keyword" id="keyword" value="{$F_KEYWORD}" class="form-control" placeholder="{'Keyword'|@translate}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="author" class="col-sm-2 control-label">{'Author'|@translate}</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" name="author" id="author" value="{$F_AUTHOR}" class="form-control" placeholder="{'Author'|@translate}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="cat" class="col-sm-2 control-label">{'Album'|@translate}</label>
|
||||
<div class="col-sm-4 html-options">
|
||||
<select name="cat" id="cat">
|
||||
<option value="0">------------</option>
|
||||
{html_options options=$categories selected=$categories_selected}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="since" class="col-sm-2 control-label">{'Since'|@translate}</label>
|
||||
<div class="col-sm-4 html-options">
|
||||
{html_options name=since options=$since_options selected=$since_options_selected}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
{'Display'|@translate}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="form-group">
|
||||
<label for="sort_by" class="col-sm-2 control-label">{'Sort by'|@translate}</label>
|
||||
<div class="col-sm-4 html-options">
|
||||
{html_options name=sort_by options=$sort_by_options selected=$sort_by_options_selected}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="sort_order" class="col-sm-2 control-label">{'Sort order'|@translate}</label>
|
||||
<div class="col-sm-4 html-options">
|
||||
{html_options name=sort_order options=$sort_order_options selected=$sort_order_options_selected}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="items_number" class="col-sm-2 control-label">{'Number of items'|@translate}</label>
|
||||
<div class="col-sm-4 html-options">
|
||||
{html_options name=items_number options=$item_number_options selected=$item_number_options_selected}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="submit" value="{'Filter and display'|@translate}" class="btn btn-default">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{if isset($comments)}
|
||||
<a name="comments"></a>
|
||||
<div class="container comment-search">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1 col-sm-12 col-xs-12">
|
||||
{include file='comment_list.tpl' comment_derivative_params=$derivative_params}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if !empty($navbar) }
|
||||
<div class="container">
|
||||
{include file='navigation_bar.tpl' fragment='comments'|@get_extent:'navbar'}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
@@ -0,0 +1,37 @@
|
||||
<!-- Start of footer.tpl -->
|
||||
<div class="copyright container">
|
||||
<div class="text-center">
|
||||
{if isset($debug.TIME)}
|
||||
{'Page generated in'|@translate} {$debug.TIME} ({$debug.NB_QUERIES} {'SQL queries in'|@translate} {$debug.SQL_TIME}) -
|
||||
{/if}
|
||||
{*
|
||||
Please, do not remove this copyright. If you really want to,
|
||||
contact us on http://piwigo.org to find a solution on how
|
||||
to show the origin of the script...
|
||||
*}
|
||||
{'Powered by'|@translate} <a href="{$PHPWG_URL}" class="Piwigo">Piwigo</a> | Bootstrap Default {'theme by'|@translate} <a href="https://philio.me/">Phil Bayfield</a>
|
||||
{$VERSION}
|
||||
{if isset($CONTACT_MAIL)}
|
||||
| <a href="mailto:{$CONTACT_MAIL}?subject={'A comment on your site'|@translate|@escape:url}">{'Contact webmaster'|@translate}</a>
|
||||
{/if}
|
||||
{if isset($TOGGLE_MOBILE_THEME_URL)}
|
||||
| {'View in'|@translate} : <a href="{$TOGGLE_MOBILE_THEME_URL}">{'Mobile'|@translate}</a> | <b>{'Desktop'|@translate}</b>
|
||||
{/if}
|
||||
|
||||
{get_combined_scripts load='footer'}
|
||||
|
||||
{if isset($footer_elements)}
|
||||
{foreach from=$footer_elements item=v}
|
||||
{$v}
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{if isset($debug.QUERIES_LIST)}
|
||||
<div id="debug">
|
||||
{$debug.QUERIES_LIST}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,53 @@
|
||||
{* Content container widths, taken from bootstrap.css. Must be updated to match for accurate grid calcuations if image
|
||||
size menu is enabled in child theme *}
|
||||
{assign var=width_lg value=1170}
|
||||
{assign var=width_md value=970}
|
||||
{assign var=width_sm value=750}
|
||||
{assign var=col_padding value=15}
|
||||
|
||||
{assign var=col_class value=""}
|
||||
|
||||
{* Calulate grid for large desktops *}
|
||||
{if $width > ($width_lg - (4 * $col_padding)) / 2}
|
||||
{$col_class = $col_class|cat:"col-lg-12"}
|
||||
{elseif $width > ($width_lg - (6 * $col_padding)) / 3}
|
||||
{$col_class = $col_class|cat:"col-lg-6"}
|
||||
{elseif $width > ($width_lg - (8 * $col_padding)) / 4}
|
||||
{$col_class = $col_class|cat:"col-lg-4"}
|
||||
{elseif $width <= ($width_lg - (8 * $col_padding)) / 4 && $width > ($width_lg - (12 * $col_padding)) / 6}
|
||||
{$col_class = $col_class|cat:"col-lg-3"}
|
||||
{else}
|
||||
{$col_class = $col_class|cat:"col-lg-2"}
|
||||
{/if}
|
||||
|
||||
{* Calulate grid for desktops *}
|
||||
{if $width > ($width_md - (4 * $col_padding)) / 2}
|
||||
{$col_class = $col_class|cat:" col-md-12"}
|
||||
{elseif $width > ($width_md - (6 * $col_padding)) / 3}
|
||||
{$col_class = $col_class|cat:" col-md-6"}
|
||||
{elseif $width > ($width_md - (8 * $col_padding)) / 4}
|
||||
{$col_class = $col_class|cat:" col-md-4"}
|
||||
{elseif $width <= ($width_md - (8 * $col_padding)) / 4 && $width > ($width_md - (12 * $col_padding)) / 6}
|
||||
{$col_class = $col_class|cat:" col-md-3"}
|
||||
{else}
|
||||
{$col_class = $col_class|cat:" col-md-2"}
|
||||
{/if}
|
||||
|
||||
{* Calulate grid for tablets *}
|
||||
{if $width > ($width_sm - (4 * $col_padding)) / 2}
|
||||
{$col_class = $col_class|cat:" col-sm-12"}
|
||||
{elseif $width > ($width_sm - (6 * $col_padding)) / 3}
|
||||
{$col_class = $col_class|cat:" col-sm-6"}
|
||||
{elseif $width > ($width_sm - (8 * $col_padding)) / 4}
|
||||
{$col_class = $col_class|cat:" col-sm-4"}
|
||||
{elseif $width <= ($width_sm - (8 * $col_padding)) / 4 && $width > ($width_sm - (12 * $col_padding)) / 6}
|
||||
{$col_class = $col_class|cat:" col-sm-3"}
|
||||
{else}
|
||||
{$col_class = $col_class|cat:" col-sm-2"}
|
||||
{/if}
|
||||
|
||||
{* For phones just use 1 column *}
|
||||
{$col_class = $col_class|cat:" col-xs-12"}
|
||||
|
||||
{* Assign to parent *}
|
||||
{assign var=col_class value=$col_class scope=parent}
|
||||
125
zoesch.de/galerie/themes/bootstrapdefault/template/header.tpl
Normal file
125
zoesch.de/galerie/themes/bootstrapdefault/template/header.tpl
Normal file
@@ -0,0 +1,125 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{$lang_info.code}" dir="{$lang_info.direction}">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}">
|
||||
<meta name="generator" content="Piwigo (aka PWG), see piwigo.org">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
{if isset($meta_ref) }
|
||||
{if isset($INFO_AUTHOR)}
|
||||
<meta name="author" content="{$INFO_AUTHOR|@strip_tags:false|@replace:'"':' '}">
|
||||
{/if}
|
||||
{if isset($related_tags)}
|
||||
<meta name="keywords" content="{foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}{$tag.name}{/foreach}">
|
||||
{/if}
|
||||
{if isset($COMMENT_IMG)}
|
||||
<meta name="description" content="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
|
||||
{else}
|
||||
<meta name="description" content="{$PAGE_TITLE}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<title>{if $PAGE_TITLE!=l10n('Home') && $PAGE_TITLE!=$GALLERY_TITLE}{$PAGE_TITLE} | {/if}{$GALLERY_TITLE}</title>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico">
|
||||
<link rel="icon" sizes="192x192" href="{$ROOT_URL}themes/bootstrapdefault/img/logo.png">
|
||||
<link rel="apple-touch-icon" sizes="192x192" href="{$ROOT_URL}themes/bootstrapdefault/img/logo.png">
|
||||
<link rel="start" title="{'Home'|@translate}" href="{$U_HOME}" >
|
||||
<link rel="search" title="{'Search'|@translate}" href="{$ROOT_URL}search.php">
|
||||
{if isset($first.U_IMG) }
|
||||
<link rel="first" title="{'First'|@translate}" href="{$first.U_IMG}">
|
||||
{/if}
|
||||
{if isset($previous.U_IMG)}
|
||||
<link rel="prev" title="{'Previous'|@translate}" href="{$previous.U_IMG}">
|
||||
{/if}
|
||||
{if isset($next.U_IMG)}
|
||||
<link rel="next" title="{'Next'|@translate}" href="{$next.U_IMG}">
|
||||
{/if}
|
||||
{if isset($last.U_IMG)}
|
||||
<link rel="last" title="{'Last'|@translate}" href="{$last.U_IMG}">
|
||||
{/if}
|
||||
{if isset($U_UP)}
|
||||
<link rel="up" title="{'Thumbnails'|@translate}" href="{$U_UP}">
|
||||
{/if}
|
||||
|
||||
{combine_css path="themes/bootstrapdefault/bootstrap/dist/css/bootstrap.min.css" order=-20}
|
||||
{foreach from=$themes item=theme}
|
||||
{if $theme.load_css}
|
||||
{combine_css path="themes/`$theme.id`/theme.css" order=-10}
|
||||
{/if}
|
||||
{if !empty($theme.local_head)}{include file=$theme.local_head load_css=$theme.load_css}{/if}
|
||||
{/foreach}
|
||||
|
||||
{if $theme_config->bootstrap_theme == 'default'}
|
||||
{combine_css path="themes/bootstrapdefault/bootstrap/dist/css/bootstrap-theme.min.css" order=0}
|
||||
{/if}
|
||||
{if file_exists("local/bootstrapdefault/custom.css")}
|
||||
{combine_css path="local/bootstrapdefault/custom.css" order=10}
|
||||
{/if}
|
||||
{combine_css path="themes/bootstrapdefault/fixplugins.css" order=1000000}
|
||||
{get_combined_css}
|
||||
|
||||
{if isset($U_PREFETCH)}
|
||||
<link rel="prefetch" href="{$U_PREFETCH}">
|
||||
{/if}
|
||||
{if not empty($page_refresh)}
|
||||
<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">
|
||||
{/if}
|
||||
|
||||
{combine_script id='jquery'}
|
||||
{combine_script id='jquery-ajaxmanager' require='jquery' path='themes/default/js/plugins/jquery.ajaxmanager.js'}
|
||||
{combine_script id='thumbnails-loader' require='jquery-ajaxmanager' path='themes/default/js/thumbnails.loader.js'}
|
||||
{combine_script id='bootstrap' require='jquery' path="themes/bootstrapdefault/bootstrap/dist/js/bootstrap.min.js"}
|
||||
{combine_script id=$themeconf.name require='bootstrap' path="themes/bootstrapdefault/js/theme.js"}
|
||||
{get_combined_scripts load='header'}
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<script type="text/javascript" src="{$ROOT_URL}themes/default/js/pngfix.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
{if not empty($head_elements)}
|
||||
{foreach from=$head_elements item=elt}{$elt}
|
||||
{/foreach}
|
||||
{/if}
|
||||
</head>
|
||||
|
||||
<body id="{$BODY_ID}">
|
||||
<div id="the_page">
|
||||
{if $BODY_ID != 'thePicturePage' or $theme_config->picture_page == 'normal'}
|
||||
<!-- Bootstrap navbar, moved to the header as variables are missing in menubar.tpl, actual menus remain in menubar.tpl -->
|
||||
<nav class="navbar navbar-default navbar-main" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-menubar">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="{$U_HOME}">{$GALLERY_TITLE}</a>
|
||||
</div>
|
||||
<div class="collapse navbar-collapse navbar-right" id="navbar-menubar">
|
||||
{$MENUBAR}
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
{/if}
|
||||
|
||||
{if !isset($slideshow) and ($BODY_ID != 'thePicturePage' or $theme_config->picture_page == 'normal')}
|
||||
<div class="jumbotron">
|
||||
<div class="container">
|
||||
<div id="theHeader">{$PAGE_BANNER}</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if not empty($header_msgs)}
|
||||
{foreach from=$header_msgs item=msg}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
{if not empty($header_notes)}
|
||||
{foreach from=$header_notes item=note}
|
||||
{/foreach}
|
||||
{/if}
|
||||
<!-- End of header.tpl -->
|
||||
@@ -0,0 +1,7 @@
|
||||
{if isset($smarty.server.HTTP_X_FORWARDED_PROTO)}
|
||||
{assign var=http_scheme value=$smarty.server.HTTP_X_FORWARDED_PROTO scope=parent}
|
||||
{elseif $smarty.server.HTTPS == "on"}
|
||||
{assign var=http_scheme value='https' scope=parent}
|
||||
{else}
|
||||
{assign var=http_scheme value='http' scope=parent}
|
||||
{/if}
|
||||
@@ -0,0 +1,69 @@
|
||||
<nav class="navbar navbar-default" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<div class="navbar-brand"><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}<a href>{'Identification'|@translate}</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{include file='infos_errors.tpl'}
|
||||
|
||||
<div class="container">
|
||||
<form action="{$F_LOGIN_ACTION}" method="post" name="login_form" class="form-horizontal">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
{'Connection settings'|@translate}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="form-group">
|
||||
<label for="username" class="col-sm-2 control-label">{'Username'|@translate}</label>
|
||||
<div class="col-sm-4">
|
||||
<input tabindex="1" class="form-control" type="text" name="username" id="username" maxlength="40" placeholder="{'Username'|@translate}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password" class="col-sm-2 control-label">{'Password'|@translate}</label>
|
||||
<div class="col-sm-4">
|
||||
<input tabindex="2" class="form-control" type="password" name="password" id="password" maxlength="25" placeholder="{'Password'|@translate}">
|
||||
</div>
|
||||
</div>
|
||||
{if $authorize_remembering }
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input tabindex="3" type="checkbox" name="remember_me" id="remember_me" value="1"> {'Auto login'|@translate}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<input type="hidden" name="redirect" value="{$U_REDIRECT|@urlencode}">
|
||||
<input tabindex="4" type="submit" name="login" value="{'Submit'|@translate}" class="btn btn-default btn-primary">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
{if isset($U_REGISTER)}
|
||||
<a href="{$U_REGISTER}" title="{'Register'|@translate}" class="pwg-state-default pwg-button">
|
||||
<span class="glyphicon glyphicon-user"></span> {'Register'|@translate}
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
{if isset($U_LOST_PASSWORD)}
|
||||
<a href="{$U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}" class="pwg-state-default pwg-button">
|
||||
<span class="glyphicon glyphicon-lock"></span> {'Forgot your password?'|@translate}
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById('username').focus();
|
||||
//--></script>
|
||||
225
zoesch.de/galerie/themes/bootstrapdefault/template/index.tpl
Normal file
225
zoesch.de/galerie/themes/bootstrapdefault/template/index.tpl
Normal file
@@ -0,0 +1,225 @@
|
||||
<!-- Start of index.tpl -->
|
||||
{combine_script id='core.switchbox' require='jquery' path='themes/default/js/switchbox.js'}
|
||||
{combine_script id='cookie' require='jquery' path="themes/bootstrapdefault/js/jquery.cookie.js"}
|
||||
{combine_script id='equalheights' require='jquery' path="themes/bootstrapdefault/js/jquery.equalheights.js"}
|
||||
{if !empty($PLUGIN_INDEX_CONTENT_BEFORE)}{$PLUGIN_INDEX_CONTENT_BEFORE}{/if}
|
||||
|
||||
<nav class="navbar navbar-default" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-contextual">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<div class="navbar-brand">
|
||||
{$TITLE}
|
||||
{if isset($chronology.TITLE)}
|
||||
{$LEVEL_SEPARATOR}{$chronology.TITLE}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="navbar-right navbar-collapse collapse" id="navbar-contextual">
|
||||
<ul class="nav navbar-nav">
|
||||
{if !empty($image_orders)}
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="glyphicon glyphicon-sort"></span><span class="glyphicon-text">{'Sort order'|@translate}</span><span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
{foreach from=$image_orders item=image_order name=loop}
|
||||
<li{if $image_order.SELECTED} class="active"{/if}><a href="{$image_order.URL}" rel="nofollow">{$image_order.DISPLAY}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</li>
|
||||
{/if}
|
||||
{if !empty($image_derivatives)}
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="glyphicon glyphicon-picture"></span><span class="glyphicon-text">{'Photo sizes'|@translate}</span><span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
{foreach from=$image_derivatives item=image_derivative name=loop}
|
||||
<li{if $image_derivative.SELECTED} class="active"{/if}><a href="{$image_derivative.URL}" rel="nofollow">{$image_derivative.DISPLAY}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</li>
|
||||
{/if}
|
||||
{if isset($favorite)}
|
||||
<li>
|
||||
<a href="{$favorite.U_FAVORITE}" title="{'Delete all photos from your favorites'|@translate}" rel="nofollow">
|
||||
<span class="glyphicon glyphicon-heart"></span><span class="glyphicon-text">{'Delete all photos from your favorites'|@translate}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if isset($U_EDIT)}
|
||||
<li>
|
||||
<a href="{$U_EDIT}" title="{'Edit album'|@translate}">
|
||||
<span class="glyphicon glyphicon-pencil"></span><span class="glyphicon-text">{'Edit'|@translate}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if isset($U_CADDIE)}
|
||||
<li>
|
||||
<a href="{$U_CADDIE}" title="{'Add to caddie'|@translate}">
|
||||
<span class="glyphicon glyphicon-plus-sign"></span><span class="glyphicon-text">{'Caddie'|@translate}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if isset($U_SEARCH_RULES)}
|
||||
{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
|
||||
<li>
|
||||
<a href="{$U_SEARCH_RULES}" onclick="bd_popup(this.href); return false;" title="{'Search rules'|@translate}" rel="nofollow">
|
||||
<span class="glyphicon glyphicon-search"></span><span class="glyphicon-text">(?)</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if isset($U_SLIDESHOW)}
|
||||
<li>
|
||||
{strip}<a href="{$U_SLIDESHOW}" title="{'slideshow'|@translate}" rel="nofollow">
|
||||
<span class="glyphicon glyphicon-play"></span><span class="glyphicon-text">{'slideshow'|@translate}</span>
|
||||
</a>{/strip}
|
||||
</li>
|
||||
{/if}
|
||||
{if isset($U_MODE_FLAT)}
|
||||
<li>
|
||||
{strip}<a href="{$U_MODE_FLAT}" title="{'display all photos in all sub-albums'|@translate}" rel="nofollow">
|
||||
<span class="glyphicon glyphicon-th-large"></span><span class="glyphicon-text">{'display all photos in all sub-albums'|@translate}</span>
|
||||
</a>{/strip}
|
||||
</li>
|
||||
{/if}
|
||||
{if isset($U_MODE_NORMAL)}
|
||||
<li>
|
||||
{strip}<a href="{$U_MODE_NORMAL}" title="{'return to normal view mode'|@translate}">
|
||||
<span class="glyphicon glyphicon-home"></span><span class="glyphicon-text">{'return to normal view mode'|@translate}</span>
|
||||
</a>{/strip}
|
||||
</li>
|
||||
{/if}
|
||||
{if isset($U_MODE_POSTED)}
|
||||
<!--
|
||||
<li>
|
||||
{strip}<a href="{$U_MODE_POSTED}" title="{'display a calendar by posted date'|@translate}" rel="nofollow">
|
||||
<span class="glyphicon glyphicon-calendar"></span><span class="glyphicon-text">{'Calendar'|@translate}</span>
|
||||
</a>{/strip}
|
||||
</li>
|
||||
-->
|
||||
{/if}
|
||||
{if isset($U_MODE_CREATED)}
|
||||
<!--
|
||||
<li>
|
||||
{strip}<a href="{$U_MODE_CREATED}" title="{'display a calendar by creation date'|@translate}" rel="nofollow">
|
||||
<span class="glyphicon glyphicon-calendar"></span><span class="glyphicon-text">{'Calendar'|@translate}</span>
|
||||
</a>{/strip}
|
||||
</li>
|
||||
-->
|
||||
{/if}
|
||||
{if !empty($PLUGIN_INDEX_BUTTONS)}{foreach from=$PLUGIN_INDEX_BUTTONS item=button}<li>{$button}</li>{/foreach}{/if}
|
||||
{if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
|
||||
{if (!empty($CATEGORIES) && !isset($GDThumb)) || (!empty($THUMBNAILS) && !isset($GThumb) && !isset($GDThumb)) }
|
||||
<li id="btn-grid"{if $smarty.cookies.view != 'list'} class="active"{/if}><a href="#"><span class="glyphicon glyphicon-th"></span></a></li>
|
||||
<li id="btn-list"{if $smarty.cookies.view == 'list'} class="active"{/if}><a href="#"><span class="glyphicon glyphicon-th-list"></span></a></li>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{include file='infos_errors.tpl'}
|
||||
|
||||
<a name="content"></a>
|
||||
<div class="container">
|
||||
{if !empty($PLUGIN_INDEX_CONTENT_BEGIN)}{$PLUGIN_INDEX_CONTENT_BEGIN}{/if}
|
||||
|
||||
<!--
|
||||
{if isset($chronology_views)}
|
||||
<div class="calendarViews">{'View'|@translate}:
|
||||
<a id="calendarViewSwitchLink" href="#">
|
||||
{foreach from=$chronology_views item=view}{if $view.SELECTED}{$view.CONTENT}{/if}{/foreach}
|
||||
</a>
|
||||
<div id="calendarViewSwitchBox" class="switchBox">
|
||||
{foreach from=$chronology_views item=view name=loop}{if !$smarty.foreach.loop.first}<br>{/if}
|
||||
<span{if !$view.SELECTED} style="visibility:hidden"{/if}>✔ </span><a href="{$view.VALUE}">{$view.CONTENT}</a>
|
||||
{/foreach}
|
||||
</div>
|
||||
{footer_script}(SwitchBox=window.SwitchBox||[]).push("#calendarViewSwitchLink", "#calendarViewSwitchBox");{/footer_script}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if isset($FILE_CHRONOLOGY_VIEW)}
|
||||
{include file=$FILE_CHRONOLOGY_VIEW}
|
||||
{/if}
|
||||
-->
|
||||
|
||||
{if !empty($CONTENT_DESCRIPTION)}
|
||||
<h4>
|
||||
{$CONTENT_DESCRIPTION}
|
||||
</h4>
|
||||
{/if}
|
||||
<div id="content" class="row {if $smarty.cookies.view == 'list'}content-list{else}content-grid{/if}">
|
||||
{if !empty($CONTENT)}
|
||||
<!-- Start of content -->
|
||||
{$CONTENT}
|
||||
<!-- End of content -->
|
||||
{/if}
|
||||
|
||||
{if !empty($CATEGORIES)}
|
||||
<!-- Start of categories -->
|
||||
{$CATEGORIES}
|
||||
{footer_script}{literal}$(document).ready(function(){$('#content img').load(function(){$('#content .col-inner').equalHeights()})});{/literal}{/footer_script}
|
||||
<!-- End of categories -->
|
||||
{/if}
|
||||
|
||||
{if !empty($THUMBNAILS)}
|
||||
<!-- Start of thumbnails -->
|
||||
<div id="thumbnails">{$THUMBNAILS}</div>
|
||||
{footer_script}{literal}$(document).ready(function(){$('#content img').load(function(){$('#content .col-inner').equalHeights()})});{/literal}{/footer_script}
|
||||
<!-- End of thumbnails -->
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{if !empty($cats_navbar) || !empty($thumb_navbar)}
|
||||
<div class="container">
|
||||
{if !empty($cats_navbar)}
|
||||
{include file='navigation_bar.tpl' fragment="content"|@get_extent:'navbar' navbar=$cats_navbar}
|
||||
{/if}
|
||||
{if !empty($thumb_navbar)}
|
||||
{include file='navigation_bar.tpl' fragment="content"|@get_extent:'navbar' navbar=$thumb_navbar}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if !empty($category_search_results)}
|
||||
<div class="container">
|
||||
<h3 class="category_search_results">{'Album results for'|@translate} <em><strong>{$QUERY_SEARCH}</strong></em></h3>
|
||||
<p>
|
||||
<em><strong>
|
||||
{foreach from=$category_search_results item=res name=res_loop}
|
||||
{if !$smarty.foreach.res_loop.first} — {/if}
|
||||
{$res}
|
||||
{/foreach}
|
||||
</strong></em>
|
||||
</p>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if !empty($tag_search_results)}
|
||||
<div class="container">
|
||||
<h3 class="tag_search_results">{'Tag results for'|@translate} <em><strong>{$QUERY_SEARCH}</strong></em></h3>
|
||||
<p>
|
||||
<em><strong>
|
||||
{foreach from=$tag_search_results item=tag name=res_loop}
|
||||
{if !$smarty.foreach.res_loop.first} — {/if}
|
||||
<a href="{$tag.URL}">{$tag.name}</a>
|
||||
{/foreach}
|
||||
</strong></em>
|
||||
</p>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="container">
|
||||
{if !empty($PLUGIN_INDEX_CONTENT_END)}{$PLUGIN_INDEX_CONTENT_END}{/if}
|
||||
</div>
|
||||
|
||||
{if !empty($PLUGIN_INDEX_CONTENT_AFTER)}{$PLUGIN_INDEX_CONTENT_AFTER}{/if}
|
||||
<!-- End of index.tpl -->
|
||||
@@ -0,0 +1,21 @@
|
||||
{if isset($errors) }
|
||||
<div class="container">
|
||||
{foreach from=$errors item=error}
|
||||
<div class="alert alert-danger alert-dismissible" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
||||
{$error}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if not empty($infos)}
|
||||
<div class="container">
|
||||
{foreach from=$infos item=info}
|
||||
<div class="alert alert-info alert-dismissible" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
||||
{$info}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
@@ -0,0 +1,40 @@
|
||||
{footer_script}
|
||||
var error_icon = "{$ROOT_URL}{$themeconf.icon_dir}/errors_small.png", max_requests = {$maxRequests};
|
||||
{/footer_script}
|
||||
{define_derivative name='derivative_params' width=260 height=180 crop=true}
|
||||
{foreach from=$category_thumbnails item=cat name=cat_loop}
|
||||
{assign var=derivative value=$pwg->derivative($derivative_params, $cat.representative.src_image)}
|
||||
{if !$derivative->is_cached()}
|
||||
{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
|
||||
{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
|
||||
{/if}
|
||||
{include file="grid_classes.tpl" width=260 height=180}
|
||||
<div class="col-outer {if $smarty.cookies.view == 'list'}col-lg-12 col-md-12 col-sm-12 col-xs-12{else}{$col_class}{/if}" data-grid-classes="{$col_class}">
|
||||
<div class="col-inner">
|
||||
<a class="col-thumbnail" href="{$cat.URL}">
|
||||
<div class="placeholder" style="background: url({$ROOT_URL}{$themeconf.icon_dir}/img_small.png) no-repeat center">
|
||||
<img {strip}{if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}themes/bootstrapdefault/img/transparent.png"
|
||||
data-src="{$derivative->get_url()}"{/if}
|
||||
alt="{$cat.TN_ALT}"
|
||||
title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}">{/strip}
|
||||
</div>
|
||||
</a>
|
||||
<div class="caption">
|
||||
<h3 class="title">
|
||||
<a href="{$cat.URL}" class="ellipsis{if !empty($cat.icon_ts)} recent{/if}">{$cat.NAME}</a>
|
||||
{if !empty($cat.icon_ts)}
|
||||
<img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" alt="(!)">
|
||||
{/if}
|
||||
</h3>
|
||||
{if isset($cat.INFO_DATES) }
|
||||
<p>{$cat.INFO_DATES}</p>
|
||||
{/if}
|
||||
<p>{$cat.CAPTION_NB_IMAGES}</p>
|
||||
{if not empty($cat.DESCRIPTION)}
|
||||
<p class="description">{$cat.DESCRIPTION}</p>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Start of menubar.tpl -->
|
||||
<ul class="nav navbar-nav">
|
||||
{foreach from=$blocks key=id item=block}
|
||||
{if not empty($block->template)}
|
||||
{include file=$block->template|@get_extent:$id }
|
||||
{else}
|
||||
{$block->raw_content}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
<!-- End of menubar.tpl -->
|
||||
@@ -0,0 +1,10 @@
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{$block->get_title()} <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu dropdown-menu-scrollable" role="menu">
|
||||
{foreach from=$block->data item=data}
|
||||
<li>
|
||||
<a href="{$data.URL}">{$data.LABEL}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</li>
|
||||
@@ -0,0 +1,20 @@
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{'Albums'|@translate} <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu dropdown-menu-scrollable" role="menu">
|
||||
{assign var='ref_level' value=0}
|
||||
{foreach from=$block->data.MENU_CATEGORIES item=cat}
|
||||
<li {if $cat.SELECTED}class="active"{/if}>
|
||||
<a href="{$cat.URL}">{$cat.NAME}
|
||||
{if $cat.count_images > 0}
|
||||
<span class="badge" title="{$cat.TITLE}">{$cat.count_images}</span>
|
||||
{/if}
|
||||
{if !empty($cat.icon_ts)}
|
||||
<img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" class="icon" alt="(!)">
|
||||
{/if}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
<li class="divider"></li>
|
||||
<li><a href="#">{$block->data.NB_PICTURE|@translate_dec:'%d photo':'%d photos'}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@@ -0,0 +1,57 @@
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{'Identification'|@translate} <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
{strip}
|
||||
{if isset($USERNAME)}
|
||||
<li><a href="#">{'Hello'|@translate} {$USERNAME}!</a></li>
|
||||
<li class="divider"></li>
|
||||
{/if}
|
||||
{if isset($U_LOGIN)}
|
||||
<div class="navbar-form-desktop">
|
||||
<form class="navbar-form" method="post" action="{$U_LOGIN}" id="quickconnect">
|
||||
<div class="form-group">
|
||||
<input class="form-control" type="text" name="username" id="username" value="" placeholder="{'Username'|@translate}">
|
||||
<input class="form-control" type="password" name="password" id="password" placeholder="{'Password'|@translate}">
|
||||
{if $AUTHORIZE_REMEMBERING}
|
||||
<label for="remember_me">
|
||||
<input type="checkbox" name="remember_me" id="remember_me" value="1"> {'Auto login'|@translate}
|
||||
</label>
|
||||
<br />
|
||||
{/if}
|
||||
<input type="hidden" name="redirect" value="{$smarty.server.REQUEST_URI|@urlencode}">
|
||||
<input class="btn btn-primary" type="submit" name="login" value="{'Login'|@translate}">
|
||||
<!--
|
||||
<span class="categoryActions">
|
||||
{if isset($U_REGISTER)}
|
||||
<a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
|
||||
<span class="pwg-icon pwg-icon-register"> </span>
|
||||
</a>
|
||||
{/if}
|
||||
<a href="{$U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}" class="pwg-state-default pwg-button">
|
||||
<span class="pwg-icon pwg-icon-lost-password"> </span>
|
||||
</a>
|
||||
</span>
|
||||
-->
|
||||
</div>
|
||||
</form>
|
||||
<li class="divider"></li>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($U_REGISTER)}
|
||||
<li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow">{'Register'|@translate}</a></li>
|
||||
{/if}
|
||||
{if isset($U_LOGIN)}
|
||||
<li><a href="{$U_LOGIN}" rel="nofollow">{'Login'|@translate}</a></li>
|
||||
{/if}
|
||||
{if isset($U_LOGOUT)}
|
||||
<li><a href="{$U_LOGOUT}">{'Logout'|@translate}</a></li>
|
||||
{/if}
|
||||
{if isset($U_PROFILE)}
|
||||
<li><a href="{$U_PROFILE}" title="{'customize the appareance of the gallery'|@translate}">{'Customize'|@translate}</a></li>
|
||||
{/if}
|
||||
{if isset($U_ADMIN)}
|
||||
<li><a href="{$U_ADMIN}" title="{'available for administrators only'|@translate}">{'Administration'|@translate}</a></li>
|
||||
{/if}
|
||||
{/strip}
|
||||
</ul>
|
||||
</li>
|
||||
@@ -0,0 +1,12 @@
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{'Links'|@translate} <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
{foreach from=$block->data item=link}
|
||||
<li>
|
||||
<a href="{$link.URL}" class="external"{if isset($link.new_window)} onclick="window.open(this.href, '{$link.new_window.NAME}','{$link.new_window.FEATURES}'); return false;"{/if}>
|
||||
{$link.LABEL}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</li>
|
||||
@@ -0,0 +1,24 @@
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{'Menu'|@translate} <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
{if isset($block->data.qsearch) and $block->data.qsearch==true}
|
||||
<div class="navbar-form-desktop">
|
||||
<form class="navbar-form" role="search" action="{$ROOT_URL}qsearch.php" method="get" id="quicksearch" onsubmit="return this.q.value!='' && this.q.value!=qsearch_prompt;">
|
||||
<div class="form-group">
|
||||
<input type="text" name="q" id="qsearchInput" class="form-control" placeholder="{'Quick search'|@translate}" />
|
||||
</div>
|
||||
</form>
|
||||
<li class="divider"></li>
|
||||
</div>
|
||||
{/if}
|
||||
{foreach from=$block->data item=link}
|
||||
{if is_array($link)}
|
||||
<li>
|
||||
<a href="{$link.URL}" title="{$link.TITLE}"{if isset($link.REL)} {$link.REL}{/if}>{$link.NAME}
|
||||
{if isset($link.COUNTER)}<span class="badge">{$link.COUNTER}</span>{/if}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
</li>
|
||||
@@ -0,0 +1,8 @@
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{'Specials'|@translate} <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
{foreach from=$block->data item=link}
|
||||
<li><a href="{$link.URL}" title="{$link.TITLE}"{if isset($link.REL)} {$link.REL}{/if}>{$link.NAME}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</li>
|
||||
@@ -0,0 +1,16 @@
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{'Related tags'|@translate} <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
{foreach from=$block->data item=tag}
|
||||
<li>
|
||||
{strip}<a class="tagLevel{$tag.level}" href=
|
||||
{if isset($tag.U_ADD)}
|
||||
"{$tag.U_ADD}" title="{$tag.counter|@translate_dec:'%d photo is also linked to current tags':'%d photos are also linked to current tags'}" rel="nofollow">+
|
||||
{else}
|
||||
"{$tag.URL}" title="{'display photos linked to this tag'|@translate}">
|
||||
{/if}
|
||||
{$tag.name}</a>{/strip}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</li>
|
||||
@@ -0,0 +1,29 @@
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{$block->get_title()|strip_tags:true} <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu dropdown-menu-scrollable" role="menu">
|
||||
<li>{strip}
|
||||
<a href="{$block->data.U_LIST}">
|
||||
{if $block->data.NB_COL == 0}
|
||||
{'You have no collection'|translate}
|
||||
{else}
|
||||
{$pwg->l10n_dec('You have %d collection', 'You have %d collections', $block->data.NB_COL)}
|
||||
{/if}
|
||||
</a>
|
||||
{/strip}</li>
|
||||
<li class="divider"></li>
|
||||
{if $block->data.collections}
|
||||
{foreach from=$block->data.collections item=col}{strip}
|
||||
<li>
|
||||
<a href="{$col.u_edit}">
|
||||
{$col.name}
|
||||
<span class="badge" title="{$cat.TITLE}">{$col.nb_images}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/strip}{/foreach}
|
||||
{if isset($block->data.MORE)}
|
||||
<li class="divider"></li>
|
||||
<li><a href="{$block->data.U_LIST}">{'%d more...'|translate:$block->data.MORE}</a></li>
|
||||
{/if}
|
||||
{/if}
|
||||
</ul>
|
||||
</li>
|
||||
@@ -0,0 +1,28 @@
|
||||
<div class="text-center">
|
||||
<ul class="pagination pagination-centered">
|
||||
{if isset($navbar.URL_FIRST)}
|
||||
<li><a href="{$navbar.URL_FIRST}{if $fragment}#{$fragment}{/if}" rel="first">{'First'|@translate}</a></li>
|
||||
<li><a href="{$navbar.URL_PREV}{if $fragment}#{$fragment}{/if}" rel="prev">{'Previous'|@translate}</a></li>
|
||||
{else}
|
||||
<li class="disabled"><a href="#">{'First'|@translate}</a></li>
|
||||
<li class="disabled"><a href="#">{'Previous'|@translate}</a></li>
|
||||
{/if}
|
||||
{assign var='prev_page' value=0}
|
||||
{foreach from=$navbar.pages key=page item=url}
|
||||
{if $page == $navbar.CURRENT_PAGE}
|
||||
<li class="active"><a href="#">{$page}</a></li>
|
||||
{else}
|
||||
<li><a href="{$url}{if $fragment}#{$fragment}{/if}">{$page}</a></li>
|
||||
{/if}
|
||||
{assign var='prev_page' value=$page}
|
||||
{/foreach}
|
||||
|
||||
{if isset($navbar.URL_NEXT)}
|
||||
<li><a href="{$navbar.URL_NEXT}{if $fragment}#{$fragment}{/if}" rel="next">{'Next'|@translate}</a></li>
|
||||
<li><a href="{$navbar.URL_LAST}{if $fragment}#{$fragment}{/if}" rel="last">{'Last'|@translate}</a></li>
|
||||
{else}
|
||||
<li class="disabled"><a href="#">{'Next'|@translate}</a></li>
|
||||
<li class="disabled"><a href="#">{'Last'|@translate}</a></li>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
@@ -0,0 +1,27 @@
|
||||
{html_head}
|
||||
<link rel="alternate" type="application/rss+xml" title="{'Photos only RSS feed'|@translate}" href="{$U_FEED_IMAGE_ONLY}">
|
||||
<link rel="alternate" type="application/rss+xml" title="{'Complete RSS feed (photos, comments)'|@translate}" href="{$U_FEED}">
|
||||
{/html_head}
|
||||
|
||||
<nav class="navbar navbar-default" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<div class="navbar-brand"><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}<a href>{'Notification'|@translate}</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{include file='infos_errors.tpl'}
|
||||
|
||||
<div class="container">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
{'Notification'|@translate}
|
||||
</div>
|
||||
<div class="panel-body notification">
|
||||
<p>{'The RSS notification feed provides notification on news from this website : new photos, updated albums, new comments. Use a RSS feed reader.'|@translate}</p>
|
||||
<p><a href="{$U_FEED_IMAGE_ONLY}">{'Photos only RSS feed'|@translate}</a></p>
|
||||
<p><a href="{$U_FEED}">{'Complete RSS feed (photos, comments)'|@translate}</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,70 @@
|
||||
<nav class="navbar navbar-default" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<div class="navbar-brand"><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}<a href>{$title}</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{include file='infos_errors.tpl'}
|
||||
|
||||
{if $action ne 'none'}
|
||||
<div class="container">
|
||||
<form id="lostPassword" action="{$form_action}?action={$action}{if isset($key)}&key={$key}{/if}" method="post" class="form-horizontal">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
{'Forgot your password?'|@translate}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
|
||||
{if $action eq 'lost'}
|
||||
<div>
|
||||
{'Please enter your username or email address.'|@translate}
|
||||
{'You will receive a link to create a new password via email.'|@translate}
|
||||
</div>
|
||||
<br />
|
||||
<div class="form-group">
|
||||
<label for="username_or_email" class="col-sm-2 control-label">{'Username or email'|@translate}</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" id="username_or_email" name="username_or_email" class="form-control" maxlength="40"{if isset($username_or_email)} value="{$username_or_email}"{/if} placeholder="{'Username or email'|@translate}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<input type="submit" name="submit" value="{'Change my password'|@translate}" class="btn btn-default btn-primary">
|
||||
</div>
|
||||
</div>
|
||||
{elseif $action eq 'reset'}
|
||||
<div>{'Hello'|@translate} <em>{$username}</em>. {'Enter your new password below.'|@translate}</div>
|
||||
<br />
|
||||
<div class="form-group">
|
||||
<label for="use_new_pwd" class="col-sm-2 control-label">{'New password'|@translate}</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="password" name="use_new_pwd" id="use_new_pwd" value="" class="form-control" placeholder="{'New password'|@translate}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="passwordConf" class="col-sm-2 control-label">{'Confirm Password'|@translate}</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="password" name="passwordConf" id="passwordConf" class="form-control" value="" placeholder="{'Confirm Password'|@translate}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<input type="submit" name="submit" value="{'Submit'|@translate}" class="btn btn-default btn-primary">
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
{if $action eq 'lost'}
|
||||
{literal}try{document.getElementById('username_or_email').focus();}catch(e){}{/literal}
|
||||
{elseif $action eq 'reset'}
|
||||
{literal}try{document.getElementById('use_new_pwd').focus();}catch(e){}{/literal}
|
||||
{/if}
|
||||
</script>
|
||||
436
zoesch.de/galerie/themes/bootstrapdefault/template/picture.tpl
Normal file
436
zoesch.de/galerie/themes/bootstrapdefault/template/picture.tpl
Normal file
@@ -0,0 +1,436 @@
|
||||
<!-- Start of picture.tpl -->
|
||||
{combine_css path="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"}
|
||||
|
||||
{if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if}
|
||||
|
||||
<nav class="navbar navbar-default" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-contextual">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<div class="navbar-brand">{$SECTION_TITLE}{$LEVEL_SEPARATOR}<a href>{$current.TITLE}</a> [{$PHOTO}]</div>
|
||||
</div>
|
||||
<div class="navbar-right navbar-collapse collapse" id="navbar-contextual">
|
||||
<ul class="nav navbar-nav">
|
||||
{if isset($current.unique_derivatives) && count($current.unique_derivatives)>1}
|
||||
{footer_script require='jquery'}{strip}
|
||||
function changeImgSrc(url,typeSave,typeMap) {
|
||||
var theImg = document.getElementById("theMainImage");
|
||||
if (theImg) {
|
||||
theImg.removeAttribute("width");theImg.removeAttribute("height");
|
||||
theImg.src = url;
|
||||
theImg.useMap = "#map"+typeMap;
|
||||
}
|
||||
jQuery('.derivative-li').removeClass('active');
|
||||
jQuery('#derivative'+typeMap).addClass('active');
|
||||
document.cookie = 'picture_deriv='+typeSave+';path={$COOKIE_PATH}';
|
||||
}
|
||||
{/strip}{/footer_script}
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="glyphicon glyphicon-picture"></span><span class="glyphicon-text">{'Photo sizes'|@translate}</span><span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
{foreach from=$current.unique_derivatives item=derivative key=derivative_type}
|
||||
<li id="derivative{$derivative->get_type()}" class="derivative-li{if $derivative->get_type() == $current.selected_derivative->get_type()} active{/if}">
|
||||
<a href="javascript:changeImgSrc('{$derivative->get_url()|@escape:javascript}','{$derivative_type}','{$derivative->get_type()}')" rel="nofollow">
|
||||
{$derivative->get_type()|@translate}<span class="derivativeSizeDetails"> ({$derivative->get_size_hr()})</span>
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
{if isset($U_ORIGINAL)}
|
||||
{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
|
||||
<li>
|
||||
<a href="javascript:phpWGOpenWindow('{$U_ORIGINAL}','xxx','scrollbars=yes,toolbar=no,status=no,resizable=yes')" rel="nofollow">{'Original'|@translate}</a>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
</li>
|
||||
{/if}
|
||||
{if isset($U_SLIDESHOW_START)}
|
||||
<li>
|
||||
<a href="{$U_SLIDESHOW_START}" title="{'Slideshow'|@translate}" rel="nofollow">
|
||||
<span class="glyphicon glyphicon-play"></span><span class="glyphicon-text">{'Slideshow'|@translate}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if isset($U_METADATA)}
|
||||
<li>
|
||||
<a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" rel="nofollow">
|
||||
<span class="glyphicon glyphicon-camera"></span><span class="glyphicon-text">{'Show file metadata'|@translate}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if isset($current.U_DOWNLOAD)}
|
||||
{if empty($current.formats)}
|
||||
<li>
|
||||
<a href="{$current.U_DOWNLOAD}" title="{'Download this file'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
|
||||
<span class="glyphicon glyphicon-download-alt"></span><span class="glyphicon-text">{'Download'|@translate}</span>
|
||||
</a>
|
||||
{else}
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="glyphicon glyphicon-download-alt"></span><span class="glyphicon-text">{'Download'|@translate}</span><span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
{foreach from=$current.formats item=format}
|
||||
<li><a href="{$format.download_url}" rel="nofollow">{$format.label}<span class="downloadformatDetails"> ({$format.filesize})</span></a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if} {* has formats *}
|
||||
</li>
|
||||
{/if}
|
||||
{if isset($PLUGIN_PICTURE_BUTTONS)}{foreach from=$PLUGIN_PICTURE_BUTTONS item=button}{$button}{/foreach}{/if}
|
||||
{if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if}
|
||||
{if isset($favorite)}
|
||||
<li>
|
||||
<a href="{$favorite.U_FAVORITE}" title="{if $favorite.IS_FAVORITE}{'Delete this photo from your favorites'|@translate}{else}{'Add this photo to your favorites'|@translate}{/if}" rel="nofollow">
|
||||
<span class="glyphicon glyphicon-heart{if !$favorite.IS_FAVORITE}-empty{/if}"></span><span class="glyphicon-text">{'Favorites'|@translate}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if isset($U_SET_AS_REPRESENTATIVE)}
|
||||
<li>
|
||||
<a id="cmdSetRepresentative" href="{$U_SET_AS_REPRESENTATIVE}" title="{'Set as album representative'|@translate}" rel="nofollow">
|
||||
<span class="glyphicon glyphicon-link"></span><span class="glyphicon-text">{'representative'|@translate}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if isset($U_PHOTO_ADMIN)}
|
||||
<li>
|
||||
<a id="cmdEditPhoto" href="{$U_PHOTO_ADMIN}" title="{'Modify information'|@translate}" rel="nofollow">
|
||||
<span class="glyphicon glyphicon-pencil"></span><span class="glyphicon-text">{'Edit'|@translate}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if isset($U_CADDIE)}
|
||||
{footer_script}{strip}
|
||||
function addToCadie(aElement, rootUrl, id) {
|
||||
if (aElement.disabled) return;
|
||||
aElement.disabled=true;
|
||||
var y = new PwgWS(rootUrl);
|
||||
y.callService("pwg.caddie.add", {literal}{image_id: id}{/literal}, {
|
||||
onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; },
|
||||
onSuccess: function(result) { aElement.disabled = false; }
|
||||
});
|
||||
}
|
||||
{/strip}{/footer_script}
|
||||
<li>
|
||||
<a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL}', {$current.id}); return false;" title="{'Add to caddie'|@translate}" rel="nofollow">
|
||||
<span class="glyphicon glyphicon-plus-sign"></span><span class="pwg-button-text">{'Caddie'|@translate}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{include file='infos_errors.tpl'}
|
||||
|
||||
<div class="container">
|
||||
{include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'}
|
||||
</div>
|
||||
|
||||
<div id="theImage">
|
||||
{$ELEMENT_CONTENT}
|
||||
</div>
|
||||
<div id="sidebar">
|
||||
<div id="info-content" class="info">
|
||||
<dl>
|
||||
<h4>{'Information'|@translate}</h4>
|
||||
{if $display_info.author and isset($INFO_AUTHOR)}
|
||||
<div id="Author" class="imageInfo">
|
||||
<dt>{'Author'|@translate}</dt>
|
||||
<dd>{$INFO_AUTHOR}</dd>
|
||||
</div>
|
||||
{/if}
|
||||
{if $display_info.created_on and isset($INFO_CREATION_DATE)}
|
||||
<div id="datecreate" class="imageInfo">
|
||||
<dt>{'Created on'|@translate}</dt>
|
||||
<dd>{$INFO_CREATION_DATE}</dd>
|
||||
</div>
|
||||
{/if}
|
||||
{if $display_info.posted_on}
|
||||
<div id="datepost" class="imageInfo">
|
||||
<dt>{'Posted on'|@translate}</dt>
|
||||
<dd>{$INFO_POSTED_DATE}</dd>
|
||||
</div>
|
||||
{/if}
|
||||
{if $display_info.dimensions and isset($INFO_DIMENSIONS)}
|
||||
<div id="Dimensions" class="imageInfo">
|
||||
<dt>{'Dimensions'|@translate}</dt>
|
||||
<dd>{$INFO_DIMENSIONS}</dd>
|
||||
</div>
|
||||
{/if}
|
||||
{if $display_info.file}
|
||||
<div id="File" class="imageInfo">
|
||||
<dt>{'File'|@translate}</dt>
|
||||
<dd>{$INFO_FILE}</dd>
|
||||
</div>
|
||||
{/if}
|
||||
{if $display_info.filesize and isset($INFO_FILESIZE)}
|
||||
<div id="Filesize" class="imageInfo">
|
||||
<dt>{'Filesize'|@translate}</dt>
|
||||
<dd>{$INFO_FILESIZE}</dd>
|
||||
</div>
|
||||
{/if}
|
||||
{if $display_info.tags and isset($related_tags)}
|
||||
<div id="Tags" class="imageInfo">
|
||||
<dt>{'Tags'|@translate}</dt>
|
||||
<dd>
|
||||
{foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}<a href="{$tag.URL}">{$tag.name}</a>{/foreach}
|
||||
</dd>
|
||||
</div>
|
||||
{/if}
|
||||
{if $display_info.categories and isset($related_categories)}
|
||||
<div id="Categories" class="imageInfo">
|
||||
<dt>{'Albums'|@translate}</dt>
|
||||
<dd>
|
||||
{foreach from=$related_categories item=cat name=cat_loop}
|
||||
{if !$smarty.foreach.cat_loop.first}<br />{/if}{$cat}
|
||||
{/foreach}
|
||||
</dd>
|
||||
</div>
|
||||
{/if}
|
||||
{if $display_info.privacy_level and isset($available_permission_levels)}
|
||||
{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
|
||||
{footer_script require='jquery'}{strip}
|
||||
function setPrivacyLevel(id, level, label) {
|
||||
(new PwgWS('{$ROOT_URL}')).callService(
|
||||
"pwg.images.setPrivacyLevel", { image_id:id, level:level},
|
||||
{
|
||||
method: "POST",
|
||||
onFailure: function(num, text) { alert(num + " " + text); },
|
||||
onSuccess: function(result) {
|
||||
jQuery('#dropdownPermissions').html(label + ' <span class="caret"></span>');
|
||||
jQuery('.permission-li').removeClass('active');
|
||||
jQuery('#permission-' + level).addClass('active');
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
(SwitchBox=window.SwitchBox||[]).push("#privacyLevelLink", "#privacyLevelBox");
|
||||
{/strip}{/footer_script}
|
||||
<div id="Privacy" class="imageInfo">
|
||||
<dt>{'Who can see this photo?'|@translate}</dt>
|
||||
<dd>
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-default dropdown-toggle ellipsis" type="button" id="dropdownPermissions" data-toggle="dropdown" aria-expanded="true">
|
||||
{$available_permission_levels[$current.level]}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="dropdownPermissions">
|
||||
{foreach from=$available_permission_levels item=label key=level}
|
||||
<li id="permission-{$level}" role="presentation" class="permission-li {if $current.level == $level} active{/if}"><a role="menuitem" tabindex="-1" href="javascript:setPrivacyLevel({$current.id},{$level},'{$label}')">{$label}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</dd>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($metadata)}
|
||||
{foreach from=$metadata item=meta}
|
||||
<br />
|
||||
<h4>{$meta.TITLE}</h4>
|
||||
{foreach from=$meta.lines item=value key=label}
|
||||
<dt>{$label}</dt>
|
||||
<dd>{$value}</dd>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{/if}
|
||||
</dl>
|
||||
</div>
|
||||
<div class="handle">
|
||||
<a id="info-link" href="#">
|
||||
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<section id="important-info">
|
||||
{if isset($COMMENT_IMG)}
|
||||
<h4 class="imageComment">{$COMMENT_IMG}</h4>
|
||||
{/if}
|
||||
{if $display_info.visits}
|
||||
<div id="visits">
|
||||
<b>{'Visits'|@translate}</b>
|
||||
<span class="count">{$INFO_VISITS}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{if $display_info.rating_score and isset($rate_summary)}
|
||||
<div id="rating">
|
||||
<dl class="dl-horizontal">
|
||||
<dt>{'Rating score'|@translate} <span id="ratingCount">({if $rate_summary.count}{$rate_summary.count|@translate_dec:'%d rate':'%d rates'}{else}{'no rate'|@translate}{/if})</span></dt>
|
||||
<dd id="averageRate">
|
||||
{foreach from=$rating.marks item=mark name=rate_loop}
|
||||
<span class="{if $rate_summary.count && $rate_summary.average > $mark - 0.5}rateButtonStarFull{else}rateButtonStarEmpty{/if}" data-value="{$mark}"></span>
|
||||
{/foreach}
|
||||
</dd>
|
||||
{if isset($rating)}
|
||||
<dt id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this photo'|@translate}{/if}</dt>
|
||||
<dd>
|
||||
<form action="{$rating.F_ACTION}" method="post" id="rateForm" style="margin:0;">
|
||||
{foreach from=$rating.marks item=mark name=rate_loop}
|
||||
{if isset($rating.USER_RATE) && $mark==$rating.USER_RATE}
|
||||
<span class="rateButtonStarFull" data-value="{$mark}"></span>
|
||||
{else}
|
||||
<span class="rateButtonStarEmpty" data-value="{$mark}"></span>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{strip}{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
|
||||
{combine_script id='rating' load='async' require='core.scripts' require='jquery' path="themes/bootstrapdefault/js/rating.js"}
|
||||
{footer_script require='jquery'}
|
||||
var _pwgRatingAutoQueue = _pwgRatingAutoQueue||[];
|
||||
_pwgRatingAutoQueue.push( {ldelim}rootUrl: '{$ROOT_URL}', image_id: {$current.id},
|
||||
onSuccess : function(rating) {ldelim}
|
||||
var e = document.getElementById("updateRate");
|
||||
if (e) e.innerHTML = "{'Update your rating'|@translate|@escape:'javascript'}";
|
||||
e = document.getElementById("ratingScore");
|
||||
if (e) e.innerHTML = rating.score;
|
||||
e = document.getElementById("ratingCount");
|
||||
if (e) {ldelim}
|
||||
if (rating.count == 1) {ldelim}
|
||||
e.innerHTML = "({'1 rate'|@translate|@escape:'javascript'})";
|
||||
} else {ldelim}
|
||||
e.innerHTML = "({'%d rates'|@translate|@escape:'javascript'})".replace( "%d", rating.count);
|
||||
}
|
||||
{rdelim}
|
||||
$('#averageRate').find('span').each(function() {ldelim}
|
||||
$(this).addClass(rating.average > $(this).data('value') - 0.5 ? 'rateButtonStarFull' : 'rateButtonStarEmpty');
|
||||
$(this).removeClass(rating.average > $(this).data('value') - 0.5 ? 'rateButtonStarEmpty' : 'rateButtonStarFull');
|
||||
{rdelim});
|
||||
{rdelim}
|
||||
{rdelim} );
|
||||
{/footer_script}
|
||||
{/strip}
|
||||
</form>
|
||||
</dd>
|
||||
{/if}
|
||||
</dl>
|
||||
</div>
|
||||
{/if}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
{include file="http_scheme.tpl"}
|
||||
{if $theme_config->social_enabled}
|
||||
<div class="container">
|
||||
<section id="share">
|
||||
{if $theme_config->social_twitter}
|
||||
<a href="http://twitter.com/share?text={$current.TITLE}&url={$http_scheme}://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}"
|
||||
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;" title="Share on Twitter">
|
||||
<i class="fa fa-twitter"></i>
|
||||
</a>
|
||||
{/if}
|
||||
{if $theme_config->social_facebook}
|
||||
<a href="https://www.facebook.com/sharer/sharer.php?u={$http_scheme}://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}"
|
||||
onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;" title="Share on Facebook">
|
||||
<i class="fa fa-facebook"></i>
|
||||
</a>
|
||||
{/if}
|
||||
{if $theme_config->social_google_plus}
|
||||
<a href="https://plus.google.com/share?url={$http_scheme}://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}"
|
||||
onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;" title="Share on Google+">
|
||||
<i class="fa fa-google-plus"></i>
|
||||
</a>
|
||||
{/if}
|
||||
</section>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if isset($comment_add) || $COMMENT_COUNT > 0}
|
||||
<a name="comments"></a>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1 col-sm-12 col-xs-12">
|
||||
{$shortname = $theme_config->comments_disqus_shortname}
|
||||
{if $theme_config->comments_type == 'disqus' and !empty($shortname)}
|
||||
<div id="disqus_thread"></div>
|
||||
{footer_script}{strip}
|
||||
var disqus_shortname = '{/strip}{$shortname}{strip}';
|
||||
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
{/strip}
|
||||
{/footer_script}
|
||||
{else}
|
||||
<h3>{'Comments'|@translate}</h3>
|
||||
<div class="tabbable">
|
||||
<ul class="nav nav-pills">
|
||||
{if $COMMENT_COUNT > 0}
|
||||
<li class="active"><a href="#viewcomments" data-toggle="tab">{$COMMENT_COUNT|@translate_dec:'%d comment':'%d comments'}</a></li>
|
||||
{/if}
|
||||
{if isset($comment_add)}
|
||||
<li{if $COMMENT_COUNT == 0} class="active"{/if}><a href="#addcomment" data-toggle="tab">{'Add a comment'|@translate}</a></li>
|
||||
{/if}
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
{if $COMMENT_COUNT > 0}
|
||||
<div id="viewcomments" class="tab-pane active">
|
||||
{include file='comment_list.tpl'}
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($comment_add)}
|
||||
<div id="addcomment" class="tab-pane{if $COMMENT_COUNT == 0} active{/if}">
|
||||
<form method="post" action="{$comment_add.F_ACTION}">
|
||||
{if $comment_add.SHOW_AUTHOR}
|
||||
<div class="form-group">
|
||||
<label for="author">{'Author'|@translate}{if $comment_add.AUTHOR_MANDATORY} ({'mandatory'|@translate}){/if} :</label>
|
||||
<input class="form-control" type="text" name="author" id="author" value="{$comment_add.AUTHOR}">
|
||||
</div>
|
||||
{/if}
|
||||
{if $comment_add.SHOW_EMAIL}
|
||||
<div class="form-group">
|
||||
<label for="email">{'Email address'|@translate}{if $comment_add.EMAIL_MANDATORY} ({'mandatory'|@translate}){/if} :</label>
|
||||
<input class="form-control" type="text" name="email" id="email" value="{$comment_add.EMAIL}">
|
||||
</div>
|
||||
{/if}
|
||||
{if $comment_add.SHOW_WEBSITE}
|
||||
<div class="form-group">
|
||||
<label for="website_url">{'Website'|@translate} :</label>
|
||||
<input class="form-control" type="text" name="website_url" id="website_url" value="{$comment_add.WEBSITE_URL}">
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group">
|
||||
<label for="contentid">{'Comment'|@translate} ({'mandatory'|@translate}) :</label>
|
||||
<textarea class="form-control" name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea>
|
||||
</div>
|
||||
<input type="hidden" name="key" value="{$comment_add.KEY}">
|
||||
<button type="submit" class="btn btn-default">{'Submit'|@translate}</button>
|
||||
</form>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if !empty($navbar) }
|
||||
<div class="container">
|
||||
{include file='navigation_bar.tpl' fragment='comments'|@get_extent:'navbar'}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<!--
|
||||
<div id="imageToolBar">
|
||||
{include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'}
|
||||
|
||||
{if isset($U_SLIDESHOW_STOP)}
|
||||
<p>
|
||||
[ <a href="{$U_SLIDESHOW_STOP}">{'stop the slideshow'|@translate}</a> ]
|
||||
</p>
|
||||
{/if}
|
||||
-->
|
||||
{if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if}
|
||||
@@ -0,0 +1,20 @@
|
||||
{if !$current.selected_derivative->is_cached()}
|
||||
{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
|
||||
{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
|
||||
{footer_script}var error_icon = "{$ROOT_URL}{$themeconf.icon_dir}/errors_small.png"{/footer_script}
|
||||
{/if}
|
||||
|
||||
<img {if $current.selected_derivative->is_cached()}src="{$current.selected_derivative->get_url()}" {$current.selected_derivative->get_size_htm()}{else}src="{$ROOT_URL}themes/bootstrapdefault/img/transparent.png" data-src="{$current.selected_derivative->get_url()}"{/if} alt="{$ALT_IMG}" id="theMainImage" usemap="#map{$current.selected_derivative->get_type()}" title="{if isset($COMMENT_IMG)}{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}{else}{$current.TITLE_ESC} - {$ALT_IMG}{/if}">
|
||||
|
||||
{foreach from=$current.unique_derivatives item=derivative key=derivative_type}{strip}
|
||||
<map name="map{$derivative->get_type()}">
|
||||
{assign var='size' value=$derivative->get_size()}
|
||||
{if isset($previous)}
|
||||
<area shape=rect coords="0,0,{($size[0]/4)|@intval},{$size[1]}" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE_ESC}" alt="{$previous.TITLE_ESC}">
|
||||
{/if}
|
||||
<area shape=rect coords="{($size[0]/4)|@intval},0,{($size[0]/1.34)|@intval},{($size[1]/4)|@intval}" href="{$U_UP}" title="{'Thumbnails'|@translate}" alt="{'Thumbnails'|@translate}">
|
||||
{if isset($next)}
|
||||
<area shape=rect coords="{($size[0]/1.33)|@intval},0,{$size[0]},{$size[1]}" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE_ESC}" alt="{$next.TITLE_ESC}">
|
||||
{/if}
|
||||
</map>
|
||||
{/strip}{/foreach}
|
||||
@@ -0,0 +1,119 @@
|
||||
<div id="navigationButtons">
|
||||
{if $DISPLAY_NAV_BUTTONS or isset($slideshow)}
|
||||
{if isset($slideshow)}
|
||||
{if isset($slideshow.U_INC_PERIOD)}
|
||||
<a href="{$slideshow.U_INC_PERIOD}" title="{'Reduce diaporama speed'|@translate}" class="pwg-state-default pwg-button">
|
||||
<span class="glyphicon glyphicon-minus"></span><span class="glyphicon-text">{'Reduce diaporama speed'|@translate}</span>
|
||||
</a>
|
||||
{else}
|
||||
<span class="glyphicon glyphicon-minus"></span><span class="glyphicon-text">{'Reduce diaporama speed'|@translate}</span>
|
||||
{/if}
|
||||
{if isset($slideshow.U_DEC_PERIOD)}
|
||||
<a href="{$slideshow.U_DEC_PERIOD}" title="{'Accelerate diaporama speed'|@translate}" class="pwg-state-default pwg-button">
|
||||
<span class="glyphicon glyphicon-plus"></span><span class="glyphicon-text">{'Accelerate diaporama speed'|@translate}</span>
|
||||
</a>
|
||||
{else}
|
||||
<span class="glyphicon glyphicon-plus"></span><span class="glyphicon-text">{'Accelerate diaporama speed'|@translate}</span>
|
||||
{/if}
|
||||
{/if}
|
||||
{if isset($slideshow.U_START_REPEAT)}
|
||||
<a href="{$slideshow.U_START_REPEAT}" title="{'Repeat the slideshow'|@translate}" class="pwg-state-default pwg-button">
|
||||
<span class="glyphicon glyphicon-repeat"></span><span class="glyphicon-text">{'Repeat the slideshow'|@translate}</span>
|
||||
</a>
|
||||
{/if}
|
||||
{* TODO need an icon for this
|
||||
{if isset($slideshow.U_STOP_REPEAT)}
|
||||
<a href="{$slideshow.U_STOP_REPEAT}" title="{'Not repeat the slideshow'|@translate}" class="pwg-state-default pwg-button">
|
||||
<span class="pwg-icon pwg-icon-repeat-stop"></span><span class="glyphicon-text">{'Not repeat the slideshow'|@translate}</span>
|
||||
</a>
|
||||
{/if} *}
|
||||
{*<!--{strip}{if isset($first)}
|
||||
<a href="{$first.U_IMG}" title="{'First'|@translate} : {$first.TITLE}" class="pwg-state-default pwg-button">
|
||||
<span class="pwg-icon pwg-icon-arrowstop-w"> </span><span class="pwg-button-text">{'First'|@translate}</span>
|
||||
</a>
|
||||
{else}
|
||||
<span class="pwg-state-disabled pwg-button">
|
||||
<span class="pwg-icon pwg-icon-arrowstop-w"> </span><span class="pwg-button-text">{'First'|@translate}</span>
|
||||
</span>
|
||||
{/if}{/strip}-->*}
|
||||
{strip}{if isset($previous)}
|
||||
<a href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE_ESC}">
|
||||
<span class="glyphicon glyphicon-chevron-left"></span><span class="glyphicon-text">{'Previous'|@translate}</span>
|
||||
</a>
|
||||
{else}
|
||||
<span class="glyphicon glyphicon-chevron-left"></span><span class="glyphicon-text">{'Previous'|@translate}</span>
|
||||
{/if}{/strip}
|
||||
{strip}{if isset($U_UP) and !isset($slideshow)}
|
||||
<a href="{$U_UP}" title="{'Thumbnails'|@translate}">
|
||||
<span class="glyphicon glyphicon-home"></span><span class="glyphicon-text">{'Thumbnails'|@translate}</span>
|
||||
</a>
|
||||
{/if}{/strip}
|
||||
{if isset($slideshow.U_START_PLAY)}
|
||||
<a href="{$slideshow.U_START_PLAY}" title="{'Play of slideshow'|@translate}">
|
||||
<span class="glyphicon glyphicon-play"></span><span class="glyphicon-text">{'Play of slideshow'|@translate}</span>
|
||||
</a>
|
||||
{/if}
|
||||
{if isset($slideshow.U_STOP_PLAY)}
|
||||
<a href="{$slideshow.U_STOP_PLAY}" title="{'Pause of slideshow'|@translate}">
|
||||
<span class="glyphicon glyphicon-pause"></span><span class="glyphicon-text">{'Pause of slideshow'|@translate}</span>
|
||||
</a>
|
||||
{/if}
|
||||
{if isset($U_SLIDESHOW_STOP) }
|
||||
<a href="{$U_SLIDESHOW_STOP}" title="{'stop the slideshow'|@translate}">
|
||||
<span class="glyphicon glyphicon-stop"></span><span class="glyphicon-text">{'stop the slideshow'|@translate}</span>
|
||||
</a>
|
||||
{/if}
|
||||
{strip}{if isset($next)}
|
||||
<a href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE_ESC}">
|
||||
<span class="glyphicon glyphicon-chevron-right"></span><span class="glyphicon-text">{'Next'|@translate}</span>
|
||||
</a>
|
||||
{else}
|
||||
<span class="glyphicon glyphicon-chevron-right"></span><span class="glyphicon-text">{'Next'|@translate}</span>
|
||||
{/if}{/strip}
|
||||
{*<!--{strip}{if isset($last)}
|
||||
<a href="{$last.U_IMG}" title="{'Last'|@translate} : {$last.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right">
|
||||
<span class="pwg-icon pwg-icon-arrowstop-e"></span><span class="pwg-button-text">{'Last'|@translate}</span>
|
||||
</a>
|
||||
{else}
|
||||
<span class="pwg-state-disabled pwg-button pwg-button-icon-right">
|
||||
<span class="pwg-icon pwg-icon-arrowstop-e"> </span><span class="pwg-button-text">{'Last'|@translate}</span>
|
||||
</span>
|
||||
{/if}{/strip}-->*}
|
||||
{/if}
|
||||
</div>
|
||||
{strip}
|
||||
{footer_script}
|
||||
document.onkeydown = function(e){ldelim}
|
||||
e=e||window.event;
|
||||
if (e.altKey) return true;
|
||||
var target=e.target||e.srcElement;
|
||||
if (target && target.type) return true;{* an input editable element *}
|
||||
var keyCode=e.keyCode||e.which, docElem=document.documentElement, url;
|
||||
switch(keyCode){ldelim}
|
||||
{if isset($next)}
|
||||
case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth)url="{$next.U_IMG}"; break;
|
||||
{/if}
|
||||
{if isset($previous)}
|
||||
case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0)url="{$previous.U_IMG}"; break;
|
||||
{/if}
|
||||
{if isset($first)}
|
||||
{* Home *}case 36: if (e.ctrlKey)url="{$first.U_IMG}"; break;
|
||||
{/if}
|
||||
{if isset($last)}
|
||||
{* End *}case 35: if (e.ctrlKey)url="{$last.U_IMG}"; break;
|
||||
{/if}
|
||||
{if isset($U_UP) and !isset($slideshow)}
|
||||
{* Up *}case 38: if (e.ctrlKey)url="{$U_UP}"; break;
|
||||
{/if}
|
||||
{if isset($slideshow.U_START_PLAY)}
|
||||
{* Pause *}case 32: url="{$slideshow.U_START_PLAY}"; break;
|
||||
{/if}
|
||||
{if isset($slideshow.U_STOP_PLAY)}
|
||||
{* Play *}case 32: url="{$slideshow.U_STOP_PLAY}"; break;
|
||||
{/if}
|
||||
}
|
||||
if (url) {ldelim}window.location=url.replace("&","&"); return false;}
|
||||
return true;
|
||||
}
|
||||
{/footer_script}
|
||||
{/strip}
|
||||
@@ -0,0 +1,19 @@
|
||||
<div id="content" class="content">
|
||||
<div class="container">
|
||||
|
||||
{$HELP_CONTENT}
|
||||
|
||||
<p id="closeLink" style="display:none">
|
||||
<a href="#" onclick="window.close();">{'Close this window'|@translate}</a>
|
||||
</p>
|
||||
|
||||
{footer_script require='jquery'}
|
||||
if (window.opener || window.name) {
|
||||
jQuery("#closeLink").show();
|
||||
jQuery("#homeLink").hide();
|
||||
}
|
||||
{/footer_script}
|
||||
</div>
|
||||
</div> <!-- content -->
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<nav class="navbar navbar-default" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<div class="navbar-brand"><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}<a href>{'Profile'|@translate}</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{include file='infos_errors.tpl'}
|
||||
|
||||
{$PROFILE_CONTENT}
|
||||
@@ -0,0 +1,110 @@
|
||||
<div class="container">
|
||||
<form method="post" name="profile" action="{$F_ACTION}" id="profile" class="form-horizontal">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
{'Registration'|@translate}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">{'Username'|@translate}</label>
|
||||
<div class="col-sm-10">
|
||||
<p class="form-control-static">{$USERNAME}</p>
|
||||
</div>
|
||||
</div>
|
||||
{if not $SPECIAL_USER} {* can modify password + email*}
|
||||
<div class="form-group">
|
||||
<label for="mail_address" class="col-sm-2 control-label">{'Email address'|@translate}</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" name="mail_address" id="mail_address" class="form-control" value="{$EMAIL}" placeholder="{'Email address'|@translate}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password" class="col-sm-2 control-label">{'Password'|@translate}</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="password" name="password" id="password" class="form-control" value="" placeholder="{'Password'|@translate}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="use_new_pwd" class="col-sm-2 control-label">{'New password'|@translate}</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="password" name="use_new_pwd" id="use_new_pwd" class="form-control" value="" placeholder="{'New password'|@translate}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="passwordConf" class="col-sm-2 control-label">{'Confirm Password'|@translate}</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="password" name="passwordConf" id="passwordConf" class="form-control" value="" placeholder="{'Confirm Password'|@translate}">
|
||||
</div>
|
||||
</div>
|
||||
{if !$ALLOW_USER_CUSTOMIZATION}
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<input class="btn btn-default" type="submit" name="validate" value="{'Submit'|@translate}">
|
||||
<input class="btn btn-default" type="reset" name="reset" value="{'Reset'|@translate}">
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{if $ALLOW_USER_CUSTOMIZATION}
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
{'Preferences'|@translate}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="form-group">
|
||||
<label for="nb_image_page" class="col-sm-2 control-label">{'Number of photos per page'|@translate}</label>
|
||||
<div class="col-sm-1">
|
||||
<input type="text" maxlength="3" name="nb_image_page" id="nb_image_page" class="form-control" value="{$NB_IMAGE_PAGE}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="theme" class="col-sm-2 control-label">{'Theme'|@translate}</label>
|
||||
<div class="col-sm-4 html-options">
|
||||
{html_options name=theme options=$template_options selected=$template_selection}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="language" class="col-sm-2 control-label">{'Language'|@translate}</label>
|
||||
<div class="col-sm-4 html-options">
|
||||
{html_options name=language options=$language_options selected=$language_selection}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="recent_period" class="col-sm-2 control-label">{'Recent period'|@translate}</label>
|
||||
<div class="col-sm-1">
|
||||
<input type="text" size="3" maxlength="2" name="recent_period" id="recent_period" class="form-control" value="{$RECENT_PERIOD}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="expand" class="col-sm-2 control-label">{'Expand all albums'|@translate}</label>
|
||||
<div class="col-sm-10 html-radios-inline radio">
|
||||
{html_radios name='expand' options=$radio_options selected=$EXPAND}
|
||||
</div>
|
||||
</div>
|
||||
{if $ACTIVATE_COMMENTS}
|
||||
<div class="form-group">
|
||||
<label for="show_nb_comments" class="col-sm-2 control-label">{'Show number of comments'|@translate}</label>
|
||||
<div class="col-sm-10 html-radios-inline radio">
|
||||
{html_radios name='show_nb_comments' options=$radio_options selected=$NB_COMMENTS}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group">
|
||||
<label for="show_nb_hits" class="col-sm-2 control-label">{'Show number of hits'|@translate}</label>
|
||||
<div class="col-sm-10 html-radios-inline radio">
|
||||
{html_radios name='show_nb_hits' options=$radio_options selected=$NB_HITS}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input class="btn btn-default btn-primary" type="submit" name="validate" value="{'Submit'|@translate}">
|
||||
<input class="btn btn-default" type="reset" name="reset" value="{'Reset'|@translate}">
|
||||
<input class="btn btn-default" type="submit" name="reset_to_default" value="{'Reset to default values'|@translate}">
|
||||
{/if}
|
||||
<input type="hidden" name="redirect" value="{$REDIRECT}">
|
||||
<input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
|
||||
</form>
|
||||
</div>
|
||||
@@ -0,0 +1,11 @@
|
||||
<div class="container">
|
||||
{$REDIRECT_MSG}
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<p style="text-align:center">
|
||||
<a href="{$page_refresh.U_REFRESH}">
|
||||
{'Click here if your browser does not automatically forward you'|@translate}
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
@@ -0,0 +1,68 @@
|
||||
<nav class="navbar navbar-default" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<div class="navbar-brand"><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}<a href>{'Registration'|@translate}</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{include file='infos_errors.tpl'}
|
||||
|
||||
<div class="container">
|
||||
<form method="post" action="{$F_ACTION}" class="form-horizontal" name="register_form">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
{'Enter your personnal informations'|@translate}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="form-group">
|
||||
<label for="login" class="col-sm-2 control-label">{'Username'|@translate} *</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" name="login" id="login" value="{$F_LOGIN}" class="form-control" placeholder="{'Username'|@translate}" required="required"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password" class="col-sm-2 control-label">{'Password'|@translate} *</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="password" name="password" id="password" class="form-control" placeholder="{'Password'|@translate}" required="required"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password_conf" class="col-sm-2 control-label">{'Confirm Password'|@translate} *</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="password" name="password_conf" id="password_conf" class="form-control" placeholder="{'Confirm Password'|@translate}" required="required"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="mail_address" class="col-sm-2 control-label">{'Email address'|@translate}{if $obligatory_user_mail_address} *{/if}</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="email" name="mail_address" id="mail_address" value="{$F_EMAIL}" class="form-control" placeholder="{'Email address'|@translate}"{if $obligatory_user_mail_address} required="required"{/if}>
|
||||
{if not $obligatory_user_mail_address}
|
||||
({'useful when password forgotten'|@translate})
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="send_password_by_mail" value="1" checked="checked"> {'Send my connection settings by email'|@translate}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<input type="hidden" name="key" value="{$F_KEY}" >
|
||||
<input type="submit" name="submit" value="{'Register'|@translate}" class="btn btn-default btn-primary">
|
||||
<input type="reset" value="{'Reset'|@translate}" class="btn btn-default">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById('login').focus();
|
||||
//--></script>
|
||||
188
zoesch.de/galerie/themes/bootstrapdefault/template/search.tpl
Normal file
188
zoesch.de/galerie/themes/bootstrapdefault/template/search.tpl
Normal file
@@ -0,0 +1,188 @@
|
||||
{combine_css path="themes/bootstrapdefault/selectize.js/dist/css/selectize.bootstrap2.css"}
|
||||
{combine_script id='jquery.selectize' load='footer' path="themes/bootstrapdefault/selectize.js/dist/js/standalone/selectize.min.js"}
|
||||
{footer_script}
|
||||
jQuery(document).ready(function() {
|
||||
jQuery("#authors, #tags, #categories").each(function() {
|
||||
jQuery(this).selectize({
|
||||
plugins: ['remove_button'],
|
||||
maxOptions:jQuery(this).find("option").length
|
||||
});
|
||||
})
|
||||
});
|
||||
{/footer_script}
|
||||
|
||||
<nav class="navbar navbar-default" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<div class="navbar-brand"><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}<a href>{'Search'|@translate}</a></div>
|
||||
</div>
|
||||
<div class="navbar-right">
|
||||
<ul class="nav navbar-nav">
|
||||
<li>
|
||||
<a href="{$U_HELP}" onclick="bd_popup(this.href); return false;" title="{'Help'|@translate}">
|
||||
<span class="glyphicon glyphicon-question-sign"></span><span class="glyphicon-text">{'Help'|@translate}</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{include file='infos_errors.tpl'}
|
||||
|
||||
<div class="container">
|
||||
<form method="post" name="search" action="{$F_SEARCH_ACTION}">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
{'Search for words'|@translate}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-lg-7 col-md-9 col-sm-12 col-xs-12">
|
||||
<input type="text" id="search_allwords" name="search_allwords" class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group radio">
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="mode" value="AND" checked="checked">{'Search for all terms'|@translate}
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="mode" value="OR">{'Search for any term'|@translate}
|
||||
</label>
|
||||
</div>
|
||||
<label>{'Apply on properties'|translate}</label>
|
||||
<div class="form-group checkbox">
|
||||
<label class="checkbox-inline">
|
||||
<input type="checkbox" name="fields[]" value="name" checked="checked"> {'Photo title'|translate}
|
||||
</label>
|
||||
<label class="checkbox-inline">
|
||||
<input type="checkbox" name="fields[]" value="comment" checked="checked"> {'Photo description'|translate}
|
||||
</label>
|
||||
<label class="checkbox-inline">
|
||||
<input type="checkbox" name="fields[]" value="file" checked="checked"> {'File name'|translate}
|
||||
</label>
|
||||
{if isset($TAGS)}
|
||||
<label class="checkbox-inline">
|
||||
<input type="checkbox" name="search_in_tags" value="tags"> {'Tags'|translate}
|
||||
</label>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{if count($AUTHORS)>=1}
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
{'Search for Author'|@translate}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-lg-7 col-md-9 col-sm-12 col-xs-12">
|
||||
<select id="authors" placeholder="{'Type in a search term'|translate}" name="authors[]" multiple>
|
||||
{foreach from=$AUTHORS item=author}
|
||||
<option value="{$author.author|strip_tags:false|escape:html}">{$author.author|strip_tags:false} ({$author.counter|translate_dec:'%d photo':'%d photos'})</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($TAGS)}
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
{'Search tags'|@translate}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-lg-7 col-md-9 col-sm-12 col-xs-12">
|
||||
<select id="tags" placeholder="{'Type in a search term'|translate}" name="tags[]" multiple>
|
||||
{foreach from=$TAGS item=tag}
|
||||
<option value="{$tag.id}">{$tag.name} ({$tag.counter|translate_dec:'%d photo':'%d photos'})</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group radio">
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="tag_mode" value="AND" checked="checked"> {'All tags'|@translate}
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="tag_mode" value="OR"> {'Any tag'|@translate}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
{'Search by date'|@translate}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<label>{'Kind of date'|@translate}</label>
|
||||
<div class="form-group radio">
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="date_type" value="date_creation" checked="checked"> {'Creation date'|@translate}
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="date_type" value="date_available"> {'Post date'|@translate}
|
||||
</label>
|
||||
</div>
|
||||
<label>{'Date'|@translate}</label>
|
||||
<div class="form-group form-inline">
|
||||
<select id="start_day" name="start_day" class="form-control">
|
||||
<option value="0">--</option>
|
||||
{section name=day start=1 loop=32}
|
||||
<option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
|
||||
{/section}
|
||||
</select>
|
||||
<select id="start_month" name="start_month" class="form-control">
|
||||
{html_options options=$month_list selected=$START_MONTH_SELECTED}
|
||||
</select>
|
||||
<input id="start_year" name="start_year" type="text" size="4" maxlength="4" class="form-control">
|
||||
<input id="start_linked_date" name="start_linked_date" type="hidden" size="10" disabled="disabled">
|
||||
<a class="date_today" href="#" onClick="document.getElementById('start_day').value={$smarty.now|date_format:"%d"};document.getElementById('start_month').value={$smarty.now|date_format:"%m"};document.getElementById('start_year').value={$smarty.now|date_format:"%Y"};return false;">{'today'|@translate}</a>
|
||||
</div>
|
||||
<label>{'End-Date'|@translate}</label>
|
||||
<div class="form-group form-inline">
|
||||
<select id="end_day" name="end_day" class="form-control">
|
||||
<option value="0">--</option>
|
||||
{section name=day start=1 loop=32}
|
||||
<option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
|
||||
{/section}
|
||||
</select>
|
||||
<select id="end_month" name="end_month" class="form-control">
|
||||
{html_options options=$month_list selected=$END_MONTH_SELECTED}
|
||||
</select>
|
||||
<input id="end_year" name="end_year" type="text" size="4" maxlength="4" class="form-control">
|
||||
<input id="end_linked_date" name="end_linked_date" type="hidden" size="10" disabled="disabled">
|
||||
<a class="date_today" href="#" onClick="document.getElementById('end_day').value={$smarty.now|date_format:"%d"};document.getElementById('end_month').value={$smarty.now|date_format:"%m"};document.getElementById('end_year').value={$smarty.now|date_format:"%Y"};return false;">{'today'|@translate}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
{'Search in albums'|@translate}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-lg-7 col-md-9 col-sm-12 col-xs-12">
|
||||
<select id="categories" name="cat[]" multiple>
|
||||
{html_options options=$category_options selected=$category_options_selected}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group checkbox">
|
||||
<label class="checkbox-inline">
|
||||
<input type="checkbox" name="subcats-included" value="1" checked="checked"> {'Search in sub-albums'|@translate}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="submit" name="submit" value="{'Submit'|@translate}" class="btn btn-default btn-primary">
|
||||
<input type="reset" value="{'Reset'|@translate}" class="btn btn-default">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById('search_allwords').focus();
|
||||
//--></script>
|
||||
@@ -0,0 +1,16 @@
|
||||
<div id="slideshow">
|
||||
{include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'}
|
||||
|
||||
<div id="theImage">
|
||||
{$ELEMENT_CONTENT}
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<section id="important-info">
|
||||
<h3>{$current.TITLE}</h3>
|
||||
{if isset($COMMENT_IMG)}
|
||||
<h4 class="imageComment">{$COMMENT_IMG}</h4>
|
||||
{/if}
|
||||
</section>
|
||||
</div>
|
||||
<div>
|
||||
@@ -0,0 +1,34 @@
|
||||
{foreach from=$blocks item=block key=key}
|
||||
<div id="stuffs_block_{$block.ID}" class="content">
|
||||
{if isset($block.TITLE)}
|
||||
<nav class="navbar navbar-default" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<div class="navbar-brand">
|
||||
{if isset($block.TITLE_URL)}
|
||||
<a href="{$block.TITLE_URL}">{$block.TITLE}</a>
|
||||
{else}
|
||||
{$block.TITLE}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="navbar-right">
|
||||
<ul class="nav navbar-nav">
|
||||
{if !empty($block.U_EDIT)}
|
||||
<li>
|
||||
<a href="{$block.U_EDIT}" title="{'edit'|translate}">
|
||||
<span class="glyphicon glyphicon-pencil"></span><span class="glyphicon-text">{'edit'|@translate}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
{/if}
|
||||
|
||||
<div class="container">
|
||||
{include file=$block.TEMPLATE}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
@@ -0,0 +1,59 @@
|
||||
{include file='infos_errors.tpl'}
|
||||
|
||||
<form action="{$block.F_LOGIN_ACTION}" method="post" name="login_form" class="form-horizontal">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
{'Connection settings'|@translate}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="form-group">
|
||||
<label for="username" class="col-sm-2 control-label">{'Username'|@translate}</label>
|
||||
<div class="col-sm-4">
|
||||
<input tabindex="1" class="form-control" type="text" name="username" id="username" maxlength="40" placeholder="{'Username'|@translate}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password" class="col-sm-2 control-label">{'Password'|@translate}</label>
|
||||
<div class="col-sm-4">
|
||||
<input tabindex="2" class="form-control" type="password" name="password" id="password" maxlength="25" placeholder="{'Password'|@translate}">
|
||||
</div>
|
||||
</div>
|
||||
{if $authorize_remembering }
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input tabindex="3" type="checkbox" name="remember_me" id="remember_me" value="1"> {'Auto login'|@translate}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<input type="hidden" name="redirect" value="{$smarty.server.REQUEST_URI|@urlencode}">
|
||||
<input tabindex="4" type="submit" name="login" value="{'Submit'|@translate}" class="btn btn-default btn-primary">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
{if isset($block.U_REGISTER)}
|
||||
<a href="{$block.U_REGISTER}" title="{'Register'|@translate}" class="pwg-state-default pwg-button">
|
||||
<span class="glyphicon glyphicon-user"></span> {'Register'|@translate}
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
{if isset($block.U_LOST_PASSWORD)}
|
||||
<a href="{$block.U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}" class="pwg-state-default pwg-button">
|
||||
<span class="glyphicon glyphicon-lock"></span> {'Forgot your password?'|@translate}
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById('username').focus();
|
||||
//--></script>
|
||||
88
zoesch.de/galerie/themes/bootstrapdefault/template/tags.tpl
Normal file
88
zoesch.de/galerie/themes/bootstrapdefault/template/tags.tpl
Normal file
@@ -0,0 +1,88 @@
|
||||
<nav class="navbar navbar-default" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<div class="navbar-brand"><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}<a href>{'Tags'|@translate}</a></div>
|
||||
</div>
|
||||
<div class="navbar-right">
|
||||
<ul class="nav navbar-nav">
|
||||
{if $display_mode == 'letters'}
|
||||
<li>
|
||||
<a href="{$U_CLOUD}" title="{'show tag cloud'|@translate}">
|
||||
<span class="glyphicon glyphicon-cloud"></span><span class="glyphicon-text">{'Cloud'|@translate}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if $display_mode == 'cloud'}
|
||||
<li>
|
||||
<a href="{$U_LETTERS}" title="{'group by letters'|@translate}" rel="nofollow">
|
||||
<span class="glyphicon glyphicon-sort-by-alphabet"></span><span class="glyphicon-text">{'Letters'|@translate}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{include file='infos_errors.tpl'}
|
||||
|
||||
{if $display_mode == 'cloud' and isset($tags)}
|
||||
<div class="container">
|
||||
{if $theme_config->tag_cloud_type == 'basic'}
|
||||
<div id="tagCloud">
|
||||
{foreach from=$tags item=tag}
|
||||
<span><a href="{$tag.URL}" class="tagLevel{$tag.level}" title="{$tag.counter|@translate_dec:'%d photo':'%d photos'}">{$tag.name}</a></span>
|
||||
{/foreach}
|
||||
</div>
|
||||
{else}
|
||||
{combine_script id='jquery.awesomeCloud' load='footer' path="themes/bootstrapdefault/js/jquery.awesomeCloud.js"}
|
||||
{footer_script require='jquery.awesomeCloud'}{strip}
|
||||
$(document).ready(function(){
|
||||
$("#tagCloudCanvas").awesomeCloud({
|
||||
"size" : {
|
||||
"grid": 12,
|
||||
"factor": 0,
|
||||
"normalize": false
|
||||
},
|
||||
"options": {
|
||||
"color": "gradient",
|
||||
"rotationRatio": 0.2,
|
||||
},
|
||||
"color": {
|
||||
"start": $('#tagCloudGradientStart').css('color'),
|
||||
"end": $('#tagCloudGradientEnd').css('color')
|
||||
},
|
||||
"font": "'Helvetica Neue',Helvetica,Arial,sans-serif",
|
||||
"shape": "circle"
|
||||
});
|
||||
});
|
||||
{/strip}{/footer_script}
|
||||
<div id="tagCloudCanvas">
|
||||
{foreach from=$tags item=tag}
|
||||
<span data-weight="{$tag.counter}"><a href="{$tag.URL}">{$tag.name}</a></span>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div id="tagCloudGradientStart"></div>
|
||||
<div id="tagCloudGradientEnd"></div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $display_mode == 'letters' and isset($letters)}
|
||||
<div class="container">
|
||||
<div id="tagLetters">
|
||||
<div class="menu row">
|
||||
{foreach from=$letters item=letter}
|
||||
<div class="menu-category">
|
||||
<div class="menu-category-name list-group-item active">{$letter.TITLE}</div>
|
||||
{foreach from=$letter.tags item=tag}
|
||||
<a href="{$tag.URL}" class="menu-item list-group-item" title="{$tag.name}">{$tag.name}<span class="badge">{$tag.counter|@translate_dec:'%d photo':'%d photos'}</span></a>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</div> <!-- content -->
|
||||
@@ -0,0 +1,61 @@
|
||||
{if !empty($thumbnails)}
|
||||
{footer_script}
|
||||
var error_icon = "{$ROOT_URL}{$themeconf.icon_dir}/errors_small.png", max_requests = {$maxRequests};
|
||||
{/footer_script}
|
||||
{if $derivative_params->type == "thumb"}
|
||||
{assign var=width value=260}
|
||||
{assign var=height value=180}
|
||||
{else}
|
||||
{assign var=width value=$derivative_params->sizing->ideal_size[0]}
|
||||
{assign var=height value=$derivative_params->sizing->ideal_size[1]}
|
||||
{/if}
|
||||
{define_derivative name='derivative_params' width=$width height=$height crop=true}
|
||||
<style>
|
||||
.placeholder-{$width} {
|
||||
width: {$width}px;
|
||||
height: {$height}px;
|
||||
background: url({$ROOT_URL}{$themeconf.icon_dir}/img_small.png) no-repeat center;
|
||||
}
|
||||
</style>
|
||||
{foreach from=$thumbnails item=thumbnail}
|
||||
{assign var=derivative value=$pwg->derivative($derivative_params, $thumbnail.src_image)}
|
||||
{if !$derivative->is_cached()}
|
||||
{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
|
||||
{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
|
||||
{/if}
|
||||
{include file="grid_classes.tpl" width=$width height=$height}
|
||||
<div class="col-outer {if $smarty.cookies.view == 'list'}col-lg-12 col-md-12 col-sm-12 col-xs-12{else}{$col_class}{/if}" data-grid-classes="{$col_class}">
|
||||
<div class="col-inner">
|
||||
<a class="col-thumbnail" href="{$thumbnail.URL}">
|
||||
<div class="placeholder-{$width}">
|
||||
<img {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}themes/bootstrapdefault/img/transparent.png"
|
||||
data-src="{$derivative->get_url()}"{/if}
|
||||
alt="{$thumbnail.TN_ALT}"
|
||||
title="{$thumbnail.TN_TITLE}">
|
||||
</div>
|
||||
</a>
|
||||
{if $SHOW_THUMBNAIL_CAPTION }
|
||||
<div class="caption">
|
||||
<h3 class="title">
|
||||
<a href="{$thumbnail.URL}" class="ellipsis{if !empty($thumbnail.icon_ts)} recent{/if}">{$thumbnail.NAME}</a>
|
||||
{if !empty($thumbnail.icon_ts)}
|
||||
<img title="{$thumbnail.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent.png" alt="(!)">
|
||||
{/if}
|
||||
</h3>
|
||||
{if isset($thumbnail.NB_COMMENTS)}
|
||||
<p class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments">
|
||||
{$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{if isset($thumbnail.NB_HITS)}
|
||||
<p class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits">
|
||||
{$pwg->l10n_dec('%d view', '%d views',$thumbnail.NB_HITS)}
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
Reference in New Issue
Block a user