示例#1
0
     dress('s_ad_t_onclick', "sendTrackback({$entry['id']}); return false;", $managementView);
     dress('s_ad_d_onclick', "deleteEntry({$entry['id']}); return false;", $managementView);
     dress('ad_div', $managementView, $entryView);
 }
 $author = User::getName($entry['userid']);
 dress('article_rep_author', fireEvent('ViewPostAuthor', $author, $entry['id']), $entryView);
 dress('article_rep_author_link', $blogURL . "/author/" . rawurlencode($author), $entryView);
 dress('article_rep_id', $entry['id'], $entryView);
 dress('article_rep_link', $permalink, $entryView);
 dress('article_rep_rp_rssurl', $context->getProperty('uri.default') . '/rss/comment/' . $entry['id'], $entryView);
 dress('article_rep_tb_rssurl', $context->getProperty('uri.default') . '/rss/trackback/' . $entry['id'], $entryView);
 dress('article_rep_response_rssurl', $context->getProperty('uri.default') . '/rss/response/' . $entry['id'], $entryView);
 dress('article_rep_rp_atomurl', $context->getProperty('uri.default') . '/atom/comment/' . $entry['id'], $entryView);
 dress('article_rep_tb_atomurl', $context->getProperty('uri.default') . '/atom/trackback/' . $entry['id'], $entryView);
 dress('article_rep_response_atomurl', $context->getProperty('uri.default') . '/atom/response/' . $entry['id'], $entryView);
 dress('article_rep_category_body_id', getCategoryBodyIdById($blogid, $entry['category']) ? getCategoryBodyIdById($blogid, $entry['category']) : 'tt-body-category', $entryView);
 dress('article_rep_title', htmlspecialchars(fireEvent('ViewPostTitle', $entry['title'], $entry['id'])), $entryView);
 // 사용자가 작성한 본문은 interface/common/blog/end.php의 removeAllTags() 다음에 처리하기 위한 조치.
 $contentContainer["article_{$entry['id']}"] = getEntryContentView($blogid, $entry['id'], $entry['content'], $entry['contentformatter'], getKeywordNames($blogid));
 dress('article_rep_desc', setTempTag("article_{$entry['id']}"), $entryView);
 dress('article_rep_category', htmlspecialchars(empty($entry['category']) ? _text('분류없음') : $entry['categoryLabel'], $entry['id']), $entryView);
 dress('article_rep_category_link', $context->getProperty('uri.blog') . "/category/" . (empty($entry['category']) ? "" : ($blog['useSloganOnCategory'] ? URL::encode($entry['categoryLabel'], $service['useEncodedURL']) : $entry['category'])), $entryView);
 dress('article_rep_category_rssurl', $context->getProperty('uri.default') . "/rss/category/" . (empty($entry['category']) ? "" : ($blog['useSloganOnCategory'] ? URL::encode($entry['categoryLabel'], $service['useEncodedURL']) : $entry['category'])), $entryView);
 dress('article_rep_category_atomurl', $context->getProperty('uri.default') . "/atom/category/" . (empty($entry['category']) ? "" : ($blog['useSloganOnCategory'] ? URL::encode($entry['categoryLabel'], $service['useEncodedURL']) : $entry['category'])), $entryView);
 dress('article_rep_microformat_published', Timestamp::getISO8601($entry['published']), $entryView);
 dress('article_rep_microformat_updated', Timestamp::getISO8601($entry['modified']), $entryView);
 dress('article_rep_date', fireEvent('ViewPostDate', Timestamp::format5($entry['published']), $entry['published']), $entryView);
 dress('article_rep_date_modified', fireEvent('ViewPostDate', Timestamp::format5($entry['modified']), $entry['modified']), $entryView);
 dress('entry_archive_link', $context->getProperty('uri.blog') . "/archive/" . Timestamp::getDate($entry['published']), $entryView);
 if ($entry['acceptcomment'] || $entry['comments'] > 0) {
     dress('article_rep_rp_link', "loadComment({$entry['id']},1,false,false); return false", $entryView);
示例#2
0
文件: index.php 项目: ragi79/Textcube
} else {
    if (!empty($_POST['modifyCategoryName']) || !empty($_POST['modifyCategoryBodyId'])) {
        $history = modifyCategory($blogid, $_POST['id'], trim($_POST['modifyCategoryName']), trim($_POST['modifyCategoryBodyId'])) ? 'document.getElementById("modifyCategoryName").select();' : '';
        $tempParentId = POD::queryCell("SELECT `parent` FROM `{$database['prefix']}Categories` WHERE `id` = {$_POST['id']} AND `blogid` = " . getBlogId());
        if (preg_match('/^[0-9]+$/', $tempParentId, $temp)) {
            $depth = 2;
        } else {
            $depth = 1;
        }
    } else {
        $history = '';
    }
}
$categories = getCategories($blogid);
$name = getCategoryNameById($blogid, $selected) ? getCategoryNameById($blogid, $selected) : _t('전체');
$bodyid = getCategoryBodyIdById($blogid, $selected);
if (empty($_POST['search']) || $searchColumn === true) {
    $searchParam = true;
} else {
    $searchParam[0] = $_POST['searchColumn'];
    $searchParam[1] = $_POST['search'];
}
require ROOT . '/interface/common/owner/header.php';
?>
						<script type="text/javascript">
							//<![CDATA[
								function removeCategory() {
									if(confirm('<?php 
echo _t('삭제 하시겠습니까?');
?>
')) {
示例#3
0
文件: begin.php 项目: ragi79/Textcube
$view = $skin->outter;
$view = str_replace('[##_SKIN_head_end_##]', getScriptsOnHead() . '[##_SKIN_head_end_##]', $view);
// TO DO : caching this part.
$view = str_replace('[##_SKIN_body_start_##]', getUpperView(isset($paging) ? $paging : null) . '[##_SKIN_body_start_##]', $view);
$view = str_replace('[##_SKIN_body_end_##]', getLowerView() . getScriptsOnFoot() . '[##_SKIN_body_end_##]', $view);
// care the order for js function overloading issue.
$automaticLink = "\t<link rel=\"stylesheet\" href=\"" . $context->getProperty('uri.service') . "/resources/style/system.css\" type=\"text/css\" media=\"screen\" />\n";
dress('SKIN_head_end', $automaticLink . "[##_SKIN_head_end_##]", $view);
if ($context->getProperty('blog.useBlogIconAsIphoneShortcut') == true && file_exists(__TEXTCUBE_ATTACH_DIR__ . "/" . $context->getProperty('blog.id') . "/index.gif")) {
    dress('SKIN_head_end', '<link rel="apple-touch-icon" href="' . $context->getProperty('uri.default') . "/index.gif" . '" />' . "[##_SKIN_head_end_##]", $view);
}
if (defined('__TEXTCUBE_COVER__')) {
    dress('body_id', "tt-body-cover", $view);
} else {
    if (!empty($category)) {
        dress('body_id', getCategoryBodyIdById($blogid, $category) ? getCategoryBodyIdById($blogid, $category) : 'tt-body-category', $view);
    } else {
        if (!empty($search)) {
            dress('body_id', "tt-body-search", $view);
        } else {
            if (!empty($period)) {
                dress('body_id', "tt-body-archive", $view);
                //} else if (isset($list)) {
                //	dress('body_id',$suri['value'],$view);
            } else {
                if ($suri['directive'] == '/' && is_numeric($suri['value']) || $suri['directive'] == '/owner/entry/preview') {
                    dress('body_id', "tt-body-entry", $view);
                } else {
                    if ($suri['directive'] == '/') {
                        dress('body_id', "tt-body-pages", $view);
                    } else {