2018-10-16 16:28:42 +00:00
|
|
|
<?php
|
|
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
2019-01-08 21:42:54 +00:00
|
|
|
|
|
|
|
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">
|
2019-01-08 21:42:54 +00:00
|
|
|
<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): ?>
|
2019-01-08 21:42:54 +00:00
|
|
|
<div class="col-12">
|
2018-10-16 16:28:42 +00:00
|
|
|
<h3><?= $language ?></h3>
|
2019-01-08 21:42:54 +00:00
|
|
|
|
|
|
|
<!-- --><?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">
|
2019-01-08 21:42:54 +00:00
|
|
|
<?php foreach ($items as $i => $item): ?>
|
2018-10-16 16:28:42 +00:00
|
|
|
<li>
|
|
|
|
<div class="block">
|
|
|
|
<div class="tags">
|
2019-01-08 21:42:54 +00:00
|
|
|
<?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">
|
2019-01-08 21:42:54 +00:00
|
|
|
<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">
|
2019-01-08 21:42:54 +00:00
|
|
|
<span><?= date("d.m.Y \u\m H:i", strtotime($item['edited'])) ?> Uhr</span>
|
2018-10-16 16:28:42 +00:00
|
|
|
von
|
2019-01-08 21:42:54 +00:00
|
|
|
<?php $author = $this->BlogModel->getAuthorData($item['authorID']) ?>
|
2018-10-16 16:28:42 +00:00
|
|
|
<a href="/user/<?= $author['username'] ?>"><?= $author['displayname'] ?></a>
|
|
|
|
</div>
|
2019-01-08 21:42:54 +00:00
|
|
|
<p class="excerpt">
|
|
|
|
Titel:
|
|
|
|
<i><?= $item['title'] ?></i>
|
|
|
|
<br>
|
|
|
|
Beschreibung:
|
|
|
|
<i><?= $item['description'] ?></i>
|
2018-10-16 16:28:42 +00:00
|
|
|
</p>
|
2019-01-08 21:42:54 +00:00
|
|
|
<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>
|