import v1.1.0_beta1 | 2009-08-21

This commit is contained in:
2019-07-17 22:16:19 +02:00
parent 2c1152f0d3
commit 8dee6b1a10
2306 changed files with 251360 additions and 23428 deletions

View File

@ -0,0 +1,28 @@
<form method="post" action="<?php echo $this->base ?>/news/edit/save" class="formGrid">
<input type="hidden" name="id" value="<?= $this->articleId ?>" />
<?php echo $this->articleForm->title ?>
<?php echo $this->articleForm->excerpt ?>
<?php echo $this->articleForm->date ?>
<?php echo $this->articleForm->content ?>
<div>
<input type="submit" id="save" value="<?php echo $this->translate('Save') ?>" />
<input type="button" id="cancel" value="<?php echo $this->translate('Cancel') ?>" />
<script type="text/javascript">
YAHOO.util.Event.onDOMReady(function () {
new YAHOO.widget.Button(
"save",
{
type : "submit"
}
);
new YAHOO.widget.Button(
"cancel",
{
type : "push",
onclick : {fn: function() {COMMID.editArticle.cancel(<?php echo $this->articleId ?>)}}
}
);
});
</script>
</div>
</form>

View File

@ -0,0 +1,34 @@
<?php if ($this->user->role == Users_Model_User::ROLE_ADMIN): ?>
<div class="linksTopRightContainer">
<h2><?php echo $this->translate('Latest News') ?></h2>
<div class="linksTopRight">
<a href="<?php echo $this->base ?>/news/edit/add"><?php echo $this->translate('Add New Article') ?></a>
</div>
</div>
<?php endif ?>
<?php if (count($this->paginator) == 0): ?>
<div><?= $this->translate('There are no news articles yet') ?></div>
<?php else: ?>
<?php foreach ($this->paginator as $article): ?>
<div class="post">
<h3><a href="<?php echo $this->base . '/news/' . $article->id ?>"><?php echo $article->title ?></a></h3>
<div class="article_date">
<?php echo $this->translate("Published on %s", $article->date) ?>
</div>
<p><?php echo $article->excerpt ?></p>
<p class="more">
<a href="<?php echo $this->base . '/news/' . $article->id ?>">
<?php echo $this->translate('read more') ?>
</a>
</p>
</div>
<?php endforeach; ?>
<?php endif ?>
<?php if ($this->paginator->count() > 1): ?>
<?php echo $this->paginationControl($this->paginator,
'Sliding',
'index/pagination.phtml',
array(
'base' => $this->base
)) ?>
<?php endif ?>

View File

@ -0,0 +1,36 @@
<!--
See http://developer.yahoo.com/ypatterns/pattern.php?pattern=searchpagination
-->
<?php if ($this->pageCount): ?>
<div class="paginationControl">
<!-- Previous page link -->
<?php if (isset($this->previous)): ?>
<a href="<?php echo $this->base . '/news?page=' . $this->previous ?>">
&lt; <?php echo $this->translate('Previous') ?>
</a> |
<?php else: ?>
<span class="disabled">&lt; <?php echo $this->translate('Previous') ?></span> |
<?php endif ?>
<!-- Numbered page links -->
<?php foreach ($this->pagesInRange as $page): ?>
<?php if ($page != $this->current): ?>
<a href="<?php echo $this->base . '/news?page=' . $page ?>">
<?php echo $page; ?>
</a> |
<?php else: ?>
<?php echo $page; ?> |
<?php endif ?>
<?php endforeach ?>
<!-- Next page link -->
<?php if (isset($this->next)): ?>
<a href="<?php echo $this->base . '/news?page=' . $this->next ?>">
<?php echo $this->translate('Next') ?> &gt;
</a>
<?php else: ?>
<span class="disabled"><?php echo $this->translate('Next') ?> &gt;</span>
<?php endif ?>
</div>
<?php endif ?>

View File

@ -0,0 +1,15 @@
<h2><?= $this->escape($this->article->title) ?></h2>
<div class="article_date">
<?php echo $this->translate('Published on %s', $this->article->date) ?>
<?php if ($this->user->role == Users_Model_User::ROLE_ADMIN): ?>
<div class="linksTopRight">
<a href="<?php echo $this->base . '/news/edit/index/id/' . $this->article->id ?>"><?php echo $this->translate('Edit Article') ?></a>&nbsp;|&nbsp;
<a href="#" onclick="COMMID.editArticle.remove(<?php echo $this->article->id ?>);return false;"><?php echo $this->translate('Delete Article') ?></a>
</div>
<?php endif ?>
</div>
<p><?= $this->escape($this->article->excerpt) ?></p>
<hr />
<div>
<?php echo $this->article->content ?>
</div>