Archived
1
0
This repository has been archived on 2020-12-10. You can view files and clone it, but cannot push or open issues or pull requests.
old/application/views/admin/blog_history.php

90 lines
5.4 KiB
PHP
Raw Permalink Normal View History

2018-10-16 16:28:42 +00:00
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
require_once './vendor/Diff/htmLawed.php';
require_once './vendor/Diff/class.Diff.php';
2018-10-16 16:28:42 +00:00
?>
<div class="right_col" role="main">
<div class="">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2>Blog-Post History</h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
<div class="row">
<div class="compare-items-container">
<div class="compare-items row">
</div>
<div class="row">
<a href="#" class="btn btn-sm btn-primary compare-btn" disabled="">Vergleichen</a>
</div>
</div>
</div>
<div class="row" style="width: auto; overflow-x:scroll;">
2018-10-16 16:28:42 +00:00
<?php foreach ($content as $language => $items): ?>
<div class="col-12">
2018-10-16 16:28:42 +00:00
<h3><?= $language ?></h3>
<!-- --><?php //echo Diff::toHTML(Diff::compare("Hallo!\n Peter Enis\nFotze", "Hallo.\n Peter Penis\nFotze")) ?>
2018-10-16 16:28:42 +00:00
<ul class="list-unstyled timeline">
<?php foreach ($items as $i => $item): ?>
2018-10-16 16:28:42 +00:00
<li>
<div class="block">
<div class="tags">
<?php if ($item['active'] == 1): ?>
2018-10-16 16:28:42 +00:00
<a class="tag">
<span>Aktiv</span>
</a>
<?php endif; ?>
</div>
<div class="block_content">
<h2 class="title">
<span class="badge badge-default"><?= substr($item['hashID'], 0, 8) ?></span>
<?= $item['changes'] ?>
2018-10-16 16:28:42 +00:00
</h2>
<div class="byline">
<span><?= date("d.m.Y \u\m H:i", strtotime($item['edited'])) ?> Uhr</span>
2018-10-16 16:28:42 +00:00
von
<?php $author = $this->BlogModel->getAuthorData($item['authorID']) ?>
2018-10-16 16:28:42 +00:00
<a href="/user/<?= $author['username'] ?>"><?= $author['displayname'] ?></a>
</div>
<p class="excerpt">
Titel:
<i><?= $item['title'] ?></i>
<br>
Beschreibung:
<i><?= $item['description'] ?></i>
2018-10-16 16:28:42 +00:00
</p>
<div class="actions">
<button class="btn btn-sm btn-primary">
Ansehen
</button>
<button class="btn btn-sm btn-default history-compare" data-hashID="<?= $item['hashID'] ?>">
Vergleichen mit...
</button>
<?php if (!$item['active']): ?>
<button class="btn btn-sm btn-default">
Aktivieren
</button>
<?php endif; ?>
</div>
2018-10-16 16:28:42 +00:00
</div>
</div>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endforeach; ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>