minor fixes, grid
This commit is contained in:
parent
07aa64ccbc
commit
7b06c0dad4
|
@ -119,6 +119,7 @@
|
|||
zira_scroll_effects_enabled &&
|
||||
$('#top-menu-wrapper').length>0 &&
|
||||
$('#dashpanel-container').length==0 &&
|
||||
$('#dashpanel-fixed-button').length==0 &&
|
||||
typeof(designer_style_theme)=="undefined"
|
||||
) {
|
||||
var topMenuTop = $('#top-menu-wrapper').offset().top;
|
||||
|
@ -311,14 +312,18 @@
|
|||
};
|
||||
|
||||
zira_init_grid = function() {
|
||||
$('.container #content .grid-category-wrapper .list .list-item').removeClass('jsed').css('height','auto');
|
||||
$('.container #content .grid-category-wrapper .list-item').removeClass('jsed').css('height','auto');
|
||||
|
||||
$('.container #content .grid-category-wrapper .list').each(function(){
|
||||
var items = $(this).children('.list-item');
|
||||
$('.container #content .grid-category-wrapper').each(function(){
|
||||
var list = $(this);
|
||||
if ($(list).get(0).tagName.toLowerCase() != 'ul') list = $(list).find('ul.list');
|
||||
if (!$(list).length) return true;
|
||||
var items = $(list).children('.list-item');
|
||||
if ($(items).length<2) return;
|
||||
var prev = null;
|
||||
var co = 1;
|
||||
$(items).each(function(){
|
||||
if ($(this).hasClass('jsed')) return true;
|
||||
if (co%2==0) {
|
||||
if (prev && $(prev).offset().top == $(this).offset().top) {
|
||||
var h = Math.max($(prev).outerHeight(), $(this).outerHeight());
|
||||
|
@ -445,11 +450,12 @@
|
|||
'category_id': category_id,
|
||||
'last_id': last_id
|
||||
}, zira_bind(this, function(response){
|
||||
$(this).parent('.list-view-more-wrapper').replaceWith(response);
|
||||
if (navigator.userAgent.indexOf('MSIE')<0) {
|
||||
$('.container #content .xhr-list').hide().slideDown().removeClass('xhr-list');
|
||||
} else {
|
||||
$('.container #content .xhr-list').removeClass('xhr-list');
|
||||
var r = new RegExp('<ul[^>]*>([\\s\\S]+?)</ul>([\\s\\S]*)$','g');
|
||||
var m = r.exec(response);
|
||||
if (m) {
|
||||
$(this).parent('.list-view-more-wrapper').prev('ul').append(m[1]);
|
||||
$(this).parent('.list-view-more-wrapper').replaceWith(m[2]);
|
||||
zira_init_grid();
|
||||
}
|
||||
}),'html');
|
||||
});
|
||||
|
|
|
@ -51,6 +51,7 @@ class Meta extends Form
|
|||
$html .= $this->checkbox(Locale::t('Show website name in window title'), 'site_window_title', null, false);
|
||||
$html .= $this->checkbox(Locale::t('Enable scroll effects'), 'site_scroll_effects', null, false);
|
||||
$html .= $this->checkbox(Locale::t('Show image descriptions'), 'site_parse_images', null, false);
|
||||
$html .= $this->checkbox(Locale::t('Display records list in %s columns', 2), 'site_records_grid', null, false);
|
||||
|
||||
$html .= Zira\Helper::tag_open('div', array('id'=>'dashmetaform_access_button'));
|
||||
$html .= Zira\Helper::tag_open('div', array('class'=>'form-group'));
|
||||
|
|
|
@ -22,9 +22,16 @@ class Comments extends Model {
|
|||
if (!$comment->loaded()) {
|
||||
continue;
|
||||
//return array('error' => Zira\Locale::t('An error occurred'));
|
||||
};
|
||||
}
|
||||
$comment->delete();
|
||||
|
||||
$childs_count = Zira\Models\Comment::getCollection()
|
||||
->count()
|
||||
->where('record_id','=',$comment->record_id)
|
||||
->and_where('published','=',Zira\Models\Comment::STATUS_PUBLISHED)
|
||||
->and_where('sort_path','like',$comment->sort_path.Zira\Models\Comment::PATH_DELIMITER.'%')
|
||||
->get('co');
|
||||
|
||||
Zira\Models\Comment::getCollection()
|
||||
->where('record_id','=',$comment->record_id)
|
||||
->and_where('sort_path','like',$comment->sort_path.Zira\Models\Comment::PATH_DELIMITER.'%')
|
||||
|
@ -34,7 +41,7 @@ class Comments extends Model {
|
|||
if ($comment->published == Zira\Models\Comment::STATUS_PUBLISHED) {
|
||||
$record = new Zira\Models\Record($comment->record_id);
|
||||
if ($record->loaded()) {
|
||||
$record->comments--;
|
||||
$record->comments -= ($childs_count+1);
|
||||
}
|
||||
if ($record->comments<0) $record->comments = 0;
|
||||
$record->save();
|
||||
|
@ -45,6 +52,7 @@ class Comments extends Model {
|
|||
Zira\User::decreaseCommentsCount($user);
|
||||
}
|
||||
}
|
||||
// decrease child comments' authors count ?
|
||||
}
|
||||
|
||||
// deleting likes
|
||||
|
|
|
@ -41,7 +41,8 @@ class Meta extends Model {
|
|||
'video_check' => 'int',
|
||||
'comments_enabled'=>'int',
|
||||
'site_scroll_effects'=>'int',
|
||||
'site_parse_images'=>'int'
|
||||
'site_parse_images'=>'int',
|
||||
'site_records_grid'=>'int'
|
||||
);
|
||||
|
||||
$config_ids = array();
|
||||
|
|
|
@ -49,6 +49,8 @@ class Meta extends Window {
|
|||
if (!array_key_exists('site_favicon', $configs)) $configs['site_favicon'] = 'favicon.ico';
|
||||
if (!array_key_exists('site_scroll_effects', $configs)) $configs['site_scroll_effects'] = 1;
|
||||
if (!array_key_exists('site_parse_images', $configs)) $configs['site_parse_images'] = 1;
|
||||
if (!array_key_exists('site_records_grid', $configs)) $configs['site_records_grid'] = 1;
|
||||
|
||||
$form->setValues($configs);
|
||||
|
||||
$this->setBodyContent($form);
|
||||
|
|
|
@ -41,7 +41,8 @@ class Featured extends Widget {
|
|||
if (!$layout) $layout = Zira\Config::get('layout');
|
||||
|
||||
$is_sidebar = $this->getPlaceholder() == Zira\View::VAR_SIDEBAR_LEFT || $this->getPlaceholder() == Zira\View::VAR_SIDEBAR_RIGHT;
|
||||
$is_grid = $layout && $layout != Zira\View::LAYOUT_ALL_SIDEBARS && !$is_sidebar;
|
||||
//$is_grid = $layout && $layout != Zira\View::LAYOUT_ALL_SIDEBARS && !$is_sidebar;
|
||||
$is_grid = Zira\Config::get('site_records_grid', 1) && !$is_sidebar;
|
||||
|
||||
Zira\View::renderView(array(
|
||||
'title' => Zira\Locale::tm('Featured', 'featured'),
|
||||
|
|
|
@ -12,5 +12,6 @@ return array(
|
|||
'%s comments was posted' => array('%s comment was posted', '%s comments was posted'),
|
||||
'max. length: %s chars' => array('max. length: %s char', 'max. length: %s chars'),
|
||||
'Updated %s thumbs' => array('Updated %s thumb', 'Updated %s thumbs'),
|
||||
'%s downloads' => array('%s download', '%s downloads')
|
||||
'%s downloads' => array('%s download', '%s downloads'),
|
||||
'Display records list in %s columns' => array('Display records list in %s column', 'Display records list in %s columns')
|
||||
);
|
|
@ -413,5 +413,6 @@ return array(
|
|||
'Do not use' => 'Не использовать',
|
||||
'Site key for reCaptcha' => 'Ключ сайта для reCaptcha',
|
||||
'Secret key for reCaptcha' => 'Секретный ключ для reCaptcha',
|
||||
'Anti-Bot (CAPTCHA)' => 'Анти-Бот (CAPTCHA)'
|
||||
'Anti-Bot (CAPTCHA)' => 'Анти-Бот (CAPTCHA)',
|
||||
'Display records list in %s columns' => array('Показывать список записей в %s колонку', 'Показывать список записей в %s колонки', 'Показывать список записей в %s колонок')
|
||||
);
|
|
@ -1230,7 +1230,7 @@ a.scroll-top.visible span {
|
|||
color: #1B6D85;
|
||||
text-decoration: none;
|
||||
}
|
||||
.grid-category-wrapper .list .list-item {
|
||||
.grid-category-wrapper .list-item {
|
||||
width: 49%;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
|
@ -1238,14 +1238,14 @@ a.scroll-top.visible span {
|
|||
margin-right: 5px;
|
||||
margin-right: 0\9; /** ie8 hack **/
|
||||
}
|
||||
.grid-category-wrapper .list .list-item.jsed {
|
||||
.grid-category-wrapper .list-item.jsed {
|
||||
position: relative;
|
||||
}
|
||||
.grid-category-wrapper .list .list-item.jsed .list-info-wrapper {
|
||||
.grid-category-wrapper .list-item.jsed .list-info-wrapper {
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
}
|
||||
.grid-category-wrapper .list .list-item:nth-child(2) {
|
||||
.grid-category-wrapper .list-item:nth-child(2) {
|
||||
margin-right: 0px;
|
||||
}
|
||||
|
||||
|
@ -1418,13 +1418,13 @@ a.scroll-top.visible span {
|
|||
.messages-list li.odd {
|
||||
background-color: #fafafa;
|
||||
}
|
||||
.messages-list li a:link,
|
||||
.messages-list li a:visited {
|
||||
.messages-list li a.conversation:link,
|
||||
.messages-list li a.conversation:visited {
|
||||
color: #333;
|
||||
}
|
||||
.messages-list li.highlight a:link,
|
||||
.messages-list li.highlight a:visited {
|
||||
color: #000;
|
||||
.messages-list li.highlight a.conversation:link,
|
||||
.messages-list li.highlight a.conversation:visited {
|
||||
color: #5b82b6;
|
||||
font-weight: bold;
|
||||
}
|
||||
.messages-list .message-head {
|
||||
|
@ -1660,7 +1660,7 @@ a.scroll-top.visible span {
|
|||
|
||||
/** mobile **/
|
||||
@media (max-width: 1199px) {
|
||||
.grid-category-wrapper .list .list-item {
|
||||
.grid-category-wrapper .list-item {
|
||||
margin-bottom: 5px;
|
||||
margin-right: 2px;
|
||||
margin-right: 0\9; /** ie8 hack **/
|
||||
|
@ -1698,10 +1698,11 @@ a.scroll-top.visible span {
|
|||
#top-menu-wrapper {
|
||||
margin: 10px 15px 0px;
|
||||
}
|
||||
.grid-category-wrapper .list .list-item {
|
||||
.grid-category-wrapper .list-item {
|
||||
width: 100%;
|
||||
display: block;
|
||||
margin-right: 0px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
#top-menu-container .zira-search-preview-wnd {
|
||||
position: static;
|
||||
|
@ -1715,12 +1716,54 @@ a.scroll-top.visible span {
|
|||
.search-simple-form .zira-loader {
|
||||
top: 19px;
|
||||
}
|
||||
.grid-category-wrapper .list .list-item {
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
a.scroll-top {
|
||||
display: none !important;
|
||||
}
|
||||
.comment-btn-group .btn-primary {
|
||||
display: none;
|
||||
}
|
||||
.comment-btn-group > .btn:last-child:not(:first-child),
|
||||
.comment-btn-group > .dropdown-toggle:not(:first-child) {
|
||||
border-radius: 4px;
|
||||
}
|
||||
.comments .comments-item .comment-avatar {
|
||||
max-width: 30px;
|
||||
}
|
||||
.comments .comments-item .comment-head,
|
||||
.comments .comments-item .comment-text,
|
||||
.comments .comments-item .comment-info {
|
||||
margin-left: 40px;
|
||||
}
|
||||
.comments .comments-item-nested-1 {
|
||||
margin-left: 20px;
|
||||
}
|
||||
.comments .comments-item-nested-2 {
|
||||
margin-left: 40px;
|
||||
}
|
||||
.comments .comments-item-nested-3 {
|
||||
margin-left: 60px;
|
||||
}
|
||||
.comments .comments-item-nested-4 {
|
||||
margin-left: 80px;
|
||||
}
|
||||
.comments .comments-item-nested-5 {
|
||||
margin-left: 100px;
|
||||
}
|
||||
.comments .comments-item-nested-6 {
|
||||
margin-left: 120px;
|
||||
}
|
||||
.comments .comments-item-nested-7 {
|
||||
margin-left: 140px;
|
||||
}
|
||||
.comments .comments-item-nested-8 {
|
||||
margin-left: 160px;
|
||||
}
|
||||
.comments .comments-item-nested-9 {
|
||||
margin-left: 180px;
|
||||
}
|
||||
.comments .comments-item-nested-10 {
|
||||
margin-left: 200px;
|
||||
}
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.search-simple-form {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php if (!empty($records)): ?>
|
||||
<ul class="list<?php if (isset($class)) echo ' '.$class ?>">
|
||||
<ul class="list<?php if (!empty($grid)) echo ' grid-category-wrapper' ?><?php if (isset($class)) echo ' '.$class ?>">
|
||||
<?php $co = 0; ?>
|
||||
<?php foreach($records as $record): ?>
|
||||
<li class="list-item <?php echo $record->thumb ? 'with-thumb' : 'no-thumb' ?>">
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
<span class="glyphicon glyphicon-time"></span> <span><?php echo Zira\Helper::html(date(Zira\Config::get('date_format'), strtotime($item->modified_date))) ?></span>
|
||||
|
||||
<span class="glyphicon glyphicon-envelope"></span> <a href="<?php echo Zira\Helper::url('user/messages/'.$item->conversation_id) ?>"><?php echo Zira\Helper::html($item->subject) ?></a>
|
||||
<span class="glyphicon glyphicon-envelope"></span> <a class="conversation" href="<?php echo Zira\Helper::url('user/messages/'.$item->conversation_id) ?>"><?php echo Zira\Helper::html($item->subject) ?></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
|
|
@ -1562,7 +1562,7 @@ a.scroll-top.visible span {
|
|||
color: #ffffff;
|
||||
text-decoration: none;
|
||||
}
|
||||
.grid-category-wrapper .list .list-item {
|
||||
.grid-category-wrapper .list-item {
|
||||
width: 49%;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
|
@ -1570,14 +1570,14 @@ a.scroll-top.visible span {
|
|||
margin-right: 5px;
|
||||
margin-right: 0\9; /** ie8 hack **/
|
||||
}
|
||||
.grid-category-wrapper .list .list-item.jsed {
|
||||
.grid-category-wrapper .list-item.jsed {
|
||||
position: relative;
|
||||
}
|
||||
.grid-category-wrapper .list .list-item.jsed .list-info-wrapper {
|
||||
.grid-category-wrapper .list-item.jsed .list-info-wrapper {
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
}
|
||||
.grid-category-wrapper .list .list-item:nth-child(2) {
|
||||
.grid-category-wrapper .list-item:nth-child(2) {
|
||||
margin-right: 0px;
|
||||
}
|
||||
|
||||
|
@ -1765,13 +1765,13 @@ a.scroll-top.visible span {
|
|||
.messages-list li.odd {
|
||||
background-color: #596268;
|
||||
}
|
||||
.messages-list li a:link,
|
||||
.messages-list li a:visited {
|
||||
.messages-list li a.conversation:link,
|
||||
.messages-list li a.conversation:visited {
|
||||
color: #CBDCE9;
|
||||
}
|
||||
.messages-list li.highlight a:link,
|
||||
.messages-list li.highlight a:visited {
|
||||
color: #fff;
|
||||
.messages-list li.highlight a.conversation:link,
|
||||
.messages-list li.highlight a.conversation:visited {
|
||||
color: #83afe1;
|
||||
font-weight: bold;
|
||||
}
|
||||
.messages-list .message-head {
|
||||
|
@ -2124,7 +2124,7 @@ ul.vote-results li .vote-result {
|
|||
|
||||
/** mobile **/
|
||||
@media (max-width: 1199px) {
|
||||
.grid-category-wrapper .list .list-item {
|
||||
.grid-category-wrapper .list-item {
|
||||
margin-bottom: 5px;
|
||||
margin-right: 2px;
|
||||
margin-right: 0\9; /** ie8 hack **/
|
||||
|
@ -2179,10 +2179,11 @@ ul.vote-results li .vote-result {
|
|||
header .navbar-default .navbar-nav .open .dropdown-menu > li > a {
|
||||
color: #cccccc;
|
||||
}
|
||||
.grid-category-wrapper .list .list-item {
|
||||
.grid-category-wrapper .list-item {
|
||||
width: 100%;
|
||||
display: block;
|
||||
margin-right: 0px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
#top-menu-container .zira-search-preview-wnd {
|
||||
position: static;
|
||||
|
@ -2196,12 +2197,54 @@ ul.vote-results li .vote-result {
|
|||
.search-simple-form .zira-loader {
|
||||
top: 19px;
|
||||
}
|
||||
.grid-category-wrapper .list .list-item {
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
a.scroll-top {
|
||||
display: none !important;
|
||||
}
|
||||
.comment-btn-group .btn-primary {
|
||||
display: none;
|
||||
}
|
||||
.comment-btn-group > .btn:last-child:not(:first-child),
|
||||
.comment-btn-group > .dropdown-toggle:not(:first-child) {
|
||||
border-radius: 4px;
|
||||
}
|
||||
.comments .comments-item .comment-avatar {
|
||||
max-width: 30px;
|
||||
}
|
||||
.comments .comments-item .comment-head,
|
||||
.comments .comments-item .comment-text,
|
||||
.comments .comments-item .comment-info {
|
||||
margin-left: 40px;
|
||||
}
|
||||
.comments .comments-item-nested-1 {
|
||||
margin-left: 20px;
|
||||
}
|
||||
.comments .comments-item-nested-2 {
|
||||
margin-left: 40px;
|
||||
}
|
||||
.comments .comments-item-nested-3 {
|
||||
margin-left: 60px;
|
||||
}
|
||||
.comments .comments-item-nested-4 {
|
||||
margin-left: 80px;
|
||||
}
|
||||
.comments .comments-item-nested-5 {
|
||||
margin-left: 100px;
|
||||
}
|
||||
.comments .comments-item-nested-6 {
|
||||
margin-left: 120px;
|
||||
}
|
||||
.comments .comments-item-nested-7 {
|
||||
margin-left: 140px;
|
||||
}
|
||||
.comments .comments-item-nested-8 {
|
||||
margin-left: 160px;
|
||||
}
|
||||
.comments .comments-item-nested-9 {
|
||||
margin-left: 180px;
|
||||
}
|
||||
.comments .comments-item-nested-10 {
|
||||
margin-left: 200px;
|
||||
}
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.search-simple-form {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php if (!empty($records)): ?>
|
||||
<ul class="list<?php if (isset($class)) echo ' '.$class ?>">
|
||||
<ul class="list<?php if (!empty($grid)) echo ' grid-category-wrapper' ?><?php if (isset($class)) echo ' '.$class ?>">
|
||||
<?php $co = 0; ?>
|
||||
<?php foreach($records as $record): ?>
|
||||
<li class="list-item <?php echo $record->thumb ? 'with-thumb' : 'no-thumb' ?>">
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
<span class="glyphicon glyphicon-time"></span> <span><?php echo Zira\Helper::html(date(Zira\Config::get('date_format'), strtotime($item->modified_date))) ?></span>
|
||||
|
||||
<span class="glyphicon glyphicon-envelope"></span> <a href="<?php echo Zira\Helper::url('user/messages/'.$item->conversation_id) ?>"><?php echo Zira\Helper::html($item->subject) ?></a>
|
||||
<span class="glyphicon glyphicon-envelope"></span> <a class="conversation" href="<?php echo Zira\Helper::url('user/messages/'.$item->conversation_id) ?>"><?php echo Zira\Helper::html($item->subject) ?></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
|
|
@ -1285,7 +1285,7 @@ a.scroll-top.visible span {
|
|||
color: #1B6D85;
|
||||
text-decoration: none;
|
||||
}
|
||||
.grid-category-wrapper .list .list-item {
|
||||
.grid-category-wrapper .list-item {
|
||||
width: 49%;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
|
@ -1293,14 +1293,14 @@ a.scroll-top.visible span {
|
|||
margin-right: 5px;
|
||||
margin-right: 0\9; /** ie8 hack **/
|
||||
}
|
||||
.grid-category-wrapper .list .list-item.jsed {
|
||||
.grid-category-wrapper .list-item.jsed {
|
||||
position: relative;
|
||||
}
|
||||
.grid-category-wrapper .list .list-item.jsed .list-info-wrapper {
|
||||
.grid-category-wrapper .list-item.jsed .list-info-wrapper {
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
}
|
||||
.grid-category-wrapper .list .list-item:nth-child(2) {
|
||||
.grid-category-wrapper .list-item:nth-child(2) {
|
||||
margin-right: 0px;
|
||||
}
|
||||
|
||||
|
@ -1473,13 +1473,13 @@ a.scroll-top.visible span {
|
|||
.messages-list li.odd {
|
||||
background-color: #fafafa;
|
||||
}
|
||||
.messages-list li a:link,
|
||||
.messages-list li a:visited {
|
||||
.messages-list li a.conversation:link,
|
||||
.messages-list li a.conversation:visited {
|
||||
color: #333;
|
||||
}
|
||||
.messages-list li.highlight a:link,
|
||||
.messages-list li.highlight a:visited {
|
||||
color: #000;
|
||||
.messages-list li.highlight a.conversation:link,
|
||||
.messages-list li.highlight a.conversation:visited {
|
||||
color: #5b82b6;
|
||||
font-weight: bold;
|
||||
}
|
||||
.messages-list .message-head {
|
||||
|
@ -1714,7 +1714,7 @@ a.scroll-top.visible span {
|
|||
|
||||
/** mobile **/
|
||||
@media (max-width: 1199px) {
|
||||
.grid-category-wrapper .list .list-item {
|
||||
.grid-category-wrapper .list-item {
|
||||
margin-bottom: 5px;
|
||||
margin-right: 2px;
|
||||
margin-right: 0\9; /** ie8 hack **/
|
||||
|
@ -1756,10 +1756,11 @@ a.scroll-top.visible span {
|
|||
margin-top: 0px;
|
||||
border-top: 0px;
|
||||
}
|
||||
.grid-category-wrapper .list .list-item {
|
||||
.grid-category-wrapper .list-item {
|
||||
width: 100%;
|
||||
display: block;
|
||||
margin-right: 0px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
#top-menu-container .zira-search-preview-wnd {
|
||||
position: static;
|
||||
|
@ -1773,12 +1774,54 @@ a.scroll-top.visible span {
|
|||
.search-simple-form .zira-loader {
|
||||
top: 19px;
|
||||
}
|
||||
.grid-category-wrapper .list .list-item {
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
a.scroll-top {
|
||||
display: none !important;
|
||||
}
|
||||
.comment-btn-group .btn-primary {
|
||||
display: none;
|
||||
}
|
||||
.comment-btn-group > .btn:last-child:not(:first-child),
|
||||
.comment-btn-group > .dropdown-toggle:not(:first-child) {
|
||||
border-radius: 4px;
|
||||
}
|
||||
.comments .comments-item .comment-avatar {
|
||||
max-width: 30px;
|
||||
}
|
||||
.comments .comments-item .comment-head,
|
||||
.comments .comments-item .comment-text,
|
||||
.comments .comments-item .comment-info {
|
||||
margin-left: 40px;
|
||||
}
|
||||
.comments .comments-item-nested-1 {
|
||||
margin-left: 20px;
|
||||
}
|
||||
.comments .comments-item-nested-2 {
|
||||
margin-left: 40px;
|
||||
}
|
||||
.comments .comments-item-nested-3 {
|
||||
margin-left: 60px;
|
||||
}
|
||||
.comments .comments-item-nested-4 {
|
||||
margin-left: 80px;
|
||||
}
|
||||
.comments .comments-item-nested-5 {
|
||||
margin-left: 100px;
|
||||
}
|
||||
.comments .comments-item-nested-6 {
|
||||
margin-left: 120px;
|
||||
}
|
||||
.comments .comments-item-nested-7 {
|
||||
margin-left: 140px;
|
||||
}
|
||||
.comments .comments-item-nested-8 {
|
||||
margin-left: 160px;
|
||||
}
|
||||
.comments .comments-item-nested-9 {
|
||||
margin-left: 180px;
|
||||
}
|
||||
.comments .comments-item-nested-10 {
|
||||
margin-left: 200px;
|
||||
}
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.search-simple-form {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php if (!empty($records)): ?>
|
||||
<ul class="list<?php if (isset($class)) echo ' '.$class ?>">
|
||||
<ul class="list<?php if (!empty($grid)) echo ' grid-category-wrapper' ?><?php if (isset($class)) echo ' '.$class ?>">
|
||||
<?php $co = 0; ?>
|
||||
<?php foreach($records as $record): ?>
|
||||
<li class="list-item <?php echo $record->thumb ? 'with-thumb' : 'no-thumb' ?>">
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
<span class="glyphicon glyphicon-time"></span> <span><?php echo Zira\Helper::html(date(Zira\Config::get('date_format'), strtotime($item->modified_date))) ?></span>
|
||||
|
||||
<span class="glyphicon glyphicon-envelope"></span> <a href="<?php echo Zira\Helper::url('user/messages/'.$item->conversation_id) ?>"><?php echo Zira\Helper::html($item->subject) ?></a>
|
||||
<span class="glyphicon glyphicon-envelope"></span> <a class="conversation" href="<?php echo Zira\Helper::url('user/messages/'.$item->conversation_id) ?>"><?php echo Zira\Helper::html($item->subject) ?></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
|
|
@ -100,7 +100,8 @@ class Category extends Zira\Page {
|
|||
'display_author' => $display_author,
|
||||
'display_date' => $display_date
|
||||
),
|
||||
'pagination' => $pagination
|
||||
'pagination' => $pagination,
|
||||
'grid' => Zira\Config::get('site_records_grid', 1)
|
||||
);
|
||||
|
||||
if (!$is_ajax) {
|
||||
|
|
|
@ -19,7 +19,8 @@ class Index extends Zira\Page {
|
|||
$layout = Zira\Config::get('layout');
|
||||
if (static::getLayout()!==null) $layout = static::getLayout();
|
||||
Zira\View::addPlaceholderView(Zira\View::VAR_CONTENT, array(
|
||||
'grid' => $layout != Zira\View::LAYOUT_ALL_SIDEBARS,
|
||||
//'grid' => $layout != Zira\View::LAYOUT_ALL_SIDEBARS,
|
||||
'grid' => Zira\Config::get('site_records_grid', 1),
|
||||
'categories' => $categories
|
||||
), 'zira/home');
|
||||
}
|
||||
|
|
|
@ -76,7 +76,8 @@ class Category extends Zira\Widget {
|
|||
if (!$layout) $layout = Zira\Config::get('layout');
|
||||
|
||||
$is_sidebar = $this->getPlaceholder() == Zira\View::VAR_SIDEBAR_LEFT || $this->getPlaceholder() == Zira\View::VAR_SIDEBAR_RIGHT;
|
||||
$is_grid = $layout && $layout != Zira\View::LAYOUT_ALL_SIDEBARS && !$is_sidebar;
|
||||
//$is_grid = $layout && $layout != Zira\View::LAYOUT_ALL_SIDEBARS && !$is_sidebar;
|
||||
$is_grid = Zira\Config::get('site_records_grid', 1) && !$is_sidebar;
|
||||
|
||||
$data = array(
|
||||
'title' => Zira\Locale::t($category->title),
|
||||
|
|
|
@ -90,7 +90,8 @@ class Discussed extends Zira\Widget {
|
|||
if (!$layout) $layout = Zira\Config::get('layout');
|
||||
|
||||
$is_sidebar = $this->getPlaceholder() == Zira\View::VAR_SIDEBAR_LEFT || $this->getPlaceholder() == Zira\View::VAR_SIDEBAR_RIGHT;
|
||||
$is_grid = $layout && $layout != Zira\View::LAYOUT_ALL_SIDEBARS && !$is_sidebar;
|
||||
//$is_grid = $layout && $layout != Zira\View::LAYOUT_ALL_SIDEBARS && !$is_sidebar;
|
||||
$is_grid = Zira\Config::get('site_records_grid', 1) && !$is_sidebar;
|
||||
|
||||
$data = array(
|
||||
'title' => Zira\Locale::t('Most discussed'),
|
||||
|
|
|
@ -36,7 +36,8 @@ class Previous extends Zira\Widget {
|
|||
if (!$layout) $layout = Zira\Config::get('layout');
|
||||
|
||||
$is_sidebar = $this->getPlaceholder() == Zira\View::VAR_SIDEBAR_LEFT || $this->getPlaceholder() == Zira\View::VAR_SIDEBAR_RIGHT;
|
||||
$is_grid = $layout && $layout != Zira\View::LAYOUT_ALL_SIDEBARS && !$is_sidebar;
|
||||
//$is_grid = $layout && $layout != Zira\View::LAYOUT_ALL_SIDEBARS && !$is_sidebar;
|
||||
$is_grid = Zira\Config::get('site_records_grid', 1) && !$is_sidebar;
|
||||
|
||||
$records = Zira\Page::getRecords($category, false, $limit, $record_id, false);
|
||||
if (!count($records)) return;
|
||||
|
|
|
@ -90,7 +90,8 @@ class Rated extends Zira\Widget {
|
|||
if (!$layout) $layout = Zira\Config::get('layout');
|
||||
|
||||
$is_sidebar = $this->getPlaceholder() == Zira\View::VAR_SIDEBAR_LEFT || $this->getPlaceholder() == Zira\View::VAR_SIDEBAR_RIGHT;
|
||||
$is_grid = $layout && $layout != Zira\View::LAYOUT_ALL_SIDEBARS && !$is_sidebar;
|
||||
//$is_grid = $layout && $layout != Zira\View::LAYOUT_ALL_SIDEBARS && !$is_sidebar;
|
||||
$is_grid = Zira\Config::get('site_records_grid', 1) && !$is_sidebar;
|
||||
|
||||
$data = array(
|
||||
'title' => Zira\Locale::t('Top rated'),
|
||||
|
|
Loading…
Reference in New Issue