Skip to content

Commit 28367fb

Browse files
committed
Merge pull request #122 from webasyst/dev
some fixes
2 parents 2bd597c + e6b6427 commit 28367fb

File tree

6 files changed

+45
-16
lines changed

6 files changed

+45
-16
lines changed

wa-content/css/dashboard/dashboard.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
body {
22
background: #eee;
33
}
4+
body .d-dashboard-header-content {
5+
display: none;
6+
}
47
body.is-highlighted {
58
background: #ccc;
69
-webkit-transition: background 300ms linear;
@@ -17,6 +20,7 @@ body.is-highlighted #wa-header #wa-applist > .ui-sortable {
1720
visibility: hidden;
1821
}
1922
body.is-highlighted #wa-header .d-dashboard-header-content {
23+
display: block;
2024
position: absolute;
2125
top: 0;
2226
left: 0;
@@ -712,7 +716,7 @@ body.is-highlighted #wa-header .d-dashboard-header-content .d-dashboard-link-wra
712716
margin: 0;
713717
padding: 0;
714718
border: solid transparent;
715-
font-size: 1rem;
719+
font-size: 14px;
716720
line-height: 1;
717721
border-width: 10px 0 0 10px;
718722
box-sizing: border-box;
@@ -1118,6 +1122,10 @@ body.is-highlighted #wa-header .d-dashboard-header-content .d-dashboard-link-wra
11181122
.widget-2x2 h6 {
11191123
font-size: 1.1em;
11201124
}
1125+
.tv .d-page-wrapper .d-content-wrapper .d-widgets-wrapper .widget-group-wrapper .widget-wrapper,
1126+
.mobile .d-page-wrapper .d-content-wrapper .d-widgets-wrapper .widget-group-wrapper .widget-wrapper {
1127+
font-size: 1rem;
1128+
}
11211129
#close-dashboard-editable-mode {
11221130
position: relative;
11231131
}

wa-system/image/waImage.class.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ public static function factory($file, $adapter = false)
136136
if (!class_exists($class, true)) {
137137
throw new waException(sprintf(_ws('Not %s image adapter'), $adapter));
138138
}
139+
if ($class == 'waImage') {
140+
throw new waException(_ws('No image adapters found. Install ImageMagick or GD extension to enable image-processing functionality.'));
141+
}
139142
return new $class($file);
140143
}
141144

wa-system/plugin/waPlugin.class.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ public function getName()
4343
return $this->info['name'];
4444
}
4545

46+
public function getInfo()
47+
{
48+
return $this->info;
49+
}
50+
51+
4652
public function getVersion()
4753
{
4854
$version = isset($this->info['version']) ? $this->info['version'] : '0.0.1';

wa-system/request/waRequest.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ public static function isMobile($check = true)
234234
$desktop_platforms = array(
235235
'ipad' => 'ipad',
236236
'galaxy-tab' => 'android.*?GT\-P',
237-
'bot' => '(googlebot\b|facebot|yandexbot|bingbot|twitterbot)',
238237
);
239238
foreach ($desktop_platforms as $pattern) {
240239
if (preg_match('/'.$pattern.'/i', $user_agent)) {
273 Bytes
Binary file not shown.

wa-system/webasyst/locale/ru_RU/LC_MESSAGES/webasyst.po

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ msgid ""
22
msgstr ""
33
"Project-Id-Version: WebAsyst\n"
44
"POT-Creation-Date: \n"
5-
"PO-Revision-Date: 2015-09-23 16:08+0300\n"
5+
"PO-Revision-Date: 2015-09-28 09:39+0300\n"
66
"Last-Translator: \n"
77
"Language-Team: \n"
88
"MIME-Version: 1.0\n"
@@ -1566,6 +1566,9 @@ msgstr "Неправильный формат изображения: "
15661566
msgid "Not %s image adapter"
15671567
msgstr "Not %s image adapter"
15681568

1569+
msgid "No image adapters found. Install ImageMagick or GD extension to enable image-processing functionality."
1570+
msgstr "Не найдено ни одного расширения для работы с изображениями. Установите ImageMagick или GD."
1571+
15691572
#: /wa-system/image/waImage.class.php:276
15701573
msgid "File must be writable: "
15711574
msgstr "Нужны права на запись в файл: "
@@ -3458,9 +3461,7 @@ msgid "Embeds HTML block by ID"
34583461
msgstr "Отображает содержимое блока по его идентификатору"
34593462

34603463
msgid "Returns authorized user data from associated record in “Contacts” app. \"<em>field</em>\" (string) is optional and indicates the field id to be returned. If not Returns <em>false</em> if user is not authorized"
3461-
msgstr ""
3462-
"Возвращает массив с данными авторизованного пользователя из соответствующей записи приложения «Контакты». Если указан необязательный параметр <code>'field'</code> , то возвращается содержимое конкретного поля записи о контакте. Функция принимает любые параметры, подходящие для метода <code><a href=\"http://www.webasyst.ru/developers/docs/basics/classes/waContact#method-get\" target=\"_blank\">get()</a></code> системного класса <code>waContact</"
3463-
"code>. Если пользователь не авторизован, функция возвращает <code>false</code>"
3464+
msgstr "Возвращает массив с данными авторизованного пользователя из соответствующей записи приложения «Контакты». Если указан необязательный параметр <code>'field'</code> , то возвращается содержимое конкретного поля записи о контакте. Функция принимает любые параметры, подходящие для метода <code><a href=\"http://www.webasyst.ru/developers/docs/basics/classes/waContact#method-get\" target=\"_blank\">get()</a></code> системного класса <code>waContact</code>. Если пользователь не авторизован, функция возвращает <code>false</code>"
34643465

34653466
msgid "Returns User Agent info by specified “<em>key</em>” parameter:"
34663467
msgstr "Возвращает информацию User Agent по указанному параметру <em>key</em>:"
@@ -3701,7 +3702,9 @@ msgstr "разрешил доступ для контакта"
37013702
msgid "disabled access for contact"
37023703
msgstr "запретил доступ для контакта"
37033704

3704-
#: /wa-system/contact/waContactCompositeField.class.php:84 /wa-system/contact/waContactField.class.php:339 /wa-system/contact/waContactField.class.php:457
3705+
#: /wa-system/contact/waContactCompositeField.class.php:84
3706+
#: /wa-system/contact/waContactField.class.php:339
3707+
#: /wa-system/contact/waContactField.class.php:457
37053708
msgid "Data must be an array."
37063709
msgstr "Данные должны быть массивом"
37073710

@@ -3752,7 +3755,8 @@ msgstr "Мой профиль"
37523755
msgid "New password"
37533756
msgstr "Новый пароль"
37543757

3755-
#: /wa-system/contact/waContactForm.class.php:364 /wa-system/controller/waMyProfileAction.class.php:145
3758+
#: /wa-system/contact/waContactForm.class.php:364
3759+
#: /wa-system/controller/waMyProfileAction.class.php:145
37563760
msgid "Photo"
37573761
msgstr "Фото"
37583762

@@ -3788,15 +3792,17 @@ msgstr "Скачать архив с темой дизайна"
37883792
msgid "Clone theme"
37893793
msgstr "Создать клон темы"
37903794

3791-
#: /wa-system/design/templates/Theme.html:11 /wa-system/design/templates/Theme.html:296
3795+
#: /wa-system/design/templates/Theme.html:11
3796+
#: /wa-system/design/templates/Theme.html:296
37923797
msgid "Rename theme"
37933798
msgstr "Переименовать тему"
37943799

37953800
#: /wa-system/design/templates/Theme.html:14
37963801
msgid "You did not apply customizations to this theme yet, and thus there is nothing to revert."
37973802
msgstr "Вы еще не вносили изменения в эту тему дизайна, поэтому сбрасывать пока нечего."
37983803

3799-
#: /wa-system/design/templates/Theme.html:47 /wa-system/design/templates/Theme.html:281
3804+
#: /wa-system/design/templates/Theme.html:47
3805+
#: /wa-system/design/templates/Theme.html:281
38003806
msgid "Start using %s theme"
38013807
msgstr "Начать использовать тему «%s»"
38023808

@@ -3984,23 +3990,28 @@ msgstr "Подтвердите обновление всех выбранных
39843990
msgid "Files marked with <strong>bold</strong> were previously modified by you — select them only if you’d like to completely drop changes you’ve made to these files. All selected files will be overwritten with their newest versions from the original theme, and there will be no way to automatically rollback this update. (If you feel non-confident, don’t select modified templates by now. You will be able to update them manually file-by-file later on.)"
39853991
msgstr "Файлы, которые вы ранее редактировали, выделены <strong>жирным</strong>. Выберите только те файлы, которые хотите полностью сбросить до их оригинальных версий из обновленной темы дизайна, тем самым удалив все внесенные вами ранее изменения. (Если вы не уверены, нужно ли обновлять тот или иной файл, не выбирайте его. Позже вы сможете обновить все эти файлы по одному.)"
39863992

3987-
#: /wa-system/design/templates/ThemeUpdate.html:8 /wa-system/design/templates/ThemeUpdate.html:31
3993+
#: /wa-system/design/templates/ThemeUpdate.html:8
3994+
#: /wa-system/design/templates/ThemeUpdate.html:31
39883995
msgid "Theme appearance settings will be updated automatically"
39893996
msgstr "Настройки темы дизайна будут обновлены автоматически"
39903997

3991-
#: /wa-system/design/templates/ThemeUpdate.html:8 /wa-system/design/templates/ThemeUpdate.html:31
3998+
#: /wa-system/design/templates/ThemeUpdate.html:8
3999+
#: /wa-system/design/templates/ThemeUpdate.html:31
39924000
msgid "Theme appearance settings (theme.xml)"
39934001
msgstr "Настройки оформления (theme.xml)"
39944002

3995-
#: /wa-system/design/templates/ThemeUpdate.html:17 /wa-system/design/templates/ThemeUpdate.html:40
4003+
#: /wa-system/design/templates/ThemeUpdate.html:17
4004+
#: /wa-system/design/templates/ThemeUpdate.html:40
39964005
msgid "You did not modify this file"
39974006
msgstr "Вы не вносили изменения в этот файл"
39984007

3999-
#: /wa-system/design/templates/ThemeUpdate.html:17 /wa-system/design/templates/ThemeUpdate.html:40
4008+
#: /wa-system/design/templates/ThemeUpdate.html:17
4009+
#: /wa-system/design/templates/ThemeUpdate.html:40
40004010
msgid "%s and %d more unmodified files"
40014011
msgstr "%s и еще %d неизмененных файлов"
40024012

4003-
#: /wa-system/design/templates/ThemeUpdate.html:21 /wa-system/design/templates/ThemeUpdate.html:44
4013+
#: /wa-system/design/templates/ThemeUpdate.html:21
4014+
#: /wa-system/design/templates/ThemeUpdate.html:44
40044015
msgid "You modified this file"
40054016
msgstr "Вы вносили изменения в этот файл"
40064017

@@ -4207,7 +4218,8 @@ msgstr "Популярные плагины"
42074218
msgid "No plugins are installed."
42084219
msgstr "Плагины не установлены."
42094220

4210-
#: /wa-system/plugin/templates/Plugins.html:47 /wa-system/plugin/templates/Plugins.html:320
4221+
#: /wa-system/plugin/templates/Plugins.html:47
4222+
#: /wa-system/plugin/templates/Plugins.html:320
42114223
msgid "Loading..."
42124224
msgstr "Загрузка..."
42134225

@@ -4310,3 +4322,4 @@ msgstr "Тема «%s» для всех приложений (рекоменду
43104322
#: /wa-system/design/templates/Theme.html:486
43114323
msgid "Only %s theme for this app (%s)"
43124324
msgstr "Тема «%s» только для приложения «%s»"
4325+

0 commit comments

Comments
 (0)