On Tue, Aug 16, 2011 at 3:55 AM, Casey Brown <lists(a)caseybrown.org> wrote:
On Mon, Aug 15, 2011 at 11:46 PM, Patrick Reilly
<preilly(a)wikimedia.org> wrote:
There's another line doing stuff like:
$featuredArticle = $this->mainPage->getElementById( 'mp-tfa'
);
$newsItems = $this->mainPage->getElementById( 'mp-itn' );
Which I assume is a refrence to class names used on the english
wikipedia's main page.
Yes, it is a reference to the main page class names. We could also
take the config variable approach.
To clarify, I think these classes were specifically added for mobile
use. It's not like they're specifically hardcoded in just because
enwiki used them. They were used for the Ruby frontend as well, and
are also in place on a few other language Wikipedias that want to use
selectors to display mobile content.
This is correct.
So basically, yes, it's
hardcoded, but not just for enwiki and the classes can
easily be added
to any Main Page. :-)
Great point. Thanks, for providing feedback.
--
Casey Brown
Cbrown1023
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l