Changeset 776:4ce635c0ca26 for plugins/simpleMenu
- Timestamp:
- 12/02/11 08:50:18 (14 years ago)
- Branch:
- default
- Location:
- plugins/simpleMenu
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note: See TracChangeset
for help on using the changeset viewer.