Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
is there an enanched menu plugin?
#1
Hello, i need to add custom menu that link to external websitets in a new windows.

I tried the I18N Navigation but its uses a redirect and its not good.

Are there other options available?

I'm looking for something supported by the admin menĂ¹ too.

So far i've hacked my theme's functions.php with the following code:
PHP Code:
add_filter'menuitems''my_menuitems' );

function 
my_menuitems($menuitems) {
    
// decode HTML
    
preg_match_all("/<li(.*?)>(.*?)<\/li>/",$menuitems,$menuarray);
    
// debug HTML
    //echo '<pre style="color:#fff;background:#000">'.PHP_EOL; echo htmlspecialchars(print_r($menuarray[0],TRUE)); echo '<hr>'.PHP_EOL; die('eof');
    
foreach ($menuarray[0] as &$item) {
        if (
preg_match('/\/video\//',$item)) {
            
$item '<li class="video"><a target="_blank" href="http://www.youtube.com/channel/UClrVRJwGL596mRm1ODcLcRg" title="Video">Video</a></li>';
        }
    }

    
// Recreate Menu string
    
return implode''$menuarray[0] );


Maybe i just have to add the extra fields and write a comple plugin?

Or there is some already plugin made?

For each menĂ¹ i need:
- external URL
- target (usually _blank)
- rel (for "nofollow")

Thanks
Reply
#2
Maybe this one: GS Custom Menu
http://get-simple.info/forums/showthread.php?tid=5094

(I haven't tried it so I cannot say more.)
Reply
#3
Why not just use a i18n nav custom component
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#4
(2014-11-01, 04:32:50)shawn_a Wrote: Why not just use a i18n nav custom component

I've already told "I tried the I18N Navigation but its uses a redirect and its not good."
Reply
#5
wtf does that mean, it does whatever you put in it. There are no mysterious redirects

http://mvlcek.bplaced.net/get-simple/mul...ndering:en
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)