[Bug 18608] API should provide list of CSS styles to apply to rendered output

2010-05-24 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608

Reedy  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED

--- Comment #12 from Reedy  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

2010-05-22 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608

--- Comment #11 from Reedy  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

2010-05-22 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608

--- Comment #10 from Reedy  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

2010-05-22 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608

--- Comment #9 from Roan Kattouw  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

2010-05-22 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608

--- Comment #8 from Reedy  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

2010-05-22 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608

--- Comment #7 from Roan Kattouw  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
> 
>  02121 $this->buildCssLinks(),
>  02122 $this->getHeadScripts( $sk ),
>  02123 $this->getHeadItems(),
>  Is what it should be returning
>  but as a proper list
>  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

2010-05-20 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608

Reedy  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |

--- Comment #6 from Reedy  2010-05-20 20:42:00 UTC ---
Reopening, think I should do this in a better fashion

>From OutputPage.php

 02121 $this->buildCssLinks(),
 02122 $this->getHeadScripts( $sk ),
 02123 $this->getHeadItems(),
 Is what it should be returning
 but as a proper list
 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?

-- 
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

2010-02-09 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608

Reedy  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #5 from Reedy  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  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

2010-02-09 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608

--- Comment #4 from Reedy  2010-02-09 20:23:18 UTC ---
 
 
 
 
 
 
 
 
 


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

2010-02-01 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608

--- Comment #3 from Reedy  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

2010-01-31 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608

Roan Kattouw  changed:

   What|Removed |Added

 CC||roan.katt...@gmail.com

--- Comment #2 from Roan Kattouw  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


[Bug 18608] API should provide list of CSS styles to apply to rendered output

2010-01-31 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=18608

Reedy  changed:

   What|Removed |Added

 CC||s...@reedyboy.net

--- Comment #1 from Reedy  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