TESTING - Option Menu?

This commit is contained in:
Yuki K 2016-09-15 02:04:30 -04:00
parent 2c66abf960
commit be9bdc41c5

View File

@ -1,16 +1,14 @@
<div> <div>
<ul> <ul>
<li class="wiki"><?php if (array_key_exists("dakimakura", $this->post->tags()) && !current_user()->is_contributor_or_higher()) : <li class="wiki"><?php if ($this->post->has_jpeg()) : ?>
$file_sample = $this->post->get_file_sample(current_user()); <?php $file_image = $this->post->get_file_image() ?>
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( <?php # If we have a JPEG, the above link was the JPEG. Link to the PNG here. ?>
'class' => $this->post->has_sample() ? "original-file-changed":"original-file-unchanged", <li><?= $this->linkTo($this->t('.download.normal').' '.strtoupper($file_image['ext']).' ('.$this->numberToHumanSize($file_image['size']).')', $file_image['url'], array(
'id' => 'highres')); 'class' => 'original-file-unchanged',
else: 'id' => 'png'));
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"), </li>
'id' => 'highres')); <?php endif ?>
endif
?>
<?= $this->linkTo('■', '#', ['class' => 'submenu-button']) ?> <?= $this->linkTo('■', '#', ['class' => 'submenu-button']) ?>
<ul class="submenu"> <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> <li><?= $this->linkToFunction($this->t('buttons.edit'), "$('comments').hide(); $('edit').show().scrollTo(); $('post_tags').focus(); Cookie.put('show_defaults_to_edit', 1);") ?></li>