Skip to content

Commit

Permalink
Admin panel rework[3/10]
Browse files Browse the repository at this point in the history
  • Loading branch information
zenn1989 committed Aug 17, 2018
1 parent d368891 commit 34a8e16
Show file tree
Hide file tree
Showing 7 changed files with 370 additions and 35 deletions.
1 change: 1 addition & 0 deletions Apps/Controller/Api/Comments/ActionList.php
Expand Up @@ -25,6 +25,7 @@ trait ActionList
* @return string
* @throws NotFoundException
* @throws \Ffcms\Core\Exception\SyntaxException
* @throws \Ffcms\Core\Exception\JsonException
*/
public function aList(string $index): ?string
{
Expand Down
4 changes: 2 additions & 2 deletions Apps/View/Front/default/_layouts/default.php
Expand Up @@ -81,7 +81,7 @@
<main role="main" class="container">
<?php if (isset($breadcrumbs) && is_array($breadcrumbs)): ?>
<div class="row">
<div class="col-md-12">
<div class="col">
<nav aria-label="breadcrumb">
<?php
$crumbs = $this->listing('ol', ['class' => 'breadcrumb']);
Expand All @@ -99,7 +99,7 @@
</div>
<?php endif; ?>
<div class="row">
<div class="<?= ($fullgrid ? 'col-md-12' : 'col-md-9') ?>">
<div class="<?= ($fullgrid ? 'col-md-12' : 'col-md-8') ?>">
<?php
if ($this->section('body')) {
// display notifications if exist
Expand Down
15 changes: 12 additions & 3 deletions Apps/View/Front/default/assets/css/style.css
Expand Up @@ -101,8 +101,8 @@ main.container {
float: left;
margin-left: 0;
margin-top: 0;
width: 65px;
height: 65px;
max-width: 70px;
max-height: 90px;
}

.page-comment .post-comments{
Expand Down Expand Up @@ -267,5 +267,14 @@ footer p > a {

/** lastcomment styles */
.short-comment {
border-bottom: 1px solid #e6e6e6;
padding-bottom: 5px;
border-bottom: 1px solid #cfcfcf;
}

.card-body a {
color: #363676;
}

.card-body a:hover, .card-body a:focus {
color: #9b4038;
}
10 changes: 8 additions & 2 deletions Apps/View/Front/default/content/read.php
Expand Up @@ -219,11 +219,11 @@
<div class="col-md-12">
<div class="h3 text-success"><?= __('Comments') ?></div>
<hr />
<?php //\Widgets\Front\Comments\Comments::widget(['targetClass' => 'wysi-comments', 'config' => 'config-small']); ?>
<?= \Widgets\Front\Comments\Comments::widget(['config' => 'small']); ?>
</div>
</div>
<?php endif; ?>
<?php if ($model->galleryItems !== null && Any::isArray($model->galleryItems)): ?>
<?php if ($model->galleryItems && Any::isArray($model->galleryItems)): ?>
<script>
$(document).ready(function(){
var galleryPos = 1;
Expand Down Expand Up @@ -285,3 +285,9 @@
</script>
<?php endif; ?>
<?php $this->stop() ?>

<?php $this->push('javascript') ?>

<?= \Widgets\Tinymce\Tinymce::widget(['config' => 'small']); ?>

<?php $this->stop() ?>

0 comments on commit 34a8e16

Please sign in to comment.