Example #1
0
echo '</td>';
// アクション
echo '<td>';
echo toolbar_i_action_thread_button('img/glyphish/icons2/12-eye.png', 'アクション', $aThread);
echo '</td>';
// 書き込む
echo '<td>';
if (!$aThread->diedat) {
    if (empty($_conf['disable_res'])) {
        $escaped_url = "post_form.php?{$host_bbs_key_q}&amp;rescount={$aThread->rescount}{$ttitle_en_q}{$_conf['k_at_a']}";
        echo toolbar_i_standard_button('img/glyphish/icons2/08-chat.png', '書込', $escaped_url);
    } else {
        echo toolbar_i_opentab_button('img/glyphish/icons2/08-chat.png', '元スレ', $motothre_url);
    }
} else {
    echo toolbar_i_disabled_button('img/glyphish/icons2/08-chat.png', '書込');
}
echo '</td>';
// }}}
echo '</tr></tbody></table>';
echo '</div>';
// }}}
// ImageCache2
if ($_conf['expack.ic2.enabled']) {
    if (!function_exists('ic2_loadconfig')) {
        include P2EX_LIB_DIR . '/ImageCache2/bootstrap.php';
    }
    $ic2conf = ic2_loadconfig();
    if ($ic2conf['Thumb1']['width'] > 80) {
        include P2EX_LIB_DIR . '/ImageCache2/templates/info-v.tpl.html';
    } else {
Example #2
0
/**
 * 外部アプリ等でスレッドを開くボタン
 *
 * @param string $icon
 * @param string $label (fallback)
 * @param Thread $aThread
 * @return string
 */
function toolbar_i_action_thread_button($icon, $label, Thread $aThread)
{
    global $_conf;
    $type = _toolbar_i_client_type();
    $pattern = $_conf["expack.tba.{$type}.thread_uri"];
    if (!$pattern) {
        return toolbar_i_disabled_button($icon, $label);
    }
    $url = $aThread->getMotoThread(true, '');
    $uri = p2h(strtr($pattern, array('$time' => time(), '$host' => rawurlencode($aThread->host), '$bbs' => rawurlencode($aThread->bbs), '$key' => rawurlencode($aThread->key), '$ls' => rawurlencode($aThread->ls), '$url' => $url, '$eurl' => rawurlencode($url), '$path' => preg_replace('!^https?://!', '', $url))), false);
    $title = $_conf["expack.tba.{$type}.thread_title"];
    if ($title !== '') {
        $label = p2h($title, false);
    }
    return _toolbar_i_button($icon, $label, $uri);
}
Example #3
0
    echo '<table><tbody><tr>';
    echo '<td colspan="4">';
    echo kspform($aThread);
    echo '</td>';
    $escaped_url = 'iv2.php?field=memo&amp;key=' . rawurlencode($aThread->ttitle) . "&amp;session_no_close=1{$_conf['k_at_a']}";
    echo '<td>';
    if ($_conf['expack.ic2.thread_imagecount']) {
        require_once P2EX_LIB_DIR . '/ic2_getcount.inc.php';
        $cnt = 0;
        try {
            $cnt = getIC2ImageCount($aThread->ttitle);
        } catch (Exception $e) {
            $cnt = -1;
        }
        if ($cnt == 0) {
            echo toolbar_i_disabled_button('img/glyphish/icons2/42-photos.png', '画像');
        } else {
            echo toolbar_i_opentab_button('img/glyphish/icons2/42-photos.png', '画像' . ($cnt < 0 ? '(?)' : "({$cnt})"), $escaped_url);
        }
    } else {
        echo toolbar_i_opentab_button('img/glyphish/icons2/42-photos.png', '画像', $escaped_url);
    }
    echo '</td></tr></tbody></table>';
} else {
    echo kspform($aThread);
}
// }}}
echo '</div>';
// }}}
// {{{ レス検索フォーム
$htm['rf_hidden_fields'] = ResFilterElement::getHiddenFields($aThread->host, $aThread->bbs, $aThread->key);
echo '</td>';
// 殿堂入り
echo '<td>';
echo toolbar_i_palace_button('img/glyphish/icons2/108-badge.png', '殿堂入り', $thread_info);
echo '</td>';
// スレッドあぼーん
echo '<td>';
echo toolbar_i_aborn_button('img/glyphish/icons2/128-bone.png', 'あぼーん', $thread_info);
echo '</td>';
// ログ削除
echo '<td>';
if (file_exists($aThread->keydat)) {
    $escaped_url = "info.php?{$host_bbs_key_q}{$ttitle_en_q}&amp;dele=1{$_conf['k_at_a']}";
    echo toolbar_i_standard_button('img/glyphish/icons2/64-zap.png', 'ログ削除', $escaped_url);
} else {
    echo toolbar_i_disabled_button('img/glyphish/icons2/64-zap.png', 'ログ削除');
}
echo '</td>';
echo '</tr>';
// }}}
echo '</tbody></table>';
// {{{ その他 - SPMフォーム
echo kspform($aThread);
// }}}
echo '</div>';
// }}}
// {{{ レス検索フォーム
$htm['rf_hidden_fields'] = ResFilterElement::getHiddenFields($aThread->host, $aThread->bbs, $aThread->key);
$htm['rf_word_field'] = ResFilterElement::getWordField(array('autocorrect' => 'off', 'autocapitalize' => 'off'));
$htm['rf_field_field'] = ResFilterElement::getFieldField();
$htm['rf_method_field'] = ResFilterElement::getMethodField();
Example #5
0
}
echo '</td>';
// スレ検索
echo '<td>';
if (!$spmode_without_palace_or_favita) {
    echo toolbar_i_showhide_button('img/glyphish/icons2/06-magnifying-glass.png', '検索', 'sb_toolbar_filter');
} else {
    echo toolbar_i_disabled_button('img/glyphish/icons2/06-magnifying-glass.png', '検索');
}
echo '</td>';
// お気に板
echo '<td>';
if ($board_info) {
    echo toolbar_i_favita_button('img/glyphish/icons2/28-star.png', 'お気に板', $board_info);
} else {
    echo toolbar_i_disabled_button('img/glyphish/icons2/28-star.png', 'お気に板');
}
echo '</td>';
// その他
echo '<td>';
echo toolbar_i_showhide_button('img/gp0-more.png', 'その他', 'sb_toolbar_extra');
echo '</td>';
// 下へ
echo '<td>';
echo toolbar_i_standard_button('img/gp2-down.png', '下', '#footer');
echo '</td>';
echo '</tr></tbody></table>';
// }}}
// {{{ その他のツール
echo '<div id="sb_toolbar_extra" class="extra">';
// {{{ その他 - お気に入りセット