$box_url = ''; } // in a navigation box $box_popup = ''; $context['components']['contextual'] = Skin::build_box($box_title, $menu, 'contextual', 'contextual_menu', $box_url, $box_popup); } // categories attached to this article, if not at another follow-up page if (!$zoom_type || $zoom_type == 'categories') { // build a complete box $box['bar'] = array(); $box['text'] = ''; // list categories by title $offset = ($zoom_index - 1) * CATEGORIES_PER_PAGE; $items =& Members::list_categories_by_title_for_member('article:' . $item['id'], $offset, CATEGORIES_PER_PAGE, 'sidebar'); // the command to change categories assignments if (Categories::allow_assign($item, $anchor)) { $items = array_merge($items, array(Categories::get_url('article:' . $item['id'], 'select') => i18n::s('Assign categories'))); } // actually render the html for the section if (is_array($box['bar'])) { $box['text'] .= Skin::build_list($box['bar'], 'menu_bar'); } if (is_array($items)) { $box['text'] .= Skin::build_list($items, 'compact'); } if ($box['text']) { $context['components']['categories'] = Skin::build_box(i18n::s('See also'), $box['text'], 'categories', 'categories'); } } // referrals, if any $context['components']['referrals'] =& Skin::build_referrals(Articles::get_permalink($item));
include_once 'categories.php'; // the anchor associated with a category $member = NULL; if (isset($_REQUEST['member'])) { $member = $_REQUEST['member']; } elseif (isset($_REQUEST['anchor']) && isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == 'GET') { $member = $_REQUEST['anchor']; } $member = strip_tags($member); // get the member object, which is supposed to be a container $anchor = NULL; if ($member) { $anchor = Anchors::get($member); } // do we have the permission to add new categories? if (Categories::allow_assign(NULL, $anchor)) { $permitted = TRUE; } else { $permitted = FALSE; } // load the skin load_skin('categories'); // the path to this page if (is_object($anchor) && $anchor->is_viewable()) { $context['path_bar'] = $anchor->get_path_bar(); } else { $context['path_bar'] = array('categories/' => i18n::s('Categories')); } // the title of the page if (is_object($anchor)) { $context['page_title'] = sprintf(i18n::s('Categories for: %s'), $anchor->get_title());
// $lines[] = join(BR, Skin::build_subscribers($context['url_to_home'].$context['url_to_root'].Users::get_url($item['id'], 'feed'), $item['nick_name'])); } // in a side box if (count($lines)) { $context['components']['channels'] = Skin::build_box(i18n::s('Monitor'), join(BR, $lines), 'channels', 'feed'); } // categories attached to this item, if not at another follow-up page if (!$zoom_type || $zoom_type == 'categories') { // build a complete box $box = array(); $box['bar'] = array(); $box['text'] = ''; // list categories by title $items =& Members::list_categories_by_title_for_member('user:'******'id'], 0, COMPACT_LIST_SIZE, 'sidebar'); // the command to change categories assignments if (Categories::allow_assign($item)) { $items = array_merge($items, array(Categories::get_url('user:'******'id'], 'select') => i18n::s('Assign categories'))); } // actually render the html for the section if (is_array($box['bar'])) { $box['text'] .= Skin::build_list($box['bar'], 'menu_bar'); } if (is_array($items)) { $box['text'] .= Skin::build_list($items, 'compact'); } if ($box['text']) { $context['components']['categories'] = Skin::build_box(i18n::s('See also'), $box['text'], 'categories', 'categories'); } } // referrals, if any $context['components']['referrals'] =& Skin::build_referrals(Users::get_url($item['id']));