Jeremy Newman : remove template, merge into plugin
Jeremy Newman
jnewman at wine.codeweavers.com
Tue Jan 19 12:45:30 CST 2016
Module: website
Branch: master
Commit: 120f2717b5973a7affe892cb985c89be4ae630fc
URL: http://source.winehq.org/git/website.git/?a=commit;h=120f2717b5973a7affe892cb985c89be4ae630fc
Author: Jeremy Newman <jnewman at codeweavers.com>
Date: Tue Jan 19 09:52:39 2016 -0600
remove template, merge into plugin
---
include/plugins/language.php | 9 +++------
templates/en/global/lang_row.template | 3 ---
templates/tr/global/lang_row.template | 3 ---
templates/uk/global/lang_row.template | 3 ---
4 files changed, 3 insertions(+), 15 deletions(-)
diff --git a/include/plugins/language.php b/include/plugins/language.php
index dc8da6f..8ea917e 100644
--- a/include/plugins/language.php
+++ b/include/plugins/language.php
@@ -12,12 +12,9 @@ switch ($_PLUGIN['cmd'])
case "list":
foreach ($config->languages as $lang)
{
- $row = array(
- 'lang' => $lang,
- 'langFull' => $data->languages[$lang]['name'],
- 'langHelp' => $data->languages[$lang]['change']
- );
- echo $html->template('local', 'global/lang_row', $row, 1);
+ echo "<li style=\"background-image: url('{$html->base_url()}/images/lang/{$lang}.png'); background-repeat: no-repeat; padding: 0 0 10px 40px;\">\n".
+ " <a href=\"{$html->base_url()}/lang/{$lang}\">{$whq_data->languages[$lang]['name']}</a> · {$whq_data->languages[$lang]['change']}\n".
+ "</li>\n";
}
break;
diff --git a/templates/en/global/lang_row.template b/templates/en/global/lang_row.template
deleted file mode 100644
index cb6c776..0000000
--- a/templates/en/global/lang_row.template
+++ /dev/null
@@ -1,3 +0,0 @@
- <li style="background-image: url('{$root}/images/lang/{$lang}.png'); background-repeat: no-repeat; padding: 0 0 10px 40px;">
- <a href="{$root}/lang/{$lang}">{$langFull}</a> · {$langHelp}
- </li>
diff --git a/templates/tr/global/lang_row.template b/templates/tr/global/lang_row.template
deleted file mode 100644
index cb6c776..0000000
--- a/templates/tr/global/lang_row.template
+++ /dev/null
@@ -1,3 +0,0 @@
- <li style="background-image: url('{$root}/images/lang/{$lang}.png'); background-repeat: no-repeat; padding: 0 0 10px 40px;">
- <a href="{$root}/lang/{$lang}">{$langFull}</a> · {$langHelp}
- </li>
diff --git a/templates/uk/global/lang_row.template b/templates/uk/global/lang_row.template
deleted file mode 100644
index cb6c776..0000000
--- a/templates/uk/global/lang_row.template
+++ /dev/null
@@ -1,3 +0,0 @@
- <li style="background-image: url('{$root}/images/lang/{$lang}.png'); background-repeat: no-repeat; padding: 0 0 10px 40px;">
- <a href="{$root}/lang/{$lang}">{$langFull}</a> · {$langHelp}
- </li>
More information about the wine-cvs
mailing list