Fixed : Link positioning in defined_links.php
This commit is contained in:
parent
0d082a4a0b
commit
2588a139a4
3 changed files with 40 additions and 37 deletions
|
@ -134,7 +134,7 @@ if(!@$in_bg_cron)
|
|||
}
|
||||
|
||||
|
||||
require 'defined_links.php';
|
||||
|
||||
|
||||
|
||||
$pages = new pages();
|
||||
|
@ -205,7 +205,7 @@ if(!@$in_bg_cron)
|
|||
|
||||
//Adding Gravatar
|
||||
require_once('classes/gravatar.class.php');
|
||||
|
||||
require 'defined_links.php';
|
||||
require_once 'languages.php';
|
||||
|
||||
$lang_obj->init();
|
||||
|
|
|
@ -43,39 +43,4 @@ $cbLinks = array
|
|||
if(is_array($Cbucket->links))
|
||||
$Cbucket->links = array_merge($Cbucket->links,$cbLinks);
|
||||
|
||||
/**
|
||||
* Sortings
|
||||
*/
|
||||
function sorting_links()
|
||||
{
|
||||
if(!isset($_GET['sort']))
|
||||
$_GET['sort'] = 'most_recent';
|
||||
if(!isset($_GET['time']))
|
||||
$_GET['time'] = 'all_time';
|
||||
|
||||
$array = array
|
||||
('most_recent' => lang('recent'),
|
||||
'most_viewed' => lang('viewed'),
|
||||
'featured' => lang('featured'),
|
||||
'top_rated' => lang('top_rated'),
|
||||
'most_commented' => lang('commented'),
|
||||
);
|
||||
return $array;
|
||||
}
|
||||
|
||||
function time_links()
|
||||
{
|
||||
$array = array
|
||||
('all_time' => lang('alltime'),
|
||||
'today' => lang('today'),
|
||||
'yesterday' => lang('yesterday'),
|
||||
'this_week' => lang('thisweek'),
|
||||
'last_week' => lang('lastweek'),
|
||||
'this_month' => lang('thismonth'),
|
||||
'last_month' => lang('lastmonth'),
|
||||
'this_year' => lang('thisyear'),
|
||||
'last_year' => lang('lastyear'),
|
||||
);
|
||||
return $array;
|
||||
}
|
||||
?>
|
|
@ -5066,6 +5066,44 @@
|
|||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sortings
|
||||
*/
|
||||
function sorting_links()
|
||||
{
|
||||
if(!isset($_GET['sort']))
|
||||
$_GET['sort'] = 'most_recent';
|
||||
if(!isset($_GET['time']))
|
||||
$_GET['time'] = 'all_time';
|
||||
|
||||
$array = array
|
||||
('most_recent' => lang('recent'),
|
||||
'most_viewed' => lang('viewed'),
|
||||
'featured' => lang('featured'),
|
||||
'top_rated' => lang('top_rated'),
|
||||
'most_commented' => lang('commented'),
|
||||
);
|
||||
return $array;
|
||||
}
|
||||
|
||||
function time_links()
|
||||
{
|
||||
$array = array
|
||||
('all_time' => lang('alltime'),
|
||||
'today' => lang('today'),
|
||||
'yesterday' => lang('yesterday'),
|
||||
'this_week' => lang('thisweek'),
|
||||
'last_week' => lang('lastweek'),
|
||||
'this_month' => lang('thismonth'),
|
||||
'last_month' => lang('lastmonth'),
|
||||
'this_year' => lang('thisyear'),
|
||||
'last_year' => lang('lastyear'),
|
||||
);
|
||||
return $array;
|
||||
}
|
||||
|
||||
include( 'functions_db.php' );
|
||||
include( 'functions_filter.php' );
|
||||
include( 'functions_player.php' );
|
||||
|
|
Loading…
Add table
Reference in a new issue