{"action":"opened","issue":{"url":"https://api.github.com/repos/FriendsOfREDAXO/demo_base/issues/32","repository_url":"https://api.github.com/repos/FriendsOfREDAXO/demo_base","labels_url":"https://api.github.com/repos/FriendsOfREDAXO/demo_base/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfREDAXO/demo_base/issues/32/comments","events_url":"https://api.github.com/repos/FriendsOfREDAXO/demo_base/issues/32/events","html_url":"https://github.com/FriendsOfREDAXO/demo_base/issues/32","id":187998674,"number":32,"title":"Modul: Linklist um Status \"active\" erweiter(t)","user":{"login":"darwin26","id":189407,"avatar_url":"https://avatars.githubusercontent.com/u/189407?v=3","gravatar_id":"","url":"https://api.github.com/users/darwin26","html_url":"https://github.com/darwin26","followers_url":"https://api.github.com/users/darwin26/followers","following_url":"https://api.github.com/users/darwin26/following{/other_user}","gists_url":"https://api.github.com/users/darwin26/gists{/gist_id}","starred_url":"https://api.github.com/users/darwin26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darwin26/subscriptions","organizations_url":"https://api.github.com/users/darwin26/orgs","repos_url":"https://api.github.com/users/darwin26/repos","events_url":"https://api.github.com/users/darwin26/events{/privacy}","received_events_url":"https://api.github.com/users/darwin26/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-08T14:00:01Z","updated_at":"2016-11-08T14:00:01Z","closed_at":null,"body":"HI,\r\nhab den Modul output der LinkListe ein wenig aufgeräumt und um den Status \"active\" erweitert.\r\n`<?php\r\n\r\n$output = array();\r\n\r\nif ('REX_LINKLIST[1]' != '') {\r\n    $output[] = '<div class=\"linklist\">';\r\n\r\n    # Titel\r\n    if ('REX_VALUE[id=1 isset=1]') {\r\n        $output[] = '<h4>REX_VALUE[1]</h4>';\r\n        $output[] = '<hr class=\"divider\"/>';\r\n    }\r\n\r\n    # LinkList\r\n    $linklist = explode(',', 'REX_LINKLIST[1]');\r\n\r\n    $output[] = '<ul class=\"list-unstyled list-inline\">';\r\n    foreach ($linklist as $link) {\r\n        $art = rex_article::get($link);\r\n\r\n        $class = \"\";\r\n        if(rex_article::getCurrentId() == $art->getId())\r\n            $class = ' class=\"active\"';\r\n\r\n        if (is_object($art)) {\r\n            $art_name = $art->getValue('name');\r\n            $output[] = '<li'.$class.'>';\r\n            $output[] = '<a href=\"'.rex_getUrl($link).'\">'.$art_name.'</a>';\r\n            $output[] = '</li>';\r\n        }\r\n    }\r\n    $output[] = '</ul>';\r\n    $output[] = '</div>';\r\n\r\n    echo join(\"\\n\", $output);\r\n}\r\n?>\r\n`\r\ngrz. Chris"}}
{"actor":{"display_login":"darwin26"}}