Lines Matching refs:link
70 $link= array();
71 $link['url'] = array_shift($data);
72 $link['name'] = array_shift($data);
73 $link['title'] = array_shift($data);
76 if (empty($link['title']) ) $link['title']= $link['name'];
79 $link['name'] = str_replace ('\|', '|', $link['name']);
80 $link['title'] = str_replace ('\|', '|', $link['title']);
83 $link['url'] = substr($link['url'], 1); // remove leading '@'
84 $link['url'] = DW_common_linkbonus::_getServerBase(). $link['url'];
91 if (empty($data) && empty($link['title']) ) {
92 $handler->_addCall('externallink',array( $link['url'],$link['name'] ), $pos);
115 DW_common_linkbonus::parse_options ($data, $link, $keys);
118 if (array_key_exists('fetchname', $link)) {
120 … if ($link['fetchname'] === '' || empty($link['fetchname'])) $link['fetchname'] = 'title';
132 if ($link['doa'] || $link['fetchname']) {
133 $pagestatus = DW_common_linkbonus::_doTestPage($link['url']);
136 if ($link['fetchname']) {
137 … if ($pagestatus == 'text/html') $ext_title= DW_common_linkbonus::_doGetPageTitle($link['url']);
138 else $ext_title = $link['name']. " file $pagestatus";
140 if ($link['fetchname'] == 'tooltip') $link['title'] = $ext_title;
141 else if ($link['fetchname'] == 'title') $link['name']= $ext_title;
144 if (array_key_exists('doa', $link)) {
145 $link['class'].= ($pagestatus === false) ? 'doa_error' : 'doa_ok';
146 $link['title'].= ' '. $this->getLang(($pagestatus===false) ? 'doa_no' : 'doa_ok');
147 unset($link['doa']);
150 $link['class']= 'urlextern '. $link['class']; // default DW external-link class
151 $link['format'] = $this->getConf('in_formatting');
157 'link' => $link,