Changeset 776:4ce635c0ca26 for plugins
- Timestamp:
- 12/02/11 08:50:18 (14 years ago)
- Branch:
- default
- Location:
- plugins
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/antispam/index.php
r773 r776 211 211 if (DC_ADMIN_URL) 212 212 { 213 $ham_feed = $core->url->getURLFor('hamfeed',$code = dcAntispam::getUserCode($core)); 214 $spam_feed = $core->url->getBase('spamfeed',$code = dcAntispam::getUserCode($core)); 213 $ham_feed = $core->blog->url.$core->url->getURLFor( 214 'hamfeed', 215 $code = dcAntispam::getUserCode($core) 216 ); 217 $spam_feed = $core->blog->url.$core->url->getURLFor( 218 'spamfeed', 219 $code = dcAntispam::getUserCode($core) 220 ); 215 221 216 222 echo -
plugins/blogroll/_public.php
r773 r776 54 54 { 55 55 $f = $GLOBALS['core']->tpl->getFilters($attr); 56 return '<?php echo '.sprintf($f,'$core-> url->getURLFor("xbel")').'; ?>';56 return '<?php echo '.sprintf($f,'$core->blog->url.$core->url->getURLFor("xbel")').'; ?>'; 57 57 } 58 58 -
plugins/pages/_prepend.php
r270 r776 15 15 $core->url->register('pagespreview','pagespreview','^pagespreview/(.+)$',array('urlPages','pagespreview')); 16 16 17 $core->setPostType('page','plugin.php?p=pages&act=page&id=%d',$core->url->get Base('pages').'/%s');17 $core->setPostType('page','plugin.php?p=pages&act=page&id=%d',$core->url->getURLFor('pages','%s')); 18 18 19 19 # We should put this as settings later -
plugins/pages/page.php
r773 r776 391 391 392 392 if ($post_id) { 393 $preview_url = 393 $preview_url = $core->blog->url. 394 394 $core->url->getURLFor('pagespreview', 395 395 $core->auth->userID().'/'. -
plugins/simpleMenu/_install.php
r683 r776 21 21 $menu_default = array( 22 22 array('label' => 'Home', 'descr' => 'Recent posts', 'url' => $blog_url), 23 array('label' => 'Archives', 'descr' => '', 'url' => $blog_url.$core->url->get Base('archive'))23 array('label' => 'Archives', 'descr' => '', 'url' => $blog_url.$core->url->getURLFor('archive')) 24 24 ); 25 25 $core->blog->settings->system->put('simpleMenu',serialize($menu_default),'string','simpleMenu default menu',false,true); -
plugins/simpleMenu/index.php
r751 r776 168 168 $item_label = $item_select_label; 169 169 $item_descr = sprintf(__('Switch to %s language'),$item_select_label); 170 $item_url .= $core->url->get Base('lang').$item_select;170 $item_url .= $core->url->getURLFor('lang',$item_select); 171 171 break; 172 172 case 'category': … … 174 174 $item_label = $item_select_label; 175 175 $item_descr = __('Recent Posts from this category'); 176 $item_url .= $core->url->get Base('category').'/'.$item_select;176 $item_url .= $core->url->getURLFor('category',$item_select); 177 177 break; 178 178 case 'archive': … … 181 181 $item_label = __('Archives'); 182 182 $item_descr = $first_year.($first_year != $last_year ? ' - '.$last_year : ''); 183 $item_url .= $core->url->get Base('archive');183 $item_url .= $core->url->getURLFor('archive'); 184 184 } else { 185 185 $item_label = $item_select_label; 186 186 $item_descr = sprintf(__('Posts from %s'),$item_select_label); 187 $item_url .= $core->url->get Base('archive').'/'.substr($item_select,0,4).'/'.substr($item_select,-2);187 $item_url .= $core->url->getURLFor('archive',substr($item_select,0,4).'/'.substr($item_select,-2)); 188 188 } 189 189 break; … … 199 199 $item_label = __('All tags'); 200 200 $item_descr = ''; 201 $item_url .= $core->url->get Base('tags');201 $item_url .= $core->url->getURLFor('tags'); 202 202 } else { 203 203 $item_label = $item_select_label; 204 204 $item_descr = sprintf(__('Recent posts for %s tag'),$item_select_label); 205 $item_url .= $core->url->get Base('tag').'/'.$item_select;205 $item_url .= $core->url->getURLFor('tag',$item_select); 206 206 } 207 207 break; -
plugins/tags/_admin.php
r773 r776 63 63 64 64 65 $tag_url = html::stripHostURL($GLOBALS['core']->blog->url.$GLOBALS['core']->url->get Base('tag'));65 $tag_url = html::stripHostURL($GLOBALS['core']->blog->url.$GLOBALS['core']->url->getURLFor('tag')); 66 66 $res['url'] = $tag_url.'/'.rawurlencode(dcMeta::sanitizeMetaID($url)); 67 67 $res['content'] = $content; … … 102 102 public static function postHeaders() 103 103 { 104 $tag_url = $GLOBALS['core']-> url->getURLFor('tag');105 106 $opts = $GLOBALS['core']-> auth->getOptions();104 $tag_url = $GLOBALS['core']->blog->url.$GLOBALS['core']->url->getURLFor('tag'); 105 106 $opts = $GLOBALS['core']->blog->url.$GLOBALS['core']->auth->getOptions(); 107 107 $type = isset($opts['tag_list_format']) ? $opts['tag_list_format'] : 'more'; 108 108 … … 131 131 public static function postsActionsHeaders() 132 132 { 133 $tag_url = $GLOBALS['core']-> url->getURLFor('tag');133 $tag_url = $GLOBALS['core']->blog->url.$GLOBALS['core']->url->getURLFor('tag'); 134 134 135 135 $opts = $GLOBALS['core']->auth->getOptions(); -
plugins/tags/_public.php
r773 r776 186 186 { 187 187 $f = $GLOBALS['core']->tpl->getFilters($attr); 188 return '<?php echo '.sprintf($f,'$core-> url->getURLFor("tag",'.188 return '<?php echo '.sprintf($f,'$core->blog->url.$core->url->getURLFor("tag",'. 189 189 'rawurlencode($_ctx->meta->meta_id))').'; ?>'; 190 190 } … … 193 193 { 194 194 $f = $GLOBALS['core']->tpl->getFilters($attr); 195 return '<?php echo '.sprintf($f,'$ $core->url->getURLFor("tags")').'; ?>';195 return '<?php echo '.sprintf($f,'$core->blog->url.$core->url->getURLFor("tags")').'; ?>'; 196 196 } 197 197 … … 205 205 206 206 $f = $GLOBALS['core']->tpl->getFilters($attr); 207 return '<?php echo '.sprintf($f,'$core-> url->getURLFor("tag_feed",'.207 return '<?php echo '.sprintf($f,'$core->blog->url.$core->url->getURLFor("tag_feed",'. 208 208 'rawurlencode($_ctx->meta->meta_id)."/'.$type.'")').'; ?>'; 209 209 } … … 247 247 { 248 248 $res .= 249 '<li><a href="'.$core-> url->getURLFor('tag',rawurlencode($rs->meta_id)).'" '.249 '<li><a href="'.$core->blog->url.$core->url->getURLFor('tag',rawurlencode($rs->meta_id)).'" '. 250 250 'class="tag'.$rs->roundpercent.'" rel="tag">'. 251 251 $rs->meta_id.'</a> </li>'; … … 257 257 { 258 258 $res .= 259 '<p><strong><a href="'.$core-> url->getURLFor("tags").'">'.259 '<p><strong><a href="'.$core->blog->url.$core->url->getURLFor("tags").'">'. 260 260 html::escapeHTML($w->alltagslinktitle).'</a></strong></p>'; 261 261 } -
plugins/widgets/_widgets_functions.php
r741 r776 50 50 $res .= 51 51 '<li class="topnav-arch">'. 52 '<a href="'.$core->blog->url.$core->url->get Base("archive").'">'.52 '<a href="'.$core->blog->url.$core->url->getURLFor("archive").'">'. 53 53 __('Archives').'</a></li>'. 54 54 '</ul>'. … … 91 91 92 92 $res .= 93 '<a href="'.$core->blog->url.$core->url->getBase('category').'/'. 94 $rs->cat_url.'">'. 93 '<a href="'.$core->blog->url.$core->url->getURLFor('category', $rs->cat_url).'">'. 95 94 html::escapeHTML($rs->cat_title).'</a>'. 96 95 ($w->postcount ? ' <span>('.$rs->nb_post.')</span>' : ''); … … 171 170 ' <li>'. 172 171 sprintf($l, 173 '<a href="'.$core-> blog->url.$core->url->getBase('lang').$rs->post_lang.'" '.172 '<a href="'.$core->url->getURLFor('lang',$rs->post_lang).'" '. 174 173 'class="lang-'.$rs->post_lang.'">'. 175 174 $lang_name.'</a>'). … … 203 202 $res .= 204 203 '<li><a type="'.$mime.'" '. 205 'href="'.$core->blog->url.$core->url->get Base('feed').'/'.$type.'" '.204 'href="'.$core->blog->url.$core->url->getURLFor('feed', $type).'" '. 206 205 'title="'.sprintf($p_title,($type == 'atom' ? 'Atom' : 'RSS')).'" class="feed">'. 207 206 __('Entries feed').'</a></li>'; … … 211 210 $res .= 212 211 '<li><a type="'.$mime.'" '. 213 'href="'.$core->blog->url.$core->url->get Base('feed').'/'.$type.'/comments" '.212 'href="'.$core->blog->url.$core->url->getURLFor('feed',$type.'/comments').'" '. 214 213 'title="'.sprintf($c_title,($type == 'atom' ? 'Atom' : 'RSS')).'" class="feed">'. 215 214 __('Comments feed').'</a></li>';
Note: See TracChangeset
for help on using the changeset viewer.