{"action":"created","issue":{"url":"https://api.github.com/repos/redaxo/redaxo/issues/528","labels_url":"https://api.github.com/repos/redaxo/redaxo/issues/528/labels{/name}","comments_url":"https://api.github.com/repos/redaxo/redaxo/issues/528/comments","events_url":"https://api.github.com/repos/redaxo/redaxo/issues/528/events","html_url":"https://github.com/redaxo/redaxo/issues/528","id":122453444,"number":528,"title":"Plugin Customizer: Wunsch \"structure_separators\" integrieren","user":{"login":"olien","id":330516,"avatar_url":"https://avatars.githubusercontent.com/u/330516?v=3","gravatar_id":"","url":"https://api.github.com/users/olien","html_url":"https://github.com/olien","followers_url":"https://api.github.com/users/olien/followers","following_url":"https://api.github.com/users/olien/following{/other_user}","gists_url":"https://api.github.com/users/olien/gists{/gist_id}","starred_url":"https://api.github.com/users/olien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olien/subscriptions","organizations_url":"https://api.github.com/users/olien/orgs","repos_url":"https://api.github.com/users/olien/repos","events_url":"https://api.github.com/users/olien/events{/privacy}","received_events_url":"https://api.github.com/users/olien/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-16T08:35:32Z","updated_at":"2015-12-16T09:04:26Z","closed_at":null,"body":"evtl. als Checkbox?\r\nOder wieder als Plugin für be_style?"},"comment":{"url":"https://api.github.com/repos/redaxo/redaxo/issues/comments/165039134","html_url":"https://github.com/redaxo/redaxo/issues/528#issuecomment-165039134","issue_url":"https://api.github.com/repos/redaxo/redaxo/issues/528","id":165039134,"user":{"login":"olien","id":330516,"avatar_url":"https://avatars.githubusercontent.com/u/330516?v=3","gravatar_id":"","url":"https://api.github.com/users/olien","html_url":"https://github.com/olien","followers_url":"https://api.github.com/users/olien/followers","following_url":"https://api.github.com/users/olien/following{/other_user}","gists_url":"https://api.github.com/users/olien/gists{/gist_id}","starred_url":"https://api.github.com/users/olien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olien/subscriptions","organizations_url":"https://api.github.com/users/olien/orgs","repos_url":"https://api.github.com/users/olien/repos","events_url":"https://api.github.com/users/olien/events{/privacy}","received_events_url":"https://api.github.com/users/olien/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T09:04:26Z","updated_at":"2015-12-16T09:04:26Z","body":"Ich weiß leider nicht wie und wo ich das am besten umbaue ;-(\r\n\r\nCode:\r\n\r\n```php\r\n\r\n// MAIN\r\n////////////////////////////////////////////////////////////////////////////////\r\nif(rex_request('page','string')=='structure'){\r\n  rex_register_extension('OUTPUT_FILTER',\r\n    function($params) use($REX){\r\n      if(!isset($params['subject']) || $params['subject']==''){\r\n        return;\r\n      }\r\n      $dom = new DOMDocument();\r\n      $dom->loadHTML($params['subject']);\r\n      $xpath = new DOMXpath($dom);\r\n      $TRs = $xpath->query(\".//*[@id='rex-output']/table/tbody/tr\");\r\n      if (!is_null($TRs)) {\r\n        foreach ($TRs as $TR) {\r\n          $TDs = $TR->childNodes;\r\n          foreach ($TDs as $TD) {\r\n            if(substr($TD->nodeValue,0,10) == 'separator:'){\r\n              #$TR->setAttribute('class','separator '.strtolower(preg_replace('/[^a-z-]/i','',$TD->nodeValue)));\r\n              $TR->setAttribute('class','separator');\r\n              foreach($TD->getElementsByTagName('a') as $A){\r\n                $A->nodeValue = str_replace('separator:','',$A->nodeValue);\r\n              }\r\n              continue;\r\n            }else{\r\n              continue;\r\n            }\r\n          }\r\n        }\r\n      }\r\n      $html = $dom->saveHtml();\r\n      return $html;\r\n    }\r\n  );\r\n}\r\n\r\n```\r\n\r\ncss\r\n\r\n```css\r\n\r\n.rex-table tr.separator td,\r\n.rex-table tr.separator td.rex-icon a.rex-i-element  {\r\n  background:#DFE9E9;\r\n  color:#DFE9E9;\r\n  text-indent:0;\r\n}\r\n.rex-table tr.separator td:nth-child(n+4) a {\r\n  color:#DFE9E9;\r\n}\r\n.rex-table tr.separator td:hover,\r\n.rex-table tr.separator td a:hover {\r\n  color:gray;\r\n}\r\n.rex-table tr.separator td:nth-child(2) a,\r\n.rex-table tr.separator td:nth-child(3) a {\r\n  color:black;\r\n  font-weight:bold;\r\n}\r\n\r\n```"}}