本文整理汇总了PHP中slog::isTopicRead方法的典型用法代码示例。如果您正苦于以下问题:PHP slog::isTopicRead方法的具体用法?PHP slog::isTopicRead怎么用?PHP slog::isTopicRead使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类slog
的用法示例。
在下文中一共展示了slog::isTopicRead方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: times
$info['topiczahl'] = $config['topiczahl'];
}
if (!empty($row['prefix']) && isset($prefix_arr[$row['board']][$row['prefix']])) {
$prefix = $prefix_arr[$row['board']][$row['prefix']]['value'];
$row['prefix'] = $lang->phrase('showtopic_prefix_title');
} else {
$row['prefix'] = '';
}
$row['topic'] = $gpc->prepare($row['topic']);
if ($row['type'] != 'd' && $row['type'] != 'w' && $row['type'] != 'f') {
$row['type'] = 's';
}
if (is_id($row['last_name'])) {
$row['last_name'] = $memberdata[$row['last_name']];
}
if ($slog->isTopicRead($row['tid'], $row['last'])) {
$row['firstnew'] = 0;
$row['alt'] = $lang->phrase('forum_icon_old');
$row['src'] = $tpl->img('dir_open');
} else {
$row['firstnew'] = 1;
$row['alt'] = $lang->phrase('forum_icon_new');
$row['src'] = $tpl->img('dir_open2');
}
$row['last'] = str_date($lang->phrase('dformat1'), times($row['last']));
if ($row['posts'] > $info['topiczahl']) {
$row['topic_pages'] = pages($row['posts'] + 1, $info['topiczahl'], "showtopic.php?id=" . $row['id'] . "&", 0, '_small');
} else {
$row['topic_pages'] = '';
}
($code = $plugins->load('editprofile_abos_entry_prepared')) ? eval($code) : null;
示例2: elseif
$row->mark = $info['auto_status'];
}
if ($row->mark == 'n') {
$pref .= $lang->phrase('forum_mark_n');
} elseif ($row->mark == 'a') {
$pref .= $lang->phrase('forum_mark_a');
} elseif ($row->mark == 'b') {
$pref .= $lang->phrase('forum_mark_b');
} elseif ($row->mark == 'g') {
$pref .= $lang->phrase('forum_mark_g');
}
if ($row->sticky == '1') {
$pref .= $lang->phrase('forum_announcement');
}
}
if ($slog->isTopicRead($row->id, $row->last)) {
$firstnew = 0;
if ($row->status == 1 || $row->status == 2) {
$alt = $lang->phrase('forum_icon_closed');
$src = $tpl->img('dir_closed');
} else {
$alt = $lang->phrase('forum_icon_old');
$src = $tpl->img('dir_open');
}
} else {
$firstnew = 1;
if ($row->status == 1 || $row->status == 2) {
$alt = $lang->phrase('forum_icon_closed');
$src = $tpl->img('dir_closed2');
} else {
$alt = $lang->phrase('forum_icon_new');