First commit

This commit is contained in:
Nathan
2026-09-18 20:29:17 -06:00
commit 3b09abe571
2840 changed files with 467153 additions and 0 deletions
@@ -0,0 +1,122 @@
{if isset($errors)}
<div class="errors">
<ul>
{foreach from=$errors item=error}
<li>{$error}</li>
{/foreach}
</ul>
</div>
{/if}
{if isset($infos)}
<div class="infos">
<ul>
{foreach from=$infos item=info}
<li>{$info}</li>
{/foreach}
</ul>
</div>
{/if}
<div id="imageHeaderBar">
<div class="browsePath">
<a href="{$U_HOME}" rel="Home">{'Home'|@translate}</a>
{if !$IS_HOME}{$LEVEL_SEPARATOR}{$SECTION_TITLE}{/if}
{$LEVEL_SEPARATOR}{$current.TITLE}
</div>
<div class="imageNumber">{$PHOTO}</div>
<h2>{$current.TITLE}</h2>
</div>
{if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if}
<div id="imageToolBar">
<div class="actionButtons">
{if isset($U_SLIDESHOW_START)}
<a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
<span class="pwg-icon pwg-icon-slideshow">&nbsp;</span><span class="pwg-button-text">{'slideshow'|@translate}</span>
</a>
{/if}
{if isset($U_SLIDESHOW_STOP)}
<a href="{$U_SLIDESHOW_STOP}" title="{'stop the slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
<span class="pwg-icon pwg-icon-slideshow">&nbsp;</span><span class="pwg-button-text">{'stop the slideshow'|@translate}</span>
</a>
{/if}
{if isset($U_METADATA)}
<a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
<span class="pwg-icon pwg-icon-camera-info">&nbsp;</span><span class="pwg-button-text">{'Show file metadata'|@translate}</span>
</a>
{/if}
{if isset($current.U_DOWNLOAD)}
<a href="{$current.U_DOWNLOAD}" title="{'Download this file'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
<span class="pwg-icon pwg-icon-save">&nbsp;</span><span class="pwg-button-text">{'Download'|@translate}</span>
</a>
{/if}
{if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if}
{if isset($favorite)}
<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}" class="pwg-state-default pwg-button" rel="nofollow">
<span class="pwg-icon pwg-icon-favorite-{if $favorite.IS_FAVORITE}del{else}add{/if}">&nbsp;</span><span class="pwg-button-text">{'Favorites'|@translate}</span>
</a>
{/if}
{if isset($U_SET_AS_REPRESENTATIVE)}
<a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as category representative'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
<span class="pwg-icon pwg-icon-representative">&nbsp;</span><span class="pwg-button-text">{'representative'|@translate}</span>
</a>
{/if}
{if isset($U_ADMIN)}
<a href="{$U_ADMIN}" title="{'Modify information'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
<span class="pwg-icon pwg-icon-edit">&nbsp;</span><span class="pwg-button-text">{'Edit'|@translate}</span>
</a>
{/if}
{if isset($U_CADDIE)}{*caddie management BEGIN*}
<script type="text/javascript">
{literal}function addToCadie(aElement, rootUrl, id)
{
if (aElement.disabled) return;
aElement.disabled=true;
var y = new PwgWS(rootUrl);
y.callService(
"pwg.caddie.add", {image_id: id} ,
{
onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; },
onSuccess: function(result) { aElement.disabled = false; }
}
);
}{/literal}
</script>
<a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL|@escape:'javascript'}', {$current.id}); return false;" title="{'Add to caddie'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
<span class="pwg-icon pwg-icon-caddie-add">&nbsp;</span><span class="pwg-button-text">{'Caddie'|@translate}</span>
</a>
{/if}{*caddie management END*}
</div>
{include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'}
</div> <!-- imageToolBar -->
<div id="theImage">
{$ELEMENT_CONTENT}
{if isset($COMMENT_IMG)}
<p>{$COMMENT_IMG}</p>
{/if}
{if isset($U_SLIDESHOW_STOP) }
<p>
[ <a href="{$U_SLIDESHOW_STOP}">{'stop the slideshow'|@translate}</a> ]
</p>
{/if}
</div>
{if isset($previous) }
<a class="navThumb" id="linkPrev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev">
<img src="{$previous.THUMB_SRC}" alt="{$previous.TITLE}">
</a>
{/if}
{if isset($next) }
<a class="navThumb" id="linkNext" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" rel="next">
<img src="{$next.THUMB_SRC}" alt="{$next.TITLE}">
</a>
{/if}
{if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if}
@@ -0,0 +1,35 @@
<!-- This is a sample of template extensions -->
{if !empty($thumbnails)}
<ul class="thumbnails">
{foreach from=$thumbnails item=thumbnail}
<li>
<span class="wrap1">
<span class="wrap2">
<a href="{$thumbnail.URL}">
<img class="thumbnail" src="{$thumbnail.TN_SRC}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}">
</a>
</span>
<span class="thumbLegend" style="color:#F36;">
&copy; 2008 Piwigo<br>
{if !empty($thumbnail.NAME)}{$thumbnail.NAME}{/if}
{if !empty($thumbnail.ICON_TS)}{$thumbnail.ICON_TS}{/if}
{if isset($thumbnail.NB_COMMENTS)}
<span class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments">
<br>
{$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)}
</span>
{/if}
{if isset($thumbnail.NB_HITS)}
<span class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits">
<br>
{$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.NB_HITS)}
</span>
{/if}
</span>
</span>
</li>
{/foreach}
</ul>
{/if}
@@ -0,0 +1,13 @@
.thumbLegend { padding: 0 6px; color: #666; font-style:italic; font-size: 7px; }
.fld1 { width: 96px; min-width: 96px; padding: 0;
margin: 5px; display: inline;}
.lap2 { display: block; padding: 4px 15px 10px 15px; border: 0;}
.fld1:hover { background-color: #000; }
.fld1 a:hover { border:0; }
.thumbnail { margin: 2px auto; }
/* Advanced hacks for IE 7 */
*+html .thumbnail { display: inline; margin: 0 auto; }
*+html .lap2 span { position: relative; top: 50%; margin: 0 auto; }
*+html .lap2 { display: inline; position: relative; top: 0%; }
*+html .fld1 { width: auto; padding: 6px 0 6px 0; margin-top: 0px;}
*+html .thumbLegend { font-size: 10px; }
@@ -0,0 +1,18 @@
<!-- This is a sample of template extensions -->
{if !empty($thumbnails)}
{html_head}<link rel="stylesheet" type="text/css" href="./template-extension/distributed/samples/my-thumbnails2.css">{/html_head}
<ul class="thumbnails">
{foreach from=$thumbnails item=thumbnail}
<li>
<fieldset class="fld1">
<legend class="thumbLegend">
{if !empty($thumbnail.NAME)}{$thumbnail.NAME}{/if}
</legend>
<a href="{$thumbnail.URL}" class="lap2">
<span><img class="thumbnail" src="{$thumbnail.TN_SRC}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}"></span>
</a>
</fieldset>
</li>
{/foreach}
</ul>
{/if}
@@ -0,0 +1,50 @@
{*
Copied from mainpage_categories.tpl
*}
{if !empty($category_thumbnails)}
{html_head}
<style media="screen,handheld,projection,tv" type="text/css">
#content ul.thumbnailCategories li {ldelim} width:100%; z-index: 55; position: relative;}
#Titling h3 {ldelim} margin:11px 0 -13px; padding:0 3px 0 20px; text-align:left; z-index: 99; position: relative;}
#Titling h3 a {ldelim} background-color: #222; padding: 0 10px; }
#content ul.thumbnailCategories .unbordered {ldelim} width:49%; float:left; margin:0 0 0 5px; }
.content div.thumbnailCategory div.description p.dates {ldelim} margin: 0 45px 0 20px; }
#content .thumbnailCategory div.description .text {ldelim} margin: 0; padding: 0 4px; text-align: justify; }
p.Nb_images {ldelim} text-align: left; color: #444; }
/* hacks */
*+html #Titling h3, * html #Titling h3 {ldelim} font-weight: normal;} /* IE browsers */
</style>
{/html_head}
<ul class="thumbnailCategories" id="Titling"> {* 1st difference: Titling/thumbnail *}
{foreach from=$category_thumbnails item=cat}
<div class="unbordered"> {* W3C HTML non conform *}
<h3> {* 2nd difference: h3 is outside of description *}
<a href="{$cat.URL}">{$cat.NAME}</a>{$cat.ICON_TS}
</h3>
<li>
<div class="thumbnailCategory">
<div class="illustration">
<a href="{$cat.URL}">
<img src="{$cat.TN_SRC}" alt="{$cat.ALT}"
title="{'display this album'|@translate}">
</a>
</div>
<div class="description">
{if isset($cat.INFO_DATES) }
<p class="dates">{$cat.INFO_DATES}</p>
{/if}
<div class="text">
<p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p>
{if not empty($cat.DESCRIPTION)}
<p>{$cat.DESCRIPTION}</p>
{/if}
</div>
</div>
</div>
</li>
</div>
{/foreach}
</ul>
{/if}
@@ -0,0 +1,15 @@
<?php
// +-----------------------------------------------------------------------+
// | This file is part of Piwigo. |
// | |
// | For copyright and license information, please view the COPYING.txt |
// | file that was distributed with this source code. |
// +-----------------------------------------------------------------------+
// Recursive call
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>
@@ -0,0 +1,15 @@
<?php
// +-----------------------------------------------------------------------+
// | This file is part of Piwigo. |
// | |
// | For copyright and license information, please view the COPYING.txt |
// | file that was distributed with this source code. |
// +-----------------------------------------------------------------------+
// Recursive call
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>
@@ -0,0 +1,19 @@
If you want to make some template customization without building a brand new
template, you should use this directory to store yur customized version of the
official template files rather than editing them on place.
Doing this, they won't be lost during the next upgrade.
For example, if you want your own header file just copy
"template/yoga/header.tpl" to this directory with whatever, but significant,
filename you want.
Then edit "include/page_header.php" and replace the line :
$template->set_filenames(array('header'=>'header.tpl'));
by
$template->set_filenames(array('header'=>'../../template-extension/yoga/local/header.tpl'));
Or whatever new filename you gave instead of header.tpl
In future version of PWG, you probably won't have to edit the php code, but
a parameter table instead.
Feel free to ask in the forum for further assistance :
http://piwigo.org/forum
@@ -0,0 +1,15 @@
<?php
// +-----------------------------------------------------------------------+
// | This file is part of Piwigo. |
// | |
// | For copyright and license information, please view the COPYING.txt |
// | file that was distributed with this source code. |
// +-----------------------------------------------------------------------+
// Recursive call
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>