On Mon, Aug 15, 2011 at 11:46 PM, Patrick Reilly <[email protected]> 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. So basically, yes, it's hardcoded, but not just for enwiki and the classes can easily be added to any Main Page. :-) -- Casey Brown Cbrown1023 _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
