Skip to content

Commit

Permalink
expack:
Browse files Browse the repository at this point in the history
- rev.100130.2245.
- Opera 10でLightboxのCSSがシンタックスエラーとなっていたのを修正。
- E_NOTICE削減中。


git-svn-id: http://svn.sourceforge.jp/svnroot/p2-php/p2ex/trunk@827 a8256b1f-a225-0410-95af-91ab0afbf006
  • Loading branch information
rsk committed Jan 30, 2010
1 parent a997d49 commit 9dda670
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 21 deletions.
2 changes: 1 addition & 1 deletion conf/conf.inc.php
Expand Up @@ -7,7 +7,7 @@
// バージョン情報
$_conf = array(
'p2version' => '1.7.29+1.8.x', // rep2のバージョン
'p2expack' => '100130.2200', // 拡張パックのバージョン
'p2expack' => '100130.2245', // 拡張パックのバージョン
'p2name' => 'expack', // rep2の名前
);

Expand Down
8 changes: 1 addition & 7 deletions css/lightbox/lightbox.css
Expand Up @@ -14,7 +14,7 @@
color: #333;
background-color: #eee;
font-size: 90%;
lihe-height: 100%;
line-height: 100%;
text-align: center;
border-bottom: 1px solid #666;
border-right: 1px solid #666;
Expand All @@ -25,12 +25,6 @@
#lightboxOverallView {
background-image: url(../../img/lightbox/overlay.png);
}
* html #lightboxOverallView,
* html #overlay {
background-color: #000;
background-image: url(../../img/lightbox/blank.gif);
filter: Alpha(opacity=50);
}
#lightboxIC2Rank {
margin: 0;
padding: 2px;
Expand Down
10 changes: 0 additions & 10 deletions iv2.php
Expand Up @@ -931,16 +931,6 @@ function iv2_sqlite_unix2date($ts)
no_loop: false,
no_updown: false
};
p2BindReady(function(){
var toolbar = document.getElementById('toolbar');
var toolbarHeight = getCurrentStyle(toolbar).height;
if (toolbarHeight == 'auto') {
toolbarHeight = toolbar.clientHeight;
} else {
toolbarHeight = parsePixels(toolbarHeight);
}
document.getElementById('header').style.height = toolbarHeight + 'px';
}, null);
// ]]>
</script>\n
EOJS;
Expand Down
14 changes: 14 additions & 0 deletions js/iv2.js
Expand Up @@ -176,6 +176,20 @@ function setRank(itemId, rank)
return false;
}

// }}}
// {{{ p2BindReady()

p2BindReady(function(){
var toolbar = document.getElementById('toolbar');
var toolbarHeight = getCurrentStyle(toolbar).height;
if (toolbarHeight == 'auto') {
toolbarHeight = toolbar.clientHeight;
} else {
toolbarHeight = parsePixels(toolbarHeight);
}
document.getElementById('header').style.height = toolbarHeight + 'px';
}, null);

// }}}

/*
Expand Down
3 changes: 2 additions & 1 deletion lib/DownloadDatMachiBbs.php
Expand Up @@ -99,7 +99,7 @@ static public function invoke(ThreadRead $thread)
while ($thread->gotnum < $resnum) {
$abn = "あぼーん<>あぼーん<>あぼーん<>あぼーん<>";
if ($thread->gotnum == 1) {
$abn .= $lar[4];
$abn .= $lar[4]; // スレタイトル
}
$abn .= "\n";
fwrite($fp, $abn);
Expand All @@ -108,6 +108,7 @@ static public function invoke(ThreadRead $thread)
// 行を書き込む
fwrite($fp, implode('<>', $lar) . "\n");
} else {
$thread->gotnum--;
$lineno = $i + 1;
P2Util::pushInfoHtml("<p>rep2 info: dat書式エラー: line {$lineno} of {$url}.</p>");
break;
Expand Down
3 changes: 3 additions & 0 deletions lib/expack/ic2/templates/_iv2_lightbox.tpl.html
Expand Up @@ -2,3 +2,6 @@
<script type="text/javascript" src="js/lightbox/lightbox_plus.js?{p2vid:h}"></script>
<script type="text/javascript" src="js/lightbox/lightbox_ic2ext.js?{p2vid:h}"></script>
<link rel="stylesheet" type="text/css" href="css/lightbox/lightbox.css?{p2vid:h}" />
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="css/lightbox/lightbox-ie6.css" />
<![endif]-->
2 changes: 1 addition & 1 deletion style/read_css.inc
Expand Up @@ -19,7 +19,7 @@ if (isset($STYLE['respop_color']) && strlen($STYLE['respop_color']) > 0) {
$respop_color = '';
}

if ($STYLE['fontfamily_bold']) {
if (!empty($STYLE['fontfamily_bold'])) {
$fontstyle_bold = empty($STYLE['fontstyle_bold']) ? 'normal' : $STYLE['fontstyle_bold'];
$fontweight_bold = empty($STYLE['fontweight_bold']) ? 'normal' : $STYLE['fontweight_bold'];
echo <<<EOSTYLE
Expand Down
2 changes: 1 addition & 1 deletion style/style_css.inc
Expand Up @@ -30,7 +30,7 @@ input,option,select,textarea{
EOSTYLE;
}

if ($STYLE['fontfamily_bold']) {
if (!empty($STYLE['fontfamily_bold'])) {
$fontstyle_bold = empty($STYLE['fontstyle_bold']) ? 'normal' : $STYLE['fontstyle_bold'];
$fontweight_bold = empty($STYLE['fontweight_bold']) ? 'normal' : $STYLE['fontweight_bold'];
echo <<<EOSTYLE
Expand Down

0 comments on commit 9dda670

Please sign in to comment.