• Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /home/opgnylyd/public_html/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /home/opgnylyd/public_html/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /home/opgnylyd/public_html/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /home/opgnylyd/public_html/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /home/opgnylyd/public_html/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /home/opgnylyd/public_html/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /home/opgnylyd/public_html/includes/common.inc).
  • Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in _menu_load_objects() (line 579 of /home/opgnylyd/public_html/includes/menu.inc).
  • Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /home/opgnylyd/public_html/includes/common.inc).

Add a unique class for every menu item

31 Oct 2016
Section: 
Tags: 

Description

Adding a unique class for each menu item for the Drupal 7 themes, using the function in the template file. It may be necessary, for example, to the designation of each menu item to various color, etc.

Solution

Override function theme_menu_link(array $ variables) in your theme file. YOUR_THEME - is the name of your theme, and the class will be added for the li tag, and will look like - menu-[unique ID].

  1. function YOUR_THEME_menu_link(array $variables) {
  2.         $element = $variables['element'];
  3.         $sub_menu = '';
  4.         $element['#attributes']['class'][] = 'menu-' . $element['#original_link']['mlid'];
  5.         if (
  6.                 $element['#below']) {
  7.                         $sub_menu = drupal_render($element['#below']);
  8.                 }
  9.         $output = l($element['#title'], $element['#href'], $element['#localized_options']);
  10.         return '<li' . drupal_attributes($element['#attributes']) . '>' . $output . $sub_menu . "</li>\n";
  11. }

Comments

Rodneydex 10 Sep 2021
<a href=https://reduslim.health/>reduslim sito ufficiale</a> Rodneydex
Anthonyfex 17 Sep 2021
<a href=https://www.instagram.com/bitcoin_for_earnings/>best and legit bitcoin earning sites</a> <a href=http://kuramotonavi.sakura.ne.jp/toshima/ws/2015/08/10/hello-world/#comment-1923>earn bitcoin</a> 54d45fd
Anthonyfex 18 Sep 2021
<a href=https://www.instagram.com/bitcoin_por_ganancias/>conseguir satoshis gratis</a> <a href=http://www.mareikesworld.de/2010/05/22/london-revival-tour-2/comment-page-46/#comment-112079>earn bitcoin</a> a31446f
Brianfus 18 Sep 2021
<a href=https://www.youtube.com/watch?v=ShVTpw1ZBYs>modi per ottenere bitcoin</a> <a href=http://worldeat.naok.net/bbs/view.php?id=first&page=1&page_num=30&select_arrange=headnum&desc=&sn=on&ss=off&sc=off&keyword=%C2%AC%D1%96&no=20&category=>earn bitcoin</a> d45fdbe
Anthonyfex 18 Sep 2021
<a href=https://www.instagram.com/bitcoin_for_earnings/>blockchain mining</a> <a href=http://magic-stones.com/product/-160/>earn bitcoin</a> e759787
Anthonyfex 18 Sep 2021
<a href=https://www.instagram.com/bitcoin_per_guadagni/>fatti pagare bitcoin</a> <a href=https://generiquepilule.icu/%d0%bf%d0%bb%d0%be%d1%85%d0%b8%d0%b5-%d0%bf%d0%b0%d1%80%d0%bd%d0%b8-%d0%bd%d0%b0%d0%b2%d1%81%d0%b5%d0%b3%d0%b4%d0%b0-%d0%bf%d0%bb%d0%be%d1%85%d0%b8%d0%b5-%d0%bf%d0%b0%d1%80%d0%bd%d0%b8-%d0%bd%d0%b0-2/comment-page-19/#comment-201966>earn bitcoin</a> 46f5c80
Brianfus 18 Sep 2021
<a href=https://www.youtube.com/watch?v=yH8Naq6sG0Y>beste bitcoin seite</a> <a href=https://wouldyouparty.dev.campaigns.kr/stories/117>earn bitcoin</a> 6f5c80f
Anthonyfex 19 Sep 2021
<a href=https://www.instagram.com/bitcoin_fur_das_ergebnis/>bitcoins handeln</a> <a href=http://www.kangtax.com/rrsp-limit-has-increased/#comment-236550>earn bitcoin</a> 5fdbe02
Brianfus 19 Sep 2021
<a href=https://www.youtube.com/watch?v=ShVTpw1ZBYs>e bitcoin gratuito</a> <a href=http://www.malchuty.org/component/kide/-/index.php?option=com_kide>earn bitcoin</a> 3_47f91
StuartBroag 19 Sep 2021
http://retro.samnet.ru/BudzhetniyRemontNaKuhne/kirpichnie-doma-sploshnaya-kladka-protiv-kirpichnogo-shpona-i-remont-kvartir <a href=http://foursquareproperties.ca/2016/12/hello-world/#comment-6544>StuartExerm</a> 028a314
Anthonyfex 19 Sep 2021
<a href=https://www.instagram.com/bitcoin_for_earnings/>how can you earn bitcoins</a> <a href=https://www.hoteltranquil.com/event/grand-opening-hotel-tranquil-garden-restaurant?page=972#comment-1805389>earn bitcoin</a> 1446f5c
FrankclonO 19 Sep 2021
http://avikowear.ru/2020/07/16/otdelka-i-remont-kvartir-ot-kompanii-ask-trian-trian-tiu-ru/ <a href=https://dailykamas.com/1794/#comment-161354>Davidtot</a> 31446f5
Brianfus 19 Sep 2021
<a href=https://www.youtube.com/watch?v=yH8Naq6sG0Y>durch bitcoin geld verdienen</a> <a href=http://www.chlzz.com/Include/Comment.asp?id=1547&ChannelID=2>earn bitcoin</a> be028a3
Anthonyfex 19 Sep 2021
<a href=https://www.instagram.com/bitcoin_per_guadagni/>un bitcoin gratis</a> <a href=https://www.jcventures.in/skills-and-attributes-needed-for-leadership-in-a-business/#comment-39711>earn bitcoin</a> c80f2e7
Anthonyfex 19 Sep 2021
<a href=https://www.instagram.com/bitcoin_for_earnings/>cryptocurrency miners</a> <a href=http://www.picollo.sk/?p=1785#comment-243698>earn bitcoin</a> f2e7597
Brianfus 20 Sep 2021
<a href=https://www.youtube.com/watch?v=ShVTpw1ZBYs>fare soldi con bitcoin</a> <a href=https://www.net-worm.com/product/book/?doing_wp_cron=1630638615.6333570480346679687500>earn bitcoin</a> fdbe028
FrankclonO 20 Sep 2021
http://vologdastat.ru/ObshivkaBalkona/z-chogo-pochati-remont-kvartir-u-novobudovah <a href=http://cmdcoding.zn.uz/oquvchilarimiz/boltayev-humoyun/#comment-246577>DavidMunny</a> 2e75978
Anthonyfex 20 Sep 2021
<a href=https://www.instagram.com/bitcoin_per_guadagni/>fare soldi con bitcoin</a> <a href=http://detsad-201.ru/forums/topic/trandmarkets-%d0%be%d1%82%d0%b7%d1%8b%d0%b2%d1%8b_rucoins_info/page/14/#post-102965>earn bitcoin</a> 45fdbe0
Brianfus 20 Sep 2021
<a href=https://www.youtube.com/watch?v=yH8Naq6sG0Y>durch bitcoin alles verloren</a> <a href=http://www.sanchaekro.co.kr/m_view.php?ps_db=1122&ps_boid=1723&ps_bcid=&ps_line=&ps_choi=&ps_divi=&ps_sele=&ps_ques=&ps_page=2>earn bitcoin</a> dbe028a
Anthonyfex 20 Sep 2021
<a href=https://www.instagram.com/bitcoin_fur_das_ergebnis/>bitcoin heise</a> <a href=https://wtert.gr/2016/03/30/one-day-event-for-recycling-in-the-municipality-of-karpathos/#comment-6444>earn bitcoin</a> 7597874
Brianfus 20 Sep 2021
<a href=https://www.youtube.com/watch?v=ShVTpw1ZBYs>come ottenere 1 bitcoin al giorno</a> <a href=http://www.xn--9d0b818aildrsc4vcx47a.kr/bbs/zboard.php?id=story1&page=1&page_num=20&select_arrange=headnum&desc=&sn=off&ss=on&sc=on&keyword=&no=98&category=>earn bitcoin</a> 446f5c8
Anthonyfex 20 Sep 2021
<a href=https://www.instagram.com/bitcoin_for_earnings/>how to earn bitcoin online</a> <a href=http://shop.profident-plus.lviv.ua/products/STASystem/?currency_id=3#comment_569321>earn bitcoin</a> 54d45fd
Anthonyfex 21 Sep 2021
<a href=https://www.instagram.com/bitcoin_per_guadagni/>ottenere satoshi gratis</a> <a href=https://mylife-create.com/love01/#comment-24534>earn bitcoin</a> e759787
Brianfus 21 Sep 2021
<a href=https://www.youtube.com/watch?v=yH8Naq6sG0Y>wie bezahlt man mit bitcoins</a> <a href=http://www.bremaicemakers.co.kr/board/read.asp?id=free&page=1&ref=70&step=1&level=0>earn bitcoin</a> 0f2e759
Anthonyfex 21 Sep 2021
<a href=https://www.instagram.com/bitcoin_fur_das_ergebnis/>bitcoin was kann ich damit kaufen</a> <a href=http://bsfotografia.nebariestudi.com/index.php/es/tokonoma/foto-de-grupo>earn bitcoin</a> 8a31446
Brianfus 21 Sep 2021
<a href=https://www.youtube.com/watch?v=ShVTpw1ZBYs>guadagnare piu bitcoin</a> <a href=https://fitnessleaks.com/Custom-Keto-Diet>earn bitcoin</a> 97871_5
Anthonyfex 21 Sep 2021
<a href=https://www.instagram.com/bitcoin_per_guadagni/>guadagnare bitcoin</a> <a href=https://www.taiwanmla.org/?topic=%E8%A9%A2%E5%95%8F%E5%B0%88%E6%A5%AD%E8%AD%89%E6%9B%B8%E8%AA%8D%E8%AD%89%E6%95%88%E5%8A%9B%E5%8F%8A%E6%B3%95%E6%BA%90%E6%88%96%E8%A9%95%E9%91%91%E4%BE%9D%E6%93%9A/#post-10202>earn bitcoin</a> 5_56ba8
Anthonyfex 21 Sep 2021
<a href=https://www.instagram.com/bitcoin_fur_das_ergebnis/>wert bitcoin 2015</a> <a href=http://www.divinemachines.co.in/home/logo-corus/#comment-176028>earn bitcoin</a> 597870_
Brianfus 21 Sep 2021
<a href=https://www.youtube.com/watch?v=yH8Naq6sG0Y>bitcoin erfahrung</a> <a href=http://bikramsambattm.com/product/restra-regular-fitmale/>earn bitcoin</a> e028a31
Anthonyfex 22 Sep 2021
<a href=https://www.instagram.com/bitcoin_for_earnings/>how to win bitcoins</a> <a href=http://u2467405.isp.regruhosting.ru/blog/soediniteli_scotchlok_uy2_ur2_i_ub2a#comment_681015>earn bitcoin</a> 5fdbe02
JamesPag 22 Sep 2021
<a href=https://i.hyrda-seller.com>https://i.hyrda-seller.com</a> <a href="http://thietkethucdon.com/continue-working-well/#comment-27963">Meduza</a> dbe028a
Brianfus 22 Sep 2021
<a href=https://www.youtube.com/watch?v=ShVTpw1ZBYs>guadagnare bitcoin in modo facile e veloce</a> <a href=https://hanabisou.com/blog_articles/1582618824.html>earn bitcoin</a> be028a3
Brianfus 23 Sep 2021
<a href=https://www.youtube.com/watch?v=ShVTpw1ZBYs>bitcoin mining quanto?</a> <a href="https://amp.pl.google-info.org/translate/1?to=en&from=pl&source=%3Ca%20href%3Dhttps%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DShVTpw1ZBYs%3Ebitcoin%20gratis%3C%2Fa%3E%20%0D%0A%3Ca%20href%3D%22http%3A%2F%2Fcdffme35.free.fr%2Fquestionnaire%2Findex.php%22%3Eearn%20bitcoin%3C%2Fa%3E%205ad3eaa%20&result=%3Ca%20href%3Dhttps%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DShVTpw1ZBYs%3Ebitcoin%20gratis%3C%2Fa%3E%20%3Ca%20href%3D%22http%3A%2F%2Fcdffme35.free.fr%2Fquestionnaire%2Findex.php%22%3Eearn%20bitcoin%3C%2Fa%3E%205ad3eaa">earn bitcoin</a> 028a314
Chaseoxids 23 Sep 2021
<a href=https://www.facebook.com/Демонтаж-РњРѕСЃРєРІР°-234385188544476>Демонтажные работы РњРѕСЃРєРІР°</a> <a href="https://www.plinxo.com/cuba-libre-spanish-version-bonus-track/#comment-652165">Демонтаж москва</a> f5c80f2
Chaseoxids 23 Sep 2021
<a href=https://seotools.convierteya.com/domain/demontagmoskva.ru/T3By6107cefb1b4b7>https://seotools.convierteya.com/domain/demontagmoskva.ru/T3By6107cefb1b4b7</a> <a href="http://lovemo.co.kr/cyber/cyber02.html?table=free&st=view&page=1&id=64955&keykind=&keyword=&bo_class=&fpage=&spage=">демонтаж москва</a> 5c80f2e
Anthonyfex 23 Sep 2021
<a href=https://www.instagram.com/bitcoin_por_ganancias/>ganar bitcoins con mineria</a> <a href="http://comhotel.ru/product/matrasy-coton-comfort-cocos-716/">earn bitcoin</a> 6f5c80f
Brianfus 23 Sep 2021
<a href=https://www.youtube.com/watch?v=ShVTpw1ZBYs>ottieni btc velocemente</a> <a href="https://roseburgoregonflowers.com/fields-of-europe-in-cylinder-vase/?attributes=eyIxOTI1IjoiPGEgaHJlZj1odHRwczpcL1wvd3d3LnlvdXR1YmUuY29tXC93YXRjaD92PXlIOE5hcTZzRzBZPm1pdCBiaXRjb2luIHJlaWNoIHdlcmRlbjxcL2E-IFxyXG48YSBocmVmPVwiaHR0cDpcL1wvd3d3LmNobHp6LmNvbVwvSW5jbHVkZVwvQ29tbWVudC5hc3A_aWQ9MTU0NyZDaGFubmVsSUQ9MlwiPmVhcm4gYml0Y29pbjxcL2E-IGFiN2M2NTUgIiwiMTkyNiI6IjxhIGhyZWY9aHR0cHM6XC9cL3d3dy55b3V0dWJlLmNvbVwvd2F0Y2g_dj15SDhOYXE2c0cwWT5taXQgYml0Y29pbiByZWljaCB3ZXJkZW48XC9hPiBcclxuPGEgaHJlZj1cImh0dHA6XC9cL3d3dy5jaGx6ei5jb21cL0luY2x1ZGVcL0NvbW1lbnQuYXNwP2lkPTE1NDcmQ2hhbm5lbElEPTJcIj5lYXJuIGJpdGNvaW48XC9hPiBhYjdjNjU1ICIsIjE5MjciOiI8YSBocmVmPWh0dHBzOlwvXC93d3cueW91dHViZS5jb21cL3dhdGNoP3Y9eUg4TmFxNnNHMFk-bWl0IGJpdGNvaW4gcmVpY2ggd2VyZGVuPFwvYT4gXHJcbjxhIGhyZWY9XCJodHRwOlwvXC93d3cuY2hsenouY29tXC9JbmNsdWRlXC9Db21tZW50LmFzcD9pZD0xNTQ3JkNoYW5uZWxJRD0yXCI-ZWFybiBiaXRjb2luPFwvYT4gYWI3YzY1NSAiLCIxOTI4IjoiNzQiLCIxOTI5Ijp7Im1vbnRoIjoiOSIsImRheSI6IjIiLCJ5ZWFyIjoiMjAyNSJ9fQ">earn bitcoin</a> 8a31446
Anthonyfex 23 Sep 2021
<a href=https://www.instagram.com/bitcoin_por_ganancias/>generar bitcoins</a> <a href="http://www.mareikesworld.de/2010/05/22/sonne-sonne-sonneeeeeeeee/comment-page-68/#comment-122372">earn bitcoin</a> 0f2e759
Brianfus 23 Sep 2021
<a href=https://www.youtube.com/watch?v=yH8Naq6sG0Y>bitcoin mining kaufen</a> <a href="http://comhotel.ru/product/piony-rozovye-v-svyazke-332/">earn bitcoin</a> 97874_d
Chaseoxids 24 Sep 2021
<a href=https://t.me/s/demontagmoskva>Демонтаж кровли РњРѕСЃРєРІР°</a> <a href="http://www.3maddarts.com/forums/topic/rodneystaix/#post-15824">Демонтаж москва</a> 54d45fd
Anthonyfex 24 Sep 2021
<a href=https://www.instagram.com/bitcoin_fur_das_ergebnis/>free bitcoin satoshi</a> <a href="http://comhotel.ru/product/longifoliya-s-kornyami-v-kashpo-170-sm-250/">earn bitcoin</a> 028a314
Chaseoxids 24 Sep 2021
<a href=https://seo.thenerdyblog.com/en/domain/demontagmoskva.ru>https://seo.thenerdyblog.com/en/domain/demontagmoskva.ru</a> <a href="http://puzzllo.co.kr/board/lib/jpg_pla1.php">демонтаж москва</a> dbe028a
Williamnaive 24 Sep 2021
<a href=https://siteprice.com/>https://siteprice.com/</a> <a href="https://www.catholiccompany.com/standing-confirmation-cross-with-celtic-charm-i132091/?attributes=eyI0MjM5NSI6IjUwMTE5IiwiNDI0MDAiOiJodHRwOlwvXC93d3cuaGlzdG9yaWNkYW5jZXRoZWF0cmUub3JnXC9fX21lZGlhX19cL2pzXC9uZXRzb2x0cmFkZW1hcmsucGhwP2Q9Yml0Y29pbmZvcmVhcm5pbmdzLmNvbSBcclxuPGEgaHJlZj1cImh0dHA6XC9cL3VyYW5haS1rdWNoaWtvbWljaC5jb21cL2ZvcnVtc1wvdG9waWNcL2Rvd25sb2FkLXdpbmRvd3MtMTAtZm9yLWZyZWUteW91dHViZVwvI3Bvc3QtNDUwNzZcIj5XaWxsaWFtSGFscnk8XC9hPiBjYmQ0OWQ2ICJ9">Williampenda</a> 0_0e6b5
RickyRurse 24 Sep 2021
<a href=http://www.rooletka.ru/Order/Type?domain=http%3A%2F%2Fit.bitcoinforearnings.com>http://www.rooletka.ru/Order/Type?domain=http%3A%2F%2Fit.bitcoinforearnings.com</a> <a href="http://pir-zerkalo.ru/product/31-45-143/">Rickyscaxy</a> 4d45fdb
GlennExich 24 Sep 2021
<a href=https://www.imkartikpandya.com/KPSEOTool/domain/it.bitcoinforearnings.com>https://www.imkartikpandya.com/KPSEOTool/domain/it.bitcoinforearnings.com</a> <a href="http://pechi.novosibirsk.ru/products/teploobmennik-na-trubu-d-115-12l/#comment_487833">GlennGrodo</a> 5c80f2e
Anthonynot 24 Sep 2021
<a href=https://loading.express/?test_id=611f9eebb89188604f9d2627&server=main>https://loading.express/?test_id=611f9eebb89188604f9d2627&server=main</a> <a href="http://www.netbookchoice.com/2009/12/31/toshiba-nb300-nb305-netbook-specifications-emerge/comment-page-7/#comment-58592">Anthonybor</a> 5fdbe02
Jasonsairl 24 Sep 2021
<a href=https://t.me/s/guadagnar_bitcoin>come guadagnare bitcoin gratis</a> <a href="http://uranai-kuchikomich.com/forums/topic/seisee/#post-44564">earn bitcoin</a> 31446f5
Jasonsairl 24 Sep 2021
<a href=https://www.facebook.com/Bitcoin-fur-das-Ergebnis-223867686279539>wie zahlt man mit bitcoin</a> <a href="https://tiekom.com/tiekom-helps-you-stay-connected-to-your-loved-ones-wherever-they-are/#comment-4418">earn bitcoin</a> 54d45fd
RichardButle 24 Sep 2021
https://google.com.bh/url?q=https://demontagmoskva.ru <a href="http://www.netbookchoice.com/2009/04/23/acer-aspire-one-%e2%80%98pro%e2%80%99-531-now-official/comment-page-1/#comment-58856">Демонтаж стен москва</a> 028a314
Chaseoxids 25 Sep 2021
https://clients1.google.lu/url?q=https://demontagmoskva.ru <a href="http://www.netbookchoice.com/2009/11/04/moblin-v2-1-%e2%80%98project-release%e2%80%99-for-netbooks-available-to-download/comment-page-1/#comment-58252">Демонтаж москва</a> dbe028a

Pages