From e4e81bf226aa618835f9a72fa2b3aa61df01ccff Mon Sep 17 00:00:00 2001 From: Yuki K Date: Thu, 15 Sep 2016 02:34:56 -0400 Subject: [PATCH] TESTING - Option Menu? --- .../post/show_partials/_options_panel.php | 26 +------------------ 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/app/views/post/show_partials/_options_panel.php b/app/views/post/show_partials/_options_panel.php index 7913190..2b994d0 100755 --- a/app/views/post/show_partials/_options_panel.php +++ b/app/views/post/show_partials/_options_panel.php @@ -8,7 +8,7 @@ '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']), $file_jpeg['url'], array( + echo $this->linkTo(($this->post->has_sample() ? $this->t('.download.larger') : $this->t('.download.image')) . ' (' . $this->numberToHumanSize($file_jpeg['size']) . ')', $file_jpeg['url'], array( 'class' => ($this->post->has_sample() ? "original-file-changed":"original-file-unchanged"), 'id' => 'highres')); endif @@ -31,27 +31,6 @@
  • linkToFunction($this->t('.resize'), "post->resize_image()") ?>
  • --> post->image() && $this->post->can_be_seen_by(current_user())) : ?> - post->get_file_jpeg() ?> - post->use_sample(current_user()) or current_user()->always_resize_images) : ?> -
  • post->tags()) || current_user()->is_contributor_or_higher()); - echo $this->linkTo($this->t('.view_larger'), $file_jpeg['url'], [ - 'class' => ($this->post->has_sample() ? "original-file-changed":"original-file-unchanged") . " highres-show", - 'id' => 'highres-show', 'large_width' => $this->post->width, 'large_height' => $this->post->height]) - ?> -
  • - -
  • 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 - ?> -
  • post->has_jpeg()) : ?> post->get_file_image() ?> @@ -93,9 +72,6 @@
  • linkTo($this->t('.set_avatar'), array('user#set_avatar', 'id' => $this->post->id)) ?>
  • linkTo($this->t('.history'), array('history#index', 'search' => 'post:'.$this->post->id)) ?>
  • - enable_find_external_data && current_user()->is_mod_or_higher()) : ?> -
  • linkTo('Search external data', array('post#search_external_data', 'ids' => $this->post->id)) ?>
  • -