Revert "Minor improvements (#197)"

This reverts commit 1453fc35a1.
This commit is contained in:
Roman Kelesidis 2023-06-26 21:20:55 +07:00
parent 431f66344f
commit febca207c4
5 changed files with 3 additions and 18 deletions

View File

@ -11,7 +11,7 @@
- Corrected translations [\#183](https://github.com/torrentpier/torrentpier-lts/pull/183) ([belomaxorka](https://github.com/belomaxorka)) - Corrected translations [\#183](https://github.com/torrentpier/torrentpier-lts/pull/183) ([belomaxorka](https://github.com/belomaxorka))
- Fixed $bb_cfg['pm_days_keep'] [\#180](https://github.com/torrentpier/torrentpier-lts/pull/180) ([belomaxorka](https://github.com/belomaxorka)) - Fixed $bb_cfg['pm_days_keep'] [\#180](https://github.com/torrentpier/torrentpier-lts/pull/180) ([belomaxorka](https://github.com/belomaxorka))
- IP storage bugfix [\#177](https://github.com/torrentpier/torrentpier-lts/pull/177) ([belomaxorka](https://github.com/belomaxorka)) - IP storage bugfix [\#177](https://github.com/torrentpier/torrentpier-lts/pull/177) ([belomaxorka](https://github.com/belomaxorka))
- Minor improvements [\#172](https://github.com/torrentpier/torrentpier-lts/pull/172), [\#175](https://github.com/torrentpier/torrentpier-lts/pull/175), [\#176](https://github.com/torrentpier/torrentpier-lts/pull/176), [\#178](https://github.com/torrentpier/torrentpier-lts/pull/178), [\#179](https://github.com/torrentpier/torrentpier-lts/pull/179), [\#181](https://github.com/torrentpier/torrentpier-lts/pull/181), [\#187](https://github.com/torrentpier/torrentpier-lts/pull/187), [\#192](https://github.com/torrentpier/torrentpier-lts/pull/192), [\#194](https://github.com/torrentpier/torrentpier-lts/pull/194), [\#195](https://github.com/torrentpier/torrentpier-lts/pull/195), [\#197](https://github.com/torrentpier/torrentpier-lts/pull/197) ([belomaxorka](https://github.com/belomaxorka)) - Minor improvements [\#172](https://github.com/torrentpier/torrentpier-lts/pull/172), [\#175](https://github.com/torrentpier/torrentpier-lts/pull/175), [\#176](https://github.com/torrentpier/torrentpier-lts/pull/176), [\#178](https://github.com/torrentpier/torrentpier-lts/pull/178), [\#179](https://github.com/torrentpier/torrentpier-lts/pull/179), [\#181](https://github.com/torrentpier/torrentpier-lts/pull/181), [\#187](https://github.com/torrentpier/torrentpier-lts/pull/187), [\#192](https://github.com/torrentpier/torrentpier-lts/pull/192), [\#194](https://github.com/torrentpier/torrentpier-lts/pull/194), [\#195](https://github.com/torrentpier/torrentpier-lts/pull/195) ([belomaxorka](https://github.com/belomaxorka))
- Fixed empty user search box [\#171](https://github.com/torrentpier/torrentpier-lts/pull/171) ([belomaxorka](https://github.com/belomaxorka)) - Fixed empty user search box [\#171](https://github.com/torrentpier/torrentpier-lts/pull/171) ([belomaxorka](https://github.com/belomaxorka))
- Added some placeholders for input fields [\#173](https://github.com/torrentpier/torrentpier-lts/pull/173) ([belomaxorka](https://github.com/belomaxorka)) - Added some placeholders for input fields [\#173](https://github.com/torrentpier/torrentpier-lts/pull/173) ([belomaxorka](https://github.com/belomaxorka))

View File

@ -317,9 +317,8 @@ $bb_cfg['templates'] = array(
'default' => 'Стандартный', 'default' => 'Стандартный',
); );
$bb_cfg['tpl_name'] = 'default'; // название шаблона по умолчанию (папка) $bb_cfg['tpl_name'] = 'default'; // название шаблона по умолчанию (папка)
$bb_cfg['stylesheet'] = 'main.css'; // файл стилей используемый шаблоном $bb_cfg['stylesheet'] = 'main.css'; // файл стилей используемый шаблоном
$bb_cfg['tpl_javascript'] = 'scripts.js'; // путь к js файлу со скриптами для шаблона
$bb_cfg['show_sidebar1_on_every_page'] = false; // показывать левый сайд-бар на каждой странице? $bb_cfg['show_sidebar1_on_every_page'] = false; // показывать левый сайд-бар на каждой странице?
$bb_cfg['show_sidebar2_on_every_page'] = false; // показывать правый сайд-бар на каждой странице? $bb_cfg['show_sidebar2_on_every_page'] = false; // показывать правый сайд-бар на каждой странице?

View File

@ -1550,13 +1550,11 @@ function setup_style ()
$template = new Template(TEMPLATES_DIR . $tpl_dir_name); $template = new Template(TEMPLATES_DIR . $tpl_dir_name);
$css_dir = 'styles/' . basename(TEMPLATES_DIR) . '/' . $tpl_dir_name . '/css/'; $css_dir = 'styles/' . basename(TEMPLATES_DIR) . '/' . $tpl_dir_name . '/css/';
$js_path = 'styles/' . basename(TEMPLATES_DIR) . '/' . $tpl_dir_name . '/' . basename($bb_cfg['tpl_javascript']);
$template->assign_vars(array( $template->assign_vars(array(
'BB_ROOT' => BB_ROOT, 'BB_ROOT' => BB_ROOT,
'SPACER' => make_url('styles/images/spacer.gif'), 'SPACER' => make_url('styles/images/spacer.gif'),
'STYLESHEET' => make_url($css_dir . $stylesheet), 'STYLESHEET' => make_url($css_dir . $stylesheet),
'TPL_SCRIPTS' => make_url($js_path),
'EXT_LINK_NEW_WIN' => $bb_cfg['ext_link_new_win'], 'EXT_LINK_NEW_WIN' => $bb_cfg['ext_link_new_win'],
'TPL_DIR' => make_url($css_dir), 'TPL_DIR' => make_url($css_dir),
'SITE_URL' => make_url('/'), 'SITE_URL' => make_url('/'),

View File

@ -21,7 +21,6 @@
<script type="text/javascript" src="{SITE_URL}styles/js/jquery.pack.js?v={$bb_cfg['js_ver']}"></script> <script type="text/javascript" src="{SITE_URL}styles/js/jquery.pack.js?v={$bb_cfg['js_ver']}"></script>
<script type="text/javascript" src="{SITE_URL}styles/js/main.js?v={$bb_cfg['js_ver']}"></script> <script type="text/javascript" src="{SITE_URL}styles/js/main.js?v={$bb_cfg['js_ver']}"></script>
<script type="text/javascript" src="{TPL_SCRIPTS}"></script>
<!-- IF INCLUDE_BBCODE_JS --> <!-- IF INCLUDE_BBCODE_JS -->
<script type="text/javascript" src="{SITE_URL}styles/js/bbcode.js?v={$bb_cfg['js_ver']}"></script> <script type="text/javascript" src="{SITE_URL}styles/js/bbcode.js?v={$bb_cfg['js_ver']}"></script>

View File

@ -1,11 +0,0 @@
/**
Add here your JavaScript Code.
Note: The code entered here will be added in <head> tag.
Example:
var x, y, z;
x = 5;
y = 6;
z = x + y;
alert(z);
*/