Lines Matching +full:d +full:- +full:link

29     private $_url_regex = '[a-zA-Z0-9\.]+>[^\|\]]+';
36 $this->helper =& plugin_load('helper', 'powerlinks');
37 …if(!$this->helper) msg('Can not load powerlinks helper -- check that plugin is correctly installed…
38 $this->interwiki = getInterwiki();
45 return $this->helper->syntax_getInfo();
49 return $this->helper->syntax_getType();
65 $REGEX = '\[\['.$this->_url_regex. '\|(?!\{)[^\|\]]+\|' .'.*?(?<!\\\\)\]\]';
66 $this->Lexer->addSpecialPattern(
75 $match = substr ($match, 2, -2).'|'; // correct for preg_split ending with delimiter
78 $link= array();
79 $link['url'] = array_shift($data);
81 list ($iw_shortcut, $iw_uri) = explode ('>', $link['url'] );
83 $iw_url= $this->_resolveInterWiki($iw_shortcut, $iw_uri);
87 $data[0]= '**Image Link**';
91 foreach ($data as &$D) {
92 $D= str_replace ('\|', '|', $D);
93 $D= str_replace ('\[', '[', $D);
94 $D= str_replace ('\]', ']', $D);
99 $link['name'] = array_shift($data);
102 "normal" dokuwiki link
105 $handler->_addCall(
108 $link['url'],
109 $link['name'],
117 /* otherwise, we are dealing with extended link,
123 // default link behaviour
124 $link['_type'] = 'interwiki';
125 $link['target']= $conf['target']['wiki'];
126 $link['title'] = htmlspecialchars($link['url']);
127 $class = preg_replace('/[^_\-a-z0-9]+/i','_',$iw_shortcut);
128 $link['class'] = "iw_$class";
130 foreach ($data as $D) {
131 list ($key, $val) = explode ('=', $D, 2);
135 else $val= substr($val, 1, -1); // remove quotes
140 $link['target']= str_replace('_', '', $val); // remove eg.: "_" from "_blank"
144 $link['title']= $val;
148 $link['title_in'] = $val ? $val : 'title';
149 … $set['fetchname_method'] = ($this->helper->TitleAged($link['url']) ) ? 'recheck' : 'cache';
166 /* -----------------------------------------------------------
169 $link['url']= $iw_url;
176 … if ($docheck) $set['result_']= $this->helper->getExternalPage($link['url'], $xcontents, $xstatus);
178 $this->helper->composeLink ($link, $set, array($xcontents, $xstatus) );
180 /* -----------------------------------------------------
182 ask the Renderer system to create the link */
184 'link' => $link,
195 return $this->helper->syntax_render
205 if ( isset($this->interwiki[$shortcut]) ) {
206 $url = $this->interwiki[$shortcut];