2012-03-07 18:48:14 +02:00
|
|
|
<?php
|
2012-01-28 17:52:44 +02:00
|
|
|
|
|
|
|
$config = array();
|
|
|
|
|
2014-04-28 13:12:44 +03:00
|
|
|
/**
|
2013-04-06 22:06:48 +03:00
|
|
|
* Grid type:
|
2014-04-28 13:12:44 +03:00
|
|
|
*
|
2012-07-08 11:51:14 +03:00
|
|
|
* fluid - резина
|
|
|
|
* fixed - фиксированная ширина
|
|
|
|
*/
|
2013-04-22 13:45:32 +03:00
|
|
|
$config['view']['grid']['type'] = 'fluid';
|
2012-07-08 11:51:14 +03:00
|
|
|
|
|
|
|
/* Fluid settings */
|
2014-07-31 12:03:58 +03:00
|
|
|
$config['view']['grid']['fluid_min_width'] = '320px';
|
|
|
|
$config['view']['grid']['fluid_max_width'] = '1200px';
|
2012-07-08 11:51:14 +03:00
|
|
|
|
|
|
|
/* Fixed settings */
|
2014-07-31 12:03:58 +03:00
|
|
|
$config['view']['grid']['fixed_width'] = '1000px';
|
2012-07-08 11:51:14 +03:00
|
|
|
|
2013-04-06 22:06:48 +03:00
|
|
|
$config['head']['default']['js'] = Config::Get('head.default.js');
|
2013-08-08 14:00:37 +03:00
|
|
|
$config['head']['default']['js'][] = '___path.skin.assets.web___/js/init.js';
|
2012-01-28 17:52:44 +02:00
|
|
|
|
2014-01-31 07:30:15 +02:00
|
|
|
|
2014-04-28 13:12:44 +03:00
|
|
|
$aCss = array(
|
2014-04-08 14:42:07 +03:00
|
|
|
// Base styles
|
2013-08-08 14:00:37 +03:00
|
|
|
"___path.skin.assets.web___/css/base.css",
|
|
|
|
"___path.framework.frontend.web___/js/vendor/jquery-ui/css/smoothness/jquery-ui-1.10.2.custom.css",
|
|
|
|
"___path.framework.frontend.web___/js/vendor/jcrop/jquery.Jcrop.css",
|
|
|
|
"___path.framework.frontend.web___/js/vendor/prettify/prettify.css",
|
|
|
|
"___path.framework.frontend.web___/js/vendor/notifier/jquery.notifier.css",
|
2014-01-05 15:28:53 +02:00
|
|
|
"___path.framework.frontend.web___/js/vendor/fotorama/fotorama.css",
|
2014-02-03 11:34:20 +02:00
|
|
|
"___path.framework.frontend.web___/js/vendor/nprogress/nprogress.css",
|
2014-02-10 13:12:21 +02:00
|
|
|
"___path.framework.frontend.web___/js/vendor/colorbox/colorbox.css",
|
2013-08-08 14:00:37 +03:00
|
|
|
"___path.skin.assets.web___/css/grid.css",
|
|
|
|
"___path.skin.assets.web___/css/forms.css",
|
|
|
|
"___path.skin.assets.web___/css/common.css",
|
2014-04-08 14:42:07 +03:00
|
|
|
|
|
|
|
// Components
|
2014-10-10 19:29:24 +03:00
|
|
|
"___path.skin.web___/components/vote/css/vote.css",
|
2014-10-09 19:17:36 +03:00
|
|
|
"___path.skin.web___/components/actionbar/css/actionbar.css",
|
2014-10-10 19:29:24 +03:00
|
|
|
"___path.skin.web___/components/favourite/css/favourite.css",
|
|
|
|
"___path.skin.web___/components/comment/css/comment.css",
|
|
|
|
"___path.skin.web___/components/topic/css/topic.css",
|
|
|
|
"___path.skin.web___/components/wall/css/wall.css",
|
|
|
|
"___path.skin.web___/components/blog/css/blog.css",
|
|
|
|
"___path.skin.web___/components/poll/css/poll.css",
|
|
|
|
"___path.skin.web___/components/more/css/more.css",
|
2014-10-11 19:19:38 +03:00
|
|
|
"___path.skin.web___/components/sort/css/sort.css",
|
2014-10-10 19:29:24 +03:00
|
|
|
"___path.skin.web___/components/alphanumeric/css/alphanumeric.css",
|
|
|
|
"___path.skin.web___/components/media/css/media.css",
|
|
|
|
"___path.skin.web___/components/pagination/css/pagination.css",
|
|
|
|
"___path.skin.web___/components/field/css/field.css",
|
|
|
|
"___path.skin.web___/components/search-form/css/search-form.css",
|
|
|
|
"___path.skin.web___/components/note/css/note.css",
|
|
|
|
"___path.skin.web___/components/info-list/css/info-list.css",
|
|
|
|
"___path.skin.web___/components/uploader/css/uploader.css",
|
|
|
|
"___path.skin.web___/components/activity/css/activity.css",
|
|
|
|
"___path.skin.web___/components/block/css/block.css",
|
2014-10-11 19:19:38 +03:00
|
|
|
"___path.skin.web___/components/tags/css/tags.css",
|
|
|
|
"___path.skin.web___/components/user/css/user.css",
|
|
|
|
"___path.skin.web___/components/user/css/user-item.css",
|
|
|
|
"___path.skin.web___/components/user/css/user-list-small.css",
|
|
|
|
"___path.skin.web___/components/user/css/user-list-avatar.css",
|
|
|
|
"___path.skin.web___/components/user-list-add/css/user-list-add.css",
|
|
|
|
"___path.skin.web___/components/talk/css/talk.css",
|
2014-10-16 10:31:34 +03:00
|
|
|
"___path.skin.web___/components/userbar/css/userbar.css",
|
2014-04-08 14:42:07 +03:00
|
|
|
|
|
|
|
// Template's styles
|
2013-08-08 14:00:37 +03:00
|
|
|
"___path.skin.assets.web___/css/icons.css",
|
|
|
|
"___path.skin.assets.web___/css/tables.css",
|
|
|
|
"___path.skin.assets.web___/css/blocks.css",
|
|
|
|
"___path.skin.assets.web___/css/modals.css",
|
|
|
|
"___path.skin.assets.web___/css/admin.css",
|
|
|
|
"___path.skin.assets.web___/css/toolbar.css",
|
|
|
|
"___path.skin.assets.web___/css/print.css",
|
2014-01-31 07:30:15 +02:00
|
|
|
);
|
|
|
|
|
2014-04-28 13:12:44 +03:00
|
|
|
// Подключение темы
|
|
|
|
if ( Config::Get('view.theme') ) {
|
|
|
|
$aCss[] = "___path.skin.web___/themes/___view.theme___/style.css";
|
2014-01-31 07:30:15 +02:00
|
|
|
}
|
2014-04-28 13:12:44 +03:00
|
|
|
|
|
|
|
// Стили для RTL языков
|
|
|
|
if ( Config::Get('view.rtl') ) {
|
2014-10-10 19:29:24 +03:00
|
|
|
$aCss[] = "___path.skin.web___/components/vote/css/vote-rtl.css";
|
2014-04-28 13:12:44 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// Подключение фронтенд фреймворка
|
|
|
|
$config['head']['default']['css'] = array_merge(Config::Get('head.default.css'), $aCss);
|
2012-03-18 02:45:20 +02:00
|
|
|
|
2012-01-28 17:52:44 +02:00
|
|
|
|
2014-01-31 07:30:15 +02:00
|
|
|
return $config;
|