mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Forums' map
Добавлена карта форумов.
This commit is contained in:
parent
01933955e1
commit
5470d8a289
6 changed files with 104 additions and 9 deletions
|
@ -280,6 +280,7 @@ foreach ($cat_forums as $cid => $c)
|
|||
|
||||
$template->assign_vars(array(
|
||||
'SHOW_FORUMS' => $forums_count,
|
||||
'SHOW_MAP' => isset($_GET['map']) ? true : false,
|
||||
'PAGE_TITLE' => ($viewcat) ? $cat_title_html[$viewcat] : $lang['HOME'],
|
||||
'NO_FORUMS_MSG' => ($only_new) ? $lang['NO_NEW_POSTS'] : $lang['NO_FORUMS'],
|
||||
|
||||
|
@ -427,4 +428,7 @@ if (IS_AM)
|
|||
// Display page
|
||||
define('SHOW_ONLINE', $show_online_users);
|
||||
|
||||
|
||||
if (isset($_GET['map'])) $template->assign_vars(array('PAGE_TITLE' => $lang['FORUM_MAP']));
|
||||
|
||||
print_page('index.tpl');
|
|
@ -2995,4 +2995,6 @@ $lang['SITEMAP_BING_2'] = 'Add sitemap of site you registered in its settings.';
|
|||
$lang['SITEMAP_ADD_TITLE'] = 'Additional pages for sitemap';
|
||||
$lang['SITEMAP_ADD_PAGE'] = 'Additional pages';
|
||||
$lang['SITEMAP_ADD_EXP_1'] = 'You can specify additional pages on your site (for example, <b>http://torrentpier.me/memberlist.php</b>) which should be included in your sitemap file that you creating.';
|
||||
$lang['SITEMAP_ADD_EXP_2'] = 'Each reference must begin with http(s):// and a new line!';
|
||||
$lang['SITEMAP_ADD_EXP_2'] = 'Each reference must begin with http(s):// and a new line!';
|
||||
|
||||
$lang['FORUM_MAP'] = 'Forums\' map';
|
|
@ -2995,4 +2995,6 @@ $lang['SITEMAP_BING_2'] = 'Добавьте файл sitemap зарегистр
|
|||
$lang['SITEMAP_ADD_TITLE'] = 'Дополнительные страницы для sitemap';
|
||||
$lang['SITEMAP_ADD_PAGE'] = 'Дополнительные страницы';
|
||||
$lang['SITEMAP_ADD_EXP_1'] = 'Здесь вы можете указать дополнительные страницы сайта (например <b>http://torrentpier.me/memberlist.php</b>), которые должны быть включены в создаваемый файл вами файл sitemap.';
|
||||
$lang['SITEMAP_ADD_EXP_2'] = 'Каждая ссылка должна начинаться с http(s):// и новой строки!';
|
||||
$lang['SITEMAP_ADD_EXP_2'] = 'Каждая ссылка должна начинаться с http(s):// и новой строки!';
|
||||
|
||||
$lang['FORUM_MAP'] = 'Карта форумов';
|
|
@ -2995,4 +2995,6 @@ $lang['SITEMAP_BING_2'] = 'Додайте файл sitemap зареєстров
|
|||
$lang['SITEMAP_ADD_TITLE'] = 'Додаткові сторінки для sitemap';
|
||||
$lang['SITEMAP_ADD_PAGE'] = 'Додаткові сторінки';
|
||||
$lang['SITEMAP_ADD_EXP_1'] = 'Тут ви можете вказати додаткові сторінки сайту (наприклад <b>http://torrentpier.me/memberlist.php</b>), які повинні бути включені в створюваний файл вами файл sitemap.';
|
||||
$lang['SITEMAP_ADD_EXP_2'] = 'Кожне посилання має починатись з http(s):// і нової рядки!';
|
||||
$lang['SITEMAP_ADD_EXP_2'] = 'Кожне посилання має починатись з http(s):// і нової рядки!';
|
||||
|
||||
$lang['FORUM_MAP'] = 'Карта форумів';
|
|
@ -12,9 +12,10 @@
|
|||
<!-- IF LOGGED_IN -->
|
||||
<div id="forums_top_links">
|
||||
<div class="floatL">
|
||||
<a href="{U_SEARCH_NEW}" class="med"><b>{L_SEARCH_NEW}</b></a> ·
|
||||
<a href="{U_SEARCH_NEW}" class="med">{L_SEARCH_NEW}</a> ·
|
||||
<a href="{U_SEARCH_SELF_BY_LAST}" class="med">{L_SEARCH_SELF}</a> <a href="#search-my-posts" class="menu-root menu-alt1">{OPEN_MENU_IMG_ALT1}</a> ·
|
||||
<a href="{U_SEARCH_LATEST}" class="med">{L_SEARCH_LATEST}</a>
|
||||
<a href="{U_SEARCH_LATEST}" class="med">{L_SEARCH_LATEST}</a> ·
|
||||
<a href="{U_INDEX}?map=1" class="med bold">{L_FORUM_MAP}</a>
|
||||
</div>
|
||||
<div class="floatR med bold">
|
||||
<a class="menu-root" href="#only-new-options">{L_DISPLAYING_OPTIONS}</a>
|
||||
|
@ -52,6 +53,11 @@
|
|||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF SHOW_FORUMS -->
|
||||
|
||||
<!-- IF SHOW_MAP -->
|
||||
<!-- INCLUDE index_map.tpl -->
|
||||
<!-- ELSE -->
|
||||
|
||||
<!-- BEGIN c -->
|
||||
<div class="category">
|
||||
<h3 class="cat_title"><a href="{c.U_VIEWCAT}">{c.CAT_TITLE}</a></h3>
|
||||
|
@ -131,7 +137,9 @@
|
|||
<div class="cat_separator"></div>
|
||||
<!-- END c -->
|
||||
|
||||
<!-- ELSE / start of !SHOW_FORUMS -->
|
||||
<!-- ENDIF / SHOW_MAP -->
|
||||
|
||||
<!-- ELSE / SHOW_FORUMS -->
|
||||
|
||||
<table class="forumline">
|
||||
<tr><td class="row1 tCenter pad_8">{NO_FORUMS_MSG}</td></tr>
|
||||
|
@ -179,11 +187,11 @@
|
|||
};
|
||||
</script>
|
||||
<div class="hr1" style="margin: 5px 0 4px;"></div>
|
||||
<p id="birthday_today" class="birthday">{WHOSBIRTHDAY_TODAY}</p>
|
||||
<p id="birthday_week" class="birthday">{WHOSBIRTHDAY_WEEK}</p>
|
||||
<p id="birthday_today" class="birthday">{WHOSBIRTHDAY_TODAY}</p>
|
||||
<p id="birthday_week" class="birthday">{WHOSBIRTHDAY_WEEK}</p>
|
||||
<!-- ENDIF -->
|
||||
|
||||
<div class="hr1" style="margin: 5px 0 4px;"></div>
|
||||
<div class="hr1" style="margin: 5px 0 4px;"></div>
|
||||
|
||||
<p>{TOTAL_USERS_ONLINE}<!-- IF IS_ADMIN --> {USERS_ONLINE_COUNTS}<!-- ENDIF --></p>
|
||||
<p>{RECORD_USERS}</p>
|
||||
|
|
77
upload/templates/default/index_map.tpl
Normal file
77
upload/templates/default/index_map.tpl
Normal file
|
@ -0,0 +1,77 @@
|
|||
<style type="text/css">
|
||||
#f-map a { font-size: 12px; text-decoration: none; }
|
||||
#f-map li { margin: 4px 0 0 6px; }
|
||||
#f-map .b { font-weight: bold; }
|
||||
ul.tree-root { margin-left: 0; }
|
||||
ul.tree-root ul > li { list-style: disc; }
|
||||
ul.tree-root ul ul > li { list-style: circle; }
|
||||
ul.tree-root > li { list-style: none !important; padding: 0; margin-left: 0 !important; }
|
||||
.c_title {
|
||||
display: block; margin: 9px 0; padding: 0 0 5px 3px; border-bottom: 1px solid #B7C0C5;
|
||||
color: #800000; font-size: 13px; font-weight: bold; letter-spacing: 1px;
|
||||
}
|
||||
a.hl, a.hl:visited { color: #1515FF; }
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
function qs_highlight_found ()
|
||||
{
|
||||
this.style.display = '';
|
||||
var a = $('a:first', this)[0];
|
||||
var q = $('#q-search').val().toLowerCase();
|
||||
if (q != '' && a.innerHTML.toLowerCase().indexOf(q) != -1) {
|
||||
a.className = 'hl';
|
||||
}
|
||||
else {
|
||||
a.className = '';
|
||||
}
|
||||
}
|
||||
$(function(){
|
||||
$('#q-search').focus().quicksearch('#f-map li', {
|
||||
delay : 300,
|
||||
noResults : '#f-none',
|
||||
show : qs_highlight_found,
|
||||
onAfter : function(){ $('#f-load').hide(); $('#f-map').show(); }
|
||||
});
|
||||
$.each($('#f-map a'), function(i,a){
|
||||
$(a).attr('href', 'viewforum.php?f='+ $(a).attr('href'));
|
||||
});
|
||||
$.each($('span.c_title'), function(i,el){
|
||||
$(el).text( this.title );
|
||||
this.title = '';
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="row1 pad_8 border bw_TRBL" style="margin-top: 4px;">
|
||||
<div style="margin: 20px 56px;">
|
||||
<div style="padding: 0 0 12px 3px;">
|
||||
<form autocomplete="off">
|
||||
<i>{L_FILTER_BY_NAME}:</i> <input type="text" id="q-search" style="width: 200px;">
|
||||
</form>
|
||||
<div id="f-none" style="padding: 25px 0 0 0; display: none;">{L_NO_MATCH}</div>
|
||||
</div>
|
||||
<div id="f-load" style="padding: 6px;"><i class="loading-1">{L_LOADING}</i></div>
|
||||
<div id="f-map" style="display: none;">
|
||||
<!-- BEGIN c -->
|
||||
<ul class="tree-root">
|
||||
<li><span class="b"><span class="c_title" title="{c.CAT_TITLE}" name="{c.CAT_TITLE}"></span></span>
|
||||
<!-- BEGIN f -->
|
||||
<ul>
|
||||
<li><span class="b"><a href="{c.f.FORUM_ID}">{c.f.FORUM_NAME}</a></span>
|
||||
<!-- IF c.f.LAST_SF_ID -->
|
||||
<ul>
|
||||
<!-- BEGIN sf -->
|
||||
<li><span><a href="{c.f.sf.SF_ID}">{c.f.sf.SF_NAME}</a></span></li>
|
||||
<!-- END sf -->
|
||||
</ul>
|
||||
<!-- ENDIF -->
|
||||
</li>
|
||||
</ul>
|
||||
<!-- END f -->
|
||||
</ul>
|
||||
<!-- END c -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
Loading…
Add table
Add a link
Reference in a new issue