diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2014-06-22 20:50:23 +0200 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2014-06-22 20:50:23 +0200 |
| commit | 80ac276971908ee8aa4ccd1941b79f7aaf93c523 (patch) | |
| tree | 43409f0fe45d2f9d3895f0d9e4b07c7bfaf469fa /phpBB/includes/functions_display.php | |
| parent | b41a730471f2fad7a2466688d323c5563848c640 (diff) | |
| parent | ad59f371bfd4ea84accf54c30eb901511a97f34f (diff) | |
| download | forums-80ac276971908ee8aa4ccd1941b79f7aaf93c523.tar forums-80ac276971908ee8aa4ccd1941b79f7aaf93c523.tar.gz forums-80ac276971908ee8aa4ccd1941b79f7aaf93c523.tar.bz2 forums-80ac276971908ee8aa4ccd1941b79f7aaf93c523.tar.xz forums-80ac276971908ee8aa4ccd1941b79f7aaf93c523.zip | |
Merge pull request #2530 from PayBas/ticket/12646
[ticket/12646] Add data-# attribute to breadcrumb links
* PayBas/ticket/12646:
[ticket/12646] Changed to navlinks.MICRODATA
[ticket/12646] Add check for navlinks.FORUM_ID
[ticket/12646] Changed index/home data attr & updated subsilver
[ticket/12646] Add data-f attribute to breadcrumb links
Diffstat (limited to 'phpBB/includes/functions_display.php')
| -rw-r--r-- | phpBB/includes/functions_display.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index 4606a9f7ca..23c6a15ca4 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -674,6 +674,8 @@ function generate_forum_nav(&$forum_data) // Get forum parents $forum_parents = get_forum_parents($forum_data); + $microdata_attr = 'data-forum-id'; + // Build navigation links if (!empty($forum_parents)) { @@ -693,6 +695,7 @@ function generate_forum_nav(&$forum_data) 'S_IS_POST' => ($parent_type == FORUM_POST) ? true : false, 'FORUM_NAME' => $parent_name, 'FORUM_ID' => $parent_forum_id, + 'MICRODATA' => $microdata_attr . '="' . $parent_forum_id . '"', 'U_VIEW_FORUM' => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $parent_forum_id)) ); } @@ -704,6 +707,7 @@ function generate_forum_nav(&$forum_data) 'S_IS_POST' => ($forum_data['forum_type'] == FORUM_POST) ? true : false, 'FORUM_NAME' => $forum_data['forum_name'], 'FORUM_ID' => $forum_data['forum_id'], + 'MICRODATA' => $microdata_attr . '="' . $forum_data['forum_id'] . '"', 'U_VIEW_FORUM' => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $forum_data['forum_id'])) ); |
