TESTING - Option Menu?
This commit is contained in:
parent
a3dd19e208
commit
2c66abf960
@ -1,5 +1,18 @@
|
||||
<div>
|
||||
<ul>
|
||||
<li class="wiki"><?php if (array_key_exists("dakimakura", $this->post->tags()) && !current_user()->is_contributor_or_higher()) :
|
||||
$file_sample = $this->post->get_file_sample(current_user());
|
||||
echo $this->linkTo(($this->post->has_sample() ? $this->t('.download.larger') : $this->t('.download.normal')) . ' (' . $this->numberToHumanSize($file_sample['size']) . ' ' . strtoupper($file_sample['ext']) . ')', $file_sample['url'], array(
|
||||
'class' => $this->post->has_sample() ? "original-file-changed":"original-file-unchanged",
|
||||
'id' => 'highres'));
|
||||
else:
|
||||
echo $this->linkTo(($this->post->has_sample() ? $this->t('.download.larger') : $this->t('.download.image')) . ' (' . $this->numberToHumanSize($file_jpeg['size']) . ' ' . strtoupper($file_jpeg['ext']) . ')', $file_jpeg['url'], array(
|
||||
'class' => ($this->post->has_sample() ? "original-file-changed":"original-file-unchanged"),
|
||||
'id' => 'highres'));
|
||||
endif
|
||||
?>
|
||||
<?= $this->linkTo('■', '#', ['class' => 'submenu-button']) ?>
|
||||
<ul class="submenu">
|
||||
<li><?= $this->linkToFunction($this->t('buttons.edit'), "$('comments').hide(); $('edit').show().scrollTo(); $('post_tags').focus(); Cookie.put('show_defaults_to_edit', 1);") ?></li>
|
||||
<!-- <?php //if (!$this->post->is_deleted() && $this->post->image() && $this->post->width && $this->post->width > 700) : ?>
|
||||
<li><?php //echo $this->linkToFunction($this->t('.resize'), "post->resize_image()") ?></li>
|
||||
@ -71,4 +84,6 @@
|
||||
<li><?= $this->linkTo('Search external data', array('post#search_external_data', 'ids' => $this->post->id)) ?></li>
|
||||
<?php endif ?>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user