aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Themes.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-06-15 17:49:23 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-06-15 17:49:23 +0200
commit09602acc5f754c3e814b4b7de9d9d4d283ed45ff (patch)
tree5c364497d2769f171e9e90b4d99afbe496965528 /app/Models/Themes.php
parent81e4638f5a7b80d8c8339b1e32644fd234935f89 (diff)
Add two wrappers (_t() and _i())
- _t() is a wrapper for Minz_Translate::t() - Improve coding style of Translate.php - _i() is a wrapper for FreshRSS::icon() - queries.phtml shows how they work - It is a lot easier to read files with these functions :)
Diffstat (limited to 'app/Models/Themes.php')
-rw-r--r--app/Models/Themes.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Models/Themes.php b/app/Models/Themes.php
index 2e2c3f9cd..b4e8f4ccc 100644
--- a/app/Models/Themes.php
+++ b/app/Models/Themes.php
@@ -110,3 +110,7 @@ class FreshRSS_Themes extends Minz_Model {
'<img class="icon" src="' . Minz_Url::display($url) . '" alt="' . $alts[$name] . '" />';
}
}
+
+function _i($icon, $url_only = false) {
+ return FreshRSS_Themes::icon($icon, $url_only);
+}