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:
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
// Check whether we are indeed included by Piwigo.
|
||||
if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
|
||||
|
||||
// Includes
|
||||
include_once(PHPWG_ROOT_PATH . 'admin/include/tabsheet.class.php');
|
||||
require_once(PHPWG_THEMES_PATH . 'bootstrapdefault/include/config.php');
|
||||
|
||||
// Constants
|
||||
define('THEME_ID', basename(dirname(dirname(__FILE__))));
|
||||
define('ADMIN_PATH', get_root_url() . 'admin.php?page=theme&theme=' . THEME_ID);
|
||||
define('TAB_SETTINGS', 'settings');
|
||||
define('TAB_CHANGELOG', 'changelog');
|
||||
define('TAB_ABOUT', 'about');
|
||||
|
||||
// Get current tab
|
||||
$page['tab'] = isset($_GET['tab']) ? $_GET['tab'] : $page['tab'] = TAB_SETTINGS;
|
||||
if (!in_array($page['tab'], array(TAB_SETTINGS, TAB_CHANGELOG, TAB_ABOUT))) {
|
||||
$page['tab'] = TAB_SETTINGS;
|
||||
}
|
||||
|
||||
$themeconfig = new \BootstrapDefault\Config();
|
||||
|
||||
// Save settings
|
||||
if ($page['tab'] == TAB_SETTINGS) {
|
||||
if (isset($_POST['boostrapdefault_settings'])) {
|
||||
$themeconfig->fromPost($_POST);
|
||||
$themeconfig->save();
|
||||
}
|
||||
}
|
||||
|
||||
// TabSheet
|
||||
$tabsheet = new tabsheet();
|
||||
$tabsheet->set_id('bsd');
|
||||
$tabsheet->add(TAB_SETTINGS, l10n('Settings'), ADMIN_PATH . '&tab=' . TAB_SETTINGS);
|
||||
$tabsheet->add(TAB_CHANGELOG, l10n('Change Log'), ADMIN_PATH . '&tab=' . TAB_CHANGELOG);
|
||||
$tabsheet->add(TAB_ABOUT, l10n('About'), ADMIN_PATH . '&tab=' . TAB_ABOUT);
|
||||
$tabsheet->select($page['tab']);
|
||||
$tabsheet->assign();
|
||||
|
||||
// Fetch the template.
|
||||
global $template;
|
||||
|
||||
// Add our template to the global template
|
||||
$template->set_filenames(
|
||||
array(
|
||||
'theme_admin_content' => dirname(__FILE__) . '/template/' . $page['tab'] . '.tpl'
|
||||
)
|
||||
);
|
||||
|
||||
// Assign the template contents to ADMIN_CONTENT
|
||||
$template->assign('theme_config', $themeconfig);
|
||||
$template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content');
|
||||
@@ -0,0 +1,4 @@
|
||||
#configContent fieldset.mainConf label.radio {
|
||||
display: inline-block;
|
||||
width: 120px;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
$url = '../';
|
||||
header( 'Request-URI: '.$url );
|
||||
header( 'Content-Location: '.$url );
|
||||
header( 'Location: '.$url );
|
||||
exit();
|
||||
@@ -0,0 +1,8 @@
|
||||
#configContent {
|
||||
fieldset.mainConf {
|
||||
label.radio {
|
||||
display: inline-block;
|
||||
width: 120px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{combine_css path="themes/bootstrapdefault/admin/css/admin.css"}
|
||||
<div class="titrePage">
|
||||
<h2>{'Bootstrap Default'|@translate} {$TABSHEET_TITLE}</h2>
|
||||
</div>
|
||||
<div id="configContent" style="margin: 0 auto; max-width: 420px">
|
||||
<h3>{'Bootstrap Default'|@translate}</h3>
|
||||
<h4>{'Version'|@translate}: 1.0.7</h4>
|
||||
<h5>{'By'|@translate}: <a href="https://philio.me">Phil Bayfield</a></h5>
|
||||
|
||||
<p>{'A modern and responsive theme for Piwigo built with standard Bootstrap components and using the default Bootstrap theme. Intended for easy customisation using Bootstrap styles or as a parent theme for creating responsive themes for Piwigo.'|@translate}</p>
|
||||
|
||||
<p>{'Download'|@translate}: <a href="http://piwigo.org/ext/extension_view.php?eid=796" target="_blank">http://piwigo.org/ext/extension_view.php?eid=796</a>
|
||||
</p>
|
||||
|
||||
<p>{'Source'|@translate}: <a href="https://github.com/Philio/bootstrapdefault" target="_blank">https://github.com/Philio/bootstrapdefault</a>
|
||||
</p>
|
||||
|
||||
<p><a href="https://github.com/Philio/bootstrapdefault/issues"
|
||||
target="_blank">{'Bug reports and features requests'|@translate}</a>
|
||||
</p>
|
||||
</div>
|
||||
@@ -0,0 +1,109 @@
|
||||
{combine_css path="themes/bootstrapdefault/admin/css/admin.css"}
|
||||
<div class="titrePage">
|
||||
<h2>{'Bootstrap Default'|@translate} {$TABSHEET_TITLE}</h2>
|
||||
</div>
|
||||
<div id="configContent">
|
||||
<fieldset class="mainConf">
|
||||
<legend>1.0.7</legend>
|
||||
<ul>
|
||||
<li>{"Fixes a versioning issue with 1.0.6"|@translate}</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<fieldset class="mainConf">
|
||||
<legend>1.0.6</legend>
|
||||
<ul>
|
||||
<li>{"Fixes a minor error in 1.0.5 related to the user collections plugin"|@translate}</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<fieldset class="mainConf">
|
||||
<legend>1.0.5</legend>
|
||||
<ul>
|
||||
<li>{'Fixed '|@translate} <a href="https://github.com/Philio/bootstrapdefault/issues/44" target="_blank">#27</a> - {"Removes PHP warning when specials menu is hidden"|@translate}</li>
|
||||
<li>{'Merged '|@translate} <a href="https://github.com/Philio/bootstrapdefault/pull/30" target="_blank">#41</a> - {"Adds support for the stuffs plugin"|@translate}</li>
|
||||
<li>{'Merged '|@translate} <a href="https://github.com/Philio/bootstrapdefault/pull/29" target="_blank">#43</a> - {"Adds support for the user collections plugin"|@translate}</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<fieldset class="mainConf">
|
||||
<legend>1.0.4</legend>
|
||||
<ul>
|
||||
<li>{'Merged '|@translate} <a href="https://github.com/Philio/bootstrapdefault/pull/27" target="_blank">#27</a> - {"Fixes issues with rating disaply"|@translate}</li>
|
||||
<li>{'Merged '|@translate} <a href="https://github.com/Philio/bootstrapdefault/pull/30" target="_blank">#30</a> - {"Fixes issues with contextual nav on mobile devices"|@translate}</li>
|
||||
<li>{'Merged '|@translate} <a href="https://github.com/Philio/bootstrapdefault/pull/29" target="_blank">#29</a> - {"Adds support for the Additional Pages plugin"|@translate}</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<fieldset class="mainConf">
|
||||
<legend>1.0.3</legend>
|
||||
<ul>
|
||||
<li>{'Merged '|@translate} <a href="https://github.com/Philio/bootstrapdefault/pull/24" target="_blank">#24</a> - {"Compatibility fixes for Piwigo 2.8"|@translate}</li>
|
||||
<li>{'Fixed '|@translate} <a href="https://github.com/Philio/bootstrapdefault/issues/17" target="_blank">#17</a> - {"Added an option to hide the top menu and jumbotron on picture page"|@translate}</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<fieldset class="mainConf">
|
||||
<legend>1.0.2</legend>
|
||||
<ul>
|
||||
<li>{'Fixed '|@translate} <a href="https://github.com/Philio/bootstrapdefault/issues/14" target="_blank">#14</a> - {"Rating stars appear above side bar"|@translate}</li>
|
||||
<li>{'Fixed '|@translate} <a href="https://github.com/Philio/bootstrapdefault/issues/16" target="_blank">#16</a> - {"Side bar not correctly hidden in Safari"|@translate}</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<fieldset class="mainConf">
|
||||
<legend>1.0.1</legend>
|
||||
<ul>
|
||||
<li>{'Fixed '|@translate} <a href="https://github.com/Philio/bootstrapdefault/issues/12" target="_blank">#12</a> - {"Social settings can't be disabled in admin"|@translate}</li>
|
||||
<li>{'Fixed '|@translate} <a href="https://github.com/Philio/bootstrapdefault/issues/9" target="_blank">#9</a> - {"Title link incorrect when Piwigo is not installed on root of domain"|@translate}</li>
|
||||
<li>{'Fixed '|@translate} <a href="https://github.com/Philio/bootstrapdefault/issues/13" target="_blank">#13</a> - {"Plugins that prefilter image information should now work, e.g. Forecast, OpenStreetMap"|@translate}</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<fieldset class="mainConf">
|
||||
<legend>1.0.0</legend>
|
||||
<ul>
|
||||
<li>{'Minor bugs fixed'|@translate}</li>
|
||||
<li>{'Plugin support improvements'|@translate}</li>
|
||||
<li>{'Added custom CSS support'|@translate}</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<fieldset class="mainConf">
|
||||
<legend>1.0.0-rc2</legend>
|
||||
<ul>
|
||||
<li>{'Added HTML5/canvas alternative tag cloud with corresponding admin setting'|@translate}</li>
|
||||
<li>{'Added option to switch between the default bootstrap theme and no theme'|@translate}</li>
|
||||
<li>{'Small improvements to Bootstrap styles used, e.g. primary buttons'|@translate}</li>
|
||||
<li>{'Fixed '|@translate} <a href="https://github.com/Philio/bootstrapdefault/issues/8" target="_blank">#8</a> - {"GDThumb plugin wasn't working correctly"|@translate}</li>
|
||||
<li>{'Fixed some minor transation issues'|@translate}</li>
|
||||
<li>{'Fixed help popup'|@translate}</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<fieldset class="mainConf">
|
||||
<legend>1.0.0-rc1</legend>
|
||||
<ul>
|
||||
<li>
|
||||
{'Added configuration page in admin'|@translate}
|
||||
<ul>
|
||||
<li>{'Configure social integration settings'|@translate}</li>
|
||||
<li>{'Configure comments'|@translate}</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>{'Added Disqus support'|@translate}</li>
|
||||
<li>{'Disabled calendar functionality completely for now'|@translate}</li>
|
||||
<li>{'Merged'|@translate} <a href="https://github.com/Philio/bootstrapdefault/pull/7" target="_blank">#7</a> - {'Extra quote in index template'|@translate}</li>
|
||||
<li>{'Merged'|@translate} <a href="https://github.com/Philio/bootstrapdefault/pull/4" target="_blank">#4</a> - {'Fix paths for child theme'|@translate}s</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<fieldset class="mainConf">
|
||||
<legend>0.9.9-pr3</legend>
|
||||
<ul>
|
||||
<li>{'Added warning when language switch plugin is enabled with download link to a Bootstrap compatible alternative'|@translate}</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<fieldset class="mainConf">
|
||||
<legend>0.9.9-pr2</legend>
|
||||
<ul>
|
||||
<li>{'Fixed'|@translate} <a href="https://github.com/Philio/bootstrapdefault/issues/1" target="_blank">#1</a> - {"Some plugins didn't load correctly"|@translate}</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<fieldset class="mainConf">
|
||||
<legend>0.9.9-pr1</legend>
|
||||
<ul>
|
||||
<li>{'Initial preview release|@translate'}</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
@@ -0,0 +1,132 @@
|
||||
{combine_css path="themes/bootstrapdefault/admin/css/admin.css"}
|
||||
{combine_script id='common' load='footer' path='admin/themes/default/js/common.js'}
|
||||
<div class="titrePage">
|
||||
<h2>{'Bootstrap Default'|@translate} {$TABSHEET_TITLE}</h2>
|
||||
</div>
|
||||
<form method="post" class="properties">
|
||||
<input type="hidden" name="boostrapdefault_settings" value="true" />
|
||||
<div id="configContent">
|
||||
<fieldset class="mainConf">
|
||||
<legend>{'Bootstrap theme'|@translate}</legend>
|
||||
<ul>
|
||||
<li>
|
||||
<select name="bootstrap_theme">
|
||||
<option value="none"{if $theme_config->bootstrap_theme == 'none'} selected="selected"{/if}>None</option>
|
||||
<option value="default"{if $theme_config->bootstrap_theme == 'default'} selected="selected"{/if}>Default</option>
|
||||
</select>
|
||||
</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<fieldset class="mainConf">
|
||||
<legend>{'Picture page display'|@translate}</legend>
|
||||
<ul>
|
||||
<li>
|
||||
<label class="radio">
|
||||
<input type="radio" name="picture_page" value="normal"{if $theme_config->picture_page == 'normal'} checked="checked"{/if} />
|
||||
{'Normal'|@translate}
|
||||
</label>
|
||||
<label class="radio">
|
||||
<input type="radio" name="picture_page" value="more-space"{if $theme_config->picture_page == 'more-space'} checked="checked"{/if} />
|
||||
{'More space*'|@translate}
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
<br />
|
||||
<span>* Hides the top menu and jumbotron containing the page title and banner</span>
|
||||
</fieldset>
|
||||
<fieldset class="mainConf">
|
||||
<legend>{'Social integration'|@translate}</legend>
|
||||
<ul>
|
||||
<li>
|
||||
<label class="font-checkbox">
|
||||
<span class="icon-check"></span>
|
||||
<input type="checkbox" name="social_enabled"{if $theme_config->social_enabled} checked="checked"{/if}>
|
||||
{'Enabled'|@translate}
|
||||
</label>
|
||||
</li>
|
||||
<li id="social_twitter">
|
||||
<label class="font-checkbox">
|
||||
<span class="icon-check"></span>
|
||||
<input type="checkbox" name="social_twitter"{if $theme_config->social_twitter} checked="checked"{/if}>
|
||||
{'Twitter'|@translate}
|
||||
</label>
|
||||
</li>
|
||||
<li id="social_facebook">
|
||||
<label class="font-checkbox">
|
||||
<span class="icon-check"></span>
|
||||
<input type="checkbox" name="social_facebook"{if $theme_config->social_facebook} checked="checked"{/if}>
|
||||
{'Facebook'|@translate}
|
||||
</label>
|
||||
</li>
|
||||
<li id="social_google_plus">
|
||||
<label class="font-checkbox">
|
||||
<span class="icon-check"></span>
|
||||
<input type="checkbox" name="social_google_plus"{if $theme_config->social_google_plus} checked="checked"{/if}>
|
||||
{'Google+'|@translate}
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<fieldset class="mainConf">
|
||||
<legend>{'Comments'|@translate}</legend>
|
||||
<ul>
|
||||
<li>
|
||||
<label class="radio">
|
||||
<input type="radio" name="comments_type" value="piwigo"{if $theme_config->comments_type == 'piwigo'} checked="checked"{/if} />
|
||||
{'Piwigo'|@translate}
|
||||
</label>
|
||||
<label class="radio">
|
||||
<input id="comments_radio_disqus" type="radio" name="comments_type" value="disqus"{if $theme_config->comments_type == 'disqus'} checked="checked"{/if} />
|
||||
{'Disqus'|@translate}
|
||||
</label>
|
||||
</li>
|
||||
<li id="comments_type_disqus">
|
||||
<label for="comments_disqus_shortname">{'Disqus shortname'|@translate}</label><br />
|
||||
<input id="comments_disqus_shortname" name="comments_disqus_shortname" type="text" value="{$theme_config->comments_disqus_shortname}" size="50" />
|
||||
</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<fieldset class="mainConf">
|
||||
<legend>{'Tag cloud'|@translate}</legend>
|
||||
<ul>
|
||||
<li>
|
||||
<label class="radio">
|
||||
<input type="radio" name="tag_cloud_type" value="basic"{if $theme_config->tag_cloud_type == 'basic'} checked="checked"{/if} />
|
||||
{'Basic'|@translate}
|
||||
</label>
|
||||
<label class="radio">
|
||||
<input type="radio" name="tag_cloud_type" value="html5"{if $theme_config->tag_cloud_type == 'html5'} checked="checked"{/if} />
|
||||
{'HTML 5 canvas'|@translate}
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<fieldset class="mainConf">
|
||||
<legend>{'Custom CSS'|@translate}</legend>
|
||||
<textarea name="custom_css" cols="80" rows="10">{if $theme_config->custom_css}{$theme_config->custom_css}{/if}</textarea>
|
||||
</fieldset>
|
||||
</div>
|
||||
<p class="formButtons">
|
||||
<input type="submit" name="submit" value="Save settings">
|
||||
</p>
|
||||
</form>
|
||||
{footer_script require='jquery'}{strip}
|
||||
(function(){
|
||||
var targets = {
|
||||
'input[name="social_enabled"]': ['#social_twitter', '#social_facebook', '#social_google_plus'],
|
||||
'#comments_radio_disqus': ['#comments_type_disqus'],
|
||||
};
|
||||
|
||||
for (selector in targets) {
|
||||
for (target of targets[selector]) {
|
||||
jQuery(target).toggle(jQuery(selector).is(':checked'));
|
||||
|
||||
(function(target){
|
||||
jQuery(selector).on('change', function() {
|
||||
jQuery(target).toggle($(this).is(':checked'));
|
||||
});
|
||||
})(target);
|
||||
}
|
||||
};
|
||||
}());
|
||||
{/strip}{/footer_script}
|
||||
Reference in New Issue
Block a user