TESTING - Option Menu?

This commit is contained in:
Yuki K 2016-09-15 02:13:22 -04:00
parent fff8df6517
commit daa98fb80c

View File

@ -1,16 +1,4 @@
<div> <div class="clearfix" >
<?php
/**
* MI: how about caching the menu for each user level, instead of each user,
* having placeholders for user id and name that will be replaced with current user's
* data right before echoing the menu.
*/
$key = 'menu.' . Rails::application()->I18n()->locale() . '.'.current_user()->level;
$menu = Rails::cache()->read($key);
if (!$menu) :
ob_start();
?>
<ul> <ul>
<li class="wiki"><?php if ($this->post->image() && $this->post->can_be_seen_by(current_user())) : ?> <li class="wiki"><?php if ($this->post->image() && $this->post->can_be_seen_by(current_user())) : ?>
<?php $file_jpeg = $this->post->get_file_jpeg() ?> <?php $file_jpeg = $this->post->get_file_jpeg() ?>