{"action":"created","issue":{"url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/1445","repository_url":"https://api.github.com/repos/ThemeFuse/Unyson","labels_url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/1445/labels{/name}","comments_url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/1445/comments","events_url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/1445/events","html_url":"https://github.com/ThemeFuse/Unyson/issues/1445","id":147681530,"number":1445,"title":"Feedback .css and .js not loaded on certain pages","user":{"login":"warudin","id":1815847,"avatar_url":"https://avatars.githubusercontent.com/u/1815847?v=3","gravatar_id":"","url":"https://api.github.com/users/warudin","html_url":"https://github.com/warudin","followers_url":"https://api.github.com/users/warudin/followers","following_url":"https://api.github.com/users/warudin/following{/other_user}","gists_url":"https://api.github.com/users/warudin/gists{/gist_id}","starred_url":"https://api.github.com/users/warudin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warudin/subscriptions","organizations_url":"https://api.github.com/users/warudin/orgs","repos_url":"https://api.github.com/users/warudin/repos","events_url":"https://api.github.com/users/warudin/events{/privacy}","received_events_url":"https://api.github.com/users/warudin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"moldcraft","id":1475489,"avatar_url":"https://avatars.githubusercontent.com/u/1475489?v=3","gravatar_id":"","url":"https://api.github.com/users/moldcraft","html_url":"https://github.com/moldcraft","followers_url":"https://api.github.com/users/moldcraft/followers","following_url":"https://api.github.com/users/moldcraft/following{/other_user}","gists_url":"https://api.github.com/users/moldcraft/gists{/gist_id}","starred_url":"https://api.github.com/users/moldcraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moldcraft/subscriptions","organizations_url":"https://api.github.com/users/moldcraft/orgs","repos_url":"https://api.github.com/users/moldcraft/repos","events_url":"https://api.github.com/users/moldcraft/events{/privacy}","received_events_url":"https://api.github.com/users/moldcraft/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-04-12T08:53:55Z","updated_at":"2016-04-12T12:17:42Z","closed_at":null,"body":"Hi guys,\r\n\r\nWe've implemented the Feedback extension in a website, so visitors can give a rating to a location. When using the fw_ext_feedback() function in a widget (so it can be used in the sidebar) it works just fine on certain pages, on others the necessary stylesheet and script aren't loaded automatically, thus the information in the qtip part isn't hidden.\r\n\r\nOn this page the rating is fully functional (see 'Best beoordeelde speelplekken' in sidebar):\r\nhttp://wespire.nl/klanten/playadvisor/wp/speelplek/de-efteling/\r\n\r\nHere things are broken:\r\nhttp://wespire.nl/klanten/playadvisor/wp/hallo-wereld/\r\n\r\nAny ideas why the necessary files aren't automatically loaded and what we can do to fix it?"},"comment":{"url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/comments/208875305","html_url":"https://github.com/ThemeFuse/Unyson/issues/1445#issuecomment-208875305","issue_url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/1445","id":208875305,"user":{"login":"warudin","id":1815847,"avatar_url":"https://avatars.githubusercontent.com/u/1815847?v=3","gravatar_id":"","url":"https://api.github.com/users/warudin","html_url":"https://github.com/warudin","followers_url":"https://api.github.com/users/warudin/followers","following_url":"https://api.github.com/users/warudin/following{/other_user}","gists_url":"https://api.github.com/users/warudin/gists{/gist_id}","starred_url":"https://api.github.com/users/warudin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warudin/subscriptions","organizations_url":"https://api.github.com/users/warudin/orgs","repos_url":"https://api.github.com/users/warudin/repos","events_url":"https://api.github.com/users/warudin/events{/privacy}","received_events_url":"https://api.github.com/users/warudin/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T12:17:42Z","updated_at":"2016-04-12T12:17:42Z","body":"I added a check in the static file, so the if statement becomes true when the function is used.\r\nOf course this is in no way a general solution for this problem.\r\n\r\n```\r\nif (is_active_widget( false, false, 'best_beoordeelde_speelplekken' || 'aanbevolen_speelplekken', true )) {\r\n\t\t$widget = true;\r\n\t}\r\n\r\n\r\nif ((!empty($post)) && (!empty($post->post_type)) && post_type_supports( $post->post_type, $instance->get_parent()->supports_feature_name ) || $widget) {\r\n```"}}