diff --git a/Web/Presenters/templates/@layout.xml b/Web/Presenters/templates/@layout.xml index 811548cd..7b879221 100644 --- a/Web/Presenters/templates/@layout.xml +++ b/Web/Presenters/templates/@layout.xml @@ -239,6 +239,14 @@ + +
+ {_news} +
+ {php echo OPENVK_ROOT_CONF['openvk']['preferences']['news']['title'];} +

+ Подробнее » +
{tr("you_still_have_x_points", $thisUser->getCoins())|noescape} diff --git a/Web/static/css/main.css b/Web/static/css/main.css index 928ef300..0c3ecb2f 100644 --- a/Web/static/css/main.css +++ b/Web/static/css/main.css @@ -2314,7 +2314,7 @@ li { padding-left: 15px; } -#votesBalance { +#votesBalance, #news { margin-top: 10px; padding: 7px; background-color: #f6f6f6; @@ -2323,6 +2323,12 @@ li { user-select: none; } +#news b +{ + color: #8A0000; + font-size: 12px; +} + .cookies-popup { position: fixed; bottom: 0; diff --git a/locales/en.strings b/locales/en.strings index ac328308..279268f3 100644 --- a/locales/en.strings +++ b/locales/en.strings @@ -1138,6 +1138,8 @@ "increased_your_rating_by" = "increased your rating by"; +"news" = "News"; + /* Gifts */ "gift" = "Gift"; diff --git a/locales/ru.strings b/locales/ru.strings index 3f036473..20fed2b0 100644 --- a/locales/ru.strings +++ b/locales/ru.strings @@ -1078,6 +1078,8 @@ "negative_rating_value" = "Мы не можем украсть рейтинг у другого человека, извините."; "increased_your_rating_by" = "повысил ваш рейтинг на"; +"news" = "Новость"; + /* Gifts */ "gift" = "Подарок"; diff --git a/openvk-example.yml b/openvk-example.yml index b64a589e..5890763f 100644 --- a/openvk-example.yml +++ b/openvk-example.yml @@ -17,6 +17,10 @@ openvk: minLength: 3 # won't affect existing short urls or the ones set via admin panel forbiddenNames: - "index.php" + news: + enable: false + link: "/link" + title: "я покакал" photos: upgradeStructure: false photoSaving: "quick"