updating default template based on subSilver

This commit is contained in:
orynider
2019-10-06 16:04:50 +03:00
parent f6a6bf638d
commit 0072218bdb
17 changed files with 7559 additions and 29 deletions

View File

@@ -763,7 +763,11 @@ class DirItem extends Item
$lang_name = 'DREHU';
$country_name = 'NEW_CALEDONIA';
break;
case 'pdc':
//Pennsilfaanisch-Deitsche
$lang_name = 'PENNSYLVANIA_DUTCH';
$country_name = 'PENNSYLVANIA';
break;
case 'dk':
$lang_name = 'DANISH';
$country_name = 'DENMARK';
@@ -1065,6 +1069,18 @@ class DirItem extends Item
$lang_name = 'SPANISH_COLOMBIAN';
$country_name = 'COLOMBIA';
break;
// Variety of es-419 Spanish Latin America and the Caribbean
// Spanish language as spoken in
// the Caribbean islands of Cuba,
// Puerto Rico, and the Dominican Republic
// as well as in Panama, Venezuela,
// and the Caribbean coast of Colombia.
case 'es-CU':
case 'es-cu':
// Spanish (Cuba) (es-CU)
$lang_name = 'CUBAN_SPANISH';
$country_name = 'CUBA';
break;
case 'es_CR':
case 'es_cr':
$lang_name = 'SPANISH_COSTA_RICA';
@@ -1157,10 +1173,17 @@ class DirItem extends Item
$lang_name = 'SPANISH_UNITED_STATES';
$country_name = 'UNITED_STATES';
break;
//This dialect is often spoken with an intonation resembling that of the Neapolitan language of Southern Italy, but there are exceptions.
case 'es_AR':
case 'es_ar':
//Spanish (Argentina) (es-AR)
$lang_name = 'RIOPLATENSE_SPANISH_ARGENTINA';
$country_name = 'ARGENTINA';
break;
case 'es_UY':
case 'es_uy':
//Spanish (Uruguay) (es-UY)
$lang_name = 'SPANISH_URUGUAY';
$lang_name = 'RIOPLATENSE_SPANISH_URUGUAY';
$country_name = 'URUGUAY';
break;
case 'es_ve':
@@ -2456,7 +2479,36 @@ class DirItem extends Item
$country_name = 'SYRIA';
break;
//sw Swahili, also known as Kiswahili
case 'sw':
case 'swa':
$lang_name = 'SWAHILI';
$country_name = 'AFRICAN_GREAT_LAKES';
break;
//swa inclusive code
//
//Individual codes:
//swc Congo Swahili
case 'swc':
$lang_name = 'CONGO_SWAHILI';
$country_name = 'CONGO';
break;
//swh Coastal Swahili
case 'swh':
$lang_name = 'COASTAL_SWAHILI';
$country_name = 'AFRIKA_EAST_COAST';
break;
//ymk Makwe
case 'ymk':
$lang_name = 'MAKWE';
$country_name = 'CABO_DELGADO_PROVINCE_OF_MOZAMBIQUE';
break;
//wmw Mwani
case 'wmw':
$lang_name = 'MWANI';
$country_name = 'COAST_OF_CABO_DELGADO_PROVINCE_OF_MOZAMBIQUE';
break;
case 'tc':
$lang_name = 'Turks & Caicos Is';
$country_name = 'TURKS_&_CAICOS_IS';

BIN
flags/language/es_cu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 870 B

BIN
flags/language/pt_br.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
flags/language/quh.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 798 B

BIN
flags/language/ranks.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 B

BIN
flags/language/rap.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 904 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,83 @@
/*************************************************************\
* DYNIFS - Dynamic IFrame Auto Size v1.0.0
*
* Copyright (C) 2006, Markus (phpMiX)
* This script is released under GPL License.
* Feel free to use this script (or part of it) wherever you need
* it ...but please, give credit to original author. Thank you. :-)
* We will also appreciate any links you could give us.
* http://www.phpmix.org
*
* Enjoy! ;-)
\*************************************************************/
var DYNIFS = {
// Storage for known IFrames.
iframes: {},
// Here we save any previously installed onresize handler.
oldresize: null,
// Flag that tell us if we have already installed our onresize handler.
ready: false,
// The document dimensions last time onresize was executed.
dim: [-1,-1],
// Timer ID used to defer the actual resize action.
timerID: 0,
// Obtain the dimensions (width,height) of the given document.
getDim: function(d) {
var w=480, h=580, scr_h, off_h;
if( d.height ) { return [d.width,d.height]; }
with( d.body ) {
if( scrollHeight ) { h=scr_h=scrollHeight; w=scrollWidth; }
if( offsetHeight ) { h=off_h=offsetHeight; w=offsetWidth; }
if( scr_h && off_h ) h=Math.max(scr_h, off_h);
}
return [w,h];
},
// This is our window.onresize handler.
onresize: function() {
// Invoke any previously installed onresize handler.
if( typeof this.oldresize == 'function' ) { this.oldresize(); }
// Check if the document dimensions really changed.
var dim = this.getDim(document);
if( this.dim[0] == dim[0] && this.dim[1] == dim[1] ) return;
// Defer the resize action to prevent endless loop in quirksmode.
if( this.timerID ) return;
this.timerID = setTimeout('DYNIFS.deferred_resize();', 10);
},
// This is where the actual IFrame resize is invoked.
deferred_resize: function() {
// Walk the list of known IFrames to see if they need to be resized.
for( var id in this.iframes ) this.resize(id);
// Store resulting document dimensions.
this.dim = this.getDim(document);
// Clear the timer flag.
this.timerID = 0;
},
// This is invoked when the IFrame is loaded or when the main window is resized.
resize: function(id) {
// Browser compatibility check.
if( !window.frames || !window.frames[id] || !document.getElementById || !document.body )
return;
// Get references to the IFrame window and layer.
var iframe = window.frames[id];
var div = document.getElementById(id);
if( !div ) return;
// Save the IFrame id for later use in our onresize handler.
if( !this.iframes[id] ) {
this.iframes[id] = true;
}
// Should we inject our onresize event handler?
if( !this.ready ) {
this.ready = true;
this.oldresize = window.onresize;
window.onresize = new Function('DYNIFS.onresize();');
}
// This appears to be necessary in MSIE to compute the height
// when the IFrame'd document is in quirksmode.
// OTOH, it doesn't seem to break anything in standards mode, so...
if( document.all ) div.style.height = '0px';
// Resize the IFrame container.
var dim = this.getDim(iframe.document);
div.style.height = (dim[1]+30) + 'px';
}
};

View File

@@ -1,4 +1,6 @@
<thead> </thead>
<tbody class="forabg">
<tr class="{file:tr_class}">
<td class="autoindex_td">
{file:if:is_file} /* if it is a file, make a direct link */
@@ -27,4 +29,5 @@
{file:description}
</td>
{end if:description_file}
</tr>
</tr>

View File

@@ -1,3 +1,5 @@
<thead> </thead>
</tbody>
<tr class="{file:tr_class}">
<td class="autoindex_td">
@@ -22,4 +24,5 @@
{file:description}
</td>
{end if:description_file}
</tr>
</tr>

View File

@@ -2,9 +2,102 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{config:language}">
<head>
<title>{words:index of} {info:dir}</title>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="title" content="Directory Index" />
<meta name="author" content="Beit Dina Bible Arheology and Translation Institute @ beitdina.net" />
<meta name="copyright" content="default template <20> Beit Dina 2019 based on subSilver style <20> 2005 phpBB Group." />
<meta name="keywords" content="Beit, Dina, Bible, Arheology" />
<meta name="description" lang="{config:language}" content="Directory Index. This is the description search engines show when listing your site." />
<meta name="category" content="general" />
<meta name="robots" content="index,follow" />
<meta name="revisit-after" content="7 days" >
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="blue" />
<title>{words:index of} {info:dir} github.com/BeitDina/AutoIndex/</title>
<link href="{config:template}default.css" rel="stylesheet" title="AutoIndex Default" type="text/css" />
<link href="{config:template}alternate.css" rel="alternate stylesheet" title="AutoIndex Alternate" type="text/css" />
<script language="javascript" type="text/javascript"><!--
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages() {
if (document.images ) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}
function set_mx_cookie(in_listID, status)
{
var expDate = new Date();
// expires in 1 year
expDate.setTime(expDate.getTime() + 31536000000);
document.cookie = in_listID + "=" + escape(status) + "; expires=" + expDate.toGMTString();
}
function set_phpbb_cookie(cookieName, cookieValue, lifeTime, path, domain, isSecure)
{
var expDate = new Date();
// expires in 1 year
expDate.setTime(expDate.getTime() + 31536000000);
document.cookie = escape( cookieName ) + "=" + escape( cookieValue ) +
";expires=" + expDate.toGMTString() +
( path ? ";path=" + path : "") + ( domain ? ";domain=" + domain : "") +
( isSecure == 1 ? ";secure" : "");
}
function checkSearch()
{
if (document.search_block.search_engine.value == 'google')
{
window.open('http://www.google.com/search?q=' + document.search_block.search_keywords.value, '_google', '');
return false;
}
else if (document.search_block.search_engine.value == 'site')
{
window.open('http://beitdina.net/forum/index.php?page=5&mode=results&search_terms=all&search_keywords=' + document.search_block.search_keywords.value, '_self', '');
return false;
}
else if (document.search_block.search_engine.value == 'kb')
{
window.open('http://beitdina.net/forum/index.php?page=&mode=search&search_terms=all&search_keywords=' + document.search_block.search_keywords.value, '_self', '');
return false;
}
else if (document.search_block.search_engine.value == 'pafiledb')
{
window.open('http://beitdina.net/forum/index.php?page=&action=search&search_terms=all&search_keywords=' + document.search_block.search_keywords.value, '_self', '');
return false;
}
else
{
return true;
}
}
function full_img(url) {
var url = url;
window.open(url,'','scrollbars=1,toolbar=0,resizable=1,menubar=0,directories=0,status=0, width=img.width, height=img.height');
return;
}
// --></script>
<script language="javascript" type="text/javascript" src="{config:template}rollout.js"></script>
<script language="javascript" type="text/javascript" src="{config:template}rollout_main.js"></script>
<script language="javascript" type="text/javascript" src="{config:template}dynifs.js"></script>
</head>
<body class="autoindex_body">

View File

@@ -0,0 +1,32 @@
function rollup_contract(in_buttonSwitch, in_listID, path)
{
if (document.getElementById) {
listID = document.getElementById(in_listID);
}
else {
return;
}
if (listID.style.display == '') {
listID.style.display = 'none';
in_buttonSwitch.innerHTML = '<img src="' + path + 'expand.gif" border="0" />';
rollup_record_state(in_listID, 0);
}
else {
listID.style.display = '';
in_buttonSwitch.innerHTML = '<img src="' + path + 'contract.gif" border="0" />';
rollup_record_state(in_listID, 1);
}
if (window.event) {
window.event.cancelBubble=true;
}
}
function rollup_record_state(in_listID, status)
{
var expDate = new Date();
// expires in 1 year
expDate.setTime(expDate.getTime() + 31536000000);
document.cookie = in_listID + "=" + escape(status) + "; expires=" + expDate.toGMTString();
}

View File

@@ -0,0 +1,46 @@
function rollup_contract_main(in_buttonSwitch, in_listID, path)
{
var in_listID;
if (document.getElementsByName) {
var listID = document.getElementsByName(in_listID);
}
else {
return;
}
for (var i=0;i<listID.length;i++)
{
if (listID[i].style.display == '') {
listID[i].style.display = 'none';
in_buttonSwitch.innerHTML = '<img src="' + path + 'expand.gif" border="0" />';
var send_cookie = 0;
}
else {
listID[i].style.display = '';
in_buttonSwitch.innerHTML = '<img src="' + path + 'contract.gif" border="0" />';
var send_cookie = 1;
}
if (window.event) {
window.event.cancelBubble=true;
}
}
if (send_cookie == 1) {
rollup_record_state_main(in_listID, 1);
}
else {
rollup_record_state_main(in_listID, 0);
}
}
function rollup_record_state_main(in_listID, status)
{
var expDate = new Date();
// expires in 1 year
expDate.setTime(expDate.getTime() + 31536000000);
document.cookie = in_listID + "=" + escape(status) + "; expires=" + expDate.toGMTString();
}

View File

@@ -21,7 +21,10 @@
{end if:description_file}
</tr>
</table>
<div class="autoindex_small" style="text-align: right;">Powered by <a class="autoindex_a" href="http://autoindex.sourceforge.net/">AutoIndex PHP Script</a></div>
<div class="autoindex_small" style="text-align: right;">
Powered by <a class="autoindex_a" href="http://autoindex.sourceforge.net/">Original AutoIndex PHP Script</a>
and <a class="autoindex_a" href="http://github.com/BeitDina/AutoIndex/">AutoIndex @ Beit Dina</a>
</div>
/* We request that you do not remove the link to the AutoIndex website.
This not only gives respect to the large amount of time given freely by the
developer, but also helps build interest, traffic, and use of AutoIndex. */

View File

@@ -1,23 +1,28 @@
<div>{words:index of} {info:path_nav}</div>
<table class="autoindex_table">
<tr>
<th class="autoindex_th">
<a class="plain_link" href="{sort:filename}" title="{words:sort by} {words:file}">{words:file}</a>
</th>
{if:download_count}
<th class="autoindex_th">
<a class="plain_link" href="{sort:downloads}" title="{words:sort by} {words:downloads}">{words:downloads}</a>
</th>
{end if:download_count}
<th class="autoindex_th">
<a class="plain_link" href="{sort:size}" title="{words:sort by} {words:size}">{words:size}</a>
</th>
<th class="autoindex_th">
<a class="plain_link" href="{sort:m_time}" title="{words:sort by} {words:date}">{words:date}</a>
</th>
{if:description_file}
<th class="autoindex_th">
<a class="plain_link" href="{sort:description}" title="{words:sort by} {words:description}">{words:description}</a>
</th>
{end if:description_file}
</tr>
<table class="tablebg2 autoindex_table" cellspacing="1" width="100%">
<thead>
<tr>
<th class="autoindex_th">
<a class="plain_link" href="{sort:filename}" title="{words:sort by} {words:file}">{words:file}</a>
</th>
{if:download_count}
<th class="row2 table1 topicdetails autoindex_td_right responsive-hide">
<a class="plain_link" href="{sort:downloads}" title="{words:sort by} {words:downloads}">{words:downloads}</a>
</th>
{end if:download_count}
<th class="row2 table1 topicdetails autoindex_td_right responsive-hide">
<a class="plain_link" href="{sort:size}" title="{words:sort by} {words:size}">{words:size}</a>
</th>
<th class="row2 table1 topicdetails autoindex_td_right responsive-show">
<a class="plain_link" href="{sort:m_time}" title="{words:sort by} {words:date}">{words:date}</a>
</th>
{if:description_file}
<th class="autoindex_th">
<a class="plain_link" href="{sort:description}" title="{words:sort by} {words:description}">{words:description}</a>
</th>
{end if:description_file}
</tr>