Как известно, в настоящий момент theme_link() в друпал name suggestions не имеет, меняется только в пределах темы сразу на все меню, и "изнутри" этой функции понять кто её вызвал нет никакой возможности, так что даже шанса воспользоваться цепочкой элегантных if...then нас лишили. Но, в недрах drupal.org было найдено вполне логичное и работающее решение вынести эту функцию в предыдущую, отлично поддающуюся темизации - theme_menu_link(), и я его довёл до чуть более логичного финала :
//уже заточенная под мой блок функция theme_menu_link(): function themename_menu_link__menu_block__2($variables){ $element = $variables['element']; $sub_menu = ''; if ($element['#below']) { $sub_menu = drupal_render($element['#below']); } $titre= $element['#title']; //то что мне нужно было добавить к ссылке - <span><i> $element['#title']='<span><i>'.$titre. '</i></span>'; //Автор творит магию с локализацией l() , у меня не было настолько многоязычных сайтов, но может вам это понадобится, т.ч. оставляю: $element['#localized_options'] += array( 'attributes' => array(), 'html' => TRUE, ); $output = l($element['#title'], $element['#href'], $element['#localized_options']); return '<li' . drupal_attributes($element['#attributes']) . '>' . $output . $sub_menu . "</li>\n"; }
Комментарии
Рады Вас увидеть на нашем
Рады Вас увидеть на нашем сайте!
Мы - компания, лидирующая на рынке услуг по плавательный пруд под ключ и
плавательный пруд.
Мы ставим перед собой высокие приоритеты, любим
решать сложные задачи и стремимся сделать повседневную жизнь и Ваш досуг
интереснее.
Мы поможем реализовать Ваши
самые смелые проекты по пруд купальня
и купальные пруды, сохранить ценности и приумножить их.
Если Вас интересует наш
асортимент услуг про плавательный пруд на участке или про биологическая
очистка водоемов - то заходите
к нам на вебсайт - http://br.u.c.e.l.eebes.t@www7a.biglobe.ne.jp/~Gokiburi/fantasy/fantasy.cgi?5DusFFpremium+pure+forskolin+2025FFnofollow& - и
получи больше необходимой информации про плавательный пруд стоимость или про биологическая очистка
водоемов
профессиональные услуги по пленка для бассейнов
и прудов и биопруды это являются основой
релакса повседневной жизни.
В своей работе мы придерживаемся строгого соответствия критериям надежности, современным стандартам качества и
ответственности перед своими клиентами
и партнерами.
Наиболее часто выполняемые работы это:
экопруд, биологические пруды и биологические пруды.
Мы выполняем нашу работу с гарантированно наивысшим качеством и индивидуальным подходом к каждому клиенту.
Наши Теги: оборудование для прудов и бассейнов,
пруд купальня, плавательный пруд, биологический пруд, пленка для бассейнов и прудов, плавательный пруд
с биоплато, пруд бассейн на даче, садовые бассейны пруды.
Наш сайт: https://kcsportsauthority.com/index.php?action=profile;u=77789 :
: <A HREF=http://br.u.c.e.l.eebes.t@www7a.biglobe.ne.jp/~Gokiburi/fantasy/fantasy.cgi?5DusFFpremium+pure+forskolin+2025FFnofollow&>декоративные бассейны и пруды</A> :
: <A HREF=http://designation.wiki/CFA/index.php?title=User:Isiah9384857>плавательный пруд своими руками</A>
Всего наилучшего!
WP
WP
YN
YN
Hey,
Hey,
Just making sure my email won't get buried in your inbox. :)
==================== Original message =====================
Hey,
Wishing you a happy Friday!
The new normal seems to be daunting but it's high time for us to shift our focus on innovative ways to start a business.
I noticed that you shared http://twitter.com/reactjs..
i'd like to offer http://blog.niph.info/user/1/tweets?page=15 an https://www.guru99.com/reactjs-tutorial.html article that may help a start-up business take off in these challenging times.
Of course, I don’t want a free from you. I wouldn't reply to this kind of email if there wasn’t anything for me, so here’s what you can get:
• Social sharing of your article to our 50k social followers
Or
• I am happy to do Cross-Promotion.
• You will update the content and we all know Google likes that
• You will make me extremely hap
That's it. What do you think?
Happy Thoughts,
Tushar
PS: I am real a person... here is a number to contact me +1 302 308 5151
Hi,
Hi,
I want to check if you got my email below?
Do let me know if you are not interested. I don't want to waste your time.
==================== Original message =====================
Hey,
Wishing you a happy Friday!
The new normal seems to be daunting but it's high time for us to shift our focus on innovative ways to start a business.
I noticed that you shared http://twitter.com/reactjs..
i'd like to offer http://blog.niph.info/user/1/tweets?page=15 an https://www.guru99.com/reactjs-tutorial.html article that may help a start-up business take off in these challenging times.
Of course, I don’t want a free from you. I wouldn't reply to this kind of email if there wasn’t anything for me, so here’s what you can get:
• Social sharing of your article to our 50k social followers
Or
• I am happy to do Cross-Promotion.
• You will update the content and we all know Google likes that
• You will make me extremely hap
That's it. What do you think?
Happy Thoughts,
Tushar
PS: I am real a person... here is a number to contact me +1 302 308 5151
I reached out previously and
I reached out previously and hadn’t heard back from you yet. This tells me a few things:
1) You're being chased by a T-rex and haven't had time to respond.
2) You aren't interested.
3) You're interested but haven't had a time to respond.
Whichever one it is, please let me know as I am getting worried! Please respond 1,2, or 3. I do not want to be a bother.
==================== Original message =====================
Hey,
Wishing you a happy Friday!
The new normal seems to be daunting but it's high time for us to shift our focus on innovative ways to start a business.
I noticed that you shared http://twitter.com/reactjs..
i'd like to offer http://blog.niph.info/user/1/tweets?page=15 an https://www.guru99.com/reactjs-tutorial.html article that may help a start-up business take off in these challenging times.
Of course, I don’t want a free from you. I wouldn't reply to this kind of email if there wasn’t anything for me, so here’s what you can get:
• Social sharing of your article to our 50k social followers
Or
• I am happy to do Cross-Promotion.
• You will update the content and we all know Google likes that
• You will make me extremely hap
That's it. What do you think?
Happy Thoughts,
Tushar
PS: I am real a person... here is a number to contact me +1 302 308 5151
Добавить комментарий