mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-11 14:28:40 +00:00
Case fix!
This commit is contained in:
parent
7a4ec7af7d
commit
803a48c9c3
21
Theme/Backend/Lang/Navigation.en.lang.php
Normal file
21
Theme/Backend/Lang/Navigation.en.lang.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
$MODLANG['Navigation'] = [
|
||||
'Archive' => 'Archive',
|
||||
'Create' => 'Create',
|
||||
'Draft' => 'Draft',
|
||||
'News' => 'News',
|
||||
];
|
||||
40
Theme/Backend/Lang/en.lang.php
Normal file
40
Theme/Backend/Lang/en.lang.php
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
$MODLANG['News'] = [
|
||||
'Additional' => 'Additional',
|
||||
'Archive' => 'Archive',
|
||||
'Author' => 'Author',
|
||||
'Date' => 'Date',
|
||||
'Draft' => 'Draft',
|
||||
'Featured' => 'Featured',
|
||||
'Groups' => 'Groups',
|
||||
'Headline' => 'Headline',
|
||||
'Headlines' => 'Headlines',
|
||||
'Link' => 'Link',
|
||||
'News' => 'News',
|
||||
'Permissions' => 'Permissions',
|
||||
'Plain' => 'Plain',
|
||||
'Preview' => 'Preview',
|
||||
'Publish' => 'Publish',
|
||||
'Settings' => 'Settings',
|
||||
'Status' => 'Status',
|
||||
'Title' => 'Title',
|
||||
'Type' => 'Type',
|
||||
'Visible' => 'Visible',
|
||||
'TYPE0' => 'Article',
|
||||
'TYPE1' => 'Link',
|
||||
'TYPE2' => 'Headline',
|
||||
];
|
||||
45
Theme/Backend/news-archive.tpl.php
Normal file
45
Theme/Backend/news-archive.tpl.php
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
/**
|
||||
* @var \phpOMS\Views\View $this
|
||||
*/
|
||||
|
||||
$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response);
|
||||
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
|
||||
$footerView->setPages(20);
|
||||
$footerView->setPage(1);
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
<section class="box w-100">
|
||||
<table class="table">
|
||||
<caption><?= $this->l11n->lang['News']['Archive'] ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->l11n->lang['News']['Type']; ?>
|
||||
<td class="wf-100"><?= $this->l11n->lang['News']['Title']; ?>
|
||||
<td><?= $this->l11n->lang['News']['Author']; ?>
|
||||
<td><?= $this->l11n->lang['News']['Date']; ?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="4"><?= $footerView->render(); ?>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach([] as $key => $value) : $count++; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php if($count === 0) : ?>
|
||||
<tr><td colspan="4" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</section>
|
||||
115
Theme/Backend/news-create.tpl.php
Normal file
115
Theme/Backend/news-create.tpl.php
Normal file
|
|
@ -0,0 +1,115 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
/**
|
||||
* @var \phpOMS\Views\View $this
|
||||
*/
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="wf-75 floatLeft">
|
||||
<section class="box w-100">
|
||||
<div class="inner">
|
||||
<input type="text" placeholder=" This is a news title" form="newsForm">
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box w-100">
|
||||
<div class="inner">
|
||||
<i class="fa fa-header"></i>
|
||||
<i class="fa fa-link"></i>
|
||||
<i class="fa fa-image"></i>
|
||||
<i class="fa fa-bold"></i>
|
||||
<i class="fa fa-italic"></i>
|
||||
<i class="fa fa-underline"></i>
|
||||
<i class="fa fa-strikethrough"></i>
|
||||
<i class="fa fa-list-ol"></i>
|
||||
<i class="fa fa-list-ul"></i>
|
||||
<i class="fa fa-quote-right"></i>
|
||||
<i class="fa fa-subscript"></i>
|
||||
<i class="fa fa-superscript"></i>
|
||||
<i class="fa fa-question-circle floatRight"></i>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box w-100">
|
||||
<div class="tabular">
|
||||
<ul class="tab-links">
|
||||
<li><label for="c-tab-1"><?= $this->l11n->lang['News']['Plain'] ?></label>
|
||||
<li><label for="c-tab-2"><?= $this->l11n->lang['News']['Preview'] ?></label>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<input type="radio" id="c-tab-1" name="tabular-1" checked>
|
||||
|
||||
<div class="tab">
|
||||
<textarea style="height: 300px" placeholder="" form="newsForm"></textarea><input type="hidden" id="iParsed" name="parsed">
|
||||
</div>
|
||||
<input type="radio" id="c-tab-2" name="tabular-1">
|
||||
|
||||
<div class="tab">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section class="wf-25 floatLeft">
|
||||
<section class="box w-100">
|
||||
<div class="inner">
|
||||
<form id="newsForm">
|
||||
<table class="layout wf-100">
|
||||
<tr><td colspan="2"><label for="publish"><?= $this->l11n->lang['News']['Status'] ?></label>
|
||||
<tr><td colspan="2"><select>
|
||||
<option selected><?= $this->l11n->lang['News']['Draft'] ?>
|
||||
<option><?= $this->l11n->lang['News']['Visible'] ?>
|
||||
<tr><td colspan="2"><label for="publish"><?= $this->l11n->lang['News']['Publish'] ?></label>
|
||||
<tr><td colspan="2"><input type="datetime-local" id="publish" value="<?= (new \DateTime('NOW'))->format('Y-m-d\TH:i:s') ?>">
|
||||
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Delete'] ?>"><td class="rightText"><input type="submit" value="<?= $this->l11n->lang[0]['Save'] ?>"> <input type="submit" value="<?= $this->l11n->lang['News']['Publish'] ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
<section class="box w-100">
|
||||
<div class="inner">
|
||||
<form id="newsForm">
|
||||
<table class="layout wf-100">
|
||||
<tr><td colspan="2"><label><?= $this->l11n->lang['News']['Type'] ?></label>
|
||||
<tr><td colspan="2"><span class="radio"><input type="radio" name="type" form="newsForm" value="1" id="news" checked><label for="news"><?= $this->l11n->lang['News']['News'] ?></label></span>
|
||||
<tr><td colspan="2"><span class="radio"><input type="radio" name="type" form="newsForm" value="2" id="headline"><label for="headline"><?= $this->l11n->lang['News']['Headline'] ?></label></span>
|
||||
<tr><td colspan="2"><span class="radio"><input type="radio" name="type" form="newsForm" value="3" id="link"><label for="link"><?= $this->l11n->lang['News']['Link'] ?></label></span>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
<section class="box w-100">
|
||||
<div class="inner">
|
||||
<form id="newsForm">
|
||||
<table class="layout wf-100">
|
||||
<tr><td colspan="2"><label for="permission"><?= $this->l11n->lang['News']['Permissions'] ?></label>
|
||||
<tr><td><input type="text" id="permission"><input type="hidden" form="newsForm" name="permission"><td><button><?= $this->l11n->lang[0]['Add'] ?></button>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
<section class="box w-100">
|
||||
<div class="inner">
|
||||
<form id="newsForm">
|
||||
<table class="layout wf-100">
|
||||
<tr><td colspan="2"><label for="groups"><?= $this->l11n->lang['News']['Groups'] ?></label>
|
||||
<tr><td><input type="text" id="groups"><input type="hidden" form="newsForm" name="groups"><td><button><?= $this->l11n->lang[0]['Add'] ?></button>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
53
Theme/Backend/news-dashboard.tpl.php
Normal file
53
Theme/Backend/news-dashboard.tpl.php
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
/**
|
||||
* @var \phpOMS\Views\View $this
|
||||
*/
|
||||
|
||||
$newsList = $this->getData('news');
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-100 floatLeft">
|
||||
<table class="table">
|
||||
<caption><?= $this->l11n->lang['News']['News'] ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>
|
||||
<td><?= $this->l11n->lang['News']['Type']; ?>
|
||||
<td class="wf-100"><?= $this->l11n->lang['News']['Title']; ?>
|
||||
<td><?= $this->l11n->lang['News']['Author']; ?>
|
||||
<td><?= $this->l11n->lang['News']['Date']; ?>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach($newsList as $key => $news) : $count++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/news/article?id=' . $news->getId());
|
||||
$color = 'darkred';
|
||||
if($news->getType() === \Modules\News\Models\NewsType::ARTICLE) { $color = 'green'; }
|
||||
elseif($news->getType() === \Modules\News\Models\NewsType::HEADLINE) { $color = 'purple'; }
|
||||
elseif($news->getType() === \Modules\News\Models\NewsType::LINK) { $color = 'yellow'; }
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="<?= $url; ?>"><?= $news->isFeatured() ? '<i class="fa fa-star favorite"></i>' : ''; ?></a>
|
||||
<td><a href="<?= $url; ?>"><span class="tag <?= $color; ?>"><?= $this->l11n->lang['News']['TYPE' . $news->getType()]; ?></span></a>
|
||||
<td><a href="<?= $url; ?>"><?= $news->getTitle(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $news->getCreatedBy(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $news->getPublish()->format('Y-m-d'); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($count === 0) : ?>
|
||||
<tr><td colspan="3" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</section>
|
||||
0
Theme/Backend/news-editor.tpl.php
Normal file
0
Theme/Backend/news-editor.tpl.php
Normal file
31
Theme/Backend/news-single.tpl.php
Normal file
31
Theme/Backend/news-single.tpl.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
/**
|
||||
* @var \phpOMS\Views\View $this
|
||||
*/
|
||||
|
||||
$news = $this->getData('news');
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-100">
|
||||
<h1><?= $news->getTitle(); ?></h1>
|
||||
<div class="inner">
|
||||
<article>
|
||||
<?= $news->getContent(); ?>
|
||||
</article>
|
||||
</div>
|
||||
</section>
|
||||
Loading…
Reference in New Issue
Block a user