[Bug 18608] API should provide list of CSS styles to apply to rendered output
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608 Reedy s...@reedyboy.net changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||FIXED --- Comment #12 from Reedy s...@reedyboy.net 2010-05-24 16:36:31 UTC --- r66834 -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 18608] API should provide list of CSS styles to apply to rendered output
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608 --- Comment #7 from Roan Kattouw roan.katt...@gmail.com 2010-05-22 21:33:12 UTC --- (In reply to comment #6) Reopening, think I should do this in a better fashion From OutputPage.php Reedy 02121 $this-buildCssLinks(), Reedy 02122 $this-getHeadScripts( $sk ), Reedy 02123 $this-getHeadItems(), Reedy Is what it should be returning Reedy but as a proper list Reedy Annoyingly, most of those functions make the result into a string HeadItems comes from prop=headitems (from extensions...) Maybe prop=headscripts and prop=csslinks Suggestions? Returning these separately means sense I guess, but it's probably also convenient to have a way to get the whole thing at once. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 18608] API should provide list of CSS styles to apply to rendered output
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608 --- Comment #8 from Reedy s...@reedyboy.net 2010-05-22 21:52:45 UTC --- Per IRC.. Can we get away with changing/adding onto headitems, and backport to 1.16 Or just keep seperate, and have an option to get all.. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 18608] API should provide list of CSS styles to apply to rendered output
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608 --- Comment #9 from Roan Kattouw roan.katt...@gmail.com 2010-05-22 21:57:56 UTC --- (In reply to comment #8) Per IRC.. Can we get away with changing/adding onto headitems, and backport to 1.16 Or just keep seperate, and have an option to get all.. Adding stuff onto headitems is definitely acceptable IMO -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 18608] API should provide list of CSS styles to apply to rendered output
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608 --- Comment #10 from Reedy s...@reedyboy.net 2010-05-22 23:38:58 UTC --- http://mediawiki.pastebin.com/2k8UJEb2 Script is a bit nasty. Don't know if we want to split it off a bit more (find some way of We can explode, and array_filter. But we strip whatever we add.. So would have to reappend... Unless we regex split. Worth doing, or not worth the faff? -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 18608] API should provide list of CSS styles to apply to rendered output
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608 --- Comment #11 from Reedy s...@reedyboy.net 2010-05-22 23:43:29 UTC --- http://mediawiki.pastebin.com/RwwEqfQm Is the original head items, CSS, and scripts... -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 18608] API should provide list of CSS styles to apply to rendered output
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608 --- Comment #4 from Reedy s...@reedyboy.net 2010-02-09 20:23:18 UTC --- link rel=stylesheet href=/w/skins/common/shared.css?265 media=screen / link rel=stylesheet href=/w/skins/common/commonPrint.css?265 media=print / link rel=stylesheet href=/w/skins/monobook/main.css?265 media=screen / !--[if IE 6]link rel=stylesheet href=/w/skins/monobook/IE60Fixes.css?265 media=screen /![endif]-- !--[if IE 7]link rel=stylesheet href=/w/skins/monobook/IE70Fixes.css?265 media=screen /![endif]-- link rel=stylesheet href=/w/index.php?title=MediaWiki:Common.cssamp;usemsgcache=yesamp;ctype=text%2Fcssamp;smaxage=18000amp;action=rawamp;maxage=18000 / link rel=stylesheet href=/w/index.php?title=MediaWiki:Print.cssamp;usemsgcache=yesamp;ctype=text%2Fcssamp;smaxage=18000amp;action=rawamp;maxage=18000 media=print / link rel=stylesheet href=/w/index.php?title=MediaWiki:Monobook.cssamp;usemsgcache=yesamp;ctype=text%2Fcssamp;smaxage=18000amp;action=rawamp;maxage=18000 / link rel=stylesheet href=/w/index.php?title=-amp;action=rawamp;maxage=18000amp;gen=css / How much do we want to give them? Or do we just give them it like that, htmlencoded? -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 18608] API should provide list of CSS styles to apply to rendered output
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608 Reedy s...@reedyboy.net changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #5 from Reedy s...@reedyboy.net 2010-02-09 20:49:40 UTC --- r62195 Not quite as originally requested, but prop=headhtml on action=parse will give a dump of the head stuff -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 18608] API should provide list of CSS styles to apply to rendered output
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608 --- Comment #3 from Reedy s...@reedyboy.net 2010-02-02 00:21:47 UTC --- In parse.. if ( isset( $prop['stylesheets'] ) ) { $out = new OutputPage; $out-addParserOutputNoText( $p_result ); // PO object generated by action=parse $result_array['stylesheets'] = $out-headElement( $wgUser-getSkin() ); } http://mediawiki.pastebin.com/f5e69e38a Obviously too much information, but on the right track... -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 18608] API should provide list of CSS styles to apply to rendered output
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608 Reedy s...@reedyboy.net changed: What|Removed |Added CC||s...@reedyboy.net --- Comment #1 from Reedy s...@reedyboy.net 2010-01-31 13:23:07 UTC --- Seems we need OutputPage::headElement, passing in the current skin... But we don't really want it just outputting it however.. Can we get a reference to the output page via any method? -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 18608] API should provide list of CSS styles to apply to rendered output
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608 Roan Kattouw roan.katt...@gmail.com changed: What|Removed |Added CC||roan.katt...@gmail.com --- Comment #2 from Roan Kattouw roan.katt...@gmail.com 2010-01-31 15:07:32 UTC --- (In reply to comment #1) Seems we need OutputPage::headElement, passing in the current skin... But we don't really want it just outputting it however.. headElement() doesn't do any output, it just returns a string. Can we get a reference to the output page via any method? Creating a new one should work just fine, as $wgOut (the global one) doesn't contain anything useful anyway and messing it up is bad style. $out = new OutputPage; $out-addParserOutputNoText( $po ); // PO object generated by action=parse $headHTML = $out-headElement(); -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l