{"action":"created","issue":{"url":"https://api.github.com/repos/XOOPS/XoopsCore25/issues/193","repository_url":"https://api.github.com/repos/XOOPS/XoopsCore25","labels_url":"https://api.github.com/repos/XOOPS/XoopsCore25/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/XOOPS/XoopsCore25/issues/193/comments","events_url":"https://api.github.com/repos/XOOPS/XoopsCore25/issues/193/events","html_url":"https://github.com/XOOPS/XoopsCore25/issues/193","id":171156697,"number":193,"title":"xbootstrap theme and slider","user":{"login":"GregMage","id":16707432,"avatar_url":"https://avatars.githubusercontent.com/u/16707432?v=3","gravatar_id":"","url":"https://api.github.com/users/GregMage","html_url":"https://github.com/GregMage","followers_url":"https://api.github.com/users/GregMage/followers","following_url":"https://api.github.com/users/GregMage/following{/other_user}","gists_url":"https://api.github.com/users/GregMage/gists{/gist_id}","starred_url":"https://api.github.com/users/GregMage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GregMage/subscriptions","organizations_url":"https://api.github.com/users/GregMage/orgs","repos_url":"https://api.github.com/users/GregMage/repos","events_url":"https://api.github.com/users/GregMage/events{/privacy}","received_events_url":"https://api.github.com/users/GregMage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-15T11:56:05Z","updated_at":"2016-08-16T00:23:33Z","closed_at":null,"body":"When a module is on the home page, the slider is not displayed.\r\n\r\n`<{if $xoops_dirname == \"system\"}>\r\n<div id=\"myCarousel\" class=\"carousel slide slideshow\" data-ride=\"carousel\">\r\n`\r\nit's that what you want to do?"},"comment":{"url":"https://api.github.com/repos/XOOPS/XoopsCore25/issues/comments/239968683","html_url":"https://github.com/XOOPS/XoopsCore25/issues/193#issuecomment-239968683","issue_url":"https://api.github.com/repos/XOOPS/XoopsCore25/issues/193","id":239968683,"user":{"login":"geekwright","id":3181636,"avatar_url":"https://avatars.githubusercontent.com/u/3181636?v=3","gravatar_id":"","url":"https://api.github.com/users/geekwright","html_url":"https://github.com/geekwright","followers_url":"https://api.github.com/users/geekwright/followers","following_url":"https://api.github.com/users/geekwright/following{/other_user}","gists_url":"https://api.github.com/users/geekwright/gists{/gist_id}","starred_url":"https://api.github.com/users/geekwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geekwright/subscriptions","organizations_url":"https://api.github.com/users/geekwright/orgs","repos_url":"https://api.github.com/users/geekwright/repos","events_url":"https://api.github.com/users/geekwright/events{/privacy}","received_events_url":"https://api.github.com/users/geekwright/received_events","type":"User","site_admin":false},"created_at":"2016-08-16T00:23:33Z","updated_at":"2016-08-16T00:23:33Z","body":"We could assign the config value for startpage to *xoops_startpage*, and assign *xoops_script* from the `basename()` of `$_SERVER['SCRIPT_FILENAME']`.\r\n\r\nMy first thought was *xoops_requesturi* would work, but it would take a lot of code to process in the template, since *siteurl/* and *siteurl/index.php* both refer to 'home.' \r\n\r\n`$_SERVER['PHP_SELF']` can be corrupted by user input in some cases, i.e. siteurl/index.php/garbage/ \r\n\r\nThat leaves us with `$_SERVER['SCRIPT_FILENAME']` as the primary choice, and `$_SERVER['SCRIPT_NAME']` as a fall back if SCRIPT_FILENAME isn't set.\r\n\r\nThat should make it easy to adapt as needed in the templates with no parsing or multiple values to check.\r\n`<{if $xoops_dirname == $xoops_startpage}>` - we are in the 'home' module\r\n`<{if $xoops_script == 'index.php'}>` - we are on the main page.\r\n\r\nWould that work? \r\n\r\nI also considered setting a $xoops_default_page variable as a boolean instead of using xoops_script might be simpler and cleaner. I am leaning toward the xoops_script, since it provides *data* to the presentation layer, so the logic stays in the templates, while the xoops_default_page idea makes a presentation *decision* and passes it to the template.  But, either one would work."}}
{"actor":{"display_login":"geekwright"}}