This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Sequenzia/app/views/layouts/_news.php

19 lines
662 B
PHP
Raw Normal View History

2013-10-27 01:06:58 +02:00
<?php if (!CONFIG()->enable_news_ticker) return; ?>
<div id="news-ticker" style="display: none">
<ul>
<li>We're running MyImouto <?= CONFIG()->version ?>. Please report any errors <?= $this->linkTo('here', 'http://code.google.com/p/my-imouto-booru/issues/list', ['target' => '_blank']) ?>.</li>
</ul>
<a href="#" id="close-news-ticker-link"><?= $this->t('.close') ?></a>
</div>
<script type="text/javascript">
if (Cookie.get('hide-news-ticker') != '1') {
$('news-ticker').show();
$('close-news-ticker-link').observe('click', function(e) {
$('news-ticker').hide();
Cookie.put('hide-news-ticker', '1', 7);
return false;
})
}
</script>