diff options
| author | 2014-06-15 17:49:23 +0200 | |
|---|---|---|
| committer | 2014-06-15 17:49:23 +0200 | |
| commit | 09602acc5f754c3e814b4b7de9d9d4d283ed45ff (patch) | |
| tree | 5c364497d2769f171e9e90b4d99afbe496965528 /app/Models/Themes.php | |
| parent | 81e4638f5a7b80d8c8339b1e32644fd234935f89 (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.php | 4 |
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); +} |
