Logo
Explore Help
Sign In
stian/gallery3
1
0
Fork 0
You've already forked gallery3
mirror of https://github.com/Pathduck/gallery3.git synced 2026-05-20 03:19:13 -04:00
Code Issues Actions Packages Projects Releases Wiki Activity
Files
cdc4e97c7e15fd8d078a13fbafacbbe07d6432f2
gallery3/modules/gallery/views/menu_link.html.php

10 lines
303 B
PHP
Raw Normal View History

Change our menu building blocks to use PHP templates so that themes can override them and define their own menu formats. I worry a little bit that this approach may be too heavy since we're now doing a lot more template includes than we were before. Also, I had to change the Menu API to stop using __toString() because you can't throw exceptions from __toString() which would make it an unhappy experience for developers.
2009-10-27 13:46:24 -07:00
<?php defined("SYSPATH") or die("No direct script access.") ?>
<li>
Some HTML validation fixes (don't render empty <ul> lists, empty id attributes, use &amp; not &)
2010-02-12 20:59:26 -08:00
<a <?= $menu->css_id ? "id='{$menu->css_id}'" : "" ?>
Change our menu building blocks to use PHP templates so that themes can override them and define their own menu formats. I worry a little bit that this approach may be too heavy since we're now doing a lot more template includes than we were before. Also, I had to change the Menu API to stop using __toString() because you can't throw exceptions from __toString() which would make it an unhappy experience for developers.
2009-10-27 13:46:24 -07:00
class="g-menu-link <?= $menu->css_class ?>"
href="<?= $menu->url ?>"
title="<?= $menu->label->for_html_attr() ?>">
<?= $menu->label->for_html() ?>
</a>
</li>
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 78ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API