update to news-ticker
This commit is contained in:
parent
114ce70d3a
commit
e6dab194cd
@ -1,18 +1,8 @@
|
|||||||
<?php if (!CONFIG()->enable_news_ticker) return; ?>
|
<?php if (!CONFIG()->enable_news_ticker) return; ?>
|
||||||
<div id="news-ticker" style="display: none">
|
<div id="news-ticker" style="display: none">
|
||||||
<ul>
|
<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>
|
<li>MyImouto is now on <a href="https://github.com/myimouto/myimouto">GitHub</a>.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<a href="#" id="close-news-ticker-link"><?= $this->t('.close') ?></a>
|
<a href="#" id="close-news-ticker-link"><?= $this->t('.close') ?></a>
|
||||||
</div>
|
</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>
|
|
||||||
|
Reference in New Issue
Block a user