{"action":"closed","issue":{"url":"https://api.github.com/repos/Bloke/zem_contact_reborn/issues/41","repository_url":"https://api.github.com/repos/Bloke/zem_contact_reborn","labels_url":"https://api.github.com/repos/Bloke/zem_contact_reborn/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/Bloke/zem_contact_reborn/issues/41/comments","events_url":"https://api.github.com/repos/Bloke/zem_contact_reborn/issues/41/events","html_url":"https://github.com/Bloke/zem_contact_reborn/issues/41","id":192963808,"number":41,"title":"fieldset and legend on output even when label attr set to empty value","user":{"login":"maniqui","id":333695,"avatar_url":"https://avatars.githubusercontent.com/u/333695?v=3","gravatar_id":"","url":"https://api.github.com/users/maniqui","html_url":"https://github.com/maniqui","followers_url":"https://api.github.com/users/maniqui/followers","following_url":"https://api.github.com/users/maniqui/following{/other_user}","gists_url":"https://api.github.com/users/maniqui/gists{/gist_id}","starred_url":"https://api.github.com/users/maniqui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maniqui/subscriptions","organizations_url":"https://api.github.com/users/maniqui/orgs","repos_url":"https://api.github.com/users/maniqui/repos","events_url":"https://api.github.com/users/maniqui/events{/privacy}","received_events_url":"https://api.github.com/users/maniqui/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-01T21:13:31Z","updated_at":"2016-12-02T09:13:41Z","closed_at":"2016-12-02T09:13:41Z","body":"Plugin FAQ section states:\r\n\r\n> How do I remove the legend and fieldset surrounding the contact form?\r\n> Set the `label` attribute to an empty value (`label=\"\"`) in the `zem_contact` tag.\r\n\r\nAnd also, help for `<txp:zem_contact />` tag states:\r\n\r\n> `label=\"text\"`\r\n> Label for the contact form. If set to an empty string, display of the fieldset and legend tags will be suppressed. Default is Contact.\r\n\r\nBut logic seems flawed:\r\n\r\n```php\r\n    // Set defaults, in the local language if necessary.\r\n    if ($label === '') {\r\n        $label = gTxt('zem_contact_contact');\r\n    }\r\n```\r\n\r\nas setting the attribute to an empty value, it always gets populated by some string.\r\n\r\nI've tried setting the attribute to a blank space (`label=\" \"`) but the `fieldset` and `legend` tags (even if the latter is empty) are part of the output."}}
{"actor":{"display_login":"Bloke"}}