function get_title() { $ret = ''; if($this->use_default_org_name_in_page_title) { $ret .= FULL_ORGANIZATION_NAME.': '; } $ret .= $this->site_info->get_value('name'); if(carl_strtolower($this->site_info->get_value('name')) != carl_strtolower($this->title)) { $ret .= ": " . $this->title; } $crumbs = &$this->_get_crumbs_object(); // Take the last-added crumb and add it to the page title if($last_crumb = $crumbs->get_last_crumb() ) { if(empty($last_crumb['id']) || $last_crumb['id'] != $this->page_id) { $ret .= ': '.$last_crumb['page_name']; } } $ret = reason_htmlspecialchars(strip_tags($ret)); $this->head_items->add_head_item('title',array(),$ret, true); //return $ret; }
function pre_show_form() { list($entity_a, $entity_b, $rel_info) = $this->get_entities(); $entity_a_type = new entity($entity_a->get_value('type')); $entity_b_type = new entity($entity_b->get_value('type')); $entity_a_type_name = carl_strtolower($entity_a_type->get_value('name'), 'UTF-8'); $entity_b_type_name = carl_strtolower($entity_b_type->get_value('name'), 'UTF-8'); echo '<p>Only one ' . $entity_b_type_name . ' may be associated with a ' . $entity_a_type_name . ' in this way.<br />Pressing "Yes" will replace the previously related ' . $entity_b_type_name . ' with "' . $entity_b->get_value('name') . '"</p>'; echo '<p>Would you like to continue?</p>'; }