list($entries, $paging) = getEntriesWithPagingByTag($blogid, $tag, $suri['page'], $blog['entriesOnList'], $skinSetting['showListOnTag'] == 3 ? $blog['entriesOnPage'] : $blog['entriesOnList']); if ($skinSetting['showListOnTag'] == 1) { $skinSetting['showListWithTotalEntries'] = true; } $preservedEntries = $entries; unset($entries); } // Now, print starts. require ROOT . '/interface/common/blog/begin.php'; $cache->reset(); if (Setting::getBlogSettingGlobal('useKeywordAsTag', true) == true) { $cache->name = 'keyword-' . $tag . '-'; if ($cache->load()) { require ROOT . '/interface/common/blog/entries.php'; } else { $entries[0] = getKeylogByTitle(getBlogId(), $suri['value']); if (!empty($entries[0])) { require ROOT . '/interface/common/blog/entries.php'; unset($entries); } } } if ($skinSetting['showListOnTag'] != 0) { $cache = $listCache; require ROOT . '/interface/common/blog/list.php'; } unset($cache); if ($skinSetting['showListOnTag'] != 2) { $entries = $preservedEntries; require ROOT . '/interface/common/blog/entries.php'; }
<?php /// Copyright (c) 2004-2012, Needlworks / Tatter Network Foundation /// All rights reserved. Licensed under the GPL. /// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT) define('__TEXTCUBE_KEYLOG__', true); require ROOT . '/library/preprocessor.php'; if (strlen($suri['value'])) { if (!($keylog = getKeylogByTitle($blogid, $suri['value']))) { Respond::ErrorPage(); exit; } $entries = array(); $entries = getEntriesByKeyword($blogid, $keylog['title']); $skinSetting['keylogSkin'] = fireEvent('setKeylogSkin'); if (!is_null($skinSetting['keylogSkin'])) { require ROOT . '/interface/common/blog/keylog.php'; } else { Respond::ErrorPage(_t('No handling plugin')); } } else { $keywords = getKeywordNames($blogid, true); $skinSetting['keylogSkin'] = fireEvent('setKeylogSkin'); require ROOT . '/interface/common/blog/begin.php'; require ROOT . '/interface/common/blog/keywords.php'; require ROOT . '/interface/common/blog/end.php'; }
function getKeyword($blogid, $keyword) { return getKeylogByTitle($blogid, $keyword); }