[Customisation Database Commits] r108 - in /branches/highwayoflife/titania: includes/class_pagination.php includes/mods/mods_main.php language/en/titania_common.php language/en/titania_mods.php mods/index.php
David Lewis
highwayoflife at phpbb.com
Thu Nov 6 10:28:41 CET 2008
Author: HighwayofLife
Date: Thu Nov 6 10:28:40 2008
New Revision: 108
Log:
List view now works quite nicely.
Multiple language changes/fixes.
Modified:
branches/highwayoflife/titania/includes/class_pagination.php
branches/highwayoflife/titania/includes/mods/mods_main.php
branches/highwayoflife/titania/language/en/titania_common.php
branches/highwayoflife/titania/language/en/titania_mods.php
branches/highwayoflife/titania/mods/index.php
Modified: branches/highwayoflife/titania/includes/class_pagination.php
==============================================================================
*** branches/highwayoflife/titania/includes/class_pagination.php (original)
--- branches/highwayoflife/titania/includes/class_pagination.php Thu Nov 6 10:28:40 2008
***************
*** 56,62 ****
*
* @var string
*/
! protected $result_lang = '';
/**
* Template vars, set automatically but may be changed if necessary.
--- 56,62 ----
*
* @var string
*/
! protected $result_lang = 'RETURNED_RESULT';
/**
* Template vars, set automatically but may be changed if necessary.
Modified: branches/highwayoflife/titania/includes/mods/mods_main.php
==============================================================================
*** branches/highwayoflife/titania/includes/mods/mods_main.php (original)
--- branches/highwayoflife/titania/includes/mods/mods_main.php Thu Nov 6 10:28:40 2008
***************
*** 41,51 ****
{
case 'list':
case 'search':
! $this->mod_list();
break;
case 'categories':
default:
$this->mod_categories($id);
break;
}
--- 41,59 ----
{
case 'list':
case 'search':
! // Set desired template
! $this->tpl_name = 'mods/mod_list';
! $this->page_title = 'MODS_LIST';
!
! $this->mod_list($id);
break;
case 'categories':
default:
+ // Set desired template
+ $this->tpl_name = 'mods/mod_categories';
+ $this->page_title = 'MODS_CATEGORIES';
+
$this->mod_categories($id);
break;
}
***************
*** 58,68 ****
{
global $cache, $template, $user;
! // Set desired template
! $this->tpl_name = 'mods/mod_categories';
! $this->page_title = 'MODS_CATEGORIES';
!
! $categories = $cache->get_categories(TAG_TYPE_CATEGORY);
foreach ($categories as $row)
{
$template->assign_block_vars('category', array(
--- 66,72 ----
{
global $cache, $template, $user;
! $categories = $cache->get_categories(TAG_TYPE_MOD_CATEGORY);
foreach ($categories as $row)
{
$template->assign_block_vars('category', array(
***************
*** 77,83 ****
/**
* MOD list and search results
*/
! public function mod_list()
{
global $db, $template, $user;
--- 81,87 ----
/**
* MOD list and search results
*/
! public function mod_list($id)
{
global $db, $template, $user;
***************
*** 131,137 ****
$profile_url = append_sid(TITANIA_ROOT . 'authors/index.' . PHP_EXT, 'mode=profile');
$template->assign_block_vars('contrib', array(
'ID' => $row['contrib_id'],
! 'U_CONTRIB' => append_sid($titania->page, 'mode=details&contrib_id=' . $row['contrib_id']),
'TITLE' => $row['contrib_name'],
'DESC' => $row['contrib_description'],
'RATING' => sprintf('%.2f', $row['contrib_rating']),
--- 135,141 ----
$profile_url = append_sid(TITANIA_ROOT . 'authors/index.' . PHP_EXT, 'mode=profile');
$template->assign_block_vars('contrib', array(
'ID' => $row['contrib_id'],
! 'U_CONTRIB' => append_sid(TITANIA_ROOT . $user->page['page'], 'id=' . $id . 'mode=details&contrib_id=' . $row['contrib_id']),
'TITLE' => $row['contrib_name'],
'DESC' => $row['contrib_description'],
'RATING' => sprintf('%.2f', $row['contrib_rating']),
Modified: branches/highwayoflife/titania/language/en/titania_common.php
==============================================================================
*** branches/highwayoflife/titania/language/en/titania_common.php (original)
--- branches/highwayoflife/titania/language/en/titania_common.php Thu Nov 6 10:28:40 2008
***************
*** 49,55 ****
'LAST_UPDATE' => 'Last Update',
'NOTICE' => 'Notice',
!
// MODs CP names
'MODS_CATEGORIES' => 'MOD Categories',
'MODS_LIST' => 'MODs List',
--- 49,55 ----
'LAST_UPDATE' => 'Last Update',
'NOTICE' => 'Notice',
!
// MODs CP names
'MODS_CATEGORIES' => 'MOD Categories',
'MODS_LIST' => 'MODs List',
***************
*** 69,78 ****
'WARNING' => 'Warning',
// Sorting
! 'SORT_AUTHOR' => 'Sort By Author',
! 'SORT_AUTHOR_RATING' => 'Sort By Author Rating',
! 'SORT_CONTRIBS' => 'Sort By Number of Contributions',
! 'SORT_MODS' => 'Sort By Number of MODs',
! 'SORT_STYLES' => 'Sort By Number of Styles',
));
--- 69,81 ----
'WARNING' => 'Warning',
// Sorting
! 'SORT_AUTHOR' => 'Sort by Author',
! 'SORT_AUTHOR_RATING' => 'Sort by Author rating',
! 'SORT_CONTRIBS' => 'Sort by number of contributions',
! 'SORT_MODS' => 'Sort by number of MODs',
! 'SORT_STYLES' => 'Sort by number of Styles',
!
! 'RETURNED_RESULT' => '%d result found',
! 'RETURNED_RESULTS' => '%d results found',
));
Modified: branches/highwayoflife/titania/language/en/titania_mods.php
==============================================================================
*** branches/highwayoflife/titania/language/en/titania_mods.php (original)
--- branches/highwayoflife/titania/language/en/titania_mods.php Thu Nov 6 10:28:40 2008
***************
*** 53,58 ****
--- 53,64 ----
'NO_MODS' => 'No MODs found',
'NO_CATEGORIES' => 'No Categories defined',
+ 'SORT_CONTRIB_NAME' => 'Sort by MOD title',
+ 'SORT_DOWNLOADS' => 'Sort by downloads',
+ 'SORT_RATING' => 'Sort by MOD rating',
+ 'SORT_TIME_ADDED' => 'Sort by date added',
+ 'SORT_TIME_UPDATED' => 'Sort by date updated',
+
'TOTAL_MODS' => 'Total MODs Found',
));
Modified: branches/highwayoflife/titania/mods/index.php
==============================================================================
*** branches/highwayoflife/titania/mods/index.php (original)
--- branches/highwayoflife/titania/mods/index.php Thu Nov 6 10:28:40 2008
***************
*** 20,26 ****
$cache = new titania_cache();
! $id = request_var('i', '');
$mode = request_var('mode', '');
$module = new p_master();
--- 20,26 ----
$cache = new titania_cache();
! $id = request_var('id', '');
$mode = request_var('mode', '');
$module = new p_master();
More information about the customisationdb-commits
mailing list