Re: [Wikitech-l] ResourceLoader support question: how to construct a value in CSS from PHP

2013-08-25 Thread Krinkle
On Jul 3, 2013, at 4:47 AM, Ori Livneh o...@wikimedia.org wrote: On Tue, Jul 2, 2013 at 11:52 PM, Thomas Gries m...@tgries.de wrote: Question: = How to contruct the background-image filename from a value in one of the OpenID PHP modules ? For a single rule, you can get away

Re: [Wikitech-l] ResourceLoader support question: how to construct a value in CSS from PHP

2013-08-25 Thread Tyler Romeo
Just for the record, the associated change with this inquiry is https://gerrit.wikimedia.org/r/55287 *-- * *Tyler Romeo* Stevens Institute of Technology, Class of 2016 Major in Computer Science www.whizkidztech.com | tylerro...@gmail.com On Sun, Aug 25, 2013 at 12:51 PM, Krinkle

[Wikitech-l] ResourceLoader support question: how to construct a value in CSS from PHP

2013-07-03 Thread Thomas Gries
The extension OpenID loads a CSS file via RL: $myResourceTemplate = array( 'localBasePath' = $path . '/skin', 'remoteExtPath' = 'OpenID/skin', 'group' = 'ext.openid', ); ... $wgResourceModules['ext.openid.icons'] = $myResourceTemplate + array( 'styles' = 'openid.css',

Re: [Wikitech-l] ResourceLoader support question: how to construct a value in CSS from PHP

2013-07-03 Thread Ori Livneh
On Tue, Jul 2, 2013 at 11:52 PM, Thomas Gries m...@tgries.de wrote: Question: = How to contruct the background-image filename from a value in one of the OpenID PHP modules ? For a single rule, you can get away with something like: $wgHooks[ 'BeforePageDisplay' ][ ] = function (

Re: [Wikitech-l] ResourceLoader support question: how to construct a value in CSS from PHP

2013-07-03 Thread Thomas Gries
Am 03.07.2013 13:47, schrieb Ori Livneh: How to contruct the background-image filename from a value in one of the OpenID PHP modules ? For a single rule, you can get away with something like: $wgHooks[ 'BeforePageDisplay' ][ ] = function ( $out, $skin ) { $out-addHeadItem( 'oauth-provider',