\ No newline at end of file
+echo $twig->render('downloads.html.twig');
+?>
\ No newline at end of file
diff --git a/system/pages/experiencetable.php b/system/pages/experiencetable.php
index 2250bf2e..2ef2506a 100644
--- a/system/pages/experiencetable.php
+++ b/system/pages/experiencetable.php
@@ -3,7 +3,6 @@
* Experience table
*
* @package MyAAC
- * @author Gesior
* @author Slawkens
* @copyright 2017 MyAAC
* @version 0.4.2
@@ -11,42 +10,16 @@
*/
defined('MYAAC') or die('Direct access not allowed!');
$title = 'Experience Table';
-?>
-This is a list of the experience points that are required to advance to the various levels.
-Remember you can also check the respective skill bar in your skill window of the client to check your progress towards the next level.
-
-
diff --git a/system/pages/movies.php b/system/pages/movies.php
index e66721da..dcd41540 100644
--- a/system/pages/movies.php
+++ b/system/pages/movies.php
@@ -21,11 +21,8 @@ There are no movies added yet.
echo ' You can add new movies in phpmyadmin under ' . TABLE_PREFIX . 'movies table.';
return;
}
+
+echo $twig->render('movies.html.twig', array(
+ 'movies' => $movies
+));
?>
-
\ No newline at end of file
diff --git a/system/templates/experience_table.html.twig b/system/templates/experience_table.html.twig
new file mode 100644
index 00000000..03efc671
--- /dev/null
+++ b/system/templates/experience_table.html.twig
@@ -0,0 +1,26 @@
+This is a list of the experience points that are required to advance to the various levels.
+Remember you can also check the respective skill bar in your skill window of the client to check your progress towards the next level.
+
+
+
+
Experience Table
+
+
+ {% for i in 0..config.experiencetable_columns-1 %}
+
+
+
+
Level
+
Experience
+
+ {% for level in i * config.experiencetable_rows + 1..i * config.experiencetable_rows + (config.experiencetable_rows + 1) - 1 %}
+
+
{{ level }}
+
{{ experience[level] }}
+
+ {% endfor %}
+
+
+ {% endfor %}
+
+
\ No newline at end of file
diff --git a/system/templates/faq.html.twig b/system/templates/faq.html.twig
new file mode 100644
index 00000000..561e5e8e
--- /dev/null
+++ b/system/templates/faq.html.twig
@@ -0,0 +1,41 @@
+
+ {% set i = 0 %}
+ {% for faq in faqs %}
+ {% set i = i + 1 %}
+
+
+ {{ faq.question }}
+
{{ faq.answer }}
+
+
+ {% endfor %}
+
+
+
\ No newline at end of file
diff --git a/system/templates/google_analytics.html.twig b/system/templates/google_analytics.html.twig
new file mode 100644
index 00000000..2b424ddd
--- /dev/null
+++ b/system/templates/google_analytics.html.twig
@@ -0,0 +1,9 @@
+
\ No newline at end of file
diff --git a/system/templates/movies.html.twig b/system/templates/movies.html.twig
new file mode 100644
index 00000000..8c34e281
--- /dev/null
+++ b/system/templates/movies.html.twig
@@ -0,0 +1,7 @@
+
+ {% for movie in movies %}
+
{{ movie.title }}
+ Author: {{ movie.author }}
+
+ {% endfor %}
+
\ No newline at end of file
diff --git a/system/templates/news.html.twig b/system/templates/news.html.twig
index 6b085717..2eb0b0ce 100644
--- a/system/templates/news.html.twig
+++ b/system/templates/news.html.twig
@@ -1,7 +1,7 @@
-
{{ date|date(news_date_format) }} -
+
{{ date|date(config.news_date_format) }} -
{{ title }}
{% if author is not empty %}
Author: {{ author }}
diff --git a/system/templates/online.html.twig b/system/templates/online.html.twig
new file mode 100644
index 00000000..58dcec84
--- /dev/null
+++ b/system/templates/online.html.twig
@@ -0,0 +1,112 @@
+
+
+
Server Status
+
+{% if players|length == 0 %}
+
Currently no one is playing on {{ config.lua.serverName }}.
+{% else %}
+
+
+ {% if not status.online %}
+ Server is offline.
+ {% else %}
+ {% if config.online_afk %}
+ {% set players_count = players|length %}
+ {% set afk = players_count - status.players %}
+ {% if afk < 0 %}
+ {% set players = players + afk|abs %}
+ {% set afk = 0 %}
+ {% endif %}
+ Currently there are {{ status.players }} active and {{ afk }} AFK players.
+ Total number of players: {{ players_count }}.
+ {% else %}
+ Currently {{ players|length }} players are online.
+ {% endif %}
+ {% endif %}
+
+
+
+ {# vocation statistics #}
+ {% if config.online_vocations %}
+
+ {% if config.online_vocations_images %}
+
+ {% set i = 0 %}
+ {% for player in players %}
+ {% set i = i + 1 %}
+
+ {% if config.account_country %}
+
{{ player.country_image|raw }}
+ {% endif %}
+ {% if config.online_outfit %}
+
+ {% endif %}
+
{{ player.name|raw }}{{ player.skull }}
+
{{ player.level }}
+
{{ player.vocation }}
+
+ {% endfor %}
+
+{% endif %}
\ No newline at end of file
diff --git a/templates/kathrine/news.html.twig b/templates/kathrine/news.html.twig
index 6672e322..483960eb 100644
--- a/templates/kathrine/news.html.twig
+++ b/templates/kathrine/news.html.twig
@@ -2,7 +2,7 @@