mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
r414
git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@414 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
281b7e228e
commit
91b51b673b
3 changed files with 20 additions and 19 deletions
|
@ -1555,13 +1555,15 @@ function setup_style ()
|
||||||
$stylesheet = defined('IN_ADMIN') ? 'main.css' : basename($bb_cfg['stylesheet']);
|
$stylesheet = defined('IN_ADMIN') ? 'main.css' : basename($bb_cfg['stylesheet']);
|
||||||
|
|
||||||
$template = new Template(TEMPLATES_DIR . $tpl_dir_name);
|
$template = new Template(TEMPLATES_DIR . $tpl_dir_name);
|
||||||
$css_dir = BB_ROOT . basename(TEMPLATES_DIR) ."/$tpl_dir_name/css/";
|
$css_dir = basename(TEMPLATES_DIR) ."/$tpl_dir_name/css/";
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'BB_ROOT' => BB_ROOT,
|
'BB_ROOT' => BB_ROOT,
|
||||||
'SPACER' => BB_ROOT .'images/spacer.gif',
|
'SPACER' => make_url('/images/spacer.gif'),
|
||||||
'STYLESHEET' => $css_dir . $stylesheet,
|
'STYLESHEET' => make_url($css_dir . $stylesheet),
|
||||||
'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),
|
||||||
|
'SITE_URL' => make_url('/'),
|
||||||
));
|
));
|
||||||
|
|
||||||
require(TEMPLATES_DIR . $tpl_dir_name .'/tpl_config.php');
|
require(TEMPLATES_DIR . $tpl_dir_name .'/tpl_config.php');
|
||||||
|
|
|
@ -245,7 +245,6 @@ $template->assign_vars(array(
|
||||||
'TOPIC_URL' => BB_ROOT . TOPIC_URL,
|
'TOPIC_URL' => BB_ROOT . TOPIC_URL,
|
||||||
|
|
||||||
'AJAX_HTML_DIR' => AJAX_HTML_DIR,
|
'AJAX_HTML_DIR' => AJAX_HTML_DIR,
|
||||||
'AJAX_HANDLER' => BB_ROOT .'ajax.php',
|
|
||||||
|
|
||||||
'ONLY_NEW_POSTS' => ONLY_NEW_POSTS,
|
'ONLY_NEW_POSTS' => ONLY_NEW_POSTS,
|
||||||
'ONLY_NEW_TOPICS' => ONLY_NEW_TOPICS,
|
'ONLY_NEW_TOPICS' => ONLY_NEW_TOPICS,
|
||||||
|
|
|
@ -7,16 +7,16 @@
|
||||||
<meta http-equiv="Content-Style-Type" content="text/css" />
|
<meta http-equiv="Content-Style-Type" content="text/css" />
|
||||||
{META}
|
{META}
|
||||||
<link rel="stylesheet" href="{STYLESHEET}?v={$bb_cfg['css_ver']}" type="text/css">
|
<link rel="stylesheet" href="{STYLESHEET}?v={$bb_cfg['css_ver']}" type="text/css">
|
||||||
<link rel="icon" type="image/png" href="/images/logo/logo_big.png" />
|
<link rel="icon" type="image/png" href="{SITE_URL}images/logo/logo_big.png" />
|
||||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
|
<link rel="shortcut icon" href="{SITE_URL}favicon.ico" type="image/x-icon">
|
||||||
<link rel="search" type="application/opensearchdescription+xml" href="opensearch_desc.xml" title="{SITENAME} (Forum)" />
|
<link rel="search" type="application/opensearchdescription+xml" href="{SITE_URL}opensearch_desc.xml" title="{SITENAME} (Forum)" />
|
||||||
<link rel="search" type="application/opensearchdescription+xml" href="opensearch_desc_bt.xml" title="{SITENAME} (Tracker)" />
|
<link rel="search" type="application/opensearchdescription+xml" href="{SITE_URL}opensearch_desc_bt.xml" title="{SITENAME} (Tracker)" />
|
||||||
|
|
||||||
<script type="text/javascript" src="{#BB_ROOT}misc/js/jquery.pack.js?v={$bb_cfg['js_ver']}"></script>
|
<script type="text/javascript" src="{SITE_URL}misc/js/jquery.pack.js?v={$bb_cfg['js_ver']}"></script>
|
||||||
<script type="text/javascript" src="{#BB_ROOT}misc/js/main.js?v={$bb_cfg['js_ver']}"></script>
|
<script type="text/javascript" src="{SITE_URL}misc/js/main.js?v={$bb_cfg['js_ver']}"></script>
|
||||||
|
|
||||||
<!-- IF INCLUDE_BBCODE_JS -->
|
<!-- IF INCLUDE_BBCODE_JS -->
|
||||||
<script type="text/javascript" src="{#BB_ROOT}misc/js/bbcode.js?v={$bb_cfg['js_ver']}"></script>
|
<script type="text/javascript" src="{SITE_URL}misc/js/bbcode.js?v={$bb_cfg['js_ver']}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var postImg_MaxWidth = screen.width - {POST_IMG_WIDTH_DECR_JS};
|
var postImg_MaxWidth = screen.width - {POST_IMG_WIDTH_DECR_JS};
|
||||||
var postImgAligned_MaxWidth = Math.round(screen.width/3);
|
var postImgAligned_MaxWidth = Math.round(screen.width/3);
|
||||||
|
@ -58,7 +58,7 @@ function initPostImages(context)
|
||||||
$img.bind('click', function(){ return imgFit(this, maxW); });
|
$img.bind('click', function(){ return imgFit(this, maxW); });
|
||||||
if (user.opt_js.i_aft_l) {
|
if (user.opt_js.i_aft_l) {
|
||||||
$('#preload').append($img);
|
$('#preload').append($img);
|
||||||
var loading_icon = '<a href="'+ src +'" target="_blank"><img src="images/pic_loading.gif" alt="" /></a>';
|
var loading_icon = '<a href="'+ src +'" target="_blank"><img src="{SITE_URL}images/pic_loading.gif" alt="" /></a>';
|
||||||
$v.html(loading_icon);
|
$v.html(loading_icon);
|
||||||
if ($.browser.msie) {
|
if ($.browser.msie) {
|
||||||
$v.after('<wbr>');
|
$v.after('<wbr>');
|
||||||
|
@ -167,7 +167,7 @@ $(document).ready(function(){
|
||||||
});
|
});
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
var ajax = new Ajax('{AJAX_HANDLER}', 'POST', 'json');
|
var ajax = new Ajax('{SITE_URL}ajax.php', 'POST', 'json');
|
||||||
|
|
||||||
function getElText (e)
|
function getElText (e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue