tabs to spaces and line endings

This commit is contained in:
Sarjuuk 2013-01-20 01:36:15 +01:00
parent e65315dd3c
commit 656b78358c
20 changed files with 957 additions and 176 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -183,7 +183,7 @@ $lang = array(
'charges' => "cargas",
'expend' => "[expendable]", // drop this shit
'locked' => "Cerrado",
'ratingString' => "%s @ L%s",
'ratingString' => "%s @ L%s",
'heroic' => "Heroico",
'unique' => "Único",
'uniqueEquipped'=> "Único-Equipado",
@ -207,7 +207,7 @@ $lang = array(
'set' => "Conjunto",
'socketBonus' => "Bono de ranura",
'socket' => array(
"Ranura meta", "Ranura roja", "Ranura amarilla", "Ranura azul", -1 => "Ranura prismática "
"Ranura meta", "Ranura roja", "Ranura amarilla", "Ranura azul", -1 => "Ranura prismática "
),
'trigger' => array (
"Uso: ", "Equipar: ", "Probabilidad al acertar: ", null, null,

View file

@ -187,7 +187,7 @@ $lang = array(
'charges' => "Charges",
'expend' => "expendable",
'locked' => "Verrouillé",
'ratingString' => "%s @ L%s",
'ratingString' => "%s @ L%s",
'heroic' => "Héroïque",
'unique' => "Unique",
'uniqueEquipped'=> "Unique - Equipé",
@ -211,7 +211,7 @@ $lang = array(
'set' => "Set",
'socketBonus' => "Bonus de châsse",
'socket' => array(
"Méta-châsse", "Châsse rouge", "Châsse jaune", "Châsse bleue", -1 => "Châsse prismatique"
"Méta-châsse", "Châsse rouge", "Châsse jaune", "Châsse bleue", -1 => "Châsse prismatique"
),
'trigger' => array (
"Utilise: ", "Équipé : ", "Chances quand vous touchez : ", null, null,

View file

@ -187,7 +187,7 @@ $lang = array(
'charges' => "зарядов",
'expend' => "expendable",
'locked' => "Заперт",
'ratingString' => "%s @ L%s",
'ratingString' => "%s @ L%s",
'heroic' => "Героический",
'unique' => "Уникальный",
'uniqueEquipped'=> "Не более 1 в вооружении",
@ -211,7 +211,7 @@ $lang = array(
'set' => "Набор",
'socketBonus' => "При соответствии цвета",
'socket' => array(
"Особое гнездо", "Красное гнездо", "Желтое гнездо", "Синее гнездо", -1 => "Бесцветное гнездо"
"Особое гнездо", "Красное гнездо", "Желтое гнездо", "Синее гнездо", -1 => "Бесцветное гнездо"
),
'trigger' => array (
"Использование: ", "Если на персонаже: ", "Возможный эффект при попадании: ", null,

View file

@ -81,7 +81,7 @@ if (!$smarty->loadCache(array('achievement', $Id), $pageData))
}
$pageData['title'] = ucFirst(trim(str_replace('%s', '', str_replace(',', '', $title->name[0]))));
$smarty->saveCache(array('spell', $Id), $pageData);
$smarty->saveCache(array('spell', $Id), $pageData);
}
else
{
@ -99,9 +99,9 @@ if (!$smarty->loadCache(array('achievement', $Id), $pageData))
$smarty->updatePageVars(array(
'title' => $pageData['title']." - ".Lang::$game['title'],
'path' => "[0, 10, ".$title->template['category']."]",
'tab' => 0, // for g_initHeader($tab)
'type' => TYPEID_TITLE, // 11:Titles
'typeId' => $Id
'tab' => 0, // for g_initHeader($tab)
'type' => TYPEID_TITLE, // 11:Titles
'typeId' => $Id
));
$smarty->assign('community', CommunityContent::getAll(TYPEID_TITLE, $Id)); // comments, screenshots, videos

View file

@ -4,9 +4,9 @@ if (!defined('AOWOW_REVISION'))
die('illegal access');
// Create 'enchants'-file for available locales
// this script requires the following dbc-files to be parsed and available
// Spells, SkillLineAbility, SpellItemEnchantment
// Create 'enchants'-file for available locales
// this script requires the following dbc-files to be parsed and available
// Spells, SkillLineAbility, SpellItemEnchantment
/* Examples
15: {

View file

@ -4,9 +4,9 @@ if (!defined('AOWOW_REVISION'))
die('illegal access');
// Create 'gems'-file for available locales
// this script requires the following dbc-files to be parsed and available
// ItemEnchantment, GemProperties, Spells, Icons
// Create 'gems'-file for available locales
// this script requires the following dbc-files to be parsed and available
// ItemEnchantment, GemProperties, Spells, Icons
/* Example
22460: {
@ -26,7 +26,7 @@ if (!defined('AOWOW_REVISION'))
include 'includes/class.spell.php';
$gemQuery = "
$gemQuery = "
SELECT
it.entry,
it.name,

View file

@ -4,9 +4,9 @@ if (!defined('AOWOW_REVISION'))
die('illegal access');
// Create 'glyphs'-file for available locales
// this script requires the following dbc-files to be parsed and available
// GlyphProperties, Spells, SkillLineAbility
// Create 'glyphs'-file for available locales
// this script requires the following dbc-files to be parsed and available
// GlyphProperties, Spells, SkillLineAbility
/* Example
40896: {

View file

@ -4,9 +4,9 @@ if (!defined('AOWOW_REVISION'))
die('illegal access');
// Create 'itemsets'-file for available locales (and should probably order the itemests_dbc-table too (see below))
// this script requires the following dbc-files to be parsed and available
// GlyphProperties, Spells, SkillLineAbility
// Create 'itemsets'-file for available locales (and should probably order the itemests_dbc-table too (see below))
// this script requires the following dbc-files to be parsed and available
// GlyphProperties, Spells, SkillLineAbility
/* Example
"-447": { // internal id, freely chosen

View file

@ -5,7 +5,7 @@ if (!defined('AOWOW_REVISION'))
// builds 'pets'-file for available locales
// this script requires the following dbc-files to be parsed and available
// this script requires the following dbc-files to be parsed and available
// CreatureFamily, CreatureDisplayInfo, FactionTemplate, AreaTable
// Todo:
@ -15,7 +15,7 @@ if (!defined('AOWOW_REVISION'))
// Since i'm lacking other options this will probably be reimplemented.
/* Example data
30: {
30: {
id:30,
name:'Forest Spider',
minlevel:5,

View file

@ -6,7 +6,7 @@ if (!defined('AOWOW_REVISION'))
// builds image-textures for the talent-calculator
// spellIcons must be extracted and converted to at least medium size
// this script requires the following dbc-files to be parsed and available
// this script requires the following dbc-files to be parsed and available
// Talent, TalentTab, Spell
$query = '

View file

@ -5,7 +5,7 @@ if (!defined('AOWOW_REVISION'))
// builds talent-tree-data for the talent-calculator
// this script requires the following dbc-files to be parsed and available
// this script requires the following dbc-files to be parsed and available
// Talent, TalentTab, Spell, CreatureFamily
// talents

View file

@ -1,6 +1,6 @@
{strip}
new Listview({ldelim}
template:'achievement',
new Listview({ldelim}
template:'achievement',
{if !isset($params.id)}id:'achievements',{/if}
{if !isset($params.tabs)}tabs:tabsRelated,{/if}
{if !isset($params.name)}name:LANG.tab_achievements,{/if}
@ -13,21 +13,21 @@
{$k}:'{$v}',
{/if}
{/foreach}
data:[
{foreach name=i from=$data item=curr}
{ldelim}
id:{$curr.id},
name:'{$curr.name|escape:"javascript"}',
description:'{$curr.description|escape:"javascript"}',
side:{$curr.faction},
points:{$curr.points},
category:{$curr.category},
data:[
{foreach name=i from=$data item=curr}
{ldelim}
id:{$curr.id},
name:'{$curr.name|escape:"javascript"}',
description:'{$curr.description|escape:"javascript"}',
side:{$curr.faction},
points:{$curr.points},
category:{$curr.category},
parentcat:{$curr.parentCat}
{if isset($curr.rewards)}, rewards:{$curr.rewards}{/if}
{if isset($curr.reward)}, reward:'{$curr.reward|escape:"javascript"}'{/if}
{rdelim}
{if $smarty.foreach.i.last}{else},{/if}
{/foreach}
]
{rdelim});
{rdelim}
{if $smarty.foreach.i.last}{else},{/if}
{/foreach}
]
{rdelim});
{/strip}

View file

@ -1,6 +1,6 @@
var _ = g_achievements;
{strip}
{foreach from=$data key=id item=item}
_[{$id}]={ldelim}icon:'{$item.icon|escape:"javascript"}',name_{$user.language}:'{$item.name|escape:"javascript"}'{rdelim};
_[{$id}]={ldelim}icon:'{$item.icon|escape:"javascript"}',name_{$user.language}:'{$item.name|escape:"javascript"}'{rdelim};
{/foreach}
{/strip}

View file

@ -1,7 +1,7 @@
var _ = g_titles;
{strip}
{foreach from=$data key=id item=item}
_[{$id}]={ldelim}
_[{$id}]={ldelim}
name_{$user.language}:'{$item.name|escape:"javascript"}'
{if isset($item.namefemale)}, namefemale_{$user.language}:'{$item.namefemale|escape:"javascript"}'{/if}
{rdelim};

View file

@ -1,28 +1,28 @@
{strip}
var lv_comments = [
{foreach name=forCo from=$community.co key=number item=co}
{ldelim}
number:{$co.number},
user:'{$co.user}',
body:'{$co.body|escape:"javascript"}',
date:'{$co.date|date_format:"%Y/%m/%d %H:%M:%S"}',
{if $co.roles!=0}
roles:{$co.roles},
{/if}
{if $co.indent!=0}
indent:{$co.indent},
{/if}
rating:{$co.rating},
replyTo:{$co.replyto},
purged:{$co.purged},
deleted:0,
raters:[{foreach name=foo2 key=id from=$co.raters item=rater}[{$rater.userid},{$rater.rate}]{if $smarty.foreach.foo2.last}{else},{/if}{/foreach}],
id:{$co.id}
{ldelim}
number:{$co.number},
user:'{$co.user}',
body:'{$co.body|escape:"javascript"}',
date:'{$co.date|date_format:"%Y/%m/%d %H:%M:%S"}',
{if $co.roles!=0}
roles:{$co.roles},
{/if}
{if $co.indent!=0}
indent:{$co.indent},
{/if}
rating:{$co.rating},
replyTo:{$co.replyto},
purged:{$co.purged},
deleted:0,
raters:[{foreach name=foo2 key=id from=$co.raters item=rater}[{$rater.userid},{$rater.rate}]{if $smarty.foreach.foo2.last}{else},{/if}{/foreach}],
id:{$co.id}
,sticky:{$co.sticky}
,userRating:{$co.userRating}
{rdelim}
{if $smarty.foreach.forCo.last}{else},{/if}
{rdelim}
{if $smarty.foreach.forCo.last}{else},{/if}
{/foreach}
];
{/strip}
@ -37,12 +37,12 @@ var lv_screenshots = [
height:{$sc.height},
type:{$page.type},
typeId:{$page.typeId},
{if isset($sc.sticky)}
sticky:{$sc.sticky},
{/if}
{if isset($sc.sticky)}
sticky:{$sc.sticky},
{/if}
caption:'{$sc.caption|escape:"javascript"}'
{rdelim}
{if $smarty.foreach.forSc.last}{else},{/if}
{if $smarty.foreach.forSc.last}{else},{/if}
{/foreach}
];
{/strip}
@ -57,12 +57,12 @@ var lv_videos = [
videoId:'{$vi.videoId}',
type:{$page.type},
typeId:{$page.typeId},
{if isset($vi.sticky)}
sticky:{$vi.sticky},
{/if}
{if isset($vi.sticky)}
sticky:{$vi.sticky},
{/if}
caption:'{$vi.caption|escape:"javascript"}'
{rdelim}
{if $smarty.foreach.forVi.last}{else},{/if}
{if $smarty.foreach.forVi.last}{else},{/if}
{/foreach}
];
{/strip}

View file

@ -1,6 +1,6 @@
{strip}
new Listview({ldelim}
template:'quest',
new Listview({ldelim}
template:'quest',
{if !isset($params.id)}id:'quests',{/if}
{if !isset($params.tabs)}tabs:tabsRelated,{/if}
{if !isset($params.name)}name:LANG.tab_quests,{/if}
@ -13,59 +13,59 @@
{$k}:'{$v}',
{/if}
{/foreach}
data:[
{foreach name=i from=$data item=curr}
{ldelim}
id:'{$curr.id}',
name:'{$curr.name|escape:"quotes"}',
data:[
{foreach name=i from=$data item=curr}
{ldelim}
id:'{$curr.id}',
name:'{$curr.name|escape:"quotes"}',
level:'{$curr.level}',
{if ($curr.reqlevel)}
reqlevel:{$curr.reqlevel},
{/if}
side:'{$curr.side}'
{if isset($curr.itemrewards)}
,itemrewards:[
{section name=j loop=$curr.itemrewards}
[{$curr.itemrewards[j][0]},{$curr.itemrewards[j][1]}]
{if $smarty.section.j.last}{else},{/if}
{/section}
]
{/if}
{if isset($curr.itemchoices)}
,itemchoices:[
{section name=j loop=$curr.itemchoices}
[{$curr.itemchoices[j][0]},{$curr.itemchoices[j][1]}]
{if $smarty.section.j.last}{else},{/if}
{/section}
]
{/if}
{if isset($curr.xp)}
,xp:{$curr.xp}
{/if}
{if isset($curr.titlereward)}
,titlereward:{$curr.titlereward}
{/if}
{if isset($curr.money)}
,money:{$curr.money}
{/if}
{if isset($curr.category)}
,category:{$curr.category}
{/if}
{if isset($curr.category2)}
,category2:{$curr.category2}
{/if}
{if isset($curr.type)}
,type:{$curr.type}
{/if}
{if isset($curr.Daily)}
,daily:1
{/if}
{if ($curr.reqlevel)}
reqlevel:{$curr.reqlevel},
{/if}
side:'{$curr.side}'
{if isset($curr.itemrewards)}
,itemrewards:[
{section name=j loop=$curr.itemrewards}
[{$curr.itemrewards[j][0]},{$curr.itemrewards[j][1]}]
{if $smarty.section.j.last}{else},{/if}
{/section}
]
{/if}
{if isset($curr.itemchoices)}
,itemchoices:[
{section name=j loop=$curr.itemchoices}
[{$curr.itemchoices[j][0]},{$curr.itemchoices[j][1]}]
{if $smarty.section.j.last}{else},{/if}
{/section}
]
{/if}
{if isset($curr.xp)}
,xp:{$curr.xp}
{/if}
{if isset($curr.titlereward)}
,titlereward:{$curr.titlereward}
{/if}
{if isset($curr.money)}
,money:{$curr.money}
{/if}
{if isset($curr.category)}
,category:{$curr.category}
{/if}
{if isset($curr.category2)}
,category2:{$curr.category2}
{/if}
{if isset($curr.type)}
,type:{$curr.type}
{/if}
{if isset($curr.Daily)}
,daily:1
{/if}
{if isset($curr.flags)}
,wflags:$curr.flags {* wflags: &1: disabled/historical; &32: AutoAccept; &64: Hostile(?) *}
{/if}
{rdelim}
{if $smarty.foreach.i.last}{else},{/if}
{/foreach}
]
{rdelim});
{rdelim}
{if $smarty.foreach.i.last}{else},{/if}
{/foreach}
]
{rdelim});
{/strip}

View file

@ -1,6 +1,6 @@
{strip}
new Listview({ldelim}
template:'title',
new Listview({ldelim}
template:'title',
{if !isset($params.id)}id:'titles',{/if}
{if isset($params.note)}_truncated: 1,{/if}
{foreach from=$params key=k item=v}
@ -10,24 +10,24 @@
{$k}:'{$v}',
{/if}
{/foreach}
data:[
{foreach name=i from=$data item=curr}
{ldelim}
data:[
{foreach name=i from=$data item=curr}
{ldelim}
category:{$curr.category},
expansion:{$curr.expansion},
gender:{$curr.gender},
id:{$curr.id},
id:{$curr.id},
side:{$curr.side},
name:'{$curr.name|escape:"javascript"}'
name:'{$curr.name|escape:"javascript"}'
{if isset($curr.namefemale)}
, namefemale:'{$curr.namefemale|escape:"javascript"}'
{/if}
{if isset($curr.source)}
, source:{$curr.source}
{/if}
{rdelim}
{if $smarty.foreach.i.last}{else},{/if}
{/foreach}
]
{rdelim});
{rdelim}
{if $smarty.foreach.i.last}{else},{/if}
{/foreach}
]
{rdelim});
{/strip}

View file

@ -1,20 +1,20 @@
{include file='header.tpl'}
<div id="main">
<div id="main-precontents"></div>
<div id="main-contents" class="main-contents">
<div id="main">
<div id="main-precontents"></div>
<div id="main-contents" class="main-contents">
<script type="text/javascript">
g_initPath({$page.path});
</script>
<script type="text/javascript">
g_initPath({$page.path});
</script>
<div id="lv-titles" class="listview"></div>
<script type="text/javascript">
{include file='bricks/title_table.tpl' data=$data.page params=null}
</script>
<div id="lv-titles" class="listview"></div>
<script type="text/javascript">
{include file='bricks/title_table.tpl' data=$data.page params=null}
</script>
<div class="clear"></div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
{include file='footer.tpl'}