} else { // behaviors can change page menu if (is_object($behaviors)) { $context['page_menu'] = $behaviors->add_commands('sections/view.php', 'section:' . $item['id'], $context['page_menu']); } // remember surfer visit Surfer::is_visiting(Sections::get_permalink($item), Codes::beautify_title($item['title']), 'section:' . $item['id'], $item['active']); // increment silently the hits counter if not robot, nor associate, nor owner, nor at follow-up page if (Surfer::is_crawler() || Surfer::is_associate()) { } elseif (isset($item['owner_id']) && Surfer::is($item['owner_id'])) { } elseif (!$zoom_type) { $item['hits'] = isset($item['hits']) ? $item['hits'] + 1 : 1; Sections::increment_hits($item['id']); } // initialize the rendering engine Codes::initialize($cur_section->get_permalink()); // neighbours information $neighbours = NULL; if (Sections::has_option('with_neighbours', $anchor, $item) && is_object($anchor)) { $neighbours = $anchor->get_neighbours('section', $item); } // // set page image -- $context['page_image'] // // the section or the anchor icon, if any if (isset($item['icon_url']) && $item['icon_url']) { $context['page_image'] = $item['icon_url']; } elseif (is_object($anchor)) { $context['page_image'] = $anchor->get_icon_url(); } //